Research Article

Transfer Learning Based Deep Learning Approach for Knee Osteoarthritis Grading Using Modified XceptionNet Architecture

DOI:

10.3791/68720

August 22nd, 2025

In This Article

Summary

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

In order to enhance knee osteoarthritis identification from X-rays, this study suggests OsteoXceptionNet, a deep learning model that uses modified XceptionNet with transfer learning. This model improves feature extraction, lowers manual interpretation errors, and allows for more precise, automated classification.

Abstract

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Knee osteoarthritis (KOA) affects millions of individuals worldwide and has no known curative treatment, making it a serious global health concern. The management of its development depends on early discovery, and X-ray imaging is a fundamental diagnostic technique. However, due to variations in radiologists' levels of experience, manual X-ray interpretation increases variability and possible inaccuracies. Recent advances in machine learning and deep learning techniques have sparked the creation of automated systems for the radiological identification of osteoarthritis in the knee. However, for early-stage detection, obtaining greater prediction accuracy is still crucial. By utilizing the insights gathered from a bigger dataset, models trained on smaller, domain-specific datasets perform better through the use of transfer learning. Due to its depth and effectiveness, XceptionNet is especially well-suited for jobs involving the interpretation of medical images. In contrast to previous research, this method efficiently addresses dataset imbalance by using class balancing approaches, integrating a customized preprocessing pipeline, and adding customized architectural improvements to XceptionNet, which improves early-stage KOA identification. With the use of these state-of-the-art methods, The suggested approach shows potential in correctly identifying osteoarthritis from radiographic images of the knee, attaining 97% prediction accuracy, 97.8% precision, 97.6% recall, and 97.6% F1-measure. Additionally, the generated model showed 95.94% Cohen's kappa value, which indicates good agreement. The study supports further efforts to develop trustworthy, automated disease detection technology, which improves patient outcomes and facilitates more efficient healthcare delivery.

Introduction

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Knee osteoarthritis (KOA) is a significant worldwide public health issue that impacts a large number of people and puts a significant burden on both the patients and healthcare organizations. The knee joint's articular cartilage gradually deteriorates in this disorder. It has a complicated and multidimensional etiology that includes a mix of age, obesity, joint trauma, biomechanical variables, and genetic susceptibility1.

The loss of structural integrity results in cartilage thinning, fissuring, and eventual erosion, exposing the underlying bone. The symptoms of KOA can range widely and frequently worsen over time, from little discomfort to unbearable pain and loss of function2. A primary sign of knee pain is usually made worse by weight-bearing exercises and extended durations of activity. Common observations include stiffness, particularly during rest periods, edema, crepitus, and decreased range of motion3. These symptoms severely interfere with day-to-day functioning, resulting in functional restrictions and a reduction in the quality of life for those who experience them.

The hypothesis tested here is that an automated deep learning-based model can perform diagnostically on par with professional radiologists and correctly diagnose level of severity of KOA from imaging data using the Kellgren-Lawrence grading system.

The purpose of this study originates from inherent limitations associated with the traditional methods of diagnosing and grading knee osteoarthritis. Traditionally, radiographic imaging, especially knee X-ray analysis, is utilized to evaluate the degree of joint damage. Nevertheless, physical examination of these images is vulnerable to variability and can be time-consuming4. Advancements in deep learning and machine learning (ML) areas provide a promising path to automate and enhance the accuracy of KOA detection and grading, offering a more standardized and efficient approach. This is especially critical in the early stages of the condition, where intervention can substantially influence changes in the patient's standard of living as the condition progresses.

Machine Learning Approaches: The first attempts to automate KOA identification were based on classical machine learning methods. Strategies like K-Nearest Neighbors, Support Vector Machine and Decision Tree depended on handcrafted features that were taken from knee X-ray images. Although they provided some automation, quality and relevancy of manually derived characteristics was a major factor in how effective they were. This frequently resulted in poor generalizability and performance5.

Deep Learning (DL) Approaches: The emergence of convolutional neural networks, or deep learning, was a significant milestone in the area. With its reputation for automated feature extraction, Convolutional Neural Networks (CNNs) are becoming more and more popular in analysis of KOA images. Compared to conventional ML techniques, these algorithms have shown notable improvement in terms of accuracy as well as capacity to recognize complex patterns directly from images6,7.

Transfer Learning (TL): This enables models to be tailored for tasks requiring medical imaging after they have been pre-trained on large-scale generic datasets, has gained popularity in recent research8. This approach works especially well in the medical field, where small, specialized datasets are common.

Improved outcomes in KOA severity classification are highlighted by TL, which uses general features learnt from larger tasks and tailors them to particular subtleties of medical image analysis9,10.

For KOA identification and grading using radiography images, a number of automated techniques -- particularly deep learning models -- have been examined in recent years11,12. Nevertheless, a lot of current models either do not adequately handle issues with dataset imbalance and interpretability, or they do not detect problems in an early stage accurately enough. The method suggested here expands on this framework by adding three significant enhancements: design changes to the XceptionNet model for improved feature extraction, class balancing techniques to increase model reliability, and a customized preprocessing pipeline designed to improve knee joint features. Together with supporting more precise, reliable KOA categorization, these improvements provide a substantial improvement over traditional transfer learning techniques.

