🏆
International Academic Platform
Serving Researchers Since 2012

OrthoScan AI: A Unified, Interpretable Deep-Learning Pipeline for Scoliosis Severity and Knee Osteoarthritis Grading from Plain Radiographs on Commodity CPUs

DOI : 10.5281/zenodo.24052734
Download Full-Text PDF Cite this Publication

Text Only Version

OrthoScan AI: A Unied, Interpretable Deep-Learning Pipeline for Scoliosis Severity and Knee Osteoarthritis Grading from Plain Radiographs on Commodity CPUs

Khushikumari Parmanand Poddar

Dept. of Computer Engineering Pune Vidyarthi Grihas College of Engineering and Technology Nashik, Maharashtra, India

Yash Jayant Sonar

Dept. of Computer Engineering Pune Vidyarthi Grihas College of Engineering and Technology Nashik, Maharashtra, India

Rohan Laxman Shinde

Dept. of Computer Engineering Pune Vidyarthi Grihas College of Engineering and Technology Nashik, Maharashtra, India

Shubham Bhausaheb Dighe*

Civora Nexus, *Technical guide and supervisor; corresponding author

Vishakha Sanjay Kamble

Dept. of Computer Engineering Pune Vidyarthi Grihas College of Engineering and Technology Nashik, Maharashtra, India

Pradeep Patil

Dept. of Computer Engineering Pune Vidyarthi Grihas College of Engineering and Technology Nashik, Maharashtra, India

Abstract – Scoliosis and knee osteoarthritis (OA) are among the most frequently radiographed musculoskeletal conditions, yet both are still graded by eye: the Cobb angle for spinal curvature and the KellgrenLawrence (KL) scale for knee OA carry well- documented inter-observer variability, and specialist readers are scarce outside large hospitals. We present OrthoScan AI, a single screening pipeline that accepts an unlabeled radiograph, decides automatically whether it shows a spine or a knee, and returns a clinically anchored severity outputa Cobb-angle band with an angle estimate, or a KL gradetogether with a Grad-CAM explanation, on a CPU-only server (0.30.4 s per image without, and 0.71.2 s with, the explanation on a 12-core laptop). The two diagnostic branches share one preprocessing chain (border cropping, CLAHE, edge-preserving denoising and letterboxing) and one transfer-learning recipe (frozen-trunk warm-up, discrim- inative learning rates with cosine decay, class-balanced sampling, label smoothing and early stopping on balanced accuracy). We evaluate on three public datasets. On the Osteoarthritis-Initiative- derived KL-graded knee set of Chen et al. (8,260 images, xed split) a single DenseNet-121 reaches 62.3 ± 0.6% ve-class accu- racy, 67.0 ± 0.9% balanced accuracy and a quadratic-weighted of 0.79 over three seeds, with 94% of predictions within one grade and KL-4 recall of 0.88; a pre-declared soft-vote ensemble of the nine trained knee networks raises this to 67.6% accuracy, 71.0% balanced accuracy and = 0.84 (McNemar p < 104), and an ablation with paired tests shows that balanced sampling alone recovers minority-grade recall while stacking it with loss re-weighting over-corrects. On 338 real clinical spine radiographs the system detects scoliosis with 96.8% sensitivity (pooled ve- fold accuracy 95.9%, AUC 0.986). On the 20,000-image Spinal- AI2024 synthetic set the learned angle head estimates the major Cobb angle with a mean absolute error of 2.6 (89% within 5), whereas the weights-free geometric tracer the system uses as a condence-gated fallback reaches only 11.6, so we characterise it as a coarse screening signal rather than a measurement. Robustness to compression, noise, blur and exposure, Grad- CAM plausibility and per-stage latency are reported. Evaluation scripts, trained weights and per-image predictions are available

on request. The system is screening support, not a diagnosis, and every output carries that disclaimer.

