Food Quality Vault learning network
Food Quality VaultLearning Hub
Quick Answer

In brief: Describes how X-ray inspection finds contaminants that metal detectors miss. Electrons strike a tungsten target to produce photons, and denser materials absorb more, so glass, stone, rubber and calcified bone show as contrast on a grayscale image from a photodiode array. It also covers automated reject, and calibration of CCP units with test cards holding glass, ceramic and metal spheres plus radiation leakage checks.

Home / Pillar 9 / Module 9.5

Module 9.5: X-Ray Inspection: Physics, Detection Limits and Validation

X-ray generation, atomic density absorption, low-density contaminant detection (glass, stone, bone in food), and diode arrays.

By Nair Ajeet, Lead Author, Food Quality Vault Editorial Team · · Editorial governance

Food Quality Vault Updated November 2026 Reference context: CCP & X-Ray

What you will learn: X-Ray Inspection in Food

X-ray detection comes down to how much of the beam each material absorbs. This module uses the Beer-Lambert law and published absorption coefficients to calculate how visible a piece of glass or steel is against a food, explains why thick products hide small contaminants, how dual-energy imaging and detector types change what can be seen and what limits sensitivity. The programme-level view of X-ray is covered in Module 3.2. This guide now also covers what X-ray finds and misses, typical performance, validation and choosing between X-ray and metal detection in sections 8 to 13, so everything on this topic is in one place.

1. Attenuation: the Beer-Lambert law

When a narrow beam of X-rays passes through a material, the intensity falls exponentially with thickness: I = I₀ × e^(−μx), where I₀ is the incident intensity, x is the thickness and μ is the linear attenuation coefficient. μ depends on the material’s density and composition and on the photon energy. It is often listed per unit of density, as the mass attenuation coefficient μ/ρ, in cm²/g, so that μ = (μ/ρ) × ρ.

An inspection system measures how much of the beam reaches each detector element. A contaminant shows up when it changes the total attenuation along that path enough to stand out from the normal variation in the product.

2. Worked examples: glass and steel in a watery product

The following numbers use approximate mass attenuation coefficients at about 60 keV, a typical energy for food inspection. Water is about 0.206 cm²/g, with a density of 1, so μ is about 0.206 per cm. Soda-lime glass is about 0.25 cm²/g with a density of about 2.5, so μ is about 0.62 per cm. Iron and most steels are about 1.2 cm²/g with a density of about 7.9, so μ is about 9.5 per cm.

Consider a 2 mm glass fragment replacing 2 mm of a water-like product. The extra attenuation is (0.62 − 0.206) × 0.2 cm, about 0.083. The transmitted intensity changes by a factor of e^(−0.083), roughly 0.92, an 8 percent drop. For a 1 mm steel fragment, the extra attenuation is (9.5 − 0.206) × 0.1 cm, about 0.93, which is a factor of 0.39, a 61 percent drop. The same size of steel is therefore far more visible than the glass.

These numbers explain the sensitivity ranking found in practice. Metals are seen in fractions of a millimetre. Glass, stone and dense plastics need to be a millimetre or two. Anything with a density close to water, such as wood or rubber, produces almost no change at realistic sizes.

Figure 9.5 — X-Ray Generation, Atomic Density Absorption, Photodiode Array Detection, and Reject Workflow

1. X-Ray Tube Photon Beam Emission 2. Product Stream Density Differential 3. Diode Sensor Array Grayscale Image Capture 4. Automated Reject Contaminant Diverter

3. Why thick and variable products hide contaminants

Real products are not uniform. Suppose a product 50 mm thick varies in thickness by 5 percent, which is 2.5 mm of water equivalent. The extra attenuation from that change is 0.206 × 0.25 = 0.052, about 5 percent of the signal. That is comparable to the 8 percent drop caused by the 2 mm glass fragment in the example above. The software cannot easily tell a small thick spot from a small piece of glass.

Image processing reduces this by comparing each region with its neighbourhood and by learning the normal pattern of the product, but the physics sets a limit. As the product gets thicker or more variable, the minimum detectable contaminant gets bigger. Thin, flat presentation of the product, for example in a tray or a single layer on a belt, is one of the most effective ways to improve sensitivity without buying a new machine.

4. Photon energy and dual-energy imaging

Two interactions dominate at inspection energies. The photoelectric effect depends strongly on atomic number, rising roughly with the cube of Z, and falls rapidly with energy. Compton scattering depends mainly on electron density and changes slowly with energy. Low energies therefore make high-Z materials, such as calcium in bone, stand out more, while high energies penetrate thick products better but reduce contrast.

Dual-energy systems measure transmission in two energy bands, using either two detector layers or two beam spectra. Because materials of different atomic number change in different proportion between the bands, the software can separate a change in thickness from a change in material. The method improves detection of bone in meat, glass in thick products and some dense plastics, as described for bone in Module 3.4.

