Home › News › Foreign object detection
PBS News · 23 November 2026 · By Indika Mahaganiachchige

Which method finds which foreign object in food

Metal detection, X-ray inspection, magnetic separation and colour sorting each answer a different hazard, and no one of them finds everything. This article sets out which method finds which foreign object on a Sri Lankan food line, where artificial intelligence genuinely helps, and how to prove the choice on your own product rather than on a brochure.

Call 077 132 3424WhatsApp usBook a consultation →

Ask an engineer

Message us on WhatsApp.We're online now

Chat on WhatsApp
  • Talk directly to our engineers
  • Price and options for your site
  • No obligation
Or call 077 132 3424

Need a formal quotation by email? Use our quote form

The short answer

No single machine finds every foreign object in food. Metal detection finds metal. X-ray inspection finds dense material — glass, stone, bone, shell and some hard plastics — inside a sealed pack. Magnetic separators pull tramp iron out of a bulk flow before it ever reaches a detector. Colour sorting removes discoloured matter, husk, stalk, string and shell from loose product. Each one answers a different hazard, and the right combination is decided by what your own product is, how it flows and where it is packed — not by a table on a supplier’s website.

What settles it in practice is a test on your own product on your own line. That is the part a foreign manufacturer’s guide cannot do for a factory in Sri Lanka, and it is where PBS starts.

Which method finds which foreign object

Metal detection
Ferrous, non-ferrous and stainless steel, in loose product, in packs, in cartons and in filled sacks. It is the only method that reads metal reliably through most product and most packaging, and the one auditors expect to see on a critical control point.
Food X-ray inspection
Dense foreign matter inside a sealed pack: glass, stone, ceramic, bone, shell, metal and some hard plastics. It also reads a pack that metal detection cannot — foil and metallised film — and can check fill level and missing pieces at the same time.
Magnetic separators
Tramp iron in a free-flowing or gravity-fed bulk stream. A separator removes the metal rather than rejecting the product around it, so it belongs upstream, before the detector that proves the line is clean.
Colour sorting
Discoloured grain and leaf, husk, stalk, stone of the same density as the product, shell, string and plastic fragments that X-ray cannot separate from the food around them. It works on loose product, before packing.
AI UHD colour sorting
The same job on product where the defect and the good material look almost alike, and where a conventional sorter either passes the defect or throws away too much good product with it.
Free-fall and pipeline detection
Metal in powder, granules and pumped product, checked in the fall or in the pipe rather than on a belt, so the check happens at the last point before filling.

Where AI and machine learning actually fit

Most of what is sold as artificial intelligence in foreign object detection is image analysis that has been trained on a particular product. It earns its place in two situations. The first is sorting, where the machine has to tell a defect from good product that looks nearly identical — discoloured tea leaf, shell against kernel, stone against grain — and a learned model separates them far more finely than a fixed colour threshold. The second is X-ray image analysis, where a trained model holds detection on a product whose density varies from pack to pack instead of being tuned to an average and missing both ends of the range.

What it does not do is remove the need for the method to suit the hazard. A learned model on an X-ray system still cannot see a low-density plastic that is the same density as the food around it, and no model turns a metal detector into a glass detector. The honest question to put to any supplier offering AI is a simple one: on our product, with our contaminant samples, what does it find and what does it miss? The answer should come from a test, not a brochure. PBS’s Industry 5.0 readiness page sets out where this fits for a Sri Lankan factory.

How to prove a method on your own product

A method is only as good as the evidence that it works on what you make. Three things establish that, and all three are ordinary working practice rather than a special project.

  1. Step 1

    An engineer looks at the line

    A PBS engineer visits the site, sees the product, the flow rate, the packaging and the point where a reject can actually be removed, and writes a site report with recommendations and a written quotation. The visit is LKR 25,000 + VAT, paid before the inspection and then deducted from the final invoice amount when the order is placed. Book it from the engineer visit page.

  2. Step 2

    The detection is set and proved on your product

    Sensitivity is set against the product itself, because wet, salted, dense and foil-packed product all behave differently. What the machine finds and what it does not is established there, with the product in front of the engineer, and recorded.

  3. Step 3

    Routine checks are put in writing

    Certified test cards at LKR 25,000 + VAT per card, with free islandwide delivery, give the QA team a documented check at the start of a shift, after a stoppage and at the end of a run. The detectors PBS supplies log every pass and every reject, traceable by lot, line, shift and hour, which is what an auditor or an export buyer asks to see.