Even though DL and ML have demonstrated significant progression in analyzing KOA, there are still challenges to overcome, mainly in terms of attaining precise categorization, improving interpretability, and managing data imbalance. The proposed study expands on previous studies13,14,15,16,17,18,19,20,21,22 by offering a more thorough, transparent, and equitable evaluation, therefore pushing boundaries of what is currently possible in automated KOA diagnosis and grading. Table 1 outlines the analysis of current research carried out in osteoarthritis detection.

StudyObjectiveSummary
Hu et al.13Develop DeepKOA to predict knee osteoarthritis progression using MR images.DeepKOA shows promising knee osteoarthritis prediction capabilities, highlighting deep learning's potential in clinical settings. Further validation is needed.
Guida et al.14Enhance OA severity classification by integrating X-ray, MRI, and clinical data.A fusion model significantly improves OA classification accuracy, highlighting the benefits of a multimodal approach. Future research should address generalizability.
Bensalma et al.15Identify associations between various factors in knee osteoarthritis patients using multimodal analysis.The study reveals interrelations between multiple factors in knee OA, suggesting avenues for targeted interventions and further investigation.
Koppold et al.16Examine the impact of prolonged modified fasting on osteoarthritis symptoms.Modified fasting shows notable symptom improvement in osteoarthritis patients, indicating its potential as a treatment strategy. More studies, especially randomized controlled trials, are necessary.
Jain et al.17Present OsteoHRNet for Knee OA severity assessment from X-rays.OsteoHRNet achieves enhanced accuracy in Knee OA severity classification from X-rays, indicating its potential for clinical application. Further dataset validation is recommended.
Afroze et al.18Assessing machine learning-based methods for osteoarthritis (OA) detection across various imaging modalities.The review identifies critical gaps in machine learning-based OA detection, emphasizing the need for standardized approaches and empirical models.
Teoh et al.19Develop a multitask model for detailed OA diagnosis from radiography.A multitask model improves the accuracy of OA diagnosis by predicting individual OA features and pain intensity, suggesting potential for precise interventions. Additional research is encouraged to expand these findings.
Zhang et al.20Create a model for multi-level knee cartilage injury classification in MRI.The model offers high accuracy in knee cartilage injury classification using MRI, showing promise as a non-invasive diagnostic tool. Further cross-population validation is advised.
Li et al.21To examine the influence of multiview images and prior information, as well as the ability of a deep learning model to identify and classify knee osteoarthritis using X-rays.The KL grading of KOA was correctly identified and categorized using the DL model. Furthermore, prior knowledge and multiview X-ray images enhanced classification effectiveness.
Ratna et al.22Explore how machine learning is being used in knee osteoarthritis research to better understand the progression of the condition and early diagnosis.The study emphasizes how machine learning has impacted OA research, especially in terms of early diagnosis and understanding development, and it recommends more research to improve its clinical integration.

Table 1: Overview of recent works in Knee osteoarthritis detection.

The primary contributions of the work include OsteoXceptionNet, a modified XceptionNet architecture meant for knee osteoarthritis grading, and the use of a specifically created preprocessing pipeline to increase accuracy in diagnosis. The Osteoarthritis Initiative (OAI) dataset is used for training, and many baseline designs are used for evaluation. The dataset and preparation techniques are described in the subsequent portions of the study following a review of the relevant literature. Following an overview of the experimental results and a discussion of clinical importance, it delves further into the proposed model architecture before summarizing the key findings and offering future directions.

Dataset and experimental configuration
The OAI dataset, which consists of thousands of annotated knee X-ray images gathered over time from various clinical locations, is made publicly available for use in this study. Five Kellgren-Lawrence (KL) classes of knee osteoarthritis were represented by the 9786 knee X-ray images used for this study: Healthy (3857 images), Doubtful (1770), Minimal (2578), Moderate (1286), and Severe (295). During pre-processing, all images were uniformly scaled to 224 x 224 pixels using bilinear interpolation. The suggested OsteoXceptionNet framework was used in the experimental setting to automatically segment knee joint structures and then classify them into KOA severity classes.

To ensure as much class balance as feasible, the dataset was divided into subgroups for training (80%), validation (10%), and testing (10%). The dataset has several drawbacks despite its usefulness, such as class imbalance, with fewer samples falling into the Severe group than others. Additionally, the dataset only includes radiographic imaging; it lacks multimodal inputs like Magnetic Resonance Imaging (MRI) or clinical information, which might restrict its generalizability. The demographic skew, which restricts the data's relevance to other ethnic groups because it predominantly represents the North American population, is another noteworthy disadvantage. Although class-weighted loss functions and data augmentation were used to mitigate these restrictions when feasible, these are still crucial considerations when analyzing the model's performance.

Based on radiographic results, grading methods, such as the Kellgren-Lawrence (KL) system of grading, classify the severity of KOA into five categories: Grade 0 (Healthy), Grade 1 (Doubtful), Grade 2 (Minimal), Grade 3 (Moderate), and Grade 4 (Severe)23. Different images of KL grades are shown in Figure 1.

Knee osteoarthritis grading diagram showing X-ray progression from healthy (G0) to severe (G4).
Figure 1: KL grading of knee images. Based on radiographic results, the severity of KOA was classified into five categories: Grade 0 (Healthy), Grade 1 (Doubtful), Grade 2 (Minimal), Grade 3 (Moderate), and Grade 4 (Severe). Please click here to view a larger version of this figure.