Index Termsscoliosis, Cobb angle, knee osteoarthritis, KellgrenLawrence grading, transfer learning, convolutional neu- ral networks, Grad-CAM, computer-aided diagnosis, radiogra- phy

  1. Introduction

    Plain radiography remains the rst-line examination for two of the commonest orthopaedic conditions. Adolescent idiopathic scoliosis affects roughly 0.55% of adolescents depending on the curve threshold used [1], and knee os- teoarthritis accounts for a large and growing share of global musculoskeletal disability [2]. In both cases the radiograph is read by a human and summarised as a single number or grade: the Cobb angle, the angle between the end-plates of the most tilted vertebrae above and below the apex of the curve, and the ve-level KellgrenLawrence (KL) grade [3], which scores osteophytes, joint-space narrowing and sclerosis. Both summaries are known to vary between readers. Intra- and inter- observer studies of manual Cobb measurement report errors of several degrees [4], [5], and agreement between expert KL readers is only moderate (quadratic-weighted of about 0.56 0.67 in the committee study used by Tiulpin et al. [6]).

    Deep learning has been applied to each task separately with considerable success. For knee OA, convolutional net- works trained on the Osteoarthritis Initiative (OAI) reach ve- class KL accuracies of roughly 6577% [6][10], close to the human agreement ceiling. For scoliosis, landmark- and segmentation-based networks estimate the Cobb angle with a pooled mean absolute error near 3 in a recent meta- analysis [11]. What is still rare is a deployable system that

    Radiograph

    8/16-bit any size

    Region router

    MobileNetV3- small

    spine

    knee

    Spine branch (ResNet-50)

    Cobb band (4 classes)

    + angle regression head

    + geometric midline trace

    Grad-CAM

    (shares the branch forward pass) heat-map · attended regions

    Preprocessing crop · CLAHE · bilateral

    letterbox · normalise

    handles both conditions behind one interface, reports results on the clinical scales clinicians already use, explains itself, and runs without a GPUthe conguration a district hospital or screening camp can actually afford.

    This paper describes and evaluates such a system. Our contributions are:

    1. A unied two-branch screening pipeline. A lightweight region router selects the spine or knee branch automatically; both branches share one preprocessing chain and one training recipe, and both output grades on the clinical scale (Cobb band and angle; KL 04) with Grad-CAM [12] explanations.

    2. A CPU-feasible transfer-learning recipe with hon- est reporting. We report balanced accuracy, macro- F1, quadratic-weighted , calibration error and per- grade recall on xed public splits, with bootstrap con- dence intervals, paired McNemar tests, ablations of the class-imbalance components, repeated seeds, and a pre- declared ensemble of the trained networks.

    3. A quantied weights-free Cobb fallback. The system traces the spinal midline geometrically when no trained weights are available, and uses the same trace to ag disagreement with the learned estimate. We measure this estimator against 4,000 ground-truth angles and show when its self-reported condence can be trusted.

    4. Robustness and latency characterisation. We measure degradation under JPEG compression, noise, blur and exposure changes, and per-stage serving latency on a 12-core CPU.

  2. Related Work

    1. Knee osteoarthritis grading

      Antony et al. [7] rst showed that CNN features outperform hand-crafted descriptors for KL grading. Tiulpin et al. [6] trained a Siamese network on the symmetric knee halves and reported 66.7% accuracy and = 0.83 on OAI, together with attention maps. Chen et al. [8] combined YOLO-based joint detection with an ordinal loss and released the KL-graded crops we use [13]; on that split they report about 69.7% ve- class accurac. Norman et al. [9] applied DenseNet, Tiulpin and Saarakkala [14] graded individual OARSI features, and Pi et al. [10] reached 76.9% accuracy with an ensemble on the same 8,260-image split. These works establish both the achievable range and the fact that most residual error lies between adjacent grades.

    2. Scoliosis and Cobb angle estimation

      The AASCE 2019 challenge dataset introduced with Boost- Net [15] made landmark-based Cobb estimation a standard benchmark; vertebra-focused keypoint detection [16] and later contour-based methods such as CurvNet [17] are represen- tative. Zhu et al. [11] pooled 17 studies and found a cir- cular mean absolute error of 2.99, with segmentation-based methods (2.40) slightly ahead of landmark methods (3.31), but also noted high heterogeneity and little external vali- dation; a recent multi-centre study [18] conrms that most

      Knee branch (DenseNet-121) KL grade 0 4

      Report

      grade · probabilities · uncertainty quality flags · timings

      disclaimer

      Fig. 1. OrthoScan AI pipeline. One preprocessing chain feeds a region router and two diagnostic branches; Grad-CAM shares the branchs forward pass. The geometric Cobb trace runs in parallel for spine images.

      disagreements with radiologists fall between adjacent severity categories. Classication-only approaches that detect scoliosis without measuring it have been trained on smaller clinical collections [19], [20]. Our spine branch sits between these lines of work: it predicts the severity band and a scalar angle directly from the whole image, which is cheaper than landmark detection but, as our results show, also less precise.

    3. Transfer learning and explainability in radiography

    Fine-tuning ImageNet-pretrained backbones is the estab- lished route for small medical datasets [21], [22]; we use ResNet [23], DenseNet [24], EfcientNet [25] and Mo- bileNetV3 [26] trunks. Grad-CAM [12] remains the most widely used post-hoc explanation in medical imaging [27]; we follow the pointing-game protocol of Zhang et al. [28] to check that explanations fall on anatomically plausible regions. To our knowledge no prior work evaluates a single deployable pipeline across both spine and knee radiographs with these outputs.

  3. System Design

    Fig. 1 summarises the pipeline. All numerical settings below are those of the released code.

    1. Preprocessing

      Radiographs arrive as 8- or 16-bit, grey or colour les with scanner borders and widely varying exposure. Each image is

      (i) decoded to a single channel, with 16-bit sources rescaled by their actual intensity range; (ii) cropped to the exposed eld found by Otsu thresholding of a blurred copy and the largest external contour, with a 2% margin, unless the detected eld is implausibly small (< 40% of either side); (iii) enhanced by contrast-limited adaptive histogram equalisation (CLAHE,

      clip limit 2.4, 8 × 8 tiles) [29]; (iv) denoised with a bilateral lter (d = 5, colour = space = 45) [30], which removes sensor grain while keeping the cortical edges that both grades depend on; (v) letterboxed onto a square canvas of side S without changing the aspect ratio, since anisotropic resizing would alter joint-space width and curve geometry; and (vi)

      TABLE I

      Datasets used. All are public; counts are images.

      ID

      Source

      n

      Labels / split

      K1

      Chen et al. [8], [13], OAI

      8,260

      KL 04; 5,778 / 826 /

      1,656

      S1

      Fraiwan et al. [19], [34]

      338

      normal 71, scoliosis

      188, spondylolisthesis

      79; 5-fold CV

      S2

      Spinal-AI2024 [17], synthetic

      20,000

      3 Cobb angles; 11,999 /

      4,000 / 4,000

      standardised per image (x = clip((x )/4 + 0.5, 0, 1))

      before ImageNet normalisation. The same code path is used in training, validation and serving, so ofine metrics correspond to what the deployed service produces.

    2. Region router

      A MobileNetV3-small trunk [26] with a two-way head decides whether the image shows a spine or a knee, so that a clinician never has to specify the body part and an image of the wrong region is rejected rather than silently graded. Predictions below a condence threshold are agged.

    3. Diagnostic branches

      Both branches use the same wrapper, OrthoNet: a pretrained convolutional trunk with its classier removed, global aver- age pooling, and a head of dropout (0.3), a 512-unit fully connected layer with batch normalisation and ReLU, dropout (0.18) and a nal linear layer. The knee branch has ve outputs (KL 04). The spine branch has four outputs for the Cobb severity bands used by the Scoliosis Research Society conventionnormal (< 10), mild (1025), moderate (25 40) and severe ( 40)and an additional regression head (256 units, ReLU, one output with Softplus) that predicts the major Cobb angle in degrees. The last convolutional block of the trunk is the Grad-CAM target layer.

    4. Geometric Cobb estimator

      Independently of any trained weights, the spine branch traces the spinal midline from the preprocessed image. The image is blurred (Gaussian, = 1% of width), the central 60% of columns are kept, and in each of 40 horizontal bands the column centroid of intensities above the bands 75th percentile is taken as the midline point. A fourth-order polynomial x = f (y) is tted; the tangent angle (y) = arctan(f t(y)) is computed, the top and bottom 10% of samples are discarded, and the angle is max min , halved if the two extrema lie within one eighth of the trace of each other (a single inection rather than a curve). The root-mean-square residual between the raw and tted midline, scaled by 0.045 w, gives a trace condence in [0, 1]. When trained weights exist, the trace is used only to ag disagreements larger than 12 at condence

      0.5; when they do not, it is the only available estimate. Section VII-E quanties how far it can be trusted.

    5. Explanation and reporting

    Grad-CAM [12] is computed from the same forward pass that produces the logits, so an explanation costs one backward pass rather than a second evaluation. The heat map is blended over the enhanced radiograph only where it exceeds 0.25 of its peak, and connected regions above 0.55 are reported as boxes.

    Every response carries the grade, its class probabilities, a normalised entropy and top-2 margin as uncertainty indicators, simple image-quality metrics (Laplacian variance, contrast, exposure clipping), per-stage timings, and a xed disclaimer that the output is screening support and not a diagnosis.

  4. Training Recipe

    All branches are trained with the same two-phase schedule. In phase 1 the trunk is frozen and only the head is trained for two to three epochs at learning rate 103. In phase 2 the trunk is unfrozen at 3 ×104 (head unchanged) and both decay with a cosine schedule [31] to 106. The optimiser is AdamW [32] with weight decay 104; gradients are clipped at norm 5. Class imbalancepronounced for KL 4 (3% of knees) and for the normal and severe spine bandsis addressed twice: the cross- entropy loss is weighted by inverse class frequency, and a weighted random sampler draws balanced mini-batches. Label smoothing of 0.05 [33] regularises the head. Training stops when validationbalanced accuracy (mean per-class recall) has not improved for ve to eight epochs, and the best-validation checkpoint is evaluated once on the held-out test split. For the spine branch the loss adds SmoothL1(a, a) on images with an angle label ( = 0.05).

    Augmentation is deliberately anatomy-aware: horizontal

    ips are applied to knees (left and right knees are both valid) but never to spines (a ip would invert the curve direction); rotations of ±8, scaling of 0.941.06 and shifts of ±4% model positioning; contrast (0.851.18) and brightness (±18 grey levels) jitter model exposure; Gaussian noise ( 27, probability 0.25) and random erasing (probability 0.2) model grain, markers and implants. No vertical ips are used.

  5. Datasets

    K1 (knee). The KL-graded dataset of Chen et al. [13] con- sists of 8,260 posterioranterior knee-joint crops of 224 × 224 pixels extracted from OAI radiographs, with the authors own train/validation/test split of 5,778/826/1,656 images. Grades are strongly imbalanced (KL 0: 3,253; KL 1: 1,495; KL 2:

    2,175; KL 3: 1,086; KL 4: 251). We use the split unchanged so that our numbers are directly comparable with [8], [10].

    S1 (spine, real). The Jordan University of Science and Technology collection [34] holds 338 spinal radiographs from King Abdullah University Hospital labelled normal, scoliosis or spondylolisthesis. It has no angle annotations, so we use it for detection. Because the numeric prex of its le names is

    not a unique patient key, folds are stratied by class at image level; we use ve folds with one held out for testing and one for early stopping in each round, and pool the ve test folds for the reported confusion matrix.

    S2 (spine, synthetic). Spinal-AI2024 [17] contains 20,000 synthetic AP spine radiographs of 512 × 512 pixels generated by the CurvNet data engine, each with proximal-thoracic, main-thoracic and thoraco-lumbar Cobb angles. We take the largest of the three as the major curve and derive its severity band. Following the authors, subset 5 is the test set; we use subsets 13 for training (11,999 images; one lacks a label) and subset 4 for validation. Bands are skewed towards mild (65%), with normal 7%, moderate 17% and severe 11%. We stress that S2 is synthetic: it provides exact angle ground truth at scale, but angle results on it are not comparable with results on real AASCE radiographs, whose public mirror was unavailable at the time of this study.

    Router set. All 338 S1 images and 1,000 S2 images form the spine class and an equal number of K1 training crops the knee class, split 70/15/15.

  6. Experimental Setup

    Experiments run on a 12-core CPU workstation without a GPU (PyTorch 2.5, CPU build). Knee models use S = 224 (the native crop size) and batch size 32; spine models use S = 320 and batch size 16. Backbones compared on K1 are DenseNet-121, ResNet-50 and EfcientNet-B0, all ImageNet-pretrained. The reference knee model is repeated with three seeds. Ablations on DenseNet-121 remove, one at a time, the class-weighted loss, the balanced sampler and label smoothing, and all three together. The Spinal-AI2024 branch is trained on a stratied 4,000-image subset of the training split (CPU budget) with ResNet-50 and the angle head. We report accuracy, balanced accuracy, macro-F1, quadratic-weighted Cohens (appropriate for ordinal grades), the fraction of predictions within one grade, expected calibration error (ECE, 15 bins) [35] and per-grade precision/recall; for angles we report MAE, RMSE, the fraction within 5 and 10, bias and BlandAltman limits. Robustness is measured by degrading test images before preprocessing with JPEG re-compression (quality 9030), additive Gaussian noise ( 520), Gaussian blur (kernels 39), ±25% brightness and 0.7× contrast. Ex- planations are checked with a pointing-game protocol [28]: for knees the anatomical prior region is the central horizontal band (3070% of height) containing the tibiofemoral joint; for spines it is a band of ±12% of image width around the traced midline. Since neither dataset has lesion masks, this is a plausibility check, not a localisation benchmark.

  7. RESULTS

    All numbers are on held-out test splits that were never used for model selection. Training ran on a single NVIDIA T4 (Google Colab); one knee run took 1528 min, one spine fold 35 min and the Spinal-AI2024 branch 73 min.

    TABLE II

    Knee KL grading on the K1 test split (n = 1,656). Mean ± sd over three seeds for DenseNet-121; single seed otherwise. ±1: fraction of predictions within one grade.

    Backbone Acc. Bal. acc. Macro-F1 w ±1 ECE DenseNet-121 .623±.006 .670±.009 .664±.008 .794±.008 .939 .077

    ResNet-50 .618 .688 .669 .809 .955 .072

    EfcientNet-B0 .569 .668 .637 .779 .941 .095

    Published on the same split: Chen et al. [8] 69.7% acc.; Pi et al. [10] 76.9% acc., F1 0.767 (ensemble).

    Fig. 2. Knee KL confusion matrix (DenseNet-121, seed 0, test split). Cell text: count and row-normalised rate.

    1. Knee osteoarthritis grading (K1)

      Table II compares the three backbones on the 1,656-image test split. DenseNet-121 and ResNet-50 are close (62% ac- curacy, 0.790.81 quadratic-weighted ); EfcientNet-B0 is clearly weaker in accuracy at similar balanced accuracy. Over three seeds DenseNet-121 varies by less than one percentage point in every metric, so the differences between backbones are of the same order as seed noise and we do not claim a winner. For the reference model (seed 0) the bootstrap 95% condence intervals (2,000 resamples of the test set) are 0.6030.649 for accuracy, 0.6470.702 for balanced accuracy and 0.7660.811 for w. Fig. 2 shows the DenseNet-121 confusion matrix: 94% of all predictions fall within one grade of the truth, and the errors concentrate where readers also disagreeKL 1 (doubtful) is recalled only 41% of the time, mostly confused with KL 0 and KL 2whereas the clinically consequential grades are recalled well (KL 3: 0.82, KL 4: 0.88, means over seeds).

      In plain accuracy our single models sit below the two published results on this split (Table II). The gap is expected and, we argue, partly a design choice: our recipe optimises balanced accuracy, which deliberately gives up majority-class (KL 0) accuracy for minority-grade recallKL 4 recall of 0.88 against a prior of 3%and a single network is compared with an ensemble [10] and an ordinal loss [8]. The ablation below makes the trade-off explicit, and Section VII-B shows how

      TABLE III

      Pre-declared soft-vote ensembles of the trained knee networks on the K1 test split (n = 1,656). CI: bootstrap 95% interval; p: exact McNemar test against the single reference model.

      Model

      Acc. [95% CI]

      Bal. acc.

      w

      ±1 ECE

      p

      DenseNet-121, seed 0 (reference)

      .626 [.603, .649]

      .674

      .789

      .937 .106

      ENS-A: 3 DenseNet-121 seeds

      .646 [.622, .668]

      .689

      .818

      .952 .028

      .020

      ENS-B: 5 backbone runs

      .649 [.626, .673]

      .703

      .825

      .955 .065

      .013

      ENS-C: all 9 knee networks

      .676 [.655, .699]

      .710

      .836

      .954 .064

      < 104

      much of the gap an ensemble of our own networks recovers.

    2. Ensembling and ordinal decoding

      Because every knee run saved its test-set probabilities, we can evaluate ensembles without training anything new. To avoid selecting on the test set, the member sets were xed in advance: ENS-A, the three DenseNet-121 seeds; ENS-B, all

      Fig. 3. Reliability diagrams on the 1 test split (10 condence bins). Left: single DenseNet-121; right: ENS-B. The dashed line is perfect calibration.

      TABLE IV

      Ablation on K1 (DenseNet-121, seed 0, test split). Recall is per grade.

      ve backbone runs of Table II; and ENS-C, all nine trained

      knee networks (ENS-B plus the four ablation variants). Prob- abilities are averaged and the argmax taken. Table III shows that every ensemble improves on the single reference model and that the gain grows with diversity: ENS-C reaches 67.6% accuracy (95% CI 0.6550.699), 71.0% balanced accuracy and w = 0.836, with 95.4% of predictions within one grade and KL-4 recall 0.90. The improvement over the single model is signicant by an exact McNemar test on the paired test images (p = 0.020, 0.013 and < 104 for ENS-A, -B and -C). ENS-

      Cs accuracy is within two points of the ordinal-loss result of

      Chen et al. [8] while keeping the minority-grade recall their accuracy gure does not report; the 76.9% of Pi et al. [10] remains out of reach for networks trained with our balanced objective. The seed ensemble ENS-A is also the best-calibrated model we trained (ECE 0.028; Fig. 3).

      We also tested ordinal decodingpredicting

      k

      round(L k pk) instead of the argmax, a common trick

      for ordinal scaleson every model and ensemble. It is harmful here: for the class-balanced models accuracy collapses to 0.440.49 (e.g. 0.6260.471 for the reference model, McNemar p< 104) because re-weighted probability mass on distant grades drags the expectation towards the middle of the scale; it helps only the two models trained without class weights (plain CE: w 0.7980.821). Expected- value decoding therefore presupposes probabilities that are calibrated to the class frequencies, which balanced training deliberately destroys.

    3. Ablation of the imbalance recipe

      Table IV removes components of the training recipe one at a time (DenseNet-121, seed 0). The plain cross-entropy model has the highest accuracy (65.1%) but the lowest balanced accu- racy (63.9%) and KL 4 recall (0.82), because it favours KL 0. Removing the loss re-weighting while keeping the balanced sampler gives the best run overall (65.0% accuracy, 68.8% balanced accuracy, w 0.817, KL 4 recall 0.96, ECE 0.027): weighting the loss and re-sampling the batches both correct

      Conguration Acc. Bal. acc. w RKL0 RKL4 ECE

      Full recipe

      .626

      .674

      .789

      .640

      .863

      .106

      class weights

      .650

      .688

      .817

      .776

      .961

      .027

      balanced sampler

      .640

      .663

      .810

      .709

      .804

      .041

      label smoothing

      .630

      .667

      .817

      .673

      .824

      .126

      Plain CE (none of the three)

      .651

      .639

      .798

      .887

      .824

      .058

      for the same imbalance, and together they over-correct. Re- moving the sampler instead costs balanced accuracy (0.663). Removing label smoothing leaves discrimination unchanged but triples the calibration error (ECE 0.126 vs 0.0410.058), so its role in this recipe is calibration rather than accuracy. Paired exact McNemar tests against the full recipe on the same 1,656 test images give p = 0.061 (plain), 0.053 (no class weights), 0.23 (no sampler) and 0.72 (no label smoothing): the two largest effects are borderline and the others are not signicant at a single seed. The differences should therefore be read as indicative; the direction of each effect is consistent with the mechanism described, and a multi-seed repetition is the obvious next step.

    4. Scoliosis detection on real radiographs (S1)

      Pooling the ve test folds (Table V), DenseNet-121 clas- sies the 338 real spine radiographs with 95.9% accuracy (bootstrap 95% CI 0.9380.979), 95.3% balanced accuracy (0.9260.976) and a macro one-vs-rest AUC of 0.986; the per-fold accuracy is 0.959 ± 0.011. Sensitivity for scoliosis the screening quantityis 0.968 (182 of 188; CI 0.940 0.990), with three scoliosis cases called normal and three called spondylolisthesis. ResNet-50 is slightly lower (94.1% accuracy, scoliosis sensitivity 0.936). Fig. 4 shows the pooled DenseNet-121 confusion matrix. With 338 images from one hospital these numbers describe in-distribution performance only; we return to this in Section VIII.

    5. Cobb severity and angle on Spinal-AI2024 (S2)

      Geometric estimator. On the 4,000 test images the weights- free trace of Section III-D achieves a mean absolute error of

      TABLE V

      Spine detection on S1, five test folds pooled (n = 338).

      Geometric estimate (°)

      80

      Backbone

      Acc.

      Bal. acc.

      Macro-F1

      AUC

      Sens. scol.

      Sens. spondy.

      DenseNet-121

      .959

      .953

      .951

      .986

      .968

      .975

      ResNet-50

      .941

      .943

      .934

      .982

      .936

      .962

      60

      40

      20

      0

      0 20 40 60 80

      Ground-truth major Cobb angle (°)

      0.8 60

      trace confidence Estimate ground truth (°)

      40

      0.6 20

      0

      0.4

      20

      40

      0.2

      60

      0.0 80

      BlandAltman: bias +4.1°, LoA ±28.8°

      20 40 60 80

      Mean of estimate and ground truth (°)

      normal

      true

      scolio

      Fig. 5. Geometric Cobb estimator on the Spinal-AI2024 test set (n = 4,000). Left: estimate versus ground truth, coloured by trace confidence; dotted lines mark the severity-band thresholds. Right: BlandAltman plot.

      65

      0.92

      4

      0.06

      2

      0.03

      3

      0.02

      182

      0.97

      3

      0.02

      2

      0.03

      0

      0.00

      77

      0.97

      TABLE VI

      Severity bands on Spinal-AI2024 test (n = 4,000) from the two outputs of the same ResNet-50 and from the geometric trace.

      Band source Acc. Bal. acc. w Angle MAE

      Classification head .767 .863 .825

      spondy

      normal scolio spondy predicted

      Fig. 4. Pooled five-fold confusion matrix on the real spine set (DenseNet- 121).

      11.6 (RMSE 15.3, median 9.1), with 29.5% of estimates within 5 and 53.7% within 10, Pearson r = 0.44 and a bias of +4.1 (Fig. 5). It over-estimates small curves (bias +16 on normal spines) and under-estimates large ones (12 on severe), so its four-band accuracy is only 45% (w = 0.32). Its self-reported trace confidence is nevertheless informative: MAE falls from 14.0 at confidence below 0.4 (n = 1,618) to 10.8 at 0.40.6 and 8.4 at 0.60.8 (n = 741). We therefore treat it as a coarse, confidence-gated screening signal and never as a measurement. It costs 31 ms per image on CPU.

      Learned branch. The ResNet-50 angle head reduces the error by a factor of four: MAE 2.62, RMSE 4.21, median 1.81, 89.4% within 5 and 97.1% within 10, r = 0.955, bias 0.46. Error grows with curve magnitude (MAE 1.9 for mild, 2.4 moderate, 7.1 severe) and small curves are slightly over-estimated (+2.6 on normal spines), the same pattern reported for real radiographs in the literature [11], [18]. For the four severity bands the two outputs of the same network disagree in an instructive way (Table VI). The class- weighted classification head is tuned for balanced recall and over-predicts normal (508 of 2,616 mil spines are called normal), giving 76.7% accuracy but 86.3% balanced accuracy; deriving the band from the regressed angle instead gives 86.6% accuracy, w = 0.877 and a mild-band recall of 0.914, at the price of lower normal-band recall (0.576), because curves near the 10 threshold are genuinely ambiguous. The two heads agree on 78.8% of images. The served system therefore reports the angle-derived band as the clinically anchored output and flags disagreement with the classification head, exactly as it flags disagreement with the geometric trace. We stress that S2

      Regressed angle .866 .789 .877 2.6

      Geometric trace (no weights) .452 .440 .317 11.6

      is synthetic and these angle errors are not comparable with results on real AASCE radiographs.

    6. Region router

      The MobileNetV3-small router separates spine from knee radiographs with 99.5% accuracy on its held-out split (2 errors in 398, both spine images called knee); it converged in its first epoch and costs 38 ms on CPU. Misrouted images are caught downstream by the branchs low-confidence flag, and the clinician can force the region.

    7. Robustness to image quality

      Fig. 6 summarises balanced accuracy under degradation. The knee model (651 test images) is insensitive to JPEG re- compression down to quality 50 (0.012) and to mild blur or contrast loss, loses 0.020.05 at JPEG quality 30, 9 × 9 blur or +25% brightness, and fails only under heavy additive noise ( = 20 grey levels: 0.665 0.397). The spine detector (fold 0, 68 images) is more tolerant: it keeps 0.90 balanced accuracy under every degradation except = 20 noise (0.819). Gaussian noise is thus the only degradation a deployment must guard against, which the quality reports sharpness and contrast flags already surface.

    8. Explanation plausibility

      With the anatomical-prior regions of Section VI, the Grad- CAM maximum falls inside the knee joint band for 93.8% of 291 test crops (chance, by area, 39.9%), and 60.4% of the maps energy lies in that band; the hit rate rises with grade (0.90 for KL 0 to 1.00 for KL 4). For the spine detector the maximum lies within the traced spinal column for 80.9% of 68 images (chance 65.4%) with 73.2% of the energy inside; normal spines are attended almost entirely along the column (hit rate 1.00) whereas scoliosis and spondylolisthesis cases draw attention partly outside it (0.78 and 0.69), plausibly to the pelvis and rib cage, which carry information about curvature

      densenet121_s0 resnet50_fold0

      ‌0.9

      balanced accuracy

      0.8

      0.7

      0.6

      TABLE VII

      Median per-stage latency (ms) on a 12-core laptop CPU, 100

      IMAGES EACH.

      Branch Prep. Route Class. Grad-CAM Cobb Render Total

      0.5

      0.4

      Knee (DenseNet-121, 224 px) 8 38 228 387 5 671

      Spine (ResNet-50, 320 px) 30 66 330 702 11 16 1,196

      clean

      jpeg

      jpeg

      jpeg

      jpeg

      noise

      noise

      noise

      blur

      blur

      blur brightnessbrightness contrast

      0 90 70

      50 30 5

      10 20 3

      5 9 0.25

      -0.25

      0.7

      no training cost (Table III), closing most of the distance to

      Fig. 6. Balanced accuracy under image degradation applied before prepro- cessing (knee: DenseNet-121, n = 651; spine: ResNet-50 fold 0, n = 68).

      Fig. 7. Grad-CAM overlays for correctly graded test images: knee KL 04 (top) and spine normal / scoliosis / spondylolisthesis (bottom). Only regions above 25% of the maps peak are tinted.

      and listhesis. Fig. 7 shows one correctly classified example per class. This is evidence of anatomical plausibility, not of lesion-level localisation, for which no annotations exist in these datasets.

    9. Serving latency

      Table VII reports per-stage medians over 100 images on a 12-core laptop CPU (12 threads, PyTorch 2.5 CPU build, no GPU), measured by calling the serving modules directly. A knee radiograph is graded in 0.27 s and a spine radiograph in 0.43 s; the Grad-CAM backward pass is the single most expensive stage and roughly doubles the end-to-end time to

      0.67 s and 1.20 s respectively. The geometric Cobb trace adds 11 ms. The 95th percentiles are 0.85 s (knee) and 2.1 s (spine). These figures are compatible with interactive use on a clinic workstation; disabling the explanation when it is not needed halves the response time.

  8. Discussion

    Where the knee errors are. Nearly all residual knee error is between adjacent grades, and more than half of it involves KL 1. This mirrors the human literature: KL 1 is defined by doubtful narrowing and possible osteophytes, and inter- reader on the full scale is only moderate [6]. A screening tool should therefore report the probability over grades and the top-two margin, as ours does, rather than a single hard label; a KL 0/1 split with a thin margin is a legitimate read again signal, while a confident KL 3/4 is actionable. Our accuracy gap to the best published single-split results [8],

    [10] is partly the balanced-accuracy objective (Table IV) and partly architectural: a pre-declared ensemble of our own networks recovers five accuracy points and 0.05 of w at

    the ordinal-loss result of [8], and a distance-weighted ordinal penalty in the loss is the natural next stepwhereas ordinal decoding of balanced-trained probabilities should be avoided, as Section VII-B shows. The ablation also carries a practical lesson: of the three imbalance measures that are routinely stacked, the balanced sampler does the work, loss re-weighting on top of it hurts, and label smoothing earns its place through calibrationwith the caveat that, at one seed, only the first two effects approach significance.

    Spine: real detection, synthetic measurement. The real- image result is strong but narrowone hospital, 338 images, detection labels onlyso it shows that the preprocessing and recipe transfer to clinical spine films, not that the model generalises across sites. The angle result is the mirror image: large and precisely labelled, but synthetic. Two observations nevertheless carry over. First, the regressed angle is a better basis for the severity band than a separately trained class head, and the two can be cross-checked for free. Second, the weights-free geometric trace, although useful as a sanity check and as the only estimate before training, is far too imprecise (11.6) to grade severity; its confidence score should gate whether it is shown at all. A paper reporting a geometric Cobb method without such a comparison would overstate it.

    What a clinician sees. Every output carries the grade, the class probabilities, the uncertainty indicators, the image- quality flags and, for spines, the agreement between three independent estimates (class head, angle head, geometric trace). The robustness study tells us which flag matters most noiseand the Grad-CAM check shows that the attended regions are anatomically sensible in more than nine of ten knee cases. None of this replaces a radiologist; it is designed to decide which films a radiologist should look at first.

    A. Limitations

    The spine angle results are on synthetic radiographs, and the real spine set is small and has detection labels only; the synthetic set carries no explicit licence and is cited as its authors request. Folds on S1 are stratified at image rather than patient level. The knee crops come from a single cohort (OAI) and a single pre-processing pipeline, so cross-institutional gen- eralisation [18] is untested, and even our best ensemble trails the best published single-split result [10] by nine accuracy points. Ablation differences are single-seed and only border- line significant; the ensembles, although pre-declared, were evaluated once on the same test split as their members. Serving the nine-network ensemble would multiply the classification latency of Table VII by about nine. Grad-CAM plausibility is checked gainst anatomical priors, not lesion annotations.

    ‌Latency was measured on one laptop CPU. Finally, no reader study was performed; agreement with clinicians on new cases remains future work.

  9. Conclusion

    We described and evaluated OrthoScan AI, a single CPU- deployable pipeline that routes a plain radiograph to a spine or knee branch and returns a severity output on the clinical scale together with an explanation and explicit uncertainty. On public data a single knee network grades KL severity with

    0.79 quadratic-weighted and 94% adjacent-grade agreement, favouring minority-grade recall by design, and a pre-declared ensemble of the nine trained networks reaches 67.6% accuracy and w = 0.84; the spine branch detects scoliosis on real films with 96.8% sensitivity and, on synthetic films with exact labels, estimates the major Cobb angle to within 2.6 on average. Four findings are of general use beyond this system: stacking loss re-weighting on a balanced sampler over-corrects class imbalance; expected-value (ordinal) decoding is harmful for probabilities produced by balanced training; a regressed angle is a better basis for the severity band than a parallel classification head; and the weights-free geometric Cobb trace, a tempting shortcut for curvature screening, is an order of magnitude less precise than a learned estimator and should be used only as a confidence-gated fallback. The next steps are external validation on multi-site spine and knee radiographs, an ordinal penalty in the knee loss, multi-seed ablations, and a reader study measuring whether the uncertainty and explanation outputs change how clinicians triage.

    Code and Data Availability

    All three datasets are public (Table I). The training, eval- uation and figure scripts, the fixed split definitions, every trained checkpoint, the per-image test predictions used for the ensembles and statistics, and the Colab notebook that reproduces the GPU runs are available from the corresponding author on request. All numbers in this paper are generated by those scripts from the saved outputs.

    Acknowledgment

    The authors used Claude (Anthropic) to assist with drafting and editing the text of this manuscript and with writing the evaluation scripts; all experiments were run, verified and interpreted by the authors, who take full responsibility for the content.

    References

    1. M. R. Konieczny, H. Senyurt, and R. Krauspe, Epidemiology of adolescent idiopathic scoliosis, Journal of Childrens Orthopaedics, vol. 7, no. 1, p. 39, Feb. 2013. [Online]. Available: http:

      //dx.doi.org/10.1007/s11832-012-0457-4

    2. J. D. Steinmetz, G. T. Culbreth, L. M. Haile, Q. Rafferty, J. Lo,

      K. G. Fukutaki, J. A. Cruz, A. E. Smith, S. E. Vollset, P. M. Brooks, M. Cross, A. D. Woolf, H. Hagins, M. Abbasi-Kangevari,

      A. Abedi, I. N. Ackerman, H. Amu, B. Antony, J. Arabloo, A. Y. Aravkin, A. M. Argaw, A. A. Artamonov, T. Ashraf, A. Barrow, L. M. Bearne, I. M. Bensenor, A. Y. Berhie, N. Bhardwaj, P. Bhardwaj,

      V. S. Bhojaraja, A. Bijani, P. S. Briant, A. M. Briggs, N. S. Butt,

      1. Charan, V. K. Chattu, F. M. Cicuttini, K. Coberly, O. Dadras,

  10. Dai, L. Dandona, R. Dandona, K. de Luca, E. Denova-Gutie´rrez,

