What Overall Accuracy Hides: Reproducing MedNet at 28×28 and Evaluating Its Proposed Class-Imbalance Remedies on MedMNIST | IJLTEMAS
00
Days
00
Hrs
00
Min
00
Sec
Submit Your Paper

What Overall Accuracy Hides: Reproducing MedNet at 28×28 and Evaluating Its Proposed Class-Imbalance Remedies on MedMNIST

Authors

Keshav Gupta

National Research University Higher School of Economics (Russia)

Mudassir Iftikhar

National Research University Higher School of Economics (Russia)

Tannu Kajal

Università Degli Studi Torino (Italy)

Article Information

DOI: 10.51583/IJLTEMAS.2026.151100056

Subject Category: Computer Science

Volume/Issue: 15/11 | Page No: 742-753

Publication Timeline

Submitted: 2026-11-06

Accepted: 2026-11-11

Published: 2026-11-26

Abstract

MedNet is a lightweight attention-augmented convolutional network that combines depthwise separable convolutions with the Convolutional Block Attention Module (CBAM), and which its authors report as matching or exceeding much larger baselines on the MedMNIST collection at a fraction of the parameter count. In their concluding discussion the authors identify class imbalance as the principal remaining weakness of the method, noting that Focal Loss alone leaves under-represented classes poorly modelled, and propose under-sampling, weighted sampling, or generative augmentation as future work. This study takes up that proposal directly. We first reproduce MedNet independently at the 28×28 resolution reported in the original resolution ablation, on CPU-only commodity hardware, and confirm the architecture at the parameter level (3,269,581 with CBAM and 3,092,386 without, matching the published 3.27 M and 3.09 M). Trained for the paper's full 70-epoch budget, our DermaMNIST reproduction reaches 77.46 % accuracy against the 77.7 % ± 0.7 reported, and exceeds the ResNet-18 and ResNet-50 baselines at the same resolution using roughly a quarter and an eighth of their parameters. We then implement two of the three remedies the authors propose, inverse-frequency Focal-Loss weighting and inverse-frequency weighted sampling, and evaluate them against a matched control with imbalance-aware metrics. Two findings follow. First, the early stopping used in the released implementation is itself costly for rare classes: stopping at epoch 26 rather than 70 lowers accuracy by 1.95 points, balanced accuracy by 9.25 points and macro F1 from 0.570 to 0.481, because a validation-accuracy criterion is satisfied long before the minority classes are learned. Second, rebalancing is a genuine trade rather than a free improvement: inverse-frequency weighting raises balanced accuracy from 53.98 % to 59.26 % and melanoma recall from 0.372 to 0.619, but lowers overall accuracy from 77.46 % to 66.93 % and macro F1 from 0.570 to 0.514, because recall on rare classes is bought with precision. We conclude that overall accuracy is a poor primary metric on DermaMNIST, where constant prediction of the majority class already scores 66.88 %, but that the remedies the authors propose should be presented as an operating-point choice governed by the clinical cost of a missed malignancy, not as an unqualified gain.

Keywords

MedNet, MedMNIST, Overall Accuracy, Class Imbalance, Medical Image Classification, Deep Learning

Downloads

References

1. Howard, A. G. et al. MobileNets: Efficient convolutional neural networks for mobile vision appli- [Google Scholar] [Crossref]

2. cations. arXiv:1704.04861 (2017). [Google Scholar] [Crossref]

3. Chollet, F. Xception: Deep learning with depthwise separable convolutions. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, 1251–1258 (2017). [Google Scholar] [Crossref]

4. Hu, J., Shen, L. & Sun, G. Squeeze-and-excitation networks. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, 7132–7141 (2018). [Google Scholar] [Crossref]

5. Woo, S., Park, J., Lee, J.-Y. & Kweon, I. S. CBAM: Convolutional block attention module. In Proc. European Conference on Computer Vision (ECCV), 3–19 (2018). [Google Scholar] [Crossref]

6. Ferdous, M., Mahmud, S. & Shimul, M. E. Z. MedNet: a lightweight attention-augmented CNN for medical image classification. Scientific Reports 15, 41936 (2025). https://doi.org/10.1038/s41598-025-25857-w [Google Scholar] [Crossref]

7. Lin, T.-Y., Goyal, P., Girshick, R., He, K. & Dollár, P. Focal loss for dense object detection. In Proc. IEEE International Conference on Computer Vision, 2980–2988 (2017). [Google Scholar] [Crossref]

8. Yang, J. et al. MedMNIST v2 - A large-scale lightweight benchmark for 2D and 3D biomedical image classification. Scientific Data 10, 41 (2023). [Google Scholar] [Crossref]

9. Manzari, O. N., Ahmadabadi, H., Kashiani, H., Shokouhi, S. B. & Ayatollahi, A. MedViT: A robust vision transformer for generalized medical image classification. Computers in Biology and Medicine 157, 106791 (2023). [Google Scholar] [Crossref]

10. He, K., Zhang, X., Ren, S. & Sun, J. Deep residual learning for image recognition. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, 770–778 (2016). [Google Scholar] [Crossref]

11. Tschandl, P., Rosendahl, C. & Kittler, H. The HAM10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions. Scientific Data 5, 180161 (2018). [Google Scholar] [Crossref]

12. Acevedo, A., Merino, A., Alférez, S., Molina, Á., Boldú, L. & Rodellar, J. A dataset of microscopic peripheral blood cell images for development of automatic recognition systems. Data in Brief 30, 105474 (2020). [Google Scholar] [Crossref]

13. Kermany, D. S. et al. Identifying medical diagnoses and treatable diseases by image-based deep learning. Cell 172(5), 1122–1131 (2018). [Google Scholar] [Crossref]

14. Abhishek, K., Jain, A. & Hamarneh, G. Investigating the quality of DermaMNIST and Fitzpatrick17k dermatological image datasets. Scientific Data 12, 196 (2025). [Google Scholar] [Crossref]

15. Buda, M., Maki, A. & Mazurowski, M. A. A systematic study of the class imbalance problem in convolutional neural networks. Neural Networks 106, 249–259 (2018). [Google Scholar] [Crossref]

16. Johnson, J. M. & Khoshgoftaar, T. M. Survey on deep learning with class imbalance. Journal of Big Data 6, 27 (2019). [Google Scholar] [Crossref]

17. Cui, Y., Jia, M., Lin, T.-Y., Song, Y. & Belongie, S. Class-balanced loss based on effective number of samples. In Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition, 9268–9277 (2019). [Google Scholar] [Crossref]

18. Loshchilov, I. & Hutter, F. Decoupled weight decay regularization. In International Conference on Learning Representations (ICLR) (2019). [Google Scholar] [Crossref]

19. Buslaev, A., Iglovikov, V. I., Khvedchenya, E., Parinov, A., Druzhinin, M. & Kalinin, A. A. Albumentations: Fast and flexible image augmentations. Information 11(2), 125 (2020). [Google Scholar] [Crossref]

20. Loshchilov, I. & Hutter, F. SGDR: Stochastic gradient descent with warm restarts. In International Conference on Learning Representations (ICLR) (2017). [Google Scholar] [Crossref]

Metrics

Views & Downloads

Similar Articles

Engineering,
Management &
Applied Science
Journal
(IJLTEMAS)
Published by RSIS International
Tower B, Suncity Success Tower
Golf Course Ext Rd, Sector 65
Gurugram, Haryana 122101, India
© 2026 IJLTEMAS · RSIS International. ISSN 2278-2540.