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
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.
