# Deep learning reads the X-ray image of every food tray or piece to find metal, glass, bone and other foreign bodies and tell them apart from normal product: contaminant detection from 62% to 99.9% and false alarms from about 20% to under 1% at Milarex (Milarex)

> Deep learning on food X-ray images finds foreign bodies: detection from 62% to 99.9% and false alarms from 20% to under 1% at salmon processor Milarex.

- Canonical URL: https://aiagentsformanufacturing.com/use-cases/ai-xray-foreign-body-contaminant-detection-food-false-rejects-deep-learning-milarex/
- Department: Quality (https://aiagentsformanufacturing.com/departments/quality/)
- Evidence level: Verified. Real deployment at a named or precisely described company, with a measured result from a primary source.
- Added: 2026-12-04
- Last updated: 2026-12-04
- Publisher: AI Agents for Manufacturing (https://aiagentsformanufacturing.com)
- Manufacturers named: Milarex (https://aiagentsformanufacturing.com/companies/milarex/)
- AI tools deployed: Firecrux X-Ray QC (Greenlogic) (https://aiagentsformanufacturing.com/tools/firecrux-x-ray-qc-greenlogic/)
- Glossary terms: Deep learning and neural networks (https://aiagentsformanufacturing.com/glossary/#deep-learning), False rejects and false calls (https://aiagentsformanufacturing.com/glossary/#false-reject)

## Role

Deep learning models on the images of in-line food X-ray machines that score each tray or piece as clean, contaminated or unusual, reject contaminated product, send doubtful cases to a person and learn from operator confirmations. Typical users: food safety and quality manager (FSQA), production manager in a meat, fish, poultry or packaged food plant, X-ray and inspection equipment owner, HACCP team, line supervisor

## The problem

Food plants run X-ray machines to catch foreign bodies such as metal, glass, stone, ceramics and bone. Classic X-ray inspection compares density against thresholds, and natural product variation (bone, cartilage, overlap, thickness, ice, seasoning clumps) looks like a contaminant, so the machine either rejects good product or misses small or low-density objects. At Milarex, a large salmon processor in Poland, the previous X-ray system caught 62% of contaminants such as metal, glass and ceramics, and false alarms of about 20% stopped the lines for almost two hours a day (Firecrux and Greenlogic, the developers). A Japanese processor of chicken breast, thigh and tenderloin received several complaints each month about bones missed by its X-ray machine (System Square, the vendor; customer not named). GreyscaleAI describes the same problem on poultry lines: cartilage, ligament, tendon and overlap create signals that resemble bone, and a broad threshold rejects normal product.

## How AI helps

At Milarex, the developers spent about six months classifying a large database of X-ray images to train deep learning models. Two neural networks run side by side, one trained on clean products and one on contaminated ones: if the clean model scores highest the tray moves on, if the scores reverse the tray is rejected, and if the two scores are close (a contaminant outside the tested range or sabotage) the tray goes to a person. The models run next to the line on GPU, CPU or VPU hardware with the existing X-ray generators and line-scan detectors. Operators mark false alarms and confirmed detections in the scanner software so the models keep learning, and a central server manages every machine. Continuous scanning was added in 2021, so a contaminated tray no longer stops the line. At the Japanese chicken processor, System Square installed a dual-energy X-ray machine with AI inspection that builds its classification model from inline learning; it detected small hard bones of around 3 mm, sharp clavicle fragments and flat triangular bones, and the vendor also advised moving inspection from frozen to thawed chicken. GreyscaleAI trains application-specific models on production X-ray images labelled to separate true bone from cartilage, ligament, tendon and normal texture, and gives quality staff a review record of each event.

## Step by step

1. Collect a few weeks of X-ray data per line: products, line speed, rejects per shift, the share of rejects that were good product on re-inspection, test-piece results and customer complaints about foreign bodies.
2. Compute the cost of false rejects (product, rework, downtime) and the number of misses found later, by product and line.
3. Ask your X-ray supplier whether images can be exported and labelled, and build a library of clean, contaminated and lookalike images (bone, cartilage, overlap, ice, seasoning).
4. Trial the AI model in parallel with your current settings, without changing rejects, and compare its decisions with re-inspection and seeded test pieces.
5. Agree with food safety on the validation protocol (test pieces by type and size, sensitivity limits, review of doubtful cases) before letting the model decide rejects.
6. Track detection on test pieces, false reject rate, downtime, line speed and complaints for three months before extending to other lines or products.

## Tools

- Firecrux X-Ray QC (deep learning on X-ray images, developed by Greenlogic): used on the salmon inspection lines at Milarex
- Other tools to evaluate: System Square dual-energy X-ray with AI inspection, GreyscaleAI, AI functions of X-ray machines from your inspection supplier (Mettler-Toledo, Ishida, Anritsu, Eagle, Sesotec and others), or a model built by your own data team on images exported from your X-ray machines
- To start without new software: a few weeks of reject logs and test-piece results from your X-ray machines and any LLM (ChatGPT, Claude, Copilot, Gemini) with the prompt below to size false rejects and misses and plan a trial

## Result

Milarex (Firecrux and Greenlogic, the developers): contaminant detection rose from 62% to 99.9%, false alarms fell from about 20% to under 1% against a target of 5%, and line speed rose from 1.2 to 2 m/s (66.6% faster), moving the bottleneck to another part of the process; the first machine went live in 2019, 13 more followed by 2022 and over 330 million salmon trays have been scanned since 2019. Unnamed Japanese chicken processor (System Square, the vendor): customer complaints about bones were halved after the AI-capable dual-energy X-ray replaced the old machine and inspection moved to thawed chicken, which also greatly reduced false detections. GreyscaleAI (the vendor, anonymised poultry application at 100 feet per minute): fewer false rejects than the prior inspection approach while keeping bone sensitivity; no figure is published.

As reported by the source; most figures are vendor or self-reported and not independently verified.

## Human review: cautions

- The Milarex figures come from the developers of the system (Firecrux and Greenlogic), with a quote from Milarex's CEO; no independent measurement is published.
- The chicken processor is not named, and System Square says the halving of complaints came from the new machine and the switch to thawed inspection together, not from AI alone.
- The GreyscaleAI case is anonymised and gives no figure.
- X-ray only sees objects denser than the product; AI improves discrimination but does not make plastics, wood or soft bone visible if the image contrast is not there.
- Foreign body detection is a critical control point in many HACCP plans: validate any AI model with test pieces by material and size, and keep doubtful cases going to a person.

## Try it yourself (prompt)

```text
You are a food safety and quality engineer. I want to know how much our X-ray foreign body inspection costs us in false rejects and misses, and whether deep learning on the X-ray images is worth a trial.

I will paste: (1) 2 to 8 weeks of X-ray data per line [date, shift, product, line speed, units inspected, rejects, rejects found good on re-inspection, downtime caused by rejects]; (2) test-piece results [material, size, detected or not]; (3) foreign body complaints and their material and size; (4) our costs [value of a rejected unit, re-inspection labour per hour, value of one hour of line time].

Do this:
1. Compute the false reject rate and its monthly cost by line and product, with your calculation.
2. List the products and conditions (frozen, thickness, overlap, seasoning, packaging) with the most false rejects.
3. Summarise the misses (test pieces and complaints) by material and size, and say which ones X-ray can physically see.
4. Estimate the savings range if false rejects fell by half without losing sensitivity, and show your assumptions.
5. Draft a parallel trial plan for one line (image collection and labelling, shadow mode, validation with test pieces, sign-off by food safety).
6. List questions for suppliers (image export, training data needed, validation method, audit trail, what happens to doubtful cases).

Use only the data I paste in; if something is missing, write 'not found' or list it as a question instead of guessing. Do not send, order, post or change anything in any system: produce drafts for my review and approval.
```

## Related use cases

- [AI reads X-ray images of aluminium castings to find porosity and shrinkage, on existing inspection systems (Hengst SE, Fraunhofer IIS)](https://aiagentsformanufacturing.com/use-cases/ai-xray-casting-porosity-automatic-defect-recognition-hengst-fraunhofer/)
- [Deep learning optical sorters spot hard defects in fruit and nuts on the line, so food plants pack cleaner product with fewer hand sorters (Chelan Fruit, Kings River Packing, The Almond Company)](https://aiagentsformanufacturing.com/use-cases/ai-deep-learning-optical-sorting-grading-food-defects-chelan-kings-river-almond-company/)
- [AI cameras above the meat cutting tables measure each cut and each table's pace in real time, so supervisors coach on the spot and beef yield rises by 0.5% per carcass (Cargill, JBS USA)](https://aiagentsformanufacturing.com/use-cases/ai-computer-vision-meat-cutting-yield-trim-feedback-carcass-cutting-plans-cargill-jbs/)
- [AI reads ultrasonic inspection scans of composite wind turbine blades and aircraft structures and highlights the areas an inspector must check: blade scan review cut from six hours to one and a half at Siemens Gamesa, evaluation time down up to 24% in Spirit AeroSystems' pilot (Siemens Gamesa, Spirit AeroSystems)](https://aiagentsformanufacturing.com/use-cases/ai-ultrasonic-ndt-scan-analysis-composite-wind-turbine-blades-aerostructures-siemens-gamesa-spirit-aerosystems/)

## Sources

- https://firecrux.com/use-cases/milarex-x-ray-inspection/
- https://greenlogic.eu/use-cases/smart-x-ray-inspection-system/
- https://www.system-square.com/en/case-studies/chicken-bulk_sxm/
- https://www.greyscaleai.com/resources/case-studies/bone-detection/

## How to cite this case

AI Agents for Manufacturing. (2026). Deep learning reads the X-ray image of every food tray or piece to find metal, glass, bone and other foreign bodies and tell them apart from normal product: contaminant detection from 62% to 99.9% and false alarms from about 20% to under 1% at Milarex (Milarex). Evidence level: Verified. Last updated December 4, 2026. https://aiagentsformanufacturing.com/use-cases/ai-xray-foreign-body-contaminant-detection-food-false-rejects-deep-learning-milarex/

Short form: Milarex, as reported in "Deep learning reads the X-ray image of every food tray or piece to find metal, glass, bone and other foreign bodies and tell them apart from normal product: contaminant detection from 62% to 99.9% and false alarms from about 20% to under 1% at Milarex", AI Agents for Manufacturing (Verified evidence), https://aiagentsformanufacturing.com/use-cases/ai-xray-foreign-body-contaminant-detection-food-false-rejects-deep-learning-milarex/

---
Please cite the canonical URL: https://aiagentsformanufacturing.com/use-cases/ai-xray-foreign-body-contaminant-detection-food-false-rejects-deep-learning-milarex/
