{"id":1860,"date":"2026-10-12T09:00:00","date_gmt":"2026-10-12T07:00:00","guid":{"rendered":"https:\/\/matvision.eu\/the-certainty-of-uncertainty\/"},"modified":"2026-10-12T09:00:00","modified_gmt":"2026-10-12T07:00:00","slug":"the-certainty-of-uncertainty","status":"publish","type":"post","link":"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/","title":{"rendered":"The Certainty of Uncertainty: When AI Models Are Confidently Wrong"},"content":{"rendered":"<p class=\"mv-lead wp-block-paragraph\"><em>Why AI models can be confidently wrong when sorting waste, and what that means for reliable recycling.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By now, most of us have learned to treat the answers of generative AI with a healthy dose of skepticism. We have all seen ChatGPT invent a reference, a fact, or a place with complete assurance. In July 2026, two hikers in the Tatra Mountains had to be rescued by helicopter after following a \u201cshortcut\u201d suggested by ChatGPT: the route confidently led them onto climbing terrain they could not cross. The model did not say \u201cI am not sure.\u201d It simply answered, convincingly, and wrongly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For the general public, this skepticism towards AI predictions is relatively recent. At Matvision, however, it has always been the central engineering reality. Working with artificial intelligence on a high-speed sorting line requires a permanent, critical assessment of what the model predicts. More importantly, it requires engineering a system that remains reliable precisely where a standalone classifier would otherwise be confidently wrong.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The premise is straightforward: a confidence score is not a probability. That gap is measurable, it is correctable, and a system that knows when to say nothing is worth far more than one that always answers.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">1. The confidence score is not what it looks like<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Measurement and material-characterization systems are standard across modern recycling. Among the most widely used are handheld XRF and LIBS analyzers, which give an immediate indication of a material\u2019s composition and suggest a corresponding grade directly in the field.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But these devices are calibrated for specific families of materials. Their algorithms compare a measurement against a predefined database of reference grades, and in most cases the instrument is programmed to <em>always return an answer<\/em>, even when the piece falls outside the scope of its calibration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A sorting system\u2019s neural network behaves the same way, but at a larger scale. It may report a confidence score of 0.95 for stainless steel grade 304, which an operator intuitively reads as: \u201cthis piece has a 95% probability of being 304.\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The mathematical reality is different. Modern classifiers use a softmax function, which converts the network\u2019s raw outputs into a set of values that sum to 1.0:<\/p>\n\n\n\n<div class=\"mv-equation\"><math display=\"block\" displaystyle=\"true\"><mi>P<\/mi><mo stretchy=\"false\">(<\/mo><mtext>class<\/mtext><mspace width=\"0.3em\"\/><mi>i<\/mi><mo stretchy=\"false\">)<\/mo><mo>=<\/mo><mfrac><mrow><mi>exp<\/mi><mo stretchy=\"false\">(<\/mo><msub><mi>z<\/mi><mi>i<\/mi><\/msub><mo stretchy=\"false\">)<\/mo><\/mrow><mrow><munderover><mo movablelimits=\"false\">\u2211<\/mo><mrow><mi>j<\/mi><mo>=<\/mo><mn>1<\/mn><\/mrow><mi>K<\/mi><\/munderover><mi>exp<\/mi><mo stretchy=\"false\">(<\/mo><msub><mi>z<\/mi><mi>j<\/mi><\/msub><mo stretchy=\"false\">)<\/mo><\/mrow><\/mfrac><\/math><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The reported confidence score is simply the maximum value within that normalized distribution. Because the values are constrained between 0 and 1, they look like probabilities. In reality, they express nothing more than a relative ranking among the specific classes the model knows. The softmax operation forces this ranking whether or not the true material is one of them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Consider a simple analogy: take a model trained only to differentiate cats from dogs, and show it an image of a giraffe. The network will not hesitate. It may answer \u201cdog\u201d at 99% confidence. What we would expect from a sensible model is something near a 50\/50 split meaning \u201cI have never seen this\u201d; that is exactly what a standard softmax cannot produce. It must distribute all its probability mass over the classes it knows, and it does so with manufactured certainty.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the line, the same thing happens. When a fragment belongs to an alloy grade absent from the training set, the model reports a high value for the closest known class, and the operator reads it as a probability of being that grade. This illusion of certainty is dangerous. Once an operator discovers it, trust in the system collapses. Not because the model is inaccurate, but because its confidence was never trustworthy to begin with.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">2. Miscalibration is measurable<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Stating that confidence does not equal probability is straightforward. The practical question is whether that gap can be measured systematically. It can.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A model is considered well-calibrated when its stated confidence matches its observed accuracy. Over a large sample set, among all predictions made at 70% confidence, roughly 70% should be correct. Weather forecasting provides a clear operational parallel: if a meteorologist forecasts a 10% chance of rain across 100 days, and it rains on 50 of them, the forecast is not merely inaccurate; it is miscalibrated. The system systematically misrepresents its own uncertainty.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That example is worth keeping in mind, because miscalibration runs in two directions:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Overconfidence<\/strong>: stated confidence exceeds real-world accuracy. This is the most dangerous failure mode. Pieces are sorted into high-purity fractions on insufficient evidence, introducing cross-contamination.<\/li>\n\n\n<li><strong>Underconfidence<\/strong>: stated confidence falls below real-world accuracy. While less visible, this error carries direct economic costs. Pieces the system could have sorted correctly are rejected, and the recovery rate suffers.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Real models rarely sit cleanly in one camp. A trained detector is often underconfident on its low-confidence predictions and overconfident on its high-confidence ones at the same time, which is exactly why calibration must be measured rather than assumed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To evaluate this behaviour, the standard tool is the <strong>reliability diagram<\/strong>. Predictions are grouped into confidence bins. For each bin, the average predicted confidence is plotted against the observed accuracy. In a perfectly calibrated model, the curve follows the diagonal axis. Points above it indicate underconfidence; points below indicate overconfidence. The shape of the curve tells you which problem you have.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The summary metric for this discrepancy is the <strong>Expected Calibration Error (ECE)<\/strong>, which calculates the weighted average gap between confidence and accuracy across all bins:<\/p>\n\n\n\n<div class=\"mv-equation\"><math display=\"block\" displaystyle=\"true\"><mtext>ECE<\/mtext><mo>=<\/mo><munderover><mo movablelimits=\"false\">\u2211<\/mo><mrow><mi>m<\/mi><mo>=<\/mo><mn>1<\/mn><\/mrow><mi>M<\/mi><\/munderover><mfrac><mrow><mo>|<\/mo><msub><mi>B<\/mi><mi>m<\/mi><\/msub><mo>|<\/mo><\/mrow><mi>n<\/mi><\/mfrac><mrow><mo>|<\/mo><mtext>acc<\/mtext><mo stretchy=\"false\">(<\/mo><msub><mi>B<\/mi><mi>m<\/mi><\/msub><mo stretchy=\"false\">)<\/mo><mo>\u2212<\/mo><mtext>conf<\/mtext><mo stretchy=\"false\">(<\/mo><msub><mi>B<\/mi><mi>m<\/mi><\/msub><mo stretchy=\"false\">)<\/mo><mo>|<\/mo><\/mrow><\/math><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">with:<\/p>\n\n\n\n<div class=\"mv-equation\"><math display=\"block\" displaystyle=\"true\"><mtext>acc<\/mtext><mo stretchy=\"false\">(<\/mo><msub><mi>B<\/mi><mi>m<\/mi><\/msub><mo stretchy=\"false\">)<\/mo><mo>=<\/mo><mfrac><mn>1<\/mn><mrow><mo>|<\/mo><msub><mi>B<\/mi><mi>m<\/mi><\/msub><mo>|<\/mo><\/mrow><\/mfrac><munder><mo movablelimits=\"false\">\u2211<\/mo><mrow><mi>i<\/mi><mo>\u2208<\/mo><msub><mi>B<\/mi><mi>m<\/mi><\/msub><\/mrow><\/munder><mn mathvariant=\"bold\">1<\/mn><mo stretchy=\"false\">(<\/mo><msub><mover><mi>y<\/mi><mo>^<\/mo><\/mover><mi>i<\/mi><\/msub><mo>=<\/mo><msub><mi>y<\/mi><mi>i<\/mi><\/msub><mo stretchy=\"false\">)<\/mo><\/math><\/div>\n\n\n\n<div class=\"mv-equation\"><math display=\"block\" displaystyle=\"true\"><mtext>conf<\/mtext><mo stretchy=\"false\">(<\/mo><msub><mi>B<\/mi><mi>m<\/mi><\/msub><mo stretchy=\"false\">)<\/mo><mo>=<\/mo><mfrac><mn>1<\/mn><mrow><mo>|<\/mo><msub><mi>B<\/mi><mi>m<\/mi><\/msub><mo>|<\/mo><\/mrow><\/mfrac><munder><mo movablelimits=\"false\">\u2211<\/mo><mrow><mi>i<\/mi><mo>\u2208<\/mo><msub><mi>B<\/mi><mi>m<\/mi><\/msub><\/mrow><\/munder><msub><mover><mi>p<\/mi><mo>^<\/mo><\/mover><mi>i<\/mi><\/msub><\/math><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">A perfectly calibrated model has an ECE near zero. An off-the-shelf detector trained on real waste is typically far from it, and that gap is far from harmless when those numbers drive an ejection decision.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The root cause is structural. Standard training objectives penalize wrong predictions; they do not penalize miscalibrated ones. Two models with identical accuracy can have completely different reliability curves (Guo et al., 2017).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-reliability-diagram.webp\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-reliability-diagram.webp 320w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-reliability-diagram-300x300.webp 300w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-reliability-diagram-150x150.webp 150w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-reliability-diagram-12x12.webp 12w\" sizes=\"(max-width: 320px) 100vw, 320px\"><img fetchpriority=\"high\" decoding=\"async\" width=\"320\" height=\"320\" src=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-reliability-diagram.jpg\" alt=\"Reliability diagram comparing confidence and accuracy\" class=\"wp-image-1857\" srcset=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-reliability-diagram.jpg 320w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-reliability-diagram-300x300.jpg 300w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-reliability-diagram-150x150.jpg 150w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-reliability-diagram-12x12.jpg 12w\" sizes=\"(max-width: 320px) 100vw, 320px\" \/><\/picture><\/picture><figcaption class=\"wp-element-caption\">Source: adapted from Figure 5 in Hu et al. (2023), licensed under CC BY 4.0.<\/figcaption><\/figure>\n<\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">3. Why early results are misleading<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There is a moment in every AI sorting project where everything seems to work. You collect a few thousand pieces, train on a part of them, and test on the rest. Accuracy is high, confidence scores look reasonable, and the natural conclusion is: \u201cIt works!\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This deserves caution. Waste streams have enormous intrinsic variability, and an initial dataset rarely covers it. The pieces collected in one week, from one supplier, under one set of surface conditions, are a narrow slice of what the line will see over months. Class distributions in that slice rarely match the bulk stream either: rare but valuable materials are underrepresented, and the model drifts toward the majority class while remaining confident about it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The problem amplifies with time. Calibration learned during training assumes the data distribution stays stable, and in production it never does: suppliers change, surface conditions change with the season, and sensors age. A model well-calibrated in April can be poorly calibrated by July. By tracking calibration through continuous ECE monitoring, this invisible drift becomes a quantitative metric that can be acted on.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">4. Correcting calibration after training<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The good news is that once miscalibration is measured, it can be corrected, and the most effective method is also the simplest.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Temperature scaling<\/strong> (Guo et al., 2017) divides the network\u2019s raw outputs by a single scalar <em>T<\/em> before the softmax normalization:<\/p>\n\n\n\n<div class=\"mv-equation\"><math display=\"block\" displaystyle=\"true\"><msub><mover><mi>p<\/mi><mo>^<\/mo><\/mover><mi>i<\/mi><\/msub><mo>=<\/mo><mfrac><mrow><mi>exp<\/mi><mo stretchy=\"false\">(<\/mo><msub><mi>z<\/mi><mi>i<\/mi><\/msub><mo>\/<\/mo><mi>T<\/mi><mo stretchy=\"false\">)<\/mo><\/mrow><mrow><munderover><mo movablelimits=\"false\">\u2211<\/mo><mrow><mi>j<\/mi><mo>=<\/mo><mn>1<\/mn><\/mrow><mi>K<\/mi><\/munderover><mi>exp<\/mi><mo stretchy=\"false\">(<\/mo><msub><mi>z<\/mi><mi>j<\/mi><\/msub><mo>\/<\/mo><mi>T<\/mi><mo stretchy=\"false\">)<\/mo><\/mrow><\/mfrac><\/math><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If <em>T<\/em> &gt; 1, the distribution flattens and confidence goes down: this treats overconfidence.<\/li>\n\n\n<li>If <em>T<\/em> &lt; 1, the distribution sharpens: this treats underconfidence.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">That symmetry is what makes it the most adaptable correction available: it handles miscalibration in either direction, requires no retraining, adds a single parameter, and costs essentially nothing at inference. In the comparative studies that established it, it consistently removes a large share of the calibration gap while leaving accuracy untouched.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Finding an optimal <em>T<\/em> is less trivial than it looks. The obvious approach is to choose the <em>T<\/em> that minimizes ECE on a held-out set, but ECE relies on hard binning and an absolute value, which makes it non-differentiable and impossible to optimize by gradient descent. The workaround is implementing a smooth, differentiable surrogate in which each prediction contributes to neighbouring bins through a soft kernel rather than landing in exactly one. <em>T<\/em> can then be optimized directly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A single global <em>T<\/em> value may prove insufficient in scrap streams that feature extreme class imbalances. Implementing class-specific temperature parameters yields significantly better calibration across both majority and minority fractions (Liu et al., 2022).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-temperature-scaling.webp\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-temperature-scaling.webp 681w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-temperature-scaling-300x129.webp 300w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-temperature-scaling-18x8.webp 18w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-temperature-scaling-650x280.webp 650w\" sizes=\"(max-width: 681px) 100vw, 681px\"><img decoding=\"async\" width=\"681\" height=\"293\" src=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-temperature-scaling.png\" alt=\"Effect of the temperature parameter on a softmax distribution\" class=\"wp-image-1858\" srcset=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-temperature-scaling.png 681w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-temperature-scaling-300x129.png 300w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-temperature-scaling-18x8.png 18w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-temperature-scaling-650x280.png 650w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/picture><\/picture><figcaption class=\"wp-element-caption\">Source: adapted from Figure 2 in Maracani et al. (2024), licensed under CC BY 4.0.<\/figcaption><\/figure>\n<\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">5. Correcting it at the source, and combining both<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Post-hoc correction fixes the symptom. Calibration can also be embedded directly into the training process itself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One common intervention is label smoothing (M\u00fcller et al., 2019), which replaces rigid zero-and-one training targets with softened ones. The model is no longer rewarded for pushing its outputs to absolute certainty. While effective for suppressing overconfidence, applying label smoothing to a model that naturally leans underconfident can worsen calibration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A more direct approach incorporates calibration into the objective function. By segmenting model outputs into a four-quadrant matrix (accurate vs. inaccurate against certain vs. uncertain), the loss function specifically penalizes the high-confidence, incorrect predictions that lead directly to contaminated sorting fractions:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><\/th><th>Certain<\/th><th>Uncertain<\/th><\/tr><\/thead><tbody><tr><td><strong>Accurate<\/strong><\/td><td>Desirable<\/td><td>Miscalibrated<\/td><\/tr><tr><td><strong>Inaccurate<\/strong><\/td><td><strong>Miscalibrated (costly error)<\/strong><\/td><td>Desirable<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In practice, these methodologies are complementary. Training the model to be honest about its own uncertainty, then correcting whatever systematic bias remains at inference, gives a better-calibrated system than either approach alone.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One point deserves emphasis for an industrial reader: calibration is not a trade-off against accuracy. The model detects the same objects. It simply stops overstating how sure it is.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">6. Knowing what you don\u2019t know<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A well-calibrated confidence score is a much better metric, but it is still just one number, and it still cannot say \u201cthis piece is unlike anything I was trained on.\u201d Resolving this requires explicit Out-of-Distribution (OOD) detection: evaluating how far a new input lies from the learned data manifold, rather than asking the classifier how sure it is.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Reconstruction metrics via Variational Autoencoders (VAEs).<\/strong> An autoencoder is trained solely on representative in-distribution material. It compresses each input into a compact latent representation and reconstructs it, and in doing so it learns what \u201cnormal\u201d looks like for that stream. At inference, a piece that resembles the training data is reconstructed faithfully; an unfamiliar one is not. The deviation, measured through reconstruction error, through reconstruction probability (An &amp; Cho, 2015), or through a distance in latent space, becomes an outlier score that is entirely independent of the classifier\u2019s opinion. A new alloy, an unexpected contaminant, or a material the line has never processed can be flagged as outside the known distribution rather than forced into the nearest known class. Importantly, because raw likelihoods from deep generative models can occasionally assign high values to unfamiliar data (Nalisnick et al., 2019), robust implementations rely on reconstruction probability and latent space distance metrics rather than raw likelihood alone.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-vae-architecture.webp\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-vae-architecture.webp 1024w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-vae-architecture-300x169.webp 300w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-vae-architecture-768x432.webp 768w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-vae-architecture-18x10.webp 18w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-vae-architecture-650x366.webp 650w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-vae-architecture.png\" alt=\"Architecture of a variational autoencoder: encoder, latent space, decoder\" class=\"wp-image-1859\" srcset=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-vae-architecture.png 1024w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-vae-architecture-300x169.png 300w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-vae-architecture-768x432.png 768w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-vae-architecture-18x10.png 18w, https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-vae-architecture-650x366.png 650w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/picture><\/picture><figcaption class=\"wp-element-caption\">Source: architecture of a Variational Autoencoder (VAE) showing the encoder, latent bottleneck parameters, and decoder reconstruction. Van Otten (2023), Spot Intelligence.<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Model uncertainty.<\/strong> Running stochastic forward passes via Monte Carlo (MC) Dropout (Gal &amp; Ghahramani, 2016) assesses internal model stability. If repeated passes over the same input generate divergent class predictions, epistemic uncertainty is high, signaling that the network lacks the structural knowledge to classify the piece reliably. Ensembles behave similarly: when several independently trained models vote and only some agree, that disagreement is valuable information.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Conformal prediction sets.<\/strong> Rather than a point estimate with a confidence attached, conformal methods output a set of candidate classes carrying a statistical coverage guarantee, calibrated on a held-out set and adaptive to how difficult each input is (Bethell et al., 2024). Easy pieces get a single answer; ambiguous ones get a set. This provides the exact operational trigger needed to route an object to a secondary analytical step rather than guessing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In practice, an outlier flagged as an outlier costs a single pick cycle. An outlier classified with misplaced confidence costs a contaminated batch.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">7. The Matvision approach<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This calibration discipline defines both our engineering philosophy and the physical architecture of how we work with recyclers and build sorting machines.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When a recycler comes to us with a new material stream, our role is not to promise the moon. It is to be objective about what field reality allows. We run structured test campaigns on representative material and report the performance the system will actually deliver on that stream, not the performance a small, flattering dataset would suggest. Announcing a realistic recovery rate and purity, then achieving it in production, is worth more than an impressive number that collapses three months in.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This framework is built into the core software pipeline of our sorting machine: resolving the gap between confidence and correctness, tracking the need to measure calibration rather than assume it, accounting for the drift that comes with real waste streams, and deploying the capability to flag what the system does not recognise. Not as a feature added at the end, but as part of what makes a sorting decision trustworthy in the first place.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">References<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Guo, C., Pleiss, G., Sun, Y., &amp; Weinberger, K. Q. (2017). On Calibration of Modern Neural Networks. <em>ICML<\/em>, 1321-1330. <a href=\"https:\/\/arxiv.org\/abs\/1706.04599\">arXiv:1706.04599<\/a><\/li>\n\n\n<li>Hu, M., Zhang, Z., Zhao, S., Huang, M., &amp; Wu, B. (2023). Uncertainty in Natural Language Processing: Sources, Quantification, and Applications. Scientific figure on <a href=\"https:\/\/www.researchgate.net\/figure\/llustration-of-uncertainty-representation-method-based-on-calibration-confidence-a_fig2_371375768\">ResearchGate<\/a>.<\/li>\n\n\n<li>Liu, Y., Wang, X., Liu, X., &amp; Matwin, S. (2022). Adaptive Temperature Scaling for Improved Calibration of Neural Networks. <a href=\"https:\/\/arxiv.org\/abs\/2006.12800\">arXiv:2006.12800<\/a><\/li>\n\n\n<li>Maracani, A., Rosasco, L., &amp; Natale, L. (2024). Trust and Balance: Few Trusted Samples Pseudo-Labeling and Temperature Scaled Loss for Effective Source-Free Unsupervised Domain Adaptation. Scientific figure on <a href=\"https:\/\/www.researchgate.net\/figure\/a-the-temperature-scaling-in-our-discrimability-term-enables-a-fair-competition-between_fig2_383701935\">ResearchGate<\/a>.<\/li>\n\n\n<li>M\u00fcller, R., Kornblith, S., &amp; Hinton, G. (2019). When Does Label Smoothing Help? <em>NeurIPS<\/em>. <a href=\"https:\/\/arxiv.org\/abs\/1906.02629\">arXiv:1906.02629<\/a><\/li>\n\n\n<li>An, J., &amp; Cho, S. (2015). Variational Autoencoder based Anomaly Detection using Reconstruction Probability. <em>SNU Data Mining Center, Technical Report<\/em>.<\/li>\n\n\n<li>Nalisnick, E., Matsukawa, A., Teh, Y. W., Gorur, D., &amp; Lakshminarayanan, B. (2019). Do Deep Generative Models Know What They Don\u2019t Know? <em>ICLR<\/em>. <a href=\"https:\/\/arxiv.org\/abs\/1810.09136\">arXiv:1810.09136<\/a><\/li>\n\n\n<li>Van Otten, N. (2023). Variational Autoencoders (VAEs) Made Simple &amp; How To TensorFlow Tutorial. <a href=\"https:\/\/spotintelligence.com\/2023\/12\/27\/variational-autoencoders-vae\/\">Spot Intelligence<\/a>.<\/li>\n\n\n<li>Gal, Y., &amp; Ghahramani, Z. (2016). Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning. <em>ICML<\/em>. <a href=\"https:\/\/arxiv.org\/abs\/1506.02142\">arXiv:1506.02142<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"mv-note wp-block-paragraph\">First published on 12 October 2026 in <a href=\"https:\/\/www.linkedin.com\/pulse\/certainty-uncertainty-when-ai-models-confidently-wrong-matvision-2zsye\/\">Sorting Tomorrow<\/a>, the Matvision newsletter on LinkedIn.<\/p>","protected":false},"excerpt":{"rendered":"<p>Why AI models can be confidently wrong when sorting waste, and what that means for reliable recycling.<\/p>","protected":false},"author":1,"featured_media":1856,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[30,32,21,22],"class_list":["post-1860","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sustainable-technology","tag-ai","tag-model-training","tag-recycling","tag-sorting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The certainty of uncertainty: when AI is confidently wrong<\/title>\n<meta name=\"description\" content=\"A confidence score is not a probability. How to measure and correct miscalibration in AI sorting models, and flag material the model has never seen.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The certainty of uncertainty: when AI is confidently wrong\" \/>\n<meta property=\"og:description\" content=\"A confidence score is not a probability. How to measure and correct miscalibration in AI sorting models, and flag material the model has never seen.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/\" \/>\n<meta property=\"og:site_name\" content=\"Matvision\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/Matvision\/61554439169848\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-12T07:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-of-uncertainty-cover.png\" \/>\n\t<meta property=\"og:image:width\" content=\"928\" \/>\n\t<meta property=\"og:image:height\" content=\"522\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Robert Baudinet\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@matvisionEU\" \/>\n<meta name=\"twitter:site\" content=\"@matvisionEU\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Robert Baudinet\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"12\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/\"},\"author\":{\"name\":\"Robert Baudinet\",\"@id\":\"https:\/\/matvision.eu\/de\/#\/schema\/person\/e2caf7f3467ba46137b3becf1626a2e4\"},\"headline\":\"The Certainty of Uncertainty: When AI Models Are Confidently Wrong\",\"datePublished\":\"2026-10-12T07:00:00+00:00\",\"dateModified\":\"2026-10-12T07:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/\"},\"wordCount\":2384,\"publisher\":{\"@id\":\"https:\/\/matvision.eu\/de\/#organization\"},\"keywords\":[\"ai\",\"model training\",\"recycling\",\"sorting\"],\"articleSection\":[\"Sustainable Technology\"],\"inLanguage\":\"de\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/\",\"url\":\"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/\",\"name\":\"The certainty of uncertainty: when AI is confidently wrong\",\"isPartOf\":{\"@id\":\"https:\/\/matvision.eu\/de\/#website\"},\"datePublished\":\"2026-10-12T07:00:00+00:00\",\"dateModified\":\"2026-10-12T07:00:00+00:00\",\"description\":\"A confidence score is not a probability. How to measure and correct miscalibration in AI sorting models, and flag material the model has never seen.\",\"breadcrumb\":{\"@id\":\"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/matvision.eu\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Certainty of Uncertainty: When AI Models Are Confidently Wrong\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/matvision.eu\/de\/#website\",\"url\":\"https:\/\/matvision.eu\/de\/\",\"name\":\"Matvision\",\"description\":\"Extract value from waste with our multi-sensor robotic solution\",\"publisher\":{\"@id\":\"https:\/\/matvision.eu\/de\/#organization\"},\"alternateName\":\"MATVISION\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/matvision.eu\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/matvision.eu\/de\/#organization\",\"name\":\"Matvision\",\"url\":\"https:\/\/matvision.eu\/de\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/matvision.eu\/de\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/matvision.eu\/wp-content\/uploads\/2023\/03\/logo_arrow.png\",\"contentUrl\":\"https:\/\/matvision.eu\/wp-content\/uploads\/2023\/03\/logo_arrow.png\",\"width\":498,\"height\":320,\"caption\":\"Matvision\"},\"image\":{\"@id\":\"https:\/\/matvision.eu\/de\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/people\/Matvision\/61554439169848\/\",\"https:\/\/twitter.com\/matvisionEU\",\"https:\/\/www.linkedin.com\/company\/matvision\/\",\"https:\/\/www.facebook.com\/profile.php?id=61554439169848\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/matvision.eu\/de\/#\/schema\/person\/e2caf7f3467ba46137b3becf1626a2e4\",\"name\":\"Robert Baudinet\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/matvision.eu\/de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ea62b57fccbf968994a9f5bfed77bd5df2394b6803debada0eada1e2fcaaada9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ea62b57fccbf968994a9f5bfed77bd5df2394b6803debada0eada1e2fcaaada9?s=96&d=mm&r=g\",\"caption\":\"Robert Baudinet\"},\"description\":\"Hello, I'm Robert, co-founder of Matvision. Armed with a Master's in Engineering from ULi\u00e8ge, my professional journey spans over six years as an R&amp;D Engineer at the GeMMe laboratory. During this time, I actively collaborated with the recycling industry, evaluating various technologies to improve recycling practices. My expertise in sensor-based sorting has propelled me into the dynamic realms of #sensors, #robotics, #recycling, #rawmaterials, and #circulareconomy. Each blog article serves as an exploration of our groundbreaking work at Matvision, where we harness cutting-edge technology to reshape the future of recycling.\",\"sameAs\":[\"http:\/\/matvision.eu\",\"https:\/\/www.linkedin.com\/in\/robert-baudinet\/\"],\"url\":\"https:\/\/matvision.eu\/de\/author\/admin6576\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The certainty of uncertainty: when AI is confidently wrong","description":"A confidence score is not a probability. How to measure and correct miscalibration in AI sorting models, and flag material the model has never seen.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/","og_locale":"de_DE","og_type":"article","og_title":"The certainty of uncertainty: when AI is confidently wrong","og_description":"A confidence score is not a probability. How to measure and correct miscalibration in AI sorting models, and flag material the model has never seen.","og_url":"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/","og_site_name":"Matvision","article_publisher":"https:\/\/www.facebook.com\/people\/Matvision\/61554439169848\/","article_published_time":"2026-10-12T07:00:00+00:00","og_image":[{"width":928,"height":522,"url":"https:\/\/matvision.eu\/wp-content\/uploads\/2026\/10\/certainty-of-uncertainty-cover.png","type":"image\/png"}],"author":"Robert Baudinet","twitter_card":"summary_large_image","twitter_creator":"@matvisionEU","twitter_site":"@matvisionEU","twitter_misc":{"Verfasst von":"Robert Baudinet","Gesch\u00e4tzte Lesezeit":"12\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/#article","isPartOf":{"@id":"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/"},"author":{"name":"Robert Baudinet","@id":"https:\/\/matvision.eu\/de\/#\/schema\/person\/e2caf7f3467ba46137b3becf1626a2e4"},"headline":"The Certainty of Uncertainty: When AI Models Are Confidently Wrong","datePublished":"2026-10-12T07:00:00+00:00","dateModified":"2026-10-12T07:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/"},"wordCount":2384,"publisher":{"@id":"https:\/\/matvision.eu\/de\/#organization"},"keywords":["ai","model training","recycling","sorting"],"articleSection":["Sustainable Technology"],"inLanguage":"de"},{"@type":"WebPage","@id":"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/","url":"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/","name":"The certainty of uncertainty: when AI is confidently wrong","isPartOf":{"@id":"https:\/\/matvision.eu\/de\/#website"},"datePublished":"2026-10-12T07:00:00+00:00","dateModified":"2026-10-12T07:00:00+00:00","description":"A confidence score is not a probability. How to measure and correct miscalibration in AI sorting models, and flag material the model has never seen.","breadcrumb":{"@id":"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/matvision.eu\/de\/news\/the-certainty-of-uncertainty\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/matvision.eu\/"},{"@type":"ListItem","position":2,"name":"The Certainty of Uncertainty: When AI Models Are Confidently Wrong"}]},{"@type":"WebSite","@id":"https:\/\/matvision.eu\/de\/#website","url":"https:\/\/matvision.eu\/de\/","name":"Matvision","description":"Extract value from waste with our multi-sensor robotic solution","publisher":{"@id":"https:\/\/matvision.eu\/de\/#organization"},"alternateName":"MATVISION","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/matvision.eu\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/matvision.eu\/de\/#organization","name":"Matvision","url":"https:\/\/matvision.eu\/de\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/matvision.eu\/de\/#\/schema\/logo\/image\/","url":"https:\/\/matvision.eu\/wp-content\/uploads\/2023\/03\/logo_arrow.png","contentUrl":"https:\/\/matvision.eu\/wp-content\/uploads\/2023\/03\/logo_arrow.png","width":498,"height":320,"caption":"Matvision"},"image":{"@id":"https:\/\/matvision.eu\/de\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/Matvision\/61554439169848\/","https:\/\/twitter.com\/matvisionEU","https:\/\/www.linkedin.com\/company\/matvision\/","https:\/\/www.facebook.com\/profile.php?id=61554439169848"]},{"@type":"Person","@id":"https:\/\/matvision.eu\/de\/#\/schema\/person\/e2caf7f3467ba46137b3becf1626a2e4","name":"Robert Baudinet","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/matvision.eu\/de\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ea62b57fccbf968994a9f5bfed77bd5df2394b6803debada0eada1e2fcaaada9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ea62b57fccbf968994a9f5bfed77bd5df2394b6803debada0eada1e2fcaaada9?s=96&d=mm&r=g","caption":"Robert Baudinet"},"description":"Hello, I'm Robert, co-founder of Matvision. Armed with a Master's in Engineering from ULi\u00e8ge, my professional journey spans over six years as an R&amp;D Engineer at the GeMMe laboratory. During this time, I actively collaborated with the recycling industry, evaluating various technologies to improve recycling practices. My expertise in sensor-based sorting has propelled me into the dynamic realms of #sensors, #robotics, #recycling, #rawmaterials, and #circulareconomy. Each blog article serves as an exploration of our groundbreaking work at Matvision, where we harness cutting-edge technology to reshape the future of recycling.","sameAs":["http:\/\/matvision.eu","https:\/\/www.linkedin.com\/in\/robert-baudinet\/"],"url":"https:\/\/matvision.eu\/de\/author\/admin6576\/"}]}},"_links":{"self":[{"href":"https:\/\/matvision.eu\/de\/wp-json\/wp\/v2\/posts\/1860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matvision.eu\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matvision.eu\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matvision.eu\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matvision.eu\/de\/wp-json\/wp\/v2\/comments?post=1860"}],"version-history":[{"count":0,"href":"https:\/\/matvision.eu\/de\/wp-json\/wp\/v2\/posts\/1860\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/matvision.eu\/de\/wp-json\/wp\/v2\/media\/1856"}],"wp:attachment":[{"href":"https:\/\/matvision.eu\/de\/wp-json\/wp\/v2\/media?parent=1860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matvision.eu\/de\/wp-json\/wp\/v2\/categories?post=1860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matvision.eu\/de\/wp-json\/wp\/v2\/tags?post=1860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}