S. D. Dharmaratne, M. Dhimal, M. Dianatinasab, K. E. Dreinhoefer,

M. Elhadi, U. Farooque, H. R. Farpour, I. Filip, F. Fischer, M. Freitas,

B. Ganesan, B. N. B. Gemeda, T. Getachew, S.-H. Ghamari,

A. Ghashghaee, T. K. Gill, M. Golechha, D. Golinelli, B. Gupta,

V. B. Gupta, V. K. Gupta, R. Haddadi, N. Hafezi-Nejad, R. Halwani,

S. Hamidi, A. Hanif, N. I. Harlianto, J. M. Haro, J. Hartvigsen, S. I. Hay, J. J. Hebert, G. Heidari, M.-S. Hosseini, M. Hosseinzadeh, A. K. Hsiao, I. M. Ilic, M. D. Ilic, L. Jacob, R. Jayawardena, R. P. Jha,

J. B. Jonas, N. Joseph, H. Kandel, I. M. Karaye, M. J. Khan, Y. J. Kim, A.-A. Kolahi, O. Korzh, R. Koteeswaran, V. Krishnamoorthy,

G. A. Kumar, N. Kumar, S.-w. Lee, S. S. Lim, S. W. Lobo,

G. Lucchetti, M.-R. Malekpour, A. A. Malik, L. G. G. Mandarano- Filho, S. Martini, A.-F. A. Mentis, M. K. Mesregah, T. Mestrovic, E. M. Mirrakhimov, A. Misganaw, R. Mohammadpourhodki, A. H. Mokdad,

