Med-ConvNeXT: A Multi-Class Edge-Compatible Image Classification Model for Respiratory Disease
Abstract
Respiratory abnormality detection in chest X-ray images can be assisted and automated via machine learning models. Many of those models are very effective in detecting abnormalities, but they require large computational and memory resources. Running these models on edge devices often leads to delays in inference or crashes, as most of the devices have memory constraints. Therefore, a more edge-aware image classification model called Med-ConvNeXT is developed by keeping both memory and performance in mind. The proposed model introduces a kernel reparameterization technique called receptive kernel fusion, which combines useful information from kernels ( ) to calculate a receptive kernel. The kernel calculated by the above method can extract both lower- and higher-level features without increasing FLOPs or the network's parameter count. To further reduce the number of parameters and FLOPs, a novel channel pruning method, called Memory-based Channel Pruning, is introduced. This method compares the classification performance of different kernels and ranks them to eliminate the least important kernels. This reduced the total channel size from 96 to 64 in the first stage. Combining the proposed kernel reparameterization and channel pruning technique reduced the parameter count of the ConvNeXT model by up to 54.7% while achieving a classification accuracy of 96.53% for X-ray images. The proposed model achieved 93.7% sensitivity and 95.9% specificity with a parameter count of 12.96 million. The proposed model was implemented on Raspberry Pi 5 hardware and got an inference latency of 985ms using a 118 MB memory footprint. This performance is achieved with an input image dimension of a 512×512 X-ray image. The proposed model balances both image classification performance and edge implementation efficiency. The proposed model can achieve better performance on edge devices without the need for expensive server and cloud infrastructure
Downloads
References
Vincent, Darian, G., & Surantha, N. (2025). Performance evaluation of convolutional neural network (CNN) for skin cancer detection on edge computing devices. Applied Sciences, 15(6), 3077. https://doi.org/10.3390/app15063077.
Nguyen, H. Q., Lam, K., Le, L. T., et al. (2022). VinDr-CXR: An open dataset of chest X-rays with radiologist’s annotations. Scientific Data, 9, 429. https://doi.org/10.1038/s41597-022-01498-w.
Rajpurkar, P., Irvin, J., Zhu, K., et al. (2018). Deep learning for chest radiograph diagnosis: A retrospective comparison of the CheXNeXt algorithm to practicing radiologists. PLoS Medicine, 15(11), e1002686. https://doi.org/10.1371/journal.pmed.1002686.
Wang, X., Peng, Y., Lu, L., et al. (2017). ChestX-ray8: Hospital-scale chest X-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2097–2106. https://doi.org/10.1109/CVPR.2017.369.
Irvin, J., Rajpurkar, P., Ko, M., et al. (2019). CheXpert: A large chest radiograph dataset with uncertainty labels and expert comparison. Proceedings of the AAAI Conference on Artificial Intelligence, 33(01), 590–597. https://doi.org/10.1609/aaai.v33i01.3301590.
Z. Liu, H. Mao, C.-Y. Wu, C. Feichtenhofer, T. Darrell, and S. Xie, “A ConvNet for the 2020s,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), 2022, pp. 11976–11986, doi: 10.1109/CVPR52688.2022.01167
Dosovitskiy, A., Beyer, L., Kolesnikov, A., et al. (2021). An image is worth 16x16 words: Transformers for image recognition at scale. International Conference on Learning Representations (ICLR). https://doi.org/10.48550/arXiv.2010.11929.
Liu, Z., Lin, Y., Cao, Y., et al. (2021). SwinTransformer: Hierarchical vision transformer using shifted windows. Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 10012–10022. https://doi.org/10.1109/ICCV48922.2021.00986.
Ding, X., Guo, Y., Ding, G., & Han, J. (2019). ACNet: Strengthening the Kernel Skeletons for Powerful CNN via Asymmetric Convolution Blocks. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), 1911-1920. https://doi.org/10.1109/iccv.2019.00200.
Ding, X., Zhang, X., Ma, N., Han, J., Ding, G., & Sun, J. (2021). RepVGG: Making VGG-Style ConvNets Great Again. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 13733–13742. https://doi.org/10.1109/CVPR46437.2021.01352.
Chollet, F. (2017). Xception: Deep Learning With Depthwise Separable Convolutions. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 1800–1807. https://doi.org/10.1109/CVPR.2017.195.
Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., & Chen, L.-C. (2018). MobileNetV2: Inverted residuals and linear bottlenecks. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 4510–4520. https://doi.org/10.1109/CVPR.2018.00474.
Tan, M., & Le, Q. V. (2019). EfficientNet: Rethinking model scaling for convolutional neural networks. Proceedings of the 36th International Conference on Machine Learning, 97, 6105–6114. https://doi.org/10.48550/arXiv.1905.11946.
Huang, G., Liu, Z., van der Maaten, L., & Weinberger, K. Q. (2017). Densely connected convolutional networks. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 4700–4708. https://doi.org/10.1109/CVPR.2017.243.
He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 770–778. https://doi.org/10.1109/CVPR.2016.90.
Todi, A., Narula, N., Sharma, M., & Gupta, U. (2023). ConvNext: A Contemporary Architecture for Convolutional Neural Networks for Image Classification. Proceedings of the 2023 3rd International Conference on Innovative Sustainable Computational Technologies (CISCT), 1–6. https://doi.org/10.1109/CISCT57197.2023.10351320.
Abdusalomov, A., Mirzakhalilov, S., Umirzakova, S., Buriboev, A. S., Meliboev, A., Muminov, B., & Jeon, H. S. (2025). Accessible AI diagnostics and lightweight brain tumor detection on medical edge devices. Bioengineering, 12(1), 62. https://doi.org/10.3390/bioengineering12010062
Novac, P., Hacene, G. B., Pegatoquet, A., Miramond, B., & Gripon, V. (2021). Quantization and deployment of deep neural networks on microcontrollers. Sensors, 21(9), 2984. https://doi.org/10.3390/s21092984.
Johnson, A. E. W., Pollard, T. J., Berkowitz, S. J., et al. (2019). MIMIC-CXR: A de-identified publicly available database of chest radiographs with free-text reports. Scientific Data, 6, 317. https://doi.org/10.1038/s41597-019-0322-0.
Jacob, B., Kligys, S., Chen, B., et al. (2018). Quantization and training of neural networks for efficient integer-arithmetic-only inference. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2704–2713. https://doi.org/10.1109/CVPR.2018.00286.
Wang, C., Wang, X., Zhai, J., & Shao, S. (2023). A Lightweight convolutional medical segmentation algorithm based on ConvNeXt to improve UNet. Journal of Intelligent & Fuzzy Systems, 46(2), 4077–4092. https://doi.org/10.3233/jifs-233232.
Yu, W., Zhou, P., Yan, S., & Wang, X. (2024). InceptionNeXt: When Inception Meets ConvNeXt. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 5672–5683. https://doi.org/10.1109/CVPR52733.2024.00542.
Wang, A., Chen, H., Lin, Z., Han, J., & Ding, G. (2024). RepViT: Revisiting Mobile CNN From ViT Perspective. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 15909–15920. https://doi.org/10.1109/CVPR52733.2024.01506.
He, Y., Zhang, X., & Sun, J. (2017). Channel pruning for accelerating very deep neural networks. In Proceedings of the IEEE international conference on computer vision, (pp. 1389-1397). https://doi.org/10.1109/ICCV.2017.155
Liu, Z., Li, J., Shen, Z., Huang, G., Yan, S., & Zhang, C. (2017). Learning efficient convolutional networks through network slimming. In Proceedings of the IEEE International Conference on Computer Vision (ICCV) (pp. 2736-2744). https://doi.org/10.1109/ICCV.2017.298
Fang, G., Ma, X., Song, M., Mi, M. B., & Wang, X. (2023). DepGraph: Towards Any Structural Pruning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 16091–16101. https://doi.org/10.1109/CVPR52729.2023.01544
Hu, J., Shen, L., & Sun, G. (2018). Squeeze-and-Excitation Networks. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 7132–7141. https://doi.org/10.1109/CVPR.2018.00745.
Sevinc, A., Ucan, M., & Kaya, B. (2025). A Distillation Approach to Transformer-Based Medical Image Classification with Limited Data. Diagnostics, 15(7), 929. https://doi.org/10.3390/diagnostics15070929.
Korkmaz, O. E. (2025). Revisiting convolutional design for efficient CNN architectures in edge-aware applications. Scientific Reports, 15, 44351. https://doi.org/10.1038/s41598-025-27856-3
Selvaraju, R. R., Cogswell, M., Das, A., et al. (2017). Grad-CAM: Visual explanations from deep networks via gradient-based localization. Proceedings of the IEEE International Conference on Computer Vision (ICCV), 618–626. https://doi.org/10.1109/ICCV.2017.74.
Zeiler, M. D., & Fergus, R. (2014). Visualizing and understanding convolutional networks. European Conference on Computer Vision (ECCV), 818–833. https://doi.org/10.1007/978-3-319-10590-1_53.
Ding, X., Zhang, X., Han, J., & Ding, G. (2021). Diverse Branch Block: Building a Convolution as an Inception-like Unit. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 10886–10895. https://doi.org/10.1109/CVPR46437.2021.01074.
Vasu, P. K. A., Gabriel, J., Zhu, J., Tuzel, O., & Ranjan, A. (2023). FastViT: A Fast Hybrid Vision Transformer Using Structural Reparameterization. Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 5785–5795. https://doi.org/10.1109/ICCV51070.2023.00532.
Ding, X., Zhang, X., Han, J., & Ding, G. (2022). Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNs. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 11963–11975. https://doi.org/10.1109/CVPR52688.2022.01166.
Li, H., Kadav, A., Durdanovic, I., Samet, H., & Graf, H. P. (2017). Pruning filters for efficient ConvNets. International Conference on Learning Representations (ICLR). https://doi.org/10.48550/arXiv.1608.08710.
Luo, J.-H., Wu, J., & Lin, W. (2017). ThiNet: A filter level pruning method for deep neural network compression. Proceedings of the IEEE International Conference on Computer Vision (ICCV), 5068–5076. https://doi.org/10.1109/ICCV.2017.541.
Yi, M., Zhang, H., Chen, W., Ma, Z.-M., & Liu, T.-Y. (2019). BN-invariant sharpness regularizes the training model to better generalization. Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence (IJCAI), 4164–4170.https://doi.org/10.24963/ijcai.2019/578.
Kingma, D. P., & Ba, J. (2015). Adam: A method for stochastic optimization. International Conference on Learning Representations (ICLR). https://doi.org/10.48550/arXiv.1412.6980.
Kendall, A., Gal, Y., & Cipolla, R. (2018).Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 7482–7491. https://doi.org/10.1109/CVPR.2018.00781.
Kundu, R., Das, R., Geem, Z. W., Han, G., & Sarkar, R. (2021). Pneumonia detection in chest X-ray images using an ensemble of deep learning models. PLoS ONE, 16(9), e0256630. https://doi.org/10.1371/journal.pone.0256630.
Copyright (c) 2026 Parvez Belim, Nirav Bhatt, Amit Lathigara, Vikas Kumar Sabata

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlikel 4.0 International (CC BY-SA 4.0) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).


.png)
.png)
.png)
.png)
.png)