5. Detectors and image quality

  • Line-scan arrays. A row of photodiodes with a scintillator that converts X-rays to light. Cost-effective and standard in most systems. Resolution is set by pixel size, commonly from 0.4 mm down to 0.1 mm.
  • Direct-conversion detectors. Materials such as cadmium telluride convert X-rays directly to an electrical signal, with higher sensitivity and the ability to count photons and resolve energy.
  • Tube power and current. A higher voltage penetrates thicker product, and a higher current increases signal and reduces noise, but both are limited by cooling and by radiation shielding requirements.

Sensitivity is also limited by noise, which arises because X-ray photons arrive randomly. Doubling the signal by averaging or raising the current reduces relative noise by about 40 percent, which is why dwell time at higher line speeds matters. The faster the belt, the fewer photons are collected per pixel, and the poorer the detection.

6. Practical consequences for validation and buying

  • Test with the contaminants of concern, not only steel: glass, ceramic and dense plastic, in sizes that match the control limit.
  • Place test pieces at the thickest and most difficult part of the product.
  • Validate at the real line speed, as detection falls when speed rises.
  • Ask suppliers to demonstrate detection on your own product and packaging, with results in writing.
  • Where a customer or standard requires a sensitivity that physics does not allow for your product, solve the problem upstream by thinning the product stream, or inspect before packing.

Example scenario (illustrative)

A ready-meal plant buys an X-ray system after a supplier quotes a sensitivity of 1.0 mm for glass. On the plant’s 60 mm thick lasagne, the system detects 2 mm glass only 40 percent of the time. A calculation like the one in section 3 shows that the variation in thickness of the pasta layers alone masks a piece that small. Changing the layout so that trays are inspected before the top layer of sauce is added, and using a dual-energy detector, raises detection of 2 mm glass to 100 percent in validation.

7. Safety and regulatory notes

The physics also explains the safety design. The tube’s energy, in tens of kilovolts, is low compared with medical equipment, and the beam is confined to a fan and absorbed by lead shielding and curtains around the tunnel. Interlocks cut the beam when a door is opened. Regulations vary by country, but they usually require registration, periodic leakage surveys by a qualified person and training for staff. Product does not become radioactive, and the dose it receives is tiny compared with food irradiation for preservation.

8. How an X-ray inspection system sees

An inspection system passes the product beneath a fan-shaped beam of low-energy X-rays. A line of detectors beneath the conveyor measures how much of the beam gets through. Dense or thick material absorbs more X-rays and appears darker in the image. Software compares the picture of each pack with what a normal pack should look like and flags regions that are denser than expected.

The principle is density contrast. Glass, stone, bone, metal and some rubbers and plastics are denser than the water, fat and carbohydrate that make up most food, so they stand out. Detection is therefore not a matter of material type but of how different the contaminant is from the product around it, and how much of the beam it blocks.

9. What X-ray finds and what it does not

Typical targets are metal of any kind, including in foil packs, glass fragments, ceramic, stone, dense plastics and rubber, and calcified bone. Because it measures density, it also detects missing or broken items, incorrect fill and underweight packs, and it can count components in a multipack. Many plants use these extra functions to replace separate checkweighers or visual checks.

The blind spots matter equally. Low-density contaminants such as wood, thin plastic film, hair, paper, insects and cartilage have almost the same density as food and are not reliably detected. A foreign object lying in a thick product is harder to see than one lying in a thin layer, and objects whose shape is thin in the direction of the beam, such as a flat flake of glass lying on its side, may be missed. Sensitivity is therefore described for specific contaminants in specific products, never as one number for the machine.

10. Typical detection performance

Performance depends heavily on the product. As broad illustrations, in a thin, uniform product such as a flat bagged snack, modern systems may find stainless steel, glass and stone in the range of 0.5 to 2 mm. In a thick, mixed product such as a ready meal or a chunky sauce, detectable sizes may rise to 3 mm or more. Dense, variable products like bone-in meat or a tray of mixed vegetables produce a noisy background that limits sensitivity.

Manufacturers will quote figures, but they come from ideal test products. The only figures that count are those found by testing your own product, with your own packaging, at your own line speed.

11. Validating and verifying X-ray inspection

Validation follows the same logic as for metal detectors. Test pieces made of stainless steel, glass or ceramic, and sometimes dense plastic or stone, in sizes that match the control limit, are placed in the product at worst-case positions: the thickest part of the pack, near edges and at different orientations. The system should detect every one in repeated passes, and the software settings that achieve this, often called the product recipe, are locked and recorded.

Routine checks mirror those for metal detection: test pieces at start-up, at intervals, at changeover and at the end of a run, with reject verification each time. Because the image-processing software can be adjusted, access to recipes should be controlled, and any change should require authorisation and revalidation.

  • Create a separate recipe for each product, pack size and fill pattern.
  • Use test pieces appropriate to the contaminants you are targeting, not only metal.
  • Check detection at the thickest part of the product, which is the worst case.
  • Verify the reject mechanism and its bin each time, as with a metal detector.
  • Review reject images regularly, to learn what is being found and to spot false rejects.

12. Radiation safety in plain terms

The word radiation worries some staff and customers, so the basic facts should be understood and explained. Inspection X-ray machines generate X-rays only when switched on, and they stop when power is off. The product does not become radioactive. The doses delivered to food are extremely small, far below the levels used for irradiation to preserve food, and the cabinets are shielded with lead so that leakage outside the machine is minimal, typically within natural background limits.