Access restricted. Please log in or start a trial to view this content.

Protocol

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This section presents a comprehensive approach designed to enhance knee osteoarthritis diagnosis and grading through the use of a modified XceptionNet model. The presented methodology is based on careful data preprocessing, thorough model architecture customization, and strong assessment techniques, all of which are intended to address the complex problems associated with knee OA imaging. In Figure 2, the flow of the model has been illustrated.

Machine learning pipeline diagram; image processing, Xception model, classification algorithm.
Figure 2: Model's workflow. Please click here to view a larger version of this figure.

Dataset description
The dataset used in this research comprises 9,786 X-ray images of the knee from the OAI dataset that have been assigned an OA grade based on the KL grading technique. This dataset, which offers a wide range of instances covering the various phases of KOA, is essential for both training and evaluating the proposed model24. Bilinear interpolation was used to scale all images. This technique was selected because it strikes a compromise between computational effectiveness and maintaining the quality of the image, both of which are essential for maintaining anatomical features important for the categorization of osteoarthritis in the knee. In the dataset, the grades are 0-4, with Grade 0 representing a healthy knee and Grade 4 denoting severe osteoarthritis. This grade offers a complex range of disease evolution, which is essential for the model to understand the minute variations across the stages.

Additionally, the dataset was organized into testing, validation, and training sets. For evaluating the performance of the model and making sure it learns to generalize effectively without overfitting the training set, this split was essential. Testing set offers an objective assessment of the finalized model's efficacy, as it was used for modifying the model's weights as well. Furthermore, a validation set aids in fine-tuning the hyperparameters and assessing models throughout the training stage. A brief summary of data distribution is provided in Table 2, and Figure 3 provides a visual depiction of the same.

Class Auto-TestTestTrainVal
06046392286328
12752961046153
24034471516212
3200223757106
4445117327

Table 2: Brief description of dataset.

Dataset distribution chart; bar graph of Auto-Test, Test, Train, Val data categories in counts.
Figure 3: Dataset distribution. The dataset was organized into testing, validation, and training sets. Please click here to view a larger version of this figure.

Data pre-processing
This step is crucial and aims to improve model performance by improving the quality of the input data. The stages involved in preprocessing are as follow.

Image Resizing: A standard dimension is applied to every X-ray image to provide consistency throughout the entire set of images. This stage is essential for the model to process images consistently and effectively. Equation 1 is used in this process.

New Image Size = Resize (Original Image, Standard Dimension)     (1)

Normalization: The pixel values in the images have been standardized to get a mean of zero and a standard deviation of one. This kind of normalization ensures that the input values fall into a similar range, which speeds up the model's convergence during training. Equation 2 is used to carry out this normalizing step.

Alt text: "Image processing formula, normalized pixel value equation, diagram for data standardization." (2)

Data Augmentation: Data augmentation strategies were employed to address problems due to insufficient data and enhance the model's capacity for generalization. These methods include flips, zooms, rotations, and translations. They introduce new images that are intentionally added to the training dataset. Equation 3 is used in the implementation of this augmentation procedure.

Augmented Image = Apply Transformation (Original Iamge)   (3)

A variety of augmentation techniques were employed to provide variability to the training set in order to improve the model's robustness and minimize overfitting. A shear range of 0.2, a zoom range of 0.8 to 1.2 (corresponding to a zoom factor of 0.2), and a random rotation range of -30° to +30° were all included in the training data augmentation. Both horizontal and vertical flipping were allowed with a probability of 0.5 in order to enhance model generalization. For both vertical and horizontal shearing, a shearing factor of 0.1, or ± 10% distortion, was also employed.

Class Balancing: Class weighting algorithms were used because of the dataset's possible class imbalance (with more images of some OA classes than others). In order to prevent the model from showing bias in favor of more common classes, this method gives underrepresented classes larger weights. Equation 4 is utilized in this process. The following values were used to determine the weights: Healthy: 3857, Doubtful: 1770, Minimal: 2578, Moderate: 1286, and Severe: 295 are the class-wise distributions of the 9786 total samples and 5 classes.

Class weight formula, equation, statistical analysis, samples, data classification (4)

Train-Validation Split: The dataset was organized into validation and training sets using traditional 80:20 ratios. Dividing the data allows the model to learn from the training data and evaluate its performance on a regular basis using the validation set. This allows for identifying overfitting and evaluating the model's generalization ability.

Data Pipeline Optimization: An improved data pipeline was set up to guarantee effective data handling during model training. To reduce input/output bottlenecks and increase computing performance, this pipeline makes use of batching, prefetching, and parallel data extraction techniques. To improve training efficiency and throughput, the input data pipeline was developed. To guarantee balanced memory utilization and computational load, a batch size of 32 were employed. To increase data input efficiency, num_parallel_calls=4 was used in the map function to parallelize data loading and preprocessing. Furthermore, in order to minimize I/O latency, TensorFlow's prefetch(buffer_size=tf.data.AUTOTUNE) has been used to allow automated prefetch buffer size adjustment. This effectively overlapped data pre-processing and model execution

In Figure 4, a few instances of different classes of images have been shown after basic pre-processing.