What this looks like on a Sri Lankan line

On a bulk tea, spice or grain line the order is usually separation first, then sorting on the loose product, then detection before or after packing, with the pack check as the record that leaves the factory. On a packed line with foil or metallised film, X-ray does the work that metal detection cannot. On a wet seafood or coconut line the product effect is the problem, and the setting matters more than the machine. The full layout for loose product is on the bulk food foreign object detection page, and the hazard-by-hazard view is on the foreign body and contaminant detection guide.

PBS supplies, installs, calibrates and services all of it islandwide from Colombo, chooses the brand and model that suits each project rather than being tied to one range, and quotes machines on request for the line in question. Its food clients include Venture Tea (Pvt) Ltd, Imperial Teas (Pvt) Ltd, Imperial Spices (Pvt) Ltd, Cinnatopia (Pvt) Ltd, Joint Agri Products Ceylon (Pvt) Ltd, Waguruwela Oil Mills (Pvt) Ltd, Sena Mills Refineries (Pvt) Ltd, Global Sea Foods (Pvt) Ltd and Lanka Seafoods (Pvt) Ltd.

Foreign object detection in food: common questions

Which foreign objects can a metal detector not find?

Anything that is not metal. Glass, stone, bone, shell, ceramic, wood, rubber and most plastics pass a metal detector untouched, whatever its sensitivity setting. Those hazards need X-ray inspection, colour sorting or a physical separation step instead, which is why a HACCP plan that lists glass or stone as a hazard cannot be closed out with a metal detector alone.

Does X-ray inspection find every plastic?

No. X-ray reads density, so it finds dense plastics and misses low-density ones that are close to the density of the food around them. The same applies to thin flakes and to pieces lying flat in the beam. Any supplier who tells you X-ray finds all plastic is selling rather than advising; ask for a test with your own contaminant samples and your own product.

What finds foreign objects in bulk tea, spice or grain before packing?

On loose product the usual order is a magnetic separator to pull tramp iron out of the flow, colour sorting to remove discoloured matter, husk, stalk, shell and string, and a free-fall or pipeline metal detector at the last point before filling. The packed check then becomes the record that leaves the factory rather than the only line of defence.

Where do AI and machine learning genuinely help?

In two places. In sorting, where a learned model separates a defect from good product that looks almost the same, far more finely than a fixed colour threshold. And in X-ray image analysis, where a trained model holds detection steady on product whose density varies from pack to pack. Neither changes what the underlying method can physically see.

How do we prove a method works on our own product?

By testing it on that product. A PBS engineer visits the line, sees the product, the flow and the reject point, and sets and records what the detection finds and does not find on your own material. Certified test cards then give the QA team a documented check at the start of a shift, after a stoppage and at the end of a run.

Do we need more than one method?

Usually, yes, if the hazard analysis lists more than one kind of foreign object. Metal detection and X-ray are complementary rather than alternatives, and on bulk lines separation and sorting do work that neither of them can. What matters is that each hazard in the HACCP plan has a method behind it and evidence that the method works.

Who installs, calibrates and services this equipment in Sri Lanka?

PBS supplies, installs, commissions, calibrates and services contaminant detection equipment islandwide from Colombo, with its own senior technicians for electronics, electrical and mechanical work. Machines are quoted on request for the line in question, and full specifications are set out in the written quotation.

Request a formal quotation

Three quick details are enough to start. Add your product, pack and line speed if you have them and the quote will be exact. Your price is quoted for your exact project, so you never pay for options you do not need.

WhatsApp: 077 132 3424Call: 077 132 3424Email: pbs.metaldetectors@gmail.comBook an engineer visit →Book a consultation →
Visit: Business Intelligence International (Pvt) Ltd., Level 26, East Tower, World Trade Centre, Echelon Square, Colombo, WP 00100, Sri Lanka
Add product details for a faster, more exact quote (optional)

Written quotation. Fast reply on WhatsApp. No obligation. We use your details only to answer your enquiry.

In a hurry? Talk to an engineer now.Call 077 132 3424