Case Study
RSNA Knee Abnormality Detection
AI-Driven Insights for Knee Abnormality Detection
The Challenge
At NKORR, we are participating in the 2026 RSNA Research Code Competition on Kaggle, which focuses on knee abnormality detection. The objective is to develop a model that can detect knee abnormalities using MRI studies.
The knee is the most commonly injured and imaged joint in the body. Osteoarthritis alone affects an estimated 654 million people worldwide, while acute knee injuries account for 15 to 40 percent of all sports-related trauma. MRIs show clinicians ligaments, cartilage, menisci, and bone in detail, without exposing patients to radiation.
Reading those scans isn’t always straightforward. ACL and MCL tears, meniscal damage, cartilage loss, fractures, and other abnormalities can be subtle, and radiologists don’t always interpret them the same way. Access to musculoskeletal radiologists is also limited, especially outside major medical centers, leading to delays and inconsistent diagnoses.
In this competition, we will develop deep learning models to detect twelve clinically important knee abnormalities. We will work with the first RSNA AI Challenge dataset that pairs every imaging study with its original radiology report, enabling our models to learn from both visual scans and written diagnostic text.
Our Solution
1. Dataset Description
The dataset consists of two main folders: train_series and test_series. The train_series folder contains MRI data from 4,407 training studies, while the test_series folder contains MRI data from 3 test studies.
Dataset Files
-
train.csvContains one row per training study, including:
StudyInstanceUID: Unique identifier for each MRI study.Report: Original free-text radiology report, which may be written in different languages.- Twelve binary labels: ACL, MCL, Medial Meniscus, Lateral Meniscus, Medial OA, Lateral OA, PF OA, Effusion, Synovitis, Baker's, Contusion, and Fracture.
-
train_series.csvContains one row per MRI series, with metadata used for series selection:
StudyInstanceUID: Associated study identifier.SeriesInstanceUID: Unique series identifier.Fluid_Sensitive: Indicates whether the sequence is fluid-sensitive (1 or 0).Fat_Suppression: Indicates whether fat suppression is applied (1 or 0).Anatomical_Plane: Imaging planes such as Axial, Coronal, or Sagittal.
-
test.csvContains the identifiers of the test studies for which the model must generate predictions. The radiology reports are not provided during testing.
-
test_series.csvContains the series-level metadata of the test studies, including series identifiers, fluid sensitivity, fat suppression, and anatomical plane.
2. Labelling
The original training dataset contained 4,407 MRI studies, but ground-truth abnormality labels were available for only 58 studies in the train.csv file. However, the file also included a Report column containing the original free-text radiology reports, which could be written in different languages, including English, French, and Greek. We used these reports to generate abnormality labels for the remaining studies and create a more comprehensive labelled dataset.
To achieve this, we used Gemma 4:31B, accessed through Ollama Cloud, to automatically extract abnormality labels from the radiology reports. We designed a structured prompt that instructed the LLM to classify each report into 12 target abnormalities. The model was required to return exactly 12 binary labels in JSON format, with 1 indicating the presence and 0 indicating the absence of an abnormality.
The prompt included explicit instructions and examples to handle positive and negative findings, distinguish anatomical locations, and correctly identify the affected osteoarthritis compartment. Since the reports included multiple languages, the model was instructed to interpret their medical meaning rather than rely solely on English keywords.
For findings not specifically discussed in a report, the model was instructed to assign 0. Consequently, uncertain findings were also represented using binary labels rather than a separate uncertainty category. The generated labels were then used to expand the training annotations beyond the original 58 ground-truth studies.
To assess the quality of the LLM-generated labels, we compared them with the original ground-truth labels available for 58 studies. The comparison showed that the LLM correctly identified most of the abnormalities, indicating good agreement with the manually provided labels.
3. Our Approach
Each study may contain a different number of MRI series, and each series may contain a different number of images. To maintain a consistent input structure, we first select relevant MRI series from each study using the metadata provided in train_series.csv. This file contains the study and series information, including imaging view, fluid sensitivity, and fat suppression details.
We adopted a six-slot approach based on three imaging views (Axial, Coronal, and Sagittal) and two fluid-sensitivity settings (True and False). Accordingly, each study is represented using six predefined series slots.
From each selected series, nine images are sampled at approximately uniform intervals across the series. These sampled images are then passed through the pretrained DINOv2 and CoAtNet encoders for feature extraction. The extracted features are subsequently processed by the classification models to predict the 12 knee abnormalities.
Architecture
The proposed architecture for knee MRI abnormality detection consists of seven main stages: input data preparation, series selection, slice sampling, feature extraction, classification, weighted ensembling, and final probability generation.
1. Input Data
The system takes multi-series knee MRI studies in DICOM format as input. Each study may contain multiple imaging series with different anatomical orientations, imaging sequences, and numbers of slices.
2. Series Selection and Metadata Mapping
The relevant MRI series are identified using DICOM metadata, particularly the anatomical plane and fluid-sensitive sequence information.
The dataset contains three anatomical planes: Axial, Coronal, and Sagittal. Each plane is further categorized into two types based on fluid sensitivity: True (F1) and False (F0). This results in six predefined slots.
| Anatomical Plane | Fluid Sensitive | Slot Name |
|---|---|---|
| Axial | False | Axial_F0 |
| Axial | True | Axial_F1 |
| Coronal | False | Coronal_F0 |
| Coronal | True | Coronal_F1 |
| Sagittal | False | Sagittal_F0 |
| Sagittal | True | Sagittal_F1 |
Series Selection Strategy
- From each MRI study, we select a maximum of six MRI series, corresponding to the six predefined slots.
- Each selected series is mapped to its corresponding slot based on its anatomical plane and fluid-sensitive characteristics.
- If multiple series belong to the same slot, only one representative series is selected. The remaining duplicate series are skipped.
- If a particular slot is unavailable in an MRI study, it is treated as a missing series. Its feature representation is zero-filled, and the corresponding
slot_maskis set to 0. For available series, theslot_maskis set to 1.
3. Slice Sampling
After selecting the MRI series, nine slices are sampled at approximately uniform intervals across each series, covering different portions of the MRI volume. The same nine-slice sampling strategy is applied to both DINOv2 and CoAtNet feature extraction branches to maintain a consistent input structure.
4. Feature Extraction
Two pretrained deep learning encoders, DINOv2 and CoAtNet, independently extract visual features from the sampled MRI slices. Each slice is represented by a 768-dimensional feature vector. Consequently, the feature tensor for each study has the shape (6, 9, 768), corresponding to six series slots, nine slices per slot, and 768 features per slice.
5. Classification
The features extracted by DINOv2 and CoAtNet are processed by separate KneeClassifier models, forming two independent classification branches: one for DINOv2 features and another for CoAtNet features.
Each KneeClassifier consists of three main components:
- Slice Attention: Assigns attention weights to the nine slices in each MRI series and combines their features into a single 768-dimensional series representation. The
slice_maskexcludes missing or invalid slices. - Slot Attention: Assigns attention weights to the six series representations and combines them into a single 768-dimensional study representation. The
slot_maskexcludes unavailable series. - MLP Classifier: Processes the 768-dimensional study-level feature vector through a fully connected layer with 256 neurons, ReLU activation, and Dropout (0.3), followed by an output layer that produces 12 logits corresponding to the target abnormalities.
6. Weighted Ensemble
The predictions from the DINOv2-based and CoAtNet-based KneeClassifier models are combined using a weighted ensemble. We experimented with different weight combinations, including 0.3/0.7, 0.7/0.3, and 0.5/0.5. Among the tested combinations, equal weights of 0.5 for each model achieved the highest validation AUC.
7. Abnormality Probability
The final abnormality probabilities were obtained by combining the predicted probabilities from the DINOv2 and CoAtNet models using a weighted ensemble. These combined probabilities indicate the chance of each of the 12 abnormalities being present in an MRI study.
Results
The proposed model achieved a Kaggle Public Leaderboard score of 0.772 in the RSNA Knee Abnormality Detection competition. The evaluation metric was macro-averaged ROC AUC across the 12 abnormalities.
Tech Background
The Knee MRI Abnormality Detection project is developed using Python and deep learning frameworks, with a focus on efficient medical image processing, pretrained visual feature extraction, and multi-label classification.
Python is the primary programming language used throughout the project. It supports DICOM image processing, data preparation, deep learning model development, feature extraction, training, evaluation, and prediction generation.
| Technology | Purpose |
|---|---|
| Python | Primary programming language |
| PyTorch | Deep learning model development, training, and inference |
| NumPy | Numerical operations and feature manipulation |
| Pandas | Dataset handling, metadata processing, and label management |
| pydicom | Reading and processing DICOM medical images |
| Matplotlib | Data visualization and model performance analysis |
References
Author: Ganeshan K
Work with us
Working on a medical imaging project?
Tell us about your project. We'll tell you honestly whether and how we can help.