Knee X-ray series for osteoarthritis grading; diagnostic radiography results, varying severity levels.
Figure 4: Instances from the dataset. The figure shows a few instances of different classes of images after basic pre-processing. Please click here to view a larger version of this figure.

Through these meticulous preprocessing steps, the dataset is transformed into a robust foundation for training the modified XceptionNet model, setting the stage for accurate and reliable KOA detection and grading.

Model architecture
Base Model: With its distinct design that uses depth-wise separable convolutions to achieve the best possible balance between computational efficiency and model complexity, the François Chollet-created XceptionNet model stands out25. Equation 5 was utilized to implement the depth-wise separable convolutions.

Depthwise Seperable Convolution(x) = Pointwise(Depthwise(x))   (5)

It is particularly relevant to this study for several reasons. First, its architecture is known for extracting detailed and hierarchical features from images, which is crucial for medical image analysis, where subtle features can indicate different stages of a condition. Secondly, the proposed model is based on the XceptionNet architecture, which has demonstrated outstanding effectiveness across several image classification tasks, aimed at detecting and grading knee osteoarthritis26.

The presented OsteoXceptionNet is a tailored version of the XceptionNet architecture created especially for automatically classifying osteoarthritis in the knee from X-ray images. Important changes include the addition of three more convolutional blocks (filters: 512, 256, and 128) to improve feature extraction specific to knee joint structures, as well as convolutional layers with filter sizes of 3 x 3 and variable filter counts ranging from 32 to 1024 across the entry, middle, and exit flows. Batch normalization and ReLU activation come after each convolutional layer, and dropout layers are added to minimize overfitting. The 224 x 224 pixel standard is used for model inputs.

Fine-tuning and modifications
Modifications: The XceptionNet model has been strategically modified in a few ways to make it suitable for KOA grading and detection.

Fine-tuning: Top layers of pre-trained XceptionNet model were unfrozen, enabling the model to learn high-level features specific to X-ray images of knee. Model fine-tuning was conducted as per Equation 6.

Fine-tuning process, formula: θ_fine-tuned = θ_pre-trained - λ∇_θpre-trained Loss; equation. (6)

where θfine-tuned are the parameters after fine-tuning; θpre-trained are the pre-trained parameters; λ is the learning rate; ∇θpre-trainedLoss is the loss function's gradient related to the parameters that were pre-trained.

Additional Convolutional Layers: Additional convolutional layers were introduced in the model's final phase. These layers have a smaller kernel size to focus on extracting finer details pertinent to the different OA grades. It was employed using equation 7.

Convolutional Output = Convolution(Input,Kernel)   (7)

Batch Normalization: Following each added convolutional layer, batch normalization is applied to stabilize learning and enhance the convergence speed. It is employed using equation 8.

Normalization formula: ŷ = (x-μ) / √(σ²+ε); equation used in statistical analysis.  (8)

where Static equilibrium equations ΣFx=0 diagram; force balance concepts in physics education. is the Normalized output; x is the batch normalization layer input; μ is the mean for the batch of input; σ2 is the variance in the batch of input; ϵ is a minimal constant for numerical stability.

Activation Functions: ReLU activation functions are utilized in the supplementary layers to introduce non-linearity, thereby enabling the model to acquire more intricate structures in the data. ReLU is calculated using equation 9.

ReLU(x) = max(0,x)     (9)

where, x is the ReLU activation function input.

Dropout: To prevent overfitting, dropout layers are incorporated, particularly after the newly added layers, to ensure generalization of the model even on unseen data. It was done by means of equation 10.

Output = Input × Mask     (10)

Output layer configuration
Output Layer: The original XceptionNet model is structured for multi-class classification with Softmax activation function in an output layer. In this adapted model, the output layer is customized to represent the five grades of knee osteoarthritis, spanning from Grade 0 to Grade 4, i.e., from healthy to severe level. Precisely, this layer comprises five neurons, each corresponding to one of the OA grades. Softmax activation function was utilized in this layer to produce a probability distribution across five classes, enabling the proposed model to forecast the appropriate OA grade for a given knee X-ray image. This approach aligns the model's output directly with the clinical grading scale, facilitating an intuitive and practical interpretation of the model's predictions for healthcare professionals.

The XceptionNet architecture is specifically tailored —which was first pre-trained on the ImageNet dataset—for presented study's objective to classify the severity of osteoarthritis in the knee. The model leveraged learnt features from a large and diverse dataset by using the pre-trained weights from ImageNet, which gave it a strong foundation. To customize the fundamental XceptionNet model for proposed research, many new layers were added.

First, 2D convolutional layers were combined with different numbers of filters and kernel sizes, each of which was activated by ReLU and batch normalization to add non-linearity. These extra layers were intended to capture and amplify features related to the severity of osteoarthritis in the knee. The model was then ready for the last classification stage by adding a Global Average Pooling 2D (GAP) layer, which shrinks the feature map while keeping important data. In particular, GAP operation achieves dimensionality reduction with minimal data loss by reducing each feature map's spatial dimensions to a single value while maintaining depth, which could vary from 7 x 7 x 1024 to 1 x 1 x 1024. The GAP layer's output was fed into the Softmax activation function, which enabled multi-class classification by converting logits to probabilities. Equations 11, 12, 13, 14, 15, 16, and 17 are used for the GAP, Softmax Activation, Feature Map Calculation, Learning Rate Reduction, Model Compilation, Class Weight Adjustment, and Multi-Class Classification Loss, respectively.