Safety is built into the design and the procedures. Interlocks on access doors switch off the beam, lead curtains at the tunnel entrance and exit contain stray radiation, and warning lights show the status. Regulations vary by country, but they usually require registration or a licence, a radiation survey on installation and at set intervals, an appointed person responsible for safety and training for staff who work near the machine. Maintenance staff must never bypass interlocks.

13. Choosing between X-ray and metal detection

Neither system is better in all cases. The decision depends on what contaminants are realistic in your process, how the product is packed and what you can afford.

  • Metal only a concern, simple dry product, no foil: a metal detector is often the cheaper and sufficient choice.
  • Metallised film, trays or cans: a metal detector is unsuitable, so X-ray is needed.
  • Glass in jars, stone in vegetables or bone in meat: X-ray is the only inspection technology that detects them reliably.
  • Very wet or salty products: X-ray avoids the product-effect problem that limits metal detectors.
  • Both risks present: many plants use a magnet or metal detector early in the process and X-ray at the end.

Example scenario (illustrative)

A producer of pasta sauce in glass jars has used a metal detector for years, but a customer complaint reports a glass chip in a jar. The detector could never have found it. After a risk review, the plant installs an X-ray system after capping. The validation shows reliable detection of 2 mm glass in the centre of the jar, but not of thin flakes lying flat. The plant therefore adds an empty-jar inspection before filling, which removes cracked jars at the source, and treats the X-ray as the last line of defence, not the only one.

Key takeaways: X-Ray Inspection in Food

X-ray visibility follows from attenuation: dense materials such as steel are seen at fractions of a millimetre, glass needs a millimetre or two, and low-density material is nearly invisible. Thick, variable products raise the minimum detectable size, dual-energy imaging helps, and validation must use the right contaminants, positions and line speed.

Frequently Asked Questions

What is the Beer-Lambert law in X-ray inspection?

It states that transmitted intensity falls exponentially with thickness, I = I₀e^(−μx), where μ is the attenuation coefficient of the material at the photon energy used.

Why is steel easier to see than glass on X-ray?

Steel has a much higher density and atomic number, giving a far larger attenuation coefficient, so even 1 mm of steel blocks much more of the beam than 2 mm of glass.

Why does product thickness variation limit sensitivity?

A small change in thickness changes the signal about as much as a small contaminant does, so the software cannot reliably separate the two.

What does dual-energy X-ray add?

It measures transmission at two energies so that changes in material can be separated from changes in thickness, which improves detection of bone, glass and dense plastics in variable products.

What contaminants can X-ray inspection not detect reliably?

Low-density materials such as wood, thin plastic, hair, paper, insects and cartilage, which are close in density to food, along with thin flat fragments lying in an unfavourable orientation.

Does X-ray inspection make food radioactive?

No. The system produces X-rays only while switched on, and the dose to the product is very small. Food does not become radioactive.

Why should test pieces be placed in the thickest part of the product?

Detection is hardest where the product is thickest, since the contaminant has the lowest contrast there. If the system finds it in the worst-case position, it will find it elsewhere.

When is X-ray better than a metal detector?

When packaging contains foil or metal, when the product is wet or salty, or when the contaminants of concern are glass, stone or bone, which metal detectors cannot find.

Lesson details: X-Ray Inspection in Food

Facts about this module
MeasureDetail
PillarPillar 9: Foreign Object Control
PositionModule 9.5 of 10 in this pillar
Reading timeabout 13 minutes at 200 words per minute
Practice quiz120 questions in four tiers; you can test yourself after reading
Last updated

Key terms: X-Ray Inspection in Food

Atomic number
A property that, with thickness, governs how strongly a material absorbs X-ray photons, so denser objects appear darker.
Photodiode array
A linear detector beneath the conveyor that converts transmitted X-ray photons into a grayscale digital image.
Density differential
The difference in X-ray absorption between a contaminant and the food around it, which shows as a high-contrast shadow.
Low-Z object
A foreign body such as glass, bone, stone or dense plastic with low atomic number and density that metal detectors cannot find.
Photodiode sensor array
A linear detector under the conveyor that records X-ray attenuation as a grayscale image so dense contaminants show as shadows.
Safety interlock
An electro-mechanical device, with lead-lined curtains, that instantly stops X-ray emission when inspection access doors are opened during production.

Sources and further reading

Nair Ajeet, Lead Author at Food Quality VaultNair Ajeet, author profile

About the author

Nair Ajeet · Lead Author, Food Quality Vault Editorial Team

Lead QC & ISO Certification Planner with more than 10 years in food safety and quality control. MSc Food Science, ASQ Certified Food Safety and Quality Auditor (CFSQA), HACCP Level 4. Experience in fresh-produce inspection, receiving QC, warehouse quality management and production QC. Read the full profile · LinkedIn

Technical Evidence & Practical Application

  1. FDA — HACCP Principles and Application Guidelines
  2. FDA — Food Code 2022 and updates
  3. Codex Alimentarius — General Principles of Food Hygiene (CXC 1-1969)