A pack of biscuits sits at the self-checkout on a Saturday afternoon. The red laser reads thirteen digits and the till immediately knows which price to charge. A phone reads exactly the same stripes seconds later and shows an ingredient list, a product photo and a verdict for three scan profiles. It looks as if both devices saw the same thing. They did not. The till recognised a trade item. After reading, the phone only began a long journey through databases, photos, human input and derived analyses.

The beep at the till is not a readout of the product

An ordinary EAN or UPC code usually contains a Global Trade Item Number, a GTIN. That number is designed to uniquely identify a type of trade item when it is ordered, transported, stored or paid for. It does not contain the ingredient list, the nutritional values or the origin of the lecithin. Even the price is usually not in it. The shop's software uses the number as a lookup key and retrieves the price from its own file. A food app does the same, but consults a different database.

The last digit of a GTIN is a check digit. It allows a scanner to establish whether the number has been constructed validly according to the calculation rule. It does not prove that the packaging is authentic, that the database returns the right product or that the ingredients are still current. A technically valid key can therefore open an outdated file without any problem. The convincing speed of the beep masks how many assumptions still follow.

Even the first digits tell a different story than is often thought

There is a persistent habit of reading the first three digits of an EAN code as the country of production. A number that begins with a Dutch range would then have been made in the Netherlands. GS1 explicitly contradicts this. The prefix refers to the GS1 organisation that issued the number range; a company can then have its products made anywhere.

That small misunderstanding is illustrative. People look for meaning in the digits because the barcode looks visually closed and authoritative. But the number is deliberately kept low in meaning. Its strength is not that it describes a product, but that millions of parties can use the same key to attach their own information to it. The supermarket attaches price and stock, the manufacturer logistics data, a researcher nutritional values and an open database photos and ingredients. The barcode does not automatically unite those worlds; it merely gives them a common point of attachment.

An identity for the shelf, not for each individual pack

All packs of the same trade variant usually carry the same GTIN. The pack that came off the line this morning and the pack produced three months ago are, to the till, the same kind of thing. For traceability there is therefore a second layer: the batch or lot code. The combination of GTIN and lot can distinguish a production group, for example when only one production day needs to be recalled. A serial number can even point to a single individual item.

On consumer packaging, however, the classic one-dimensional checkout code traditionally reads mainly the GTIN. The small lot code and best-before date, printed elsewhere, are often not picked up in an ordinary phone scan. That means an app usually does not know which specific pack someone is holding. It recognises the family, not the individual. Precisely during a transition between old and new recipes, that difference is decisive: two packs can sit on the shelf at the same time, carry the same barcode and still not have the same ingredients.

When does a new recipe deserve a new number?

GS1 has rules for changes to existing products. According to the international GTIN Management Standard, a change in composition or function requires a new number when two conditions coincide: legally required information on the packaging changes and the brand owner expects that consumers or trading partners need to be able to tell the old and new product apart. The addition of nuts as a new allergen is mentioned in the standard as an example for which a new GTIN is needed.

That rule sounds watertight, but the wording shows that product identity is not a law of nature. Someone has to judge whether a difference deserves to be distinguished. Not every different supplier, changed proportion or renewed declaration necessarily leads to a new number. Moreover, a standard describes how the system is supposed to be managed, not that every pack in every market is always handled flawlessly according to that standard. Researchers who use branded-product databases report precisely this stubbornness: sometimes an almost unchanged product gets a new number, while in other cases an important change in composition lives on under the existing number.

The transition period has no neat date boundary

Suppose a manufacturer changes a recipe on 1 October. From that day the factory can make the new version, but old stock is still at distribution centres, supermarkets and consumers' homes. Online product pages may already have been updated while the local shop still sells the old packaging. Or the other way round: the new packaging is on the shelf while an external database only knows last year's photo. There is no worldwide moment at which all representations switch at once.

For pricing systems that is often manageable: both versions cost the same and are restocked as the same item. For a peanut allergy, a dairy-free profile or a halal check, the difference can be fundamental. The database wants to keep one current answer under one key, but the physical market temporarily contains multiple truths. The problem is then not simply “old data”. It is a collision between the linear time of a database and the overlapping time of a supply chain.

A digital product page is itself a history too

