Industries / Food, farming and forestry / Food and beverage processing / Confectionery
Quality and safety
Quality and safety is the work of keeping confectionery free of poisons, germs, toxic metals, undeclared allergens and defects such as bloom, and of keeping the people who make it safe inside the plant.
7
Milestones achieved, from 1858 to 2023.
2
To watch for: announced, not yet confirmed outside.
2
Open deliverables. Nobody has shipped them.
The road
AchievedWatch forOpen
Achieved
1858
Arsenic in peppermint humbugs
In Bradford, England, on 30 and 31 October 1858, about 20 people, many of them children, died and about 200 were seriously ill after eating peppermint sweets from a market stall. Sweet makers then commonly replaced some costly sugar with "daft", a cheap white powder such as plaster of Paris. When the confectioner Joseph Neal sent for daft, the druggist Charles Hodgson was ill, and his untrained apprentice William Goddard took 12 lb of powder from an unmarked cask that held arsenic. Nobody was convicted. The Adulteration of Food or Drink Act 1860 followed, and the Pharmacy Act 1868 limited the sale of poisons to qualified pharmacists and druggists and set rules for labeling them.
Lessona cheap filler that was legal and routine became deadly once nobody checked what the white powder was.
Credit
a failure; the laws that followed were passed by the UK Parliament
2006
Late recall of tainted chocolate
In January 2006 Cadbury's own tests found a rare strain of Salmonella, a bacterium that causes food poisoning, in chocolate crumb, an ingredient made at its Marlbrook plant in Herefordshire, England, for several of its bars; the source was a leaking waste-water pipe. The products stayed on sale until June, when the Food Standards Agency revealed illnesses; about 40 people fell ill, and Cadbury recalled about a million bars at a cost of about £50 million. In July 2007 the company was fined £1 million. The UK's Advisory Committee on the Microbiological Safety of Food said Cadbury's test methods would underestimate contamination and could not be relied on in foods such as chocolate. Cadbury moved to positive release, in which products leave only after testing negative for Salmonella.
Lessona test result has to be judged for the food it is used on; a negative from a method that underestimates is no proof that chocolate is clean.
Credit
a failure; Advisory Committee on the Microbiological Safety of Food
2006
A lead limit for candy
In November 2006 the US Food and Drug Administration (FDA) issued guidance recommending no more than 0.1 ppm (parts per million) of lead in candy that small children are likely to eat often, replacing the 0.5 ppm level it had used since 1995. The guidance discusses Mexican-style candies made with chili or tamarind, and says that lead from lead-based printing ink on the part of a wrapper that touches the candy would likely make the product illegal under US food law. The guidance is not binding.
Credit
US Food and Drug Administration
2019
Cadmium limits by cocoa share
Cadmium is a toxic metal that cocoa trees take up from the soil. Commission Regulation (EU) No 488/2014 of 12 May 2014 set maximum cadmium levels for chocolate, applying from 1 January 2019 and rising with cocoa content: 0.10 mg/kg for milk chocolate with less than 30% dry cocoa solids, 0.30 mg/kg for chocolate with less than 50% (and milk chocolate with 30% or more), 0.80 mg/kg for chocolate with 50% or more, and 0.60 mg/kg for cocoa powder sold to consumers.
Credit
European Commission
2022
Kinder chocolates spread Salmonella
In December 2021 Ferrero's own checks found Salmonella Typhimurium in a buttermilk tank at its chocolate plant in Arlon, Belgium, and ten of 81 Salmonella-positive samples taken there in December 2021 and January 2022 carried the strains later found in patients. On 8 April 2022 Belgium's food safety agency withdrew the plant's authorization to produce. By 18 May 2022, 324 cases had been reported in 13 European countries and the UK, with more in Canada, Switzerland and the United States; most patients were under ten.
Lessonpositive samples inside the plant did not stop products leaving it; the recall came only after children fell ill in several countries.
Credit
a failure; European Centre for Disease Prevention and Control (ECDC) and European Food Safety Authority (EFSA)
2022
Lead traced to drying beans
A panel of four experts, funded through a 2018 California settlement between the campaign group As You Sow and 32 confectionery companies, reported in August 2022 after three years of work. Cadmium enters cocoa through the tree's roots and sits inside the bean. Lead does not: it comes from soil and dust that stick to the outside of the beans, helped by their sticky pulp, while they ferment and dry in the open. In December 2022 Consumer Reports tested 28 dark chocolate bars and found lead and cadmium in all of them; for 23, an ounce a day would put an adult over a level its experts consider possibly harmful for at least one of the two metals.
Lessonthe two metals need different fixes; the panel expected lead to fall within a year of better bean handling and cleaning, while cadmium needs bean blending in the short term and changes to soils and trees over years.
Credit
As You Sow; National Confectioners Association; Consumer Reports
2023
Gas smelled, few evacuated
On 24 March 2023 natural gas exploded in Building 2 of the R.M. Palmer Company candy factory in West Reading, Pennsylvania, killing seven employees and injuring ten people. The US National Transportation Safety Board (NTSB) found that gas leaked from a retired 1982 plastic service tee, weakened by heat from steam escaping Palmer's corroded, unmarked underground steam pipe, and migrated into the building. Several employees smelled gas before the blast, but few left; Palmer had no natural gas emergency procedures or training. The NTSB recommended that the Occupational Safety and Health Administration require such procedures of employers whose plants use natural gas.
Lessonwhere a plant uses gas, staff need a standing rule to leave at once when they smell it.
Credit
a failure; investigated by the NTSB, final report March 2025
Watch for
Enzymes cut cadmium in fermentation
W. J. Morales-Rodriguez and colleagues, working on Ecuadorian cocoa, report that adding an enzyme, pectin trans-eliminase, while cocoa beans ferment, together with changes to resting and drying, cut cadmium in Nacional beans by 68.6% (from 0.28 to 0.09 mg/kg) and in CCN-51 beans by 26.4% (from 0.42 to 0.31 mg/kg) in their trials.
Achieved whenanother group, or a cocoa buyer working with an outside laboratory, repeats the cut on commercial fermentation batches.
Claimed by
Morales-Rodriguez and colleagues, in the journal Plants, August 2025
Bloom predicted at the factory
Bloom is a white or gray film on chocolate that appears in storage, from fat (fat bloom) or sugar (sugar bloom) crystals at the surface. Y. Küçükduman and colleagues combined infrared spectra (FTIR) taken at several stages of manufacture and report that their models predicted fat and sugar bloom, which took four to eight months to appear, "with 100% sensitivity and specificity".
Achieved whenthe method predicts bloom on another factory's production, checked in storage by a party outside the study.
Claimed by
Küçükduman and colleagues, in the Journal of Food Science, July 2026
Open
01
Bloom graded from a photo
A public set of photos of chocolate stored under set conditions, each labeled with a measured whiteness index and a bloom grade, and a model that grades bloom from a phone photo.
The briefCredit · unclaimed02
Milk in vegan chocolate, measured
A survey that tests chocolate labeled vegan or dairy-free and sold in Europe for milk protein, and publishes the result for every product and lot.
The briefCredit · unclaimed
Open 01 · the brief
Bloom graded from a photo
The first to publish is credited on this line, and the deliverable moves from Open to Achieved.
What to build
A public set of photos of chocolate stored under set conditions, each labeled with a measured whiteness index and a bloom grade, and a model that grades bloom from a phone photo.
Why it is still open
Measuring bloom from images is not new: in 2005 V. Briones and J. M. Aguilera photographed milk chocolate tablets stored at temperatures cycling between 16 and 28 °C for 52 days, and eight color and texture features sorted 97.8% of samples into four classes. The 2026 study that predicts bloom relies on laboratory FTIR spectra. What was not found is a public set of labeled photos across many products: Europe PMC and Hugging Face hold none, and the one chocolate defect image set found on GitHub, sold for $89, has 22 boxes labeled bloom among 1,198.
Built with what exists
A phone camera and a light box; a colorimeter for the whiteness index; storage at 15, 20 and 28 °C, the temperatures used in the 2026 study; a small open vision model fine-tuned on one graphics chip (see the Note "One GPU to fine-tune").
First step
Buy three bars each of 10 products, store them at the three temperatures, and photograph them weekly in the light box.
Done looks like
At least 2,000 photos of 10 products over six months, each with a measured whiteness index; on products held out of training, the model's grade agrees with a three-person panel on at least 90% of photos; data and model published under an open license.
Open 02 · the brief
Milk in vegan chocolate, measured
The first to publish is credited on this line, and the deliverable moves from Open to Achieved.
What to build
A survey that tests chocolate labeled vegan or dairy-free and sold in Europe for milk protein, and publishes the result for every product and lot.
Why it is still open
An FDA survey of 52 US dark chocolate products labeled dairy-free or similar, sampled in 2018 and 2019, found four with 600 to 3,100 ppm of milk, and all four were recalled. In Québec, researchers at Université Laval found milk protein in four dark chocolate bars marketed as certified vegan, all carrying a "may contain milk" warning (reported in March 2024). In 2025 C. Bani and colleagues measured 3,034 mg/kg of milk protein in a "vegan" Easter egg that had caused anaphylaxis, a severe allergic reaction, in a three-year-old boy. No comparable survey of vegan-labeled chocolate in Europe was found in Europe PMC or on the web.
Built with what exists
An accredited food laboratory running ELISA tests, antibody tests that detect the milk proteins casein and beta-lactoglobulin; phone photos of each label; a small model to pull claims and "may contain" warnings from the photos into a table (see the Note "The jobs agents repeat").
First step
Buy 20 vegan-labeled chocolate products, photograph their labels, and get quotes from two accredited laboratories for a casein ELISA.
Done looks like
100 products from at least three European countries, each tested twice, with results posted by product, lot number and label claim, and every positive reported to the national food authority.