Sagitto uses machine vision to measure colour
Data Science

Learning From Pasta

February 3, 2025
  •  
3 minutes
George Hill
Sagitto Ltd

As an example of how Sagitto evaluates different calibration models - and for a bit of fun - we've created an NIR model that has the potential to detect adulteration of durum wheat flour with plain bread flour.

Durum Wheat

Durum wheat (Triticum turgidum subsp. durum) is the second most cultivated species of wheat after common wheat, although it represents only 5% to 8% of global wheat production. Durum in Latin means 'hard', and this species is the hardest of all wheats. This makes it ideal for pasta production, by ensuring that the shape of the pasta is retained after cooking.

Amber durum wheat has a rich amber colour, and flour made from it is cream rather than white.

Data Collection

For this experiment, we purchased Caputo Semola Rimacinata durum wheat flour, and Woolworths Plain flour. From this we filled 23 small plastic bags of flour, each weighing 50 gm, with different ratios of durum and plain flour.

Each of these 23 sample bags was scanned three or four times with one of our NIR spectrometers, resulting in a set of 79 NIR spectra.

We also purchased flour from two other Italian Semola Rimacinata brands, a New Zealand durum wheat flour (from a non-amber variety), and samples of  'High Grade' bread flour, spelt flour, and Italian 'doppio zero' soft flour from several brands. Their NIR absorbance are shown here. With such an obvious difference between the spectra for the semola rimacinata brands, and the 'bread' wheat flours obtained from local supermarkets, we should be able to build a reasonably accurate model to predict mixtures of the two types of flour.

The Semola Rimacinata amber durum flour has a distinctive NIR absorbance spectrum.
The spectra of the supermarket flours (High Grade and Plain) are almost indistinguishable

Model Building Results

We took the 79 spectra and built a model to predict the % durum flour in mixtures of amber durum and plain wheat flour. Since often of these spectra were taken from the same sample bag, we used group-wise cross validation to generate the following plot, to indicate how well our model will perform. Each red dot is a prediction made for one of the 79 spectra.

Group-wide cross validation for a model to predict % durum flour. Each sample bag is a treated as a group.

Italian law allows semola rimacinata flour to contain up to 3% non-durum wheat. Therefore any practical application of NIR to detect possible adulteration of durum wheat flour should probably focus on small amounts of adulteration, up to about 10%. For this reason, its of interest to examine the accuracy of our model in the 80% to 100% range.

Zooming in on the group-wise cross-validation results for small amounts of adulteration

What Is Cross Validation?

(to be completed)

References

Marina Cocchi, Caterina Durante, Giorgia Foca, Andrea Marchetti, Lorenzo Tassi, Alessandro Ulrici,
Durum wheat adulteration detection by NIR spectroscopy multivariate calibration,
Talanta, Volume 68, Issue 5, 2006, Pages 1505-1511, ISSN 0039-9140

De Girolamo, A.; Cervellieri, S.; Mancini, E.; Pascale, M.; Logrieco, A.F.; Lippolis, V.
Rapid Authentication of 100% Italian Durum Wheat Pasta by FT-NIR Spectroscopy Combined with Chemometric Tools.
Foods 2020, 9, 1551. https://doi.org/10.3390/foods9111551

Subscribe to Sagitto's Blog

Get industry insights that you won't delete, straight in your inbox.
We use contact information you provide to us to contact you about our relevant content, products, and services. You may unsubscribe from these communications at any time. For information, check out our Privacy Policy.
George Hill
Sagitto Ltd
Sagitto's founder, George Hill, first started working with artificial intelligence during the 1980s, while developing 'expert systems' within Bank of America in London. On returning to New Zealand, he undertook part-time study with the University of Waikato's Machine Learning Group while working for Hill Laboratories, a well-known New Zealand commercial testing laboratory. This led to the formation of Sagitto Limited, dedicated to combining the power of artificial intelligence and machine learning with spectroscopy.

More news

Machine Vision

More Than Meets The Eye

We often make decisions based on colour. For example, we know that yellow bananas are riper than green bananas and therefore we expect them to be sweeter. But what if we could also see beyond the visible spectrum? Could we make even better decisions by combining visible image data with near infrared data?

Read Article
Data Science

A Journey Of Discovery

The process of building accurate predictive models for spectroscopy instruments is often a journey of discovery, with many twists and turns. Once we have an initial model, every step of the process deserves scrutiny. Are we using the best method of sample preparation? Is our reference data accurate and reliable?

Read Article
Authentication

Is This Pure Silk?

Silk has been a premium fibre for textiles for millennia. Sagitto provides a rapid and non-destructive way of determining whether a textile is genuine pure silk, a blend of silk with another fibre, or made entirely from another fibre. This is especially valuable for collectors of antique clothing or rugs, and buyers of premium label garments.

Read Article