Global Average Pooling formula, ΣHΣW, image processing, deep learning method.     (11)

where, xi,j is activation of the feature map's i-th row and j-th column; H is the feature-map height; W is the feature-map width.

Softmax function equation, used in neural networks, probability computation, AI model training.     (12)

where, xi is the input to the Softmax function for class i; n is the number of classes.

Feature Map = σ(Convolution(Input,Kernel) + Bias)    (13)

where, Convolution is a convolution operation; i is Activation function; Input is the input tensor to the layer; Kernel is the convolutional kernel; Bias is the bias term.

New Learning Rate = Learning Rate × Factor    (14)

Model = Compile(Architecture,Loss,Optimizer,Metrics)   (15)

Class weight calculation formula; diagram for machine learning sample weighting.     (16)

where, Weightclass is the weight assigned to a class; Total Samples is the dataset's total_number_of_samples; Number_of_Classes is the number of distinctive classes inside the dataset; Sample in Class is the count of samples in a specific class.

Loss function equation, cross-entropy formula Σi Yi log(Pi), statistical method.      (17)

where, yi is the actual probability distribution for class i; pi is the class i probability distribution prediction; N is the number of classes.

Finally, the model, now comprising the modified XceptionNet architecture with the custom layers, was compiled to predict probabilities for each class. Through these modifications, the goal was to augment the model's capability in discerning nuanced features associated with different grades of knee osteoarthritis severity, enhancing its classification performance for the specific task.

For stable and effective convergence, the Adam optimizer was used to train the model with a learning rate of 0.0001, with 0.5 used as the dropout rate to minimize overfitting. To limit model complexity and improve generalization, both L1 and L2 regularization strategies were used. For multi-class classification problems with integer labels, Sparse Categorical Crossentropy was the suitable loss function. Training was conducted for 50 epochs. Softmax, the final activation function, was used for generating class probability distributions. Additionally, a 64-step size was used for training.

Training: The training process was a very important stage. In this stage, the modified XceptionNet model learns accurate detection and grading of KOA in radiographic images. Keras version 2.6.0 and TensorFlow backend version 2.6.0 were used to implement the XceptionNet model. Below are the details of key components of the training phase, including the loss function, optimizer, callbacks, batch size, and epochs.

Loss_Function: For multi-class classification task, categorical cross_entropy was used. This loss function is particularly suited for problems where each instance is expected to be assigned to one and only one label out of a set of categories27. It evaluates the model's performance by producing probability score within zero and one. This loss was used as a gauge to effectively train this model for the accurate prediction of KOA severity since it increases when the predicted probability differs from the actual label.

Optimizer: The Adam optimizer was employed, which is well known for its effectiveness and dynamic learning rate characteristics. Adam amalgamates the advantageous characteristics of the AdaGrad and RMSProp algorithms, furnishing an optimization algorithm adept at managing sparse gradients in noisy problem settings28.

Key parameters for the Adam optimizer
Learning Rate: A learning rate of 0.0001 was employed, enabling the optimizer to make substantial adjustments to the weights initially, thus optimizing the learning process.

Beta1 and Beta2: These parameters regulate the rates at which the squared gradient and moving averages of previous gradients decline, respectively. The default values of 0.9 for beta1 and 0.999 for beta2 are utilized.

Epsilon: This parameter prevents any division by zero in the implementation, set to a small number close to zero.

Callbacks: Callbacks are used during training to monitor the performance of the model and for adjusting. The following callbacks were employed:

Early_Stopping: This is used for monitoring validation loss of the model as well as for stopping training process if loss ceases to decrease for predefined number of epochs (referred to as patience). When validation data no longer shows improvement in the model's performance, it stops training process, which helps to prevent overfitting.

Reduce LROn Plateau: This callback decreases learning rate when validation loss ceases to improve, enabling finer adjustments in the weights, potentially resulting in improved overall model performance29.

Model Checkpoint: This callback saves the model at a certain interval, so that the best version of the model can be retrieved once the training process is completed. Usually, it monitors the validation accuracy or loss and saves the model weight whenever an enhancement is detected.

Batch Size and Epochs:
Batch Size: 32 is the typical batch size that was used in order to balance the requirements for both model convergence stability and computing efficiency. A batch size of 32 strikes a balance, being sufficiently large to leverage computational optimizations and yet small enough to offer a stable estimate of the gradient.

Epochs: The model is set to train for up to 50 epochs, although training may stop early if the EarlyStopping callback is triggered. The 50 epochs provide enough iterations for the weights to adjust and for the model to converge, while EarlyStopping ensures that training does not continue unnecessarily.

By meticulously setting these parameters and utilizing callbacks, the training process was optimized to ensure the model learns effectively and generalizes well to unseen data. In order to guarantee that all classes are fairly and accurately represented in model predictions, a number of approaches were used for addressing the data imbalance problem. First, in order to make up for the underrepresentation of some classes, class weighting was used throughout the training phase. Classes with fewer samples were given larger weights. To further lessen the impacts of class imbalance during training, Keras's ImageDataGenerator was also used to make sure the model was exposed to a variety of classes in each batch30.

Evaluation metrics
In evaluating the efficacy of the developed model, numerous parameters were utilized which are described below.