S. Momtazmanesh, S. D. Morrison, C. J. L. Murray, H. Nassereldine,

H. B. Netsere, S. Neupane Kandel, M. O. Owolabi, S. Panda-Jonas,

A. Pandey, S. Pawar, P. Pedersini, J. Pereira, A. Radfar, M.-M. Rashidi,

D. L. Rawaf, S. Rawaf, R. Rawassizadeh, S.-M. Rayegani, D. Ribeiro,

L. Roever, B. Saddik, A. Sahebkar, S. Salehi, L. Sanchez Riera,

F. Sanmarchi, M. M. Santric-Milicevic, S. Shahabi, M. A. Shaikh,

E. Shaker, M. Shannawaz, R. Sharma, S. Sharma, J. K. Shetty,

R. Shiri, P. Shobeiri, D. A. S. Silva, A. Singh, J. A. Singh, S. Singh,

S. T. Skou, H. Slater, M. S. Soltani-Zangbar, A. V. Starodubova,

A. Tehrani-Banihashemi, S. Valadan Tahbaz, P. R. Valdez, B. Vo, L. G. Vu, Y.-P. Wang, S. H. Yahyazadeh Jabbari, N. Yonemoto, I. Yunusa,

L. M. March, K. L. Ong, T. Vos, and J. A. Kopec, Global, regional, and national burden of osteoarthritis, 19902020 and projections to 2050: a systematic analysis for the global burden of disease study 2021, The Lancet Rheumatology, vol. 5, no. 9, p. e508e522, Sep. 2023. [Online].

