Abstract
Knee osteoarthritis (KOA) is a widespread degenerative joint condition that severely impacts quality of life, with early detection being essential for effective management. This study presents a comprehensive deep learning-based approach for the automated prediction and classification of KOA using X-ray images. Utilizing the Kellgren and Lawrence (KL) grading system, KOA severity is categorized into five levels: Normal, Doubtful, Mild, Moderate, and Severe. The project employed two phases: first, by aggregating four datasets and applying a deep convolutional generative adversarial network (DCGAN) for data augmentation, resulting in a large dataset of 110,232 enhanced X-ray images using advanced preprocessing methods like adaptive histogram equalization and fast non-local means; second, by implementing and comparing various deep learning models. A novel modified compact convolutional transformer model, KOA-CCTNet, was developed and optimized for efficient training on large-scale data. KOA-CCTNet outperformed existing models including Swin Transformer, Vision Transformer, and Involutional Neural Network, achieving a test accuracy of 94.58%, surpassing ResNet50 (80.77%), MobileNetV2 (79.98%), DenseNet201 (80.23%), InceptionV3 (76.89%), and VGG16 (79.58%). Additionally, a separate system using Flask, Python, HTML, CSS, and JavaScript was built to classify 1,650 manually annotated high-quality grayscale X-ray images collected from medical facilities. MobileNetV2 and VGG16 were employed in this system, achieving 96% and 92% test accuracy, respectively. The overall results affirm the robustness and clinical viability of deep learning for accurate, scalable, and cost-effective KOA diagnosis and grading.