Accuracy (ACC): Ratio of accurately predicted observations to all observations is quantified by this statistic. When the target classes spread out equally, it is beneficial. Its calculation is based on equation 18.

Accuracy formula ACC=Correct Predictions/Total Predictions, shown as mathematical equation.     (18)

Precision (PR): The model's precision measures how well it can distinguish between all of the expected positives and positive cases. In circumstances when rate of false positive are substantial, it is quite important. Its computation is based on equation 19.

 Precision formula PR=TP/(TP+FP) equation for data analysis and evaluation metrics.    (19)

Recall (R): Recall, also known as sensitivity, quantifies the percentage of true positives correctly detected. It is especially important in situations where ignoring a good example might have serious repercussions. Its computation involves equation 20.

 Recall formula, R=TP/(TP+FN), for classification model performance analysis.     (20)

F1_Score: It is harmonic mean of precision (PR) and recall (R), it provides fair evaluation, particularly in the presence of an uneven class distribution. Its calculation involves equation 21.

F1 Score equation: 2(PR×R)/(PR+R), formula diagram for performance evaluation metrics.      (21)

ROC AUC: Area Under the Curve for Receiver Operating Characteristics (ROC AUC) quantifies the model's capacity to differentiate between classes. Elevated AUC values signify superior model performance. Its calculation is based on equation 22.

ROC curve integration formula, equation, True Positive Rate, Sensitivity, False Positive Rate, analysis.    (22)

Cohen's Kappa (CK): This metric assesses concordance between two raters who categorize N items into C mutually exclusive classes. It offers greater robustness compared to accuracy, especially when dealing with imbalanced classes. Its calculation involves equation 23.

CK formula for calculating inter-rater reliability; statistical equation for evaluation.     (23)

Metrics Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and Mean Squared Error (MSE): Although commonly employed for regression tasks, these parameters can provide useful revelations in classification scenarios, particularly in ordinal classifications. They calculate the difference between the real and predicted values. These metrics were computed using equations 24, 25, and 26, respectively.

Mean Squared Error formula, MSE equation, statistical error analysis, prediction accuracy measurement.   (24)

RMSE formula as root of MSE, statistical analysis equation.     (25)

Mean Absolute Error (MAE) formula; statistical analysis; prediction accuracy assessment.     (26)

F2 Score: The F2 score prioritizes recall over precision, which is valuable in scenarios where overlooking a positive prediction incurs greater costs than generating a false positive. Its calculation involves equation 27.

F2 score formula, balancing precision and recall, mathematical equation for performance evaluation.      (27)

Precision and Recall Curve: This graph shows how recall and accuracy are balanced at various levels. The greater the area under a curve, the higher the levels of both recall and precision.

The above parameters were chosen in order to provide a thorough assessment of the performance of the model on all dimensions, especially in the context of the dataset's imbalance and the importance of accurately identifying the various grades of knee osteoarthritis.

Access restricted. Please log in or start a trial to view this content.

Results

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Several important measures were taken throughout the model's validation phase to guarantee that it would generalize to data that had not yet been observed. Initially, the dataset is divided into training and validation sets. This is a common procedure used for evaluating the model's performance on a dataset that was not used in training. By offering separate datasets for training and validation, this separation avoided overfitting and allowed thorough assessment of model effectiveness.

Data au...

Access restricted. Please log in or start a trial to view this content.

Discussion

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The study presented an automated deep learning-based technique for KOA grading using X-ray images. The model, which used an XceptionNet architecture, demonstrated notable robustness and accuracy across a range of assessment measures, suggesting that it might find use in clinical settings.

In addition to the current methodology, external dataset validation might be used to further confirm the hypothesis and evaluate the model's generalizability across various imaging conditions and demograp...

Access restricted. Please log in or start a trial to view this content.

Disclosures

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The authors declare that they have no conflicts of interest with regard to this manuscript's publication. No financial or personal affiliations have influenced the research, results, or conclusions presented in this work.

Acknowledgements

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This research received no specific grant from any funding agency in the public, commercial, or not-for-profit sectors.

Author contribution:
Conceptualization, SHK; methodology, SHK; software, SHK; validation, SMB; data curation, SHK; Resources, SHK; writing-original draft preparation, SHK; writing-review and editing, SHK; visualization, SMB; supervision, SMB; project administration, SMB.

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
Jupyter Notebook/ColabProject Jupyter / GoogleN/AFor developing and experimenting with models interactively. 
Matplotlib (Version: 3.4.3) & Seaborn (Version: 0.11.2)CommunityN/AFor data visualization and result plots.
Mendeley/Kaggle DataElsevier; CommunityN/ADataset Source: Knee Osteoarthritis Severity Grading Dataset
OpenCV (Version: 4.5.5)IntelN/AFor preprocessing X-ray images (resizing, CLAHE, Gaussian filtering). 
Python (Version: 3.8)Python Software FoundationN/AProgramming language used for model development.
scikit-learn (Version: 1.0.2)CommunityN/AUsed for data splitting, performance metrics, and basic ML utilities. 
TensorFlow/KerasGoogle/CommunityN/AUsed for implementing and training the XceptionNet-based deep learning model. Tensorflow Version: 2.6.0, RRID:SCR_018932. Keras version: 2.6.0, RRID:SCR_018961
Ubuntu OSCanonicalN/AOperating system used for compatibility with all software tools. Version 20.04 recommended.