Modern product databases store changes and can combine data from different sources. That matters: an error can be corrected and the development of a record remains reconstructable. The ordinary product API, however, usually delivers to a scanner the latest composite version. That can consist of data added at different moments: a manufacturer import, a user's photo, manually retyped text and automatically derived tags.

Language comes into it as well. One barcode can have packaging photos for several markets and languages. A French ingredient photo is not necessarily as recent as the Dutch front. Some databases therefore flag missing or outdated photos. A product record has no simple date of birth: each field effectively has its own age, source and degree of evidence, even when an app merges everything into one neat product card.

A photo is evidence, but also a time capsule

A clear photo of the ingredients is often stronger evidence than a separately entered label. It shows what was actually on a package. Even so, the photo does not automatically tell you where and when that item was bought, which batch it came from or whether the same barcode now carries a different recipe. Without that context, excellent evidence from yesterday can become a misleading answer for today.

Automatic text recognition adds another layer. OCR can make an ingredient list available more quickly, but has to cope with curved packaging, gloss, hyphenation, small print and multiple languages. After that, words have to be normalised: “weipoeder”, “whey powder” and local spellings, for example, have to be linked to the same meaning. Each step can add value and each step can introduce a new error. The end result looks like a single fact, while it is actually a chain of interpretations.

Why more data sources sometimes increase the conflict

It is obvious to resolve uncertainty by collecting more sources. Manufacturer, supermarket, open database and user can together form a richer record. But when two sources show different ingredients, a question arises that numbers cannot answer: which source belongs to the pack in your hand? The latest timestamp may be an administrative correction on an older package. The official source may already be ahead of an introduction. A recent consumer photo may in fact document a leftover from a small shop.

That is why source ranking alone is not enough. A safe analysis also needs time, market and type of evidence. A concrete ingredient photo from the same country is something different from an automatic nutrition label; manufacturer data supplied directly is something different from a derived vegan tag. When sources clash, “uncertain” is sometimes more accurate than blindly choosing the source that looks most authoritative. The conflict itself is then relevant product information.

The next barcode can open a smaller time window

Retail is preparing for a transition to two-dimensional codes. QR codes and Data Matrix symbols within the GS1 system can carry a batch number, serial number or expiry date in addition to the GTIN. A scan could therefore ask not only “which product type is this?”, but also “which lot does this item come from?”. That can make recalls more precise and, in theory, help to tell recipe versions apart better.

Even so, a richer code is not a magic ingredient list either. The code carries identifiers and attributes or refers via GS1 Digital Link to digital information. Someone still has to publish and maintain that information and link it correctly to the lot. A dynamic link can be more up to date than text that has been on a package for years, but it can also change afterwards. The technology shrinks the distance between object and file; it does not abolish the difference between the two.

What an honest scanner does with this imperfection

A scanner does not need to burden the user with database theory on every shopping trip. The design can, however, respect the limits. Ingredients and allergens weigh more heavily than automatically derived free-from labels. A trace is not treated as a deliberate ingredient. Contradictory fields are not smoothed into a green tick. If data is missing or suspect, the package in your hand remains the decisive source.

Currency can also become more visible: when was the ingredient photo taken, for which language or market does it apply and are there several recent versions? An app can specifically ask users to add a new photo when the evidence is old, instead of merely saying that a product was “not found”. That turns the scan from an oracle into a well-organised investigation: fast where it can be, cautious where the key promises more certainty than the file behind it holds.

The quiet choice behind every scan

The barcode has two lives. In logistics, stability is its greatest virtue. Boxes, prices, orders and stock keep talking to each other because the same item stays recognisable. In a personal food analysis, that same stability can hide a changed reality. One world wants continuity; the other wants to see every relevant change immediately.

When a phone says “permitted” after a single beep, we do not see the work behind that word: number management, product photography, data entry, revisions, translation, taxonomy and decision rules. The real intelligence of a food scanner therefore lies not in pretending the barcode knows everything. It lies in recognising what kind of identity the code proves, what history the database has attached to it and when the pack in your hand may tell a different story.

Sources

Custom scan profiles

See who it suits at once

After one scan, Emily immediately sees who the product is suitable for.

Download the app · App StoreDownload the app · Google Play