Kellgren-Lawrence knee grading
A deep learning model that reads a knee X-ray and grades how far osteoarthritis has progressed. It was also my final-year project.
- Paper
- Knee Osteoarthritis Prediction Driven by Deep Learning and the Kellgren-Lawrence Grading
- Published
- Proceedings on Engineering Sciences, ISSN 2620-2832, Vol. 05, No. 3 (2023), pp. 475–484
- Authors
- V. Vijaya Kishore, ShilpaSreya Batthala, Jithendra Varma Chamarthi, Chalambu Achyutasai, Subrahmanyam B.
- Received
- 1 December 2022
- Accepted and published
- 7 May 2023
- Project dates
- December 2022 to April 2023
The problem
Knee osteoarthritis gets worse over 10 to 15 years and is a major cause of activity restrictions in older people. Catching it early matters, because lost cartilage cannot be restored.
MRI shows the joint in 3D but is expensive and limited to large facilities, so X-ray is the practical screening tool. Reading the X-ray depends on the clinician: the Kellgren-Lawrence scale leaves room for judgement, and studies the paper cites put reliability between 0.67 and 0.73 even for the same reader.
The Kellgren-Lawrence classes in the data
The study used two sets of 1,650 images from a public knee X-ray dataset. Each set had this mix:
| Grade | Class | Images per set |
|---|---|---|
| 0 | Normal | 514 |
| 1 | Doubtful | 477 |
| 2 | Mild | 232 |
| 3 | Moderate | 221 |
| 4 | Severe | 206 |
The approach
Prepare the images
Load the dataset, then resize and normalise each X-ray to 224 × 224.
Use a pre-trained network
VGG16 with ImageNet weights extracts the features, using stacked 3 × 3 convolution layers and 2 × 2 max pooling.
Classify
Fully connected layers and SoftMax assign one of the five grades.
Evaluate and save
Plot accuracy and loss, then save the trained model.
Results
The paper reports a classification accuracy of more than 95%, with an average training accuracy of 95% and a maximum validation accuracy of 87%.
Tools
- Python, Keras and TensorFlow for the model
- scikit-learn for splitting the data
- PIL, NumPy and pandas for image and data handling
- Matplotlib for the evaluation graphs
- Flask for the implementation
Where this sits in the story
- Two research papers · Learn · 2022–23