Available: http://dx.doi.org/10.1016/S2665-9913(23)00163-7

  1. J. Kellgren and J. Lawrence, Radiological assessment of osteo- arthrosis, Annals of the Rheumatic Diseases, vol. 16, no. 4, p. 494502,

    Dec. 1957. [Online]. Available: http://dx.doi.org/10.1136/ard.16.4.494

  2. R. T. Morrissy, G. S. Goldsmith, E. C. Hall, D. Kehl, and G. H. Cowie, Measurement of the cobb angle on radiographs of patients who have scoliosis. evaluation of intrinsic error. The Journal of Bone & Joint Surgery, vol. 72, no. 3, p. 320327, Mar. 1990. [Online]. Available:

    http://dx.doi.org/10.2106/00004623-199072030-00002

  3. D. L. Carman, R. H. Browne, and J. G. Birch, Measurement of scoliosis and kyphosis radiographs. intraobserver and interobserver variation. The Journal of Bone & Joint Surgery, vol. 72, no. 3,

    p. 328333, Mar. 1990. [Online]. Available: http://dx.doi.org/10.2106/ 00004623-199072030-00003

  4. A. Tiulpin, J. Thevenot, E. Rahtu, P. Lehenkari, and S. Saarakkala, Automatic knee osteoarthritis diagnosis from plain radiographs: A deep learning-based approach, Scientific Reports, vol. 8, no. 1, Jan. 2018. [Online]. Available: http://dx.doi.org/10.1038/s41598-018-20132-7

  5. J. Antony, K. McGuinness, N. E. OConnor, and K. Moran, Quantifying radiographic knee osteoarthritis severity using deep convolutional neural networks, in 2016 23rd International Conference on Pattern Recognition (ICPR). IEEE, Dec. 2016, p. 11951200. [Online]. Available: http://dx.doi.org/10.1109/ICPR.2016.7899799

  6. P. Chen, L. Gao, X. Shi, K. Allen, and L. Yang, Fully automatic knee osteoarthritis severity grading using deep neural networks with a novel ordinal loss, Computerized Medical Imaging and Graphics, vol. 75, p. 8492, Jul. 2019. [Online]. Available: http://dx.doi.org/10.1016/j.compmedimag.2019.06.002

  7. B. Norman, V. Pedoia, A. Noworolski, T. M. Link, and S. Majumdar, Applying densely connected convolutional neural networks for staging osteoarthritis severity from plain radiographs, Journal of Digital Imaging, vol. 32, no. 3, p. 471477, Oct. 2018. [Online]. Available:

    http://dx.doi.org/10.1007/s10278-018-0098-3

  8. S.-W. Pi, B.-D. Lee, M. S. Lee, and H. J. Lee, Ensemble deep-learning networks for automated osteoarthritis grading in knee x-ray images,

    ‌Scientific Reports, vol. 13, no. 1, Dec. 2023. [Online]. Availabe: http://dx.doi.org/10.1038/s41598-023-50210-4

  9. Y. Zhu, X. Yin, Z. Chen, H. Zhang, K. Xu, J. Zhang, and

    N. Wu, Deep learning in cobb angle automated measurement on x-rays: a systematic review and meta-analysis, Spine Deformity, vol. 13, no. 1, p. 1927, Sep. 2024. [Online]. Available: http:

    //dx.doi.org/10.1007/s43390-024-00954-4

  10. R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, and

    D. Batra, Grad-cam: Visual explanations from deep networks via gradient-based localization, in 2017 IEEE International Conference on Computer Vision (ICCV). IEEE, Oct. 2017, p. 618626. [Online].

    Available: http://dx.doi.org/10.1109/ICCV.2017.74

  11. P. Chen, Knee osteoarthritis severity grading dataset, 2018. [Online].

    Available: https://data.mendeley.com/datasets/56rmx5bjcr/1

  12. A. Tiulpin and S. Saarakkala, Automatic grading of individual knee osteoarthritis features in plain radiographs using deep convolutional neural networks, Diagnostics, vol. 10, no. 11, p. 932, Nov. 2020. [Online]. Available: http://dx.doi.org/10.3390/diagnostics10110932

  13. H. Wu, C. Bailey, P. Rasoulinejad, and S. Li, Automatic Landmark Estimation for Adolescent Idiopathic Scoliosis Assessment Using BoostNet. Springer International Publishing, 2017, p. 127135. [Online]. Available: http://dx.doi.org/10.1007/978-3-319-66182-715

  14. J. Yi, P. Wu, Q. Huang, H. Qu, and D. N. Metaxas, Vertebra- focused landmark detection for scoliosis assessment, in 2020 IEEE 17th International Symposium on Biomedical Imaging (ISBI). IEEE, Apr. 2020, p. 736740. [Online]. Available: http://dx.doi.org/10.1109/ ISBI45749.2020.9098675

  15. Z. Shao, Y. Yuan, L. Ma, and X. Zhu, Curvnet: Latent contour representation and iterative data engine for curvature angle estimation, arXiv:2411.12604, 2024. [Online]. Available: https://arxiv.org/abs/2411. 12604

  16. Simon Kubov, S. Kl´cn´k, J. Danda´r, Z. Straka, K. Kvakova´, and

    D. Kvak, Multi-centre validation of a deep learning model for scoliosis assessment, arXiv:2507.14093, 2025. [Online]. Available: https://arxiv.org/abs/2507.14093

  17. M. Fraiwan, Z. Audat, L. Fraiwan, and T. Manasreh, Using deep transfer learning to detect scoliosis and spondylolisthesis from x-ray images, PLOS ONE, vol. 17, no. 5, p. e0267851, May 2022. [Online].

    Available: http://dx.doi.org/10.1371/journal.pone.0267851

  18. Y. H. Nguyen, Scoliosis detection using deep neural network, arXiv:2210.17269, 2022. [Online]. Available: https://arxiv.org/abs/2210. 17269

  19. N. Tajbakhsh, J. Y. Shin, S. R. Gurudu, R. T. Hurst, C. B. Kendall, M. B. Gotway, and J. Liang, Convolutional neural networks for medical image analysis: Full training or fine tuning? IEEE Transactions on Medical Imaging, vol. 35, no. 5, p. 12991312, May 2016. [Online]. Available: http://dx.doi.org/10.1109/TMI.2016.2535302

  20. G. Litjens, T. Kooi, B. E. Bejnordi, A. A. A. Setio, F. Ciompi,

    M. Ghafoorian, J. A. van der Laak, B. van Ginneken, and C. I. Sa´nchez, A survey on deep learning in medical image analysis, Medical Image Analysis, vol. 42, p. 6088, Dec. 2017. [Online].

    Available: http://dx.doi.org/10.1016/j.media.2017.07.005

  21. K. He, X. Zhang, S. Ren, and J. Sun, Deep residual learning for image recognition, in 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, Jun. 2016, p. 770778. [Online].

    Available: http://dx.doi.org/10.1109/CVPR.2016.90

  22. G. Huang, Z. Liu, L. Van Der Maaten, and K. Q. Weinberger, Densely connected convolutional networks, in 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, Jul. 2017, p. 22612269. [Online]. Available: http://dx.doi.org/10.1109/CVPR.2017. 243

  23. M. Tan and Q. V. Le, Efficientnet: Rethinking model scaling for convolutional neural networks, arXiv:1905.11946, 2019. [Online].

    Available: https://arxiv.org/abs/1905.11946

  24. A. Howard, M. Sandler, B. Chen, W. Wang, L.-C. Chen, M. Tan,

    G. Chu, V. Vasudevan, Y. Zhu, R. Pang, H. Adam, and Q. Le, Searching for mobilenetv3, in 2019 IEEE/CVF International Conference on Computer Vision (ICCV). IEEE, Oct. 2019, p. 13141324. [Online].

    Available: http://dx.doi.org/10.1109/ICCV.2019.00140

  25. B. H. van der Velden, H. J. Kuijf, K. G. Gilhuijs, and M. A. Viergever, Explainable artificial intelligence (xai) in deep learning-based medical image analysis, Medical Image Analysis, vol. 79, p. 102470, Jul. 2022. [Online]. Available: http://dx.doi.org/10.1016/j.media.2022.102470

  26. J. Zhang, S. A. Bargal, Z. Lin, J. Brandt, X. Shen, and S. Sclaroff, Top-down neural attention by excitation backprop, International Journal of Computer Vision, vol. 126, no. 10, p. 10841102, Dec. 2017. [Online]. Available: http://dx.doi.org/10.1007/s11263-017-1059-x

  27. S. M. Pizer, E. P. Amburn, J. D. Austin, R. Cromartie, A. Geselowitz,

    T. Greer, B. ter Haar Romeny, J. B. Zimmerman, and K. Zuiderveld, Adaptive histogram equalization and its variations, Computer Vision, Graphics, and Image Processing, vol. 39, no. 3, p. 355368, Sep. 1987. [Online]. Available: http://dx.doi.org/10.1016/S0734-189X(87)80186-X

  28. C. Tomasi and R. Manduchi, Bilateral filtering for gray and color images, in Sixth International Conference on Computer Vision (IEEE Cat. No.98CH36271), ser. ICCV-98. Narosa Publishing House,

    p. 839846. [Online]. Available: http://dx.doi.org/10.1109/ICCV.1998. 710815

  29. I. Loshchilov and F. Hutter, Sgdr: Stochastic gradient descent with warm restarts, arXiv:1608.03983, 2016. [Online]. Available: https://arxiv.org/abs/1608.03983

  30. , Decoupled weight decay regularization, arXiv:1711.05101, 2017. [Online]. Available: https://arxiv.org/abs/1711.05101

  31. C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna, Rethinking the inception architecture for computer vision, in 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, Jun. 2016, p. 28182826. [Online]. Available: http://dx.doi.org/10.1109/CVPR.2016.308

  32. Mohammad Fraiwan, A dataset of scoliosis, spondylolisthesis, and normal vertebrae x-ray images, 2022. [Online]. Available: https://data.mendeley.com/datasets/xkt857dsxk/1

  33. C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger, On calibration of modern neural networks, arXiv:1706.04599, 2017. [Online]. Available: https://arxiv.org/abs/1706.04599