My thesis: estimating age from dental X-rays as a distribution, not a single number
For my undergraduate thesis I taught a network to predict a whole age distribution from a panoramic radiograph instead of a single number. It beat plain regression on 5,202 radiographs, mostly for a reason I didn't expect, and the uncertainty it learned turned out to know your age better than it knows your case.
A panoramic X-ray never tells you how old someone is. It tells you what their teeth look like, and you have to work backwards from there. In a child that works really well, because teeth grow on a schedule. In an adult it gets fuzzy fast. A clean, complete set of teeth might belong to someone who is 25 or someone who is 45, and forensic dentists know this. Their own guidelines say adult ages should be reported as a range with an honest margin, not as one number.
Almost every deep learning model for dental age does the opposite. It looks at the radiograph and outputs a single number, say 31.4, with no hint of how sure it is. My thesis asks what happens if you stop doing that. Instead of training the network to hit one age, I trained it to predict a full probability curve over ages, using a method called deep label distribution learning (DLDL). I also tried letting the network decide, image by image, how wide that curve should be.
This is the long version. The final thesis runs to more than 300 pages, written with my own LaTeX template, and it grew out of an earlier project where I estimated age and sex together with one network. The short version is this. On all 5,202 radiographs, a fixed-width distribution beat plain regression by 0.19 years of mean error, from 2.73 to 2.55. When I took that gain apart, most of it came from a change in the loss function rather than from the distribution itself. And the learned width, the part I was most excited about, mostly learned how old people are. It didn’t learn which radiographs are actually hard.
The slides
I defended the results in early November. These are the slides from that seminar, in English. Click the edges of a slide or use the arrow keys to move, jump to any slide from the menu, or open it full screen. The rest of this post goes through the same story in more detail, plus an external test on a second hospital that I added after the seminar.
- Title
- Outline
- Background (1 of 4)
- Background (2 of 4)
- Background (3 of 4)
- Background (4 of 4)
- Main idea
- Research questions and objectives
- Section, research methodology
- Data collection and labeling (1 of 6)
- Data collection and labeling (2 of 6)
- Data collection and labeling (3 of 6)
- Data collection and labeling (4 of 6)
- Data collection and labeling (5 of 6)
- Data collection and labeling (6 of 6)
- Data preprocessing (1 of 5)
- Data preprocessing (2 of 5)
- Data preprocessing (3 of 5)
- Data preprocessing (4 of 5)
- Data preprocessing (5 of 5)
- Data and two evaluation protocols
- Architecture and three target formulations (1 of 3)
- Architecture and three target formulations (2 of 3)
- Architecture and three target formulations (3 of 3)
- Section, results and discussion
- Experimental runs
- RQ1, accuracy of the three main models
- RQ1, paired tests
- RQ1, errors by age group
- RQ2, behavior of the learned width
- RQ2, does width indicate ambiguity?
- RQ2, case analysis
- RQ3, ablation study
- RQ4, expert-assistance interface
- RQ4, model comparison and case report
- Grad-CAM++ visual evidence
- Comparison with previous studies
- Section, conclusions and recommendations
- Conclusions
- Recommendations for future work
- Thank you
- Basis for the 0.14-year threshold
- Findings across protocols
- Target construction and prediction
- Out-of-fold interval calibration
- Width correlations under Protocol A
- Full ablation results
- References I
- References II
- References III
- References IV
Why one number is the wrong answer
Age estimation matters in two places. After a disaster or a crime, it narrows down who a set of remains could belong to. Teeth are often what survives, because they’re the hardest tissue in the body. For living people, it comes up in court, for example when someone has no valid documents and the question is whether they’re a minor.
Dentists traditionally do this by hand. Methods like Demirjian’s grade how far each tooth has developed and convert those grades into an age with a lookup table. It works well in children. It’s also slow, it depends on who is reading the film, and it stops working around 25, when the last roots close. After that, the only clues are slow wear and tear. Enamel wears down, gums and bone recede, teeth get filled, crowned or lost. Those changes depend as much on how someone lived as on how old they are.
That’s the core problem. One radiograph of an adult is honestly compatible with a whole range of ages. A model trained to output one number has no way to say that. It just learns to aim for the middle of whatever range it sees, and the uncertainty disappears from the output.
Label distribution learning was built for exactly this kind of label. It came out of facial age estimation, where the same problem shows up. A face at 30 doesn’t look very different from a face at 32, so a label of “exactly 30” is too sharp. The idea is to replace the single label with a small bell curve centred on it, and train the network to predict that whole curve. From the literature I could find, nobody had tried this on panoramic dental radiographs. That gap became my thesis.
Three ways to write down an age
All three models in the thesis see exactly the same radiographs. What changes is what they’re asked to predict.
Scalar regression is the usual baseline. The network outputs one number between 0 and 1 through a sigmoid, which gets stretched to 0 to 100 years, and it’s trained with Smooth L1 loss.
Fixed-width DLDL chops the age axis from 0 to 100 into 201 bins, half a year apart. For a person aged , the training target is a Gaussian centred on with a width of years, normalised so it sums to one.
Here is the age at the centre of bin (0, 0.5, 1, and so on up to 100), and is how much of the target sits in that bin.
The network outputs 201 numbers, and a softmax turns them into probabilities . The age estimate is the average of the curve, and its spread is the standard deviation.
Training pushes the predicted curve toward the target curve with KL divergence, and adds a plain L1 penalty on the estimate itself, since the shape alone doesn’t guarantee the average lands in the right place.
That spread is the thing I cared about. It comes for free on every forward pass, with no ensembles or repeated sampling, and in principle it’s exactly the range a forensic report asks for.
Adaptive-width DLDL is my own twist on it. A width of 2 years for everyone is a strange assumption. A 7-year-old with half-formed roots should get a narrow target, and a 70-year-old with missing teeth should get a wide one. So I added a small branch that looks at the same image features and predicts for each radiograph, squeezed between 0.5 and 5 years with a scaled sigmoid. That predicted width shapes the training target on the fly. A gentle penalty, , pulls back toward 2 years and keeps it from running off, and the branch starts out predicting exactly 2, so at step one the adaptive model is the same as the fixed one.
The data
The radiographs come from the dental hospital of Universitas Airlangga in Surabaya, collected between 2022 and 2026, anonymised and approved by the hospital’s ethics committee. A forensic odontologist from Universitas Ciputra, whose dental school I also worked with on the multi-task project, reviewed the dataset and the study variables before I trained anything. Ages are computed from the birth date and the acquisition date, in days divided by 365.25. Date-entry mistakes I found in a manual audit of the hospital tables were fixed with a correction dictionary before anything was cached, though I didn’t check every single row by hand.
The skew matters for everything that follows. 60% of the radiographs belong to people under 30, and only 415 to people over 60. Any single average error is mostly a statement about young adults.
Each radiograph goes through CLAHE once, offline, with a gentle clip limit of 1.5 on a 3 by 3 grid. It evens out contrast between the front and back of the mouth and between exposure batches from different years. Then it’s resized to 384 by 768, which keeps the wide panoramic shape instead of squashing it into a square. During training, images get a random left to right flip, which is fine because jaws are symmetric, and up to three black patches (cutout) so the model can’t lean on any single tooth. I turned brightness and contrast jitter off on purpose. CLAHE had just spent effort making contrast consistent, and jitter would have undone it.
The model
All three variants share everything except the very end. Same backbone, same head size, same data splits, same optimizer, same schedule, same epoch budget, same seed.
The backbone is ResNeXt-50 32x4d, with weights pretrained by semi-weakly supervised learning on about a billion Instagram images. It turns the radiograph into 2,048 numbers. The head is three hidden layers of 512 with LayerNorm, GELU and dropout, ending in either 1 output (scalar) or 201 (DLDL). Going from 1 to 201 outputs adds about 100,000 parameters, 0.4% of the model, and the width branch adds another 279,000. So the three models are almost the same size, and any difference between them comes from what they’re asked to predict.
Two ways of testing
I tested everything two ways, and it turned out to matter a lot.
Protocol A is a classic split. 80% train, 10% validation for picking the best epoch, 10% test. The test set is 521 radiographs, stratified by sex and age so the older groups aren’t left out. All the ablations ran under this protocol.
Protocol B is five-fold cross-validation on all 5,202 radiographs. Each fold trains on four fifths and predicts the fifth it never saw, so in the end every radiograph has exactly one honest prediction. All three models use identical folds and seeds, which means I can compare them image by image.
Before running anything I set a rule for calling an improvement meaningful. The difference in mean absolute error (MAE) has to be negative, and its 95% paired bootstrap interval has to sit entirely below zero. I also worked out that a 521-image test set can’t reliably see differences smaller than about 0.14 years. That number comes back again and again, because almost every difference in this thesis is around that size.
Does the distribution beat a single number?
On all 5,202 radiographs, yes.
| Comparison | Protocol | Images | Change in MAE | 95% paired interval | Meets the rule? |
|---|---|---|---|---|---|
| Fixed DLDL vs scalar | B, five-fold | 5,202 | −0.185 | −0.227 to −0.141 | yes |
| Fixed DLDL vs scalar | A, test split | 521 | −0.062 | −0.188 to +0.065 | no, interval crosses zero |
| Adaptive vs fixed DLDL | B, five-fold | 5,202 | +0.041 | +0.002 to +0.079 | no, adaptive is worse |
| Adaptive vs fixed DLDL | A, test split | 521 | −0.093 | −0.196 to +0.006 | no, interval crosses zero |
Fixed-width DLDL beats scalar regression in all five folds, by 0.12 to 0.27 years each, and it wins at every tolerance too. 38% of its predictions land within a year of the true age, against 34% for regression, and 72% within three years, against 69%.
The 521-image test split tells a quieter story. Same direction, but a third of the size, and the interval is three times as wide, so it can’t separate the two. I find this one of the more useful lessons of the whole thesis. A test set that looks reasonable can easily hide a real effect, and if I’d only had Protocol A, I would have reported “no difference.”
The adaptive width is the opposite case. On the test split it looked like the best model of all, 2.48 years. On all 5,202 radiographs it came out slightly behind the fixed width, and when I reran it with two other seeds, the sign of the difference flipped once. In plain terms, adaptive and fixed width are equally accurate, and which one looks better depends on which radiographs you happen to test on.
To see how much of this is just retraining noise, I trained all three main models twice more, with seeds 1337 and 2718 next to the original 42. Fixed-width DLDL stayed ahead of regression with all three seeds, by 0.06, 0.12 and 0.16 years on the test split. Adaptive against fixed went −0.09, −0.09 and then +0.10. The fixed-width model’s own MAE moved by a standard deviation of only 0.028 years between seeds, and that number became my yardstick for “is this bigger than retraining noise.” The seeds changed one more thing. The scalar model underestimated ages by 0.72 years on average with the original seed, but only by about 0.2 with the other two. So I don’t read that strong bias as a property of regression itself.
Where the gain actually came from
Here’s the part I didn’t see coming. Scalar regression and DLDL differ in three things at once. The target (one number or a curve), the head (1 output or 201) and the loss (Smooth L1 or KL plus L1). So which one is doing the work?
There was already a clue in the baseline. I normalised ages to 0 to 1 before applying Smooth L1, and Smooth L1 only switches from squared to absolute error when the error is bigger than 1. On a 0 to 1 scale that never happens. So my “Smooth L1” baseline was, in practice, plain squared error, which punishes the big misses on older people very hard and pulls everyone toward the middle.
To separate the pieces I ran two extra five-fold arms. One is scalar regression trained with plain L1 loss. The other is the 201-bin head trained with L1 on the estimate but no KL term.
Switching the loss alone accounts for 0.142 of the 0.185 years. The 201-bin head by itself adds nothing (+0.019, interval across zero). The KL term to the Gaussian target does help, by 0.062 years, with an interval that stays below zero.
So the fair summary is narrower than the headline. Against a regression baseline trained with the right loss, fixed-width DLDL is ahead by only 0.043 years. That’s real in direction, but smaller than the noise floor even on 5,202 images, and it wins in three folds out of five. What DLDL gives you is the same accuracy as the best scalar regression, plus a whole age distribution you can look at. That’s still worth having, but it isn’t the clean accuracy win I’d hoped for when I started.
Error depends on age more than anything
Splitting the errors by age shows the strongest pattern in the whole thesis. It holds for every model, every ablation, every seed and both protocols.
Error grows about six times from the youngest group to the oldest. Under 20, developing teeth give the model almost a calendar to read. After 30 the clues get vague, and past 60 there are often few teeth left at all.
There’s one bump I didn’t expect. People aged 50 to 60 are estimated more accurately than people aged 40 to 50, by about 0.4 years, with intervals that barely overlap. It shows up in every configuration and in the external data too, and Yeom and colleagues see a smaller version of it in a Korean population. My best guess is that the forties are a quiet zone. Tooth development is long finished, and the degenerative signs like bone loss and pulp narrowing haven’t built up enough to show yet. By the fifties they have. That’s a guess though, since I had no anatomical annotations to check it against.
Where does DLDL actually win against regression? Not where I expected.
The whole idea of DLDL was to help with ambiguous adult radiographs. In practice, the clear gains are in the two youngest groups, under 20 and 20 to 30. In the older groups DLDL is still ahead on average, but the intervals cross zero. This fits the loss story above. Squared error pulls predictions toward the middle of a young dataset, and an L1-style objective pulls less.
MAE treats every year of error the same. Root mean squared error punishes big misses more, and on it the overall picture holds, 4.07 years for regression, 3.94 for fixed-width and 3.96 for adaptive, on all 5,202 radiographs. There’s one exception. Over 60, fixed-width DLDL has a slightly higher RMSE than regression, 7.84 against 7.70, even though its MAE is a hair lower. So in the oldest group its small lead comes from everyday errors, not from avoiding the worst misses.
Sex matters too. Across all 5,202 radiographs, men are estimated 0.3 years worse than women, with intervals that don’t overlap, in every model. Men are only 35% of the data, and I didn’t reweight anything, so the simplest explanation is that the model just saw fewer of them.
What the width learned
This was the second research question, and the one I was most curious about. If the adaptive branch can choose a wide target for some images and a narrow one for others, does it pick wide for the hard cases?
At first glance it works. Wider widths go with bigger errors, a correlation of 0.43. But the width also climbs with age almost in a straight line, and so does the error. Age is sitting in the middle of both. Once I control for true age, the partial correlation between width and error drops to 0.02. The predicted spread does the same thing, for both DLDL variants, on both protocols.
So the width learned something real, but it’s not what I wanted. It learned that older people are harder on average. It did not learn which 45-year-old is harder than another 45-year-old. Telling a forensic dentist that a 70-year-old’s estimate is less certain than a 12-year-old’s is textbook knowledge. What they’d actually need is a flag on the strange 45-year-old radiograph, and this doesn’t provide one.
I can also say why it happens. The gradient of the KL term with respect to pulls the target width toward whatever sharpness the network can currently reach, regardless of whether the estimate is right or wrong. Nothing in the loss tells the branch “this one was a big miss, widen it.” So it settles on the average spread for each age band. The mechanics worked fine, though. When the branch asks for a narrower target, the head really does produce a sharper curve (a rank correlation of 0.97 between and ). The plumbing was right, the training signal was wrong.
The width also hits its ceiling a lot, 38% of all radiographs at . Raising the ceiling to 8 removed the clipping completely, and the average width barely moved, from 3.76 to 3.78. The width settles where the KL pull and the penalty balance out, and the ceiling only decides how many older people get cut off before they get there.
Do the ranges hold the true age?
If you take the estimate plus or minus 1.96 spreads as a 95% range, how often does the true age actually fall inside?
For fixed-width DLDL, the answer is 85% overall, and only 53% for people over 60. The ranges are far too narrow exactly where they matter most. The adaptive model gets to 98% overall, but it does that by being generous everywhere, ±9 years on average and ±7 years even for children, who almost always land within a year. Neither one is a calibrated forensic interval. That’s why I call them ranges “read from the predicted distribution” and not confidence intervals, and why the main thing I’d do next is proper calibration, with something like conformal prediction fitted separately for each predicted age decade.
Four radiographs
Here’s what the distributions look like on single held-out cases.
The first two are the normal case. A 5-year-old with baby teeth and adult teeth forming underneath, and a 22-year-old, both estimated within half a year by all three models.
The last two are why this thesis exists, and they’re the same two kinds of mouth that broke my multi-task model. A 44-year-old with every tooth present and in good shape gets estimated at about 25 by every model and every configuration I tried. The worst part is the spread. At 4.4 years it’s completely ordinary for the adaptive model, so nothing in the output warns you. A range that looks confident and is 18 years off is arguably worse than no range at all.
The 75-year-old with no teeth left is where the spread does what I hoped. The estimate is 20 years too young, but the curve is visibly flat and the width sits right against its ceiling. A reviewer would at least know not to trust it.
Ten knobs that barely mattered
The third research question was how sensitive DLDL is to its own settings. I varied five things one at a time, all under Protocol A. The number of bins (101, 201, 301, 401), the fixed width (1, 2, 3 years), the adaptive ceiling (3, 5, 8 years), the input size (256, 320 and 384 pixels tall) and augmentation on or off.
Nothing about the distribution itself moves the error by more than 0.15 years. The one change that crosses the 0.14 line is turning augmentation off, which is general regularisation and has nothing to do with DLDL. The 401-bin version was actually the best single run in the whole thesis at 2.44 years, but it was one run on one seed, and the seed-to-seed spread of the reference model is about 0.03 years on its own. Every ablation ran on a single seed, so the order of the settings inside the band is a hint, not a ranking.
That’s a good result for anyone who wants to use DLDL, because it means you don’t need to tune it. It also says something about where the next gains are. If nothing inside the method moves the error, the bottleneck is probably the data. More radiographs, more hospitals, more old people.
A hospital in another country
All of the above comes from one hospital in Surabaya. After the seminar I added a test on a completely separate public dataset, the BRAR dataset from Shanghai Stomatological Hospital in China. It has 988 radiographs of adults aged 18 to 75, taken on a different machine, from a different population, labelled for gum bone loss. I checked for overlap with my data before opening the labels and found none. The models never trained on any of it.
Error jumps to about 4 years for every model. Most of that is just age, since this data is all adults. If I reweight my internal test error to the external age mix, it already comes to 3.5 to 3.7 years, so the actual cost of switching hospitals is roughly half a year.
The model ranking gets less clear. The adaptive model is the most accurate here, 4.02 years as a single model and 3.80 when averaging the five fold models. Fixed-width DLDL beats regression in four folds out of five. But differences between models are about the same size as differences between retrainings of the same model, so I can’t call any of it settled. Averaged over the five folds, fixed-width DLDL is ahead of regression by 0.19 years. The single model from the 80/10/10 split points the other way, +0.11 years, but mostly because its scalar partner happened to be unusually good, 4.10 years against 4.15 to 4.58 for the five fold versions. The differences between models also swing by about 0.19 years from one retraining to the next, as much as the differences themselves.
There’s also a labelling question. The external ages are whole years, and I couldn’t find out whether they were rounded or cut off at the last birthday. If they were cut off, the true ages are on average half a year older. Adding 0.5 years to every age makes fixed-width DLDL beat regression in all five folds (by 0.21 years on average), and adaptive beat regression in all five too (by 0.31). Since I don’t know the rule, I only treat that as a sensitivity check. The archive also holds 988 images while the dataset paper reports 1,104 patients, and I couldn’t find out why, so I can’t vouch for every external label either. Two other things stood out. Every model overestimates age on this data, where internally they all underestimate, and the overestimate is biggest for people whose bone loss is heavy for their age. That fits bone loss being one of the clues the models use for adults. And the fixed-width ranges collapse here, covering only 65% of true ages, while the adaptive ones still cover 95%, again by being wide.
One number here looked like good news for the width at first. On the external data, the adaptive model’s spread still correlated 0.26 with the error after controlling for true age, much more than the 0.02 I saw internally. I took it apart before getting excited. That spread is almost a function of the predicted age (a correlation of 0.96), so once true age is fixed, what’s left mostly tracks the direction of the error. Overestimated cases get wider ranges and underestimated ones narrower ranges, a V shape rather than a straight line. Internally the two sides cancel out. Here every model overestimates, so one side dominates and shows up as 0.26. Within each decade of predicted age it drops to 0.09.
What did hold across both hospitals is the age pattern, including the dip in the fifties, men being harder than women, and the width failing as a per-case warning.
Where the model looks
To see what the networks pay attention to, I used Grad-CAM++ on the last block of the backbone, on the same three test cases for all three models.
In the 15-year-old, all three models look at the developing lower teeth. In the 44-year-old with a full set of teeth, attention moves away from the teeth and up to the back of the jaw and the jaw joints, as if the models have learned that adult teeth alone don’t say much. In the 75-year-old with no teeth, it runs along the thin, resorbed edge of the lower jaw.
I also made two-direction maps, computing the gradient once toward “older” and once toward “younger.” On a 5-year-old, the “older” evidence sits right on the tooth buds and developing roots. On older adults, the “younger” direction dominates, which matches them being underestimated. All of this lines up with dental biology, but I want to be careful with it. I had no expert annotations to measure the maps against, so they’re a review aid, not proof that the network reasons like a dentist.
How it compares
Other lifespan studies on panoramic radiographs report overall errors around 2.8 to 3.1 years, and every one of them uses scalar regression.
| Study | Data | Overall MAE | Youngest to oldest group |
|---|---|---|---|
| Vila-Blanco et al., 2020 | 2,289 Spanish, 4.5 to 89 | about 2.83 | 0.75 (under 15) |
| Yeom et al., 2023 | 9,663 Korean, 3 to 79 | 2.95 | 0.52 to 5.30 |
| Oliveira et al., 2024 | 12,827 Brazilian, 2 to 97 | 3.10 | 1.18 to 3.78 |
| Bizjak and Robič, 2024 | 21,007 Slovenian, 4 to 97 | 3.12 | 1.94 to 13.40 |
| This thesis | 5,202 Indonesian, 4 to 88 | 2.55 to 2.59 (five-fold) | 0.95 to 6.10 |
My numbers look slightly better, but I don’t read much into that. My data is younger than most of theirs, and young people are easy. The external test makes the point well. On an older population the same models land at about 4 years. The age-group endpoints are the fairer comparison, and there my numbers sit right inside the published range at both ends. I like that part more, because it means the steep rise in error with age is a property of panoramic radiographs, not of any one dataset or model.
What I’d do differently
A few things limit how far these results go, and I’d rather list them here than have someone find them later.
- One hospital for training. Everything was trained on data from one place, and the external test covers only adults from one other hospital. I can’t claim this holds for other populations.
- Image-level splits. The splits were made per image, not per patient, because the anonymisation removed the patient IDs. A pixel-similarity audit afterwards found 71 near-duplicate images in 35 groups. Removing them changed the MAE by less than 0.03 years, but that audit can only find the obvious repeats.
- The baseline’s loss. My regression baseline turned out to be squared error in disguise. I caught it and measured it with the extra arms, but the headline comparison bundles target, head and loss together.
- No real ambiguity label. I used absolute error as a stand-in for how ambiguous a radiograph is. A proper test would need dentists to rate ambiguity directly.
- Uncalibrated ranges. The spread follows age, but its scale is off, too narrow for the old and too wide for the young.
- Women outnumber men two to one. Men are estimated 0.1 to 0.6 years worse in every one of the 19 Protocol A runs, and I didn’t rebalance anything.
- Single seeds. Each ablation and each external decision rests on one training per setting, while the retraining noise on external data is as big as the differences I’m testing.
- External labels. The outside dataset has whole-year ages with an unknown rounding rule, only adults, and fewer images than its paper reports. The advantage in children is untested outside my hospital.
- Checkpoint choice. The best epoch was picked on validation MAE, which flatters the validation numbers. The test split was evaluated exactly once per run and never used to choose anything.
- Unmeasured heatmaps. I never tested whether the Grad-CAM++ maps actually reflect what drives the prediction, so they stay a qualitative review aid.
- No dentist in the loop yet. No forensic dentist has used these estimates and ranges on real cases. Numbers that look good on a test set and numbers that help in casework are different claims.
Under the hood
Every number in this post was recomputed from the saved per-image predictions, and all the charts are drawn straight from those files.
| Setting | Value |
|---|---|
| Backbone | ResNeXt-50 32x4d, SWSL pretrained, nothing frozen |
| Input | CLAHE (clip 1.5, 3 × 3 tiles), 384 × 768, random flip, cutout 1 to 3 patches |
| Head | 3 × 512, LayerNorm, GELU, dropout 0.25 |
| Age bins | 201, from 0 to 100 years in 0.5-year steps |
| Fixed width | σ = 2 years |
| Adaptive width | branch of 2 × 128, σ in [0.5, 5], penalty 0.05 · (ln σ − ln 2)² |
| Loss | KL divergence + L1 on the estimate (DLDL), Smooth L1 on age / 100 (scalar) |
| Optimizer | AdamW, 7.5e-5 backbone, 1e-3 heads, 250 warmup steps, cosine decay |
| Batch | 16 per GPU × 2 GPUs × 2 accumulation steps = 64, fp16 |
| Epochs | up to 80, early stopping after 20 without improvement |
| Evaluation | 521-image test split and five-fold out-of-fold on 5,202, 1,000 bootstrap resamples |
| Runs | 34 in total, 19 under Protocol A and 15 under Protocol B, plus the decomposition arms |
| Hardware | 2 × T4 on Kaggle, 44.6 hours of training for the main study |
A few implementation details matter for trusting those numbers. Every run writes the SHA-256 hashes of the metadata table and the split file into its manifest, and all 34 runs share one metadata hash and one split hash per protocol, so every comparison really is on the same data. The data loader stops with an error on any image it can’t read instead of skipping it, and all 34 runs finished, so no radiograph silently dropped out. Preprocessing is split in two. CLAHE and resizing run once and get cached, and only the flip, cutout and normalisation run on every batch. The adaptive model also rebuilds its Gaussian targets inside every training step from the width it currently predicts, while the fixed model’s targets depend only on age and never change.
Takeaways
Predicting a distribution instead of a number is worth doing. On 5,202 radiographs it matches the best scalar regression and hands you a full age curve for free.
If I had to pick one model, it’s fixed-width DLDL. It meets my improvement rule on all 5,202 radiographs, points the same way on the test split and in most external retrainings, and gives a distribution, which is what forensic reports ask for anyway. The adaptive version is the one to watch for data from other hospitals, since it had the lowest external error both ways. That needs confirming on more than one outside source before I’d recommend it.
As far as I could find in the literature, this is one of the first applications of distribution learning to forensic age estimation on panoramic radiographs, tested head to head against regression under controlled conditions. So the contribution isn’t a new network. It’s a measured answer to how much the distribution actually helps, how much of that is really the loss, and what the learned width does and doesn’t capture.
Most of the accuracy gain came from the loss, not the distribution. A regression model trained with squared error is a weak baseline for a dataset full of young people, and fixing just the loss closes most of the gap. If I’d only compared against that baseline, I would have credited DLDL with a win it mostly didn’t earn.
The learned width knows your age, not your case. It’s strongly tied to error across age groups and almost useless within one. That’s an honest negative result, and I think it’s the most useful finding in the thesis, because the obvious way to check it, the raw correlation, says the opposite.
Evaluation size changes the story. The same comparison was “not meaningful” on 521 radiographs and clearly meaningful on 5,202. And age dominates everything. Six times more error at 60 than at 15, in every model and every population I tested.
If I keep working on this, the next steps are clear enough. Calibrate the ranges properly, per decade of predicted age. Train and test on several hospitals and machines, with patient-level splits, a better balance of men and women, and curves that show how much more data actually helps. Repeat the loss decomposition with several seeds and on external data. Get dentists to label which radiographs they actually find ambiguous, so the width finally has something real to learn from. And put the outputs in front of forensic dentists in a proper usability study, with the heatmaps checked by deletion and insertion tests or against expert annotations instead of by eye.
Appendix: training curves
These are the training loss and validation MAE curves straight from the thesis, for anyone who wants to see how the runs actually behaved.
Main models, Protocol A
The scalar loss sits thousands of times lower than the DLDL losses, but that’s only a matter of scale. It’s Smooth L1 on age divided by 100, while the DLDL loss is KL plus an L1 term in years. Only the validation MAE on the right compares the three directly. The scalar run also has one clear spike around epoch 25, in both its loss and its validation error, and then recovers.
Main models, Protocol B
Across folds, the DLDL training curves lie almost on top of each other. The scalar runs keep that habit of a single sudden spike, in three of the five folds. The validation curves differ more between folds than between models, which is a good reminder of why one split wasn’t enough to rank them.
Ablations A1 to A5
The curves tell the same story as the ablation chart above. In every group the variants end up in the same place. The runs that stop early, like the 1-year width and the run without augmentation, were cut off by early stopping after 20 epochs without improvement. Without augmentation, the training loss also falls faster than the reference while the validation error doesn’t follow, which is what overfitting looks like on a chart.