MIRAProject, 2025

RAINet: Multi-Scale Involutional Model for Resource-Constrained Medical Image Classification

rainet_main

Medical AI usually needs powerful, expensive computers. Small labs, clinics with low-end hardware and mobile health apps often can't run it, which leaves out the places that might need it most. RAINet is a lightweight deep learning model for medical image classification, designed to stay accurate while running on modest hardware.

RAINet follows a ResNet-style design, but it replaces most standard convolutions with involution, a lighter operation. A standard convolution uses the same fixed filters everywhere. Involution builds its filter from the image itself and shares it across channels, which needs far fewer parameters. After a small convolutional stem, the image passes through four stages. Three use Efficient Involution, and the third uses Multi-scale Involution, which blends a small and a large filter through a learned gate so the model can see both fine detail and wider context. Weight Standardization and Group Norm keep training stable even with small batches.

The result is a very small, fast model. Compared with six standard image models, RAINet has the fewest parameters (1.28 million, against 2.23 million for MobileNetV2), the smallest file (4.88 MB, against 89.7 MB for ResNet50) and the lowest computing cost (0.58 GFLOPs per image). It takes 4.27 ms per image on a GPU and 32 ms on a plain CPU, the fastest of all the models tested.

RAINet stays accurate despite its size. We tested it on four types of medical images using 5-fold cross-validation. It reached 98.83% accuracy on brain tumour MRI, 93.77% on COVID-19 chest X-rays, 99.86% on tuberculosis chest X-rays and 98.71% on blood cell microscope images, within 0.07 to 0.87 points of much larger models. Even trained from scratch without pretraining, its accuracy dropped by at most 1.58 points.

To make its decisions easier to understand, we use Grad-CAM visualization, which highlights the parts of the image the model focused on. It focuses on the tumour in brain MRI and on the cell nucleus in blood smears. On chest X-rays, it sometimes looks at the middle of the chest rather than the lungs, which we flag for future work.

By delivering near state-of-the-art accuracy at a fraction of the size and cost, RAINet could bring reliable medical image analysis to low-resource clinics, small labs and mobile devices.

Team