References

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,
  1. He, Y., et al. Pathogenesis of osteoarthritis: risk factors, regulatory pathways in chondrocytes, and experimental models. Biology. 9 (8), 194(2020).
  2. Kulkarni, P., Martson, A., Vidya, R., Chitnavis, S., Harsulkar, A. Pathophysiological landscape of osteoarthritis. Adv Clin Chem. 100, 37-90 (2021).
  3. Kumavat, R., et al. Biomarkers of joint damage in osteoarthritis: current status and future directions. Mediat Inflamm. 2021, 1-14 (2021).
  4. Karim, M. R., et al. DeepKneeExplainer: explainable knee osteoarthritis diagnosis from radiographs and magnetic resonance imaging. IEEE Access. 9, 39757-39780 (2021).
  5. Kokkotis, C., Serafeim, M., Elpiniki, P., Giannis, G., Tsaopoulos, D. E. Machine learning in knee osteoarthritis: A review. Osteoarth Cartil Open. 2 (3), 100069(2020).
  6. Abdullah, S. S., Rajasekaran, M. P. Automatic detection and classification of knee osteoarthritis using deep learning approach. La Radiol Med. 127 (4), 398-406 (2022).
  7. Exploring deep learning capabilities in knee osteoarthritis case study for classification. Christodoulou, E., Moustakidis, S., Papandrianos, N., Tsaopoulos, D., Papageorgiou, E. 10th Int Conf Inf Intell Syst Appl, , 1-6 (2019).
  8. Jahan, M., et al. KOA-CCTNet: An enhanced knee osteoarthritis grade assessment framework using modified compact convolutional transformer model. IEEE Access. 12, 107719-107744 (2024).
  9. De, A., Mishra, N., Chang, H. T. An approach to the dermatological classification of histopathological skin images using a hybridized CNN-DenseNet model. PeerJ Comp Sci. 10, e1884(2024).
  10. The diagnostics of osteoarthritis: a fine-tuned transfer learning approach. Salman, A. A. S., Razman, M. A. M., Khairuddin, I. M., Abdullah, M. A., Majeed, A. P. P. A. Int Conf Robot Intell Technol Appl, , 455-461 (2021).
  11. Ozkan, C., Deniz, C. M. Artificial intelligence in knee osteoarthritis: a comprehensive review for 2022. Osteoarth Imag. 3 (3), 100161(2023).
  12. Minnig, M. C. C., Yvonne, M. G., Nelson, A. E. Epidemiology of osteoarthritis: literature update 2022-2023. Curr Opin Rheumatol. 36 (2), 108-112 (2024).
  13. Hu, J., et al. DeepKOA: a deep-learning model for predicting progression in knee osteoarthritis using multimodal magnetic resonance images from the osteoarthritis initiative. Quant Imaging Med Surg. 13 (8), 4852(2023).
  14. Guida, C., Zhang, M., Shan, J. Improving knee osteoarthritis classification using multimodal intermediate fusion of X-ray, MRI, and clinical information. Neural Comput Appl. 35 (13), 9763-9772 (2023).
  15. Bensalma, F., et al. Multimodal data analysis of knee osteoarthritis assessment: factors selection for conservative care decision making. Comput Methods Biomech Biomed Eng. 26 (4), 450-459 (2023).
  16. Koppold, D. A., et al. Effects of prolonged fasting during inpatient multimodal treatment on pain and functional parameters in knee and hip osteoarthritis: A prospective exploratory observational study. Nutrients. 15 (12), 2695(2023).
  17. Jain, R. K., Sharma, P. K., Gaj, S., Sur, A., Ghosh, P. Knee osteoarthritis severity prediction using an attentive multi-scale deep convolutional neural network. Multimed. Tools Appl. 83 (3), 6925-6942 (2024).
  18. Afroze, S., Tamilselvi, R., Beham, M. G. P. Machine learning-based osteoarthritis detection methods in different imaging modalities: A review. Curr Med Imaging Rev. (14), 1628-1642 (2023).
  19. Teoh, Y. X., Othmani, A., Lai, K. W., Goh, S. L., Usman, J. Stratifying knee osteoarthritis features through multitask deep hybrid learning: Data from the osteoarthritis initiative. Comput Methods Programs Biomed. 242, 107807(2023).
  20. Zhang, L., et al. Multi-level classification of knee cartilage lesion in multimodal MRI based on deep learning. Biomed Signal Process Control. 83, 104687(2023).
  21. Li, W., et al. Deep learning-assisted knee osteoarthritis automatic grading on plain radiographs: the value of multiview X-ray images and prior knowledge. Quant Imaging Med Surg. 13 (6), 3587(2023).
  22. Ratna, H. V. K., et al. Machine learning and deep neural network-based learning in osteoarthritis knee. World J. Methodol. 13 (5), 419(2023).
  23. Köse, Ö, et al. Inter-and intraobserver reliabilities of four different radiographic grading scales of osteoarthritis of the knee joint. J Knee Surg. 31 (3), 247-253 (2018).
  24. Chen, P. Knee osteoarthritis severity grading dataset. Mendeley Data. 1 (10.17632), 30784984(2018).
  25. Xception: Deep learning with depthwise separable convolutions. Chollet, F. IEEE Conf Comput Vis Pattern Recognit, , 1251-1258 (2017).
  26. Alnabi, A., Luqman, D., Ahmed, S. S., Alnabi, N. L. A. Knee osteoarthritis stage classification based on hybrid fusion deep learning framework. Sci J Uni Zakho. 13 (2), 262-278 (2025).
  27. Taye, M. M. Theoretical understanding of convolutional neural network: Concepts, architectures, applications, future directions. Computation. 11 (3), 52(2023).
  28. Zhang, Z. Improved Adam optimizer for deep neural networks. 2018 IEEE/ACM 26th Int Symp Quality Serv. , 1-2 (2018).
  29. Thakur, A., et al. Transformative breast cancer diagnosis using CNNs with optimized ReduceLROnPlateau and Early Stopping Enhancements. Int J Comput Intell Syst. 17 (1), 14(2024).
  30. Gulli, A., Pal, S. Deep learning with Keras. , Packt Publishing Ltd. (2017).
  31. Song, J., Zhang, R. A novel computer-assisted diagnosis method of knee osteoarthritis based on multivariate information and deep learning model. Digit. Signal Process. 133, 103863(2023).
  32. Wang, C. T., et al. Successful real-world application of an osteoarthritis classification deep-learning model using 9210 knees—An orthopedic surgeon's view. J. Orthop. Res. 41 (4), 737-746 (2023).
  33. Srikijkasemwat, N., et al. KneeXNeT: An Ensemble-Based Approach for Knee Radiographic Evaluation. International Conference on Medical Imaging and Computer-Aided Diagnosis, , Springer Nature. Singapore. 407-416 (2024).
  34. El-Ghany, S. A., Elmogy, M., Abd El-Aziz, A. A fully automatic fine-tuned deep learning model for knee osteoarthritis detection and progression analysis. Egypt. Inform. J. 24 (2), 229-240 (2023).
  35. Mohammed, A. S., Hasanaath, A. A., Latif, G., Bashar, A. Knee osteoarthritis detection and severity classification using residual neural networks on preprocessed X-ray images. Diagnostics. 1380 (8), (2023).
  36. Yeoh, P. S. Q., Lai, K. W., Goh, S. L., Hasikin, K., Wu, X., Li, P. Transfer learning-assisted 3D deep learning models for knee osteoarthritis detection: Data from the osteoarthritis initiative. Front. Bioeng. Biotechnol. 11, 1164655(2023).
  37. Yoon, J. S., et al. Assessment of a novel deep learning-based software developed for automatic feature extraction and grading of radiographic knee osteoarthritis. BMC Musculoskelet. Disord. 24 (1), 869(2023).
  38. Pi, S. W., Lee, B. D., Lee, M. S., Lee, H. J. Ensemble deep-learning networks for automated osteoarthritis grading in knee X-ray images. Sci. Rep. 13 (1), 22887(2023).
  39. Moustakidis, S., Papandrianos, N. I., Christodoulou, E., Papageorgiou, E., Tsaopoulos, D. Dense neural networks in knee osteoarthritis classification: A study on accuracy and fairness. Neural Comput. Appl. 35 (1), 21-33 (2023).
  40. Apon, T. S., et al. Transforming Precision: A Comparative Analysis of Vision Transformers, CNNs, and Traditional ML for Knee Osteoarthritis Severity Diagnosis. In 2024 6th International Conference on Electrical Engineering and Information & Communication Technology (ICEEICT), , IEEE. 31-36 (2024).
  41. Yeoh, P. S. Q., et al. Emergence of deep learning in knee osteoarthritis diagnosis. Computational intelligence and neuroscience. 2021 (1), (2021).
  42. Haq, I., et al. Lung nodules localization and report analysis from computerized tomography (CT) scan using a novel machine learning approach. Applied Sciences. 12 (24), (2022).
  43. Ghadi, Y. Y., et al. Enhancing patient healthcare with mobile edge computing and 5G: challenges and solutions for secure online health tools. Journal of Cloud Computing. 13 (1), 93(2024).
  44. Haq, I., et al. YOLO and residual network for colorectal cancer cell detection and counting. Helyion. 10 (2), (2024).
  45. Rani, S., et al. Deep learning to combat knee osteoarthritis and severity assessment by using CNN-based classification. BMC Musculoskeletal. 25 (1), 817(2024).
  46. Patil, A. R. Classification and risk estimation of osteoarthritis using deep learning methods. Measurement: Sensors. 35, 101279(2024).
  47. Ruikar, D., et al. DNN-based knee OA severity prediction system: pathologically robust feature engineering approach. SN Computer Science. 4 (1), 58(2022).
  48. Haseeb, A., et al. Knee Osteoarthritis Classification Using X-Ray Images Based on. Optimal Deep Neural Network. Syst. Sci. Eng. 47 (2), 2397-2415 (2023).

Access restricted. Please log in or start a trial to view this content.

Reprints and Permissions

Request permission to reuse the text or figures of this JoVE article

Request Permission

Tags

Knee OsteoarthritisOsteoarthritis GradingXceptionNet ArchitectureTransfer LearningDeep LearningX Ray ImagingMedical Image AnalysisClass BalancingAutomated Disease DetectionRadiographic Images

Related Articles