← Latest papers
📄 agriculture

A Method for Predicting Red Yeast Rice Pigment Content Based on Hyperspectral Imaging and a CNN-BiLSTM-Self-Attention Network

This study demonstrates that combining hyperspectral imaging with a novel CNN–BiLSTM–Self-Attention network enables rapid, nondestructive, and highly accurate prediction of pigment content in red yeast rice, outperforming traditional and other deep learning models.

Original authors: yalong Geng, Xuchen Hu, Yunxia Yuan, Jiewen zuo, Yu Han, Xinghua Lu, Linjiang Pang, Jianliang Deng, Jianping Feng, Huichun Yu

Published 2026-11-20
📖 5 min read🧠 Deep dive

Original authors: yalong Geng, Xuchen Hu, Yunxia Yuan, Jiewen zuo, Yu Han, Xinghua Lu, Linjiang Pang, Jianliang Deng, Jianping Feng, Huichun Yu

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of food science, some ingredients serve a dual purpose: they nourish the body and they color the plate. Red yeast rice is one such staple, a fermented product created by introducing a specific type of mold to rice grains. This process, which has roots in ancient food production and traditional medicine, generates a complex mixture of pigments. These natural dyes are valued not just for their vibrant hue, but for their potential to act as antioxidants and preservatives. For centuries, the quality of this rice has been judged by how deep and rich its color is, a measure that correlates directly with the amount of pigment present. However, checking this quality has traditionally been a slow and messy affair. To know exactly how much pigment is in a batch, scientists must grind the rice, dissolve it in chemical solvents, and measure the liquid with light. This process destroys the sample, uses hazardous chemicals, and takes far too long for a factory to check every single bag of rice moving down a conveyor belt.

A team of researchers from universities in China and a biotechnology company has developed a way to see the invisible without touching the grain. They turned to a technology called hyperspectral imaging, which acts like a super-powered camera. Unlike a standard camera that captures only red, green, and blue light, this device captures hundreds of narrow bands of light across a spectrum that the human eye cannot see. When light bounces off the rice, it carries a unique fingerprint of the chemical compounds inside. The challenge, however, is that this data is overwhelming. A single image contains thousands of numbers for every tiny spot on the rice, and the patterns are too complex for simple computer programs to untangle. To solve this, the researchers built a new kind of artificial intelligence model, a digital brain designed to learn the subtle connections between the light bouncing off the rice and the actual amount of pigment inside.

The researchers began by gathering red yeast rice samples from three different provinces in China. To ensure the data was consistent, they ground the rice into a fine powder and passed it through a sieve, creating a uniform texture for testing. They then placed these powders under a specialized camera system that scanned them with near-infrared light. This system did not just take a picture; it recorded how the light reflected at 512 different wavelengths, creating a detailed map of the chemical composition of each sample. To make sense of this massive amount of information, the team first cleaned up the data, removing the static and noise that naturally occurs in electronic sensors. They tested different ways of smoothing out the data to see which method made the patterns clearest.

Once the data was prepared, the team split the samples into two groups: a larger group to teach the computer and a smaller group to test it. They used a specific mathematical method to ensure the test group was a fair representation of the whole, covering the full range of colors and qualities found in the rice. The core of their work was the construction of a sophisticated computer model. They combined three powerful techniques into one system. First, they used a layer that acted like a microscope, scanning small sections of the light data to find local patterns. Next, they added a component that looked at the data in both directions, understanding how one part of the light spectrum relates to the parts before and after it. Finally, they included a mechanism that allowed the computer to focus its attention on the most important parts of the data, ignoring the noise and highlighting the signals that truly mattered for predicting the pigment content.

The results were striking. When the researchers tested their new model against the samples it had never seen before, it predicted the pigment content with remarkable accuracy. The model's predictions matched the actual chemical measurements with a level of precision that far exceeded older, simpler methods. In fact, the new system was so effective that it could determine the quality of the rice almost instantly, without grinding a single grain or using a drop of chemical solvent. The researchers compared their new model against several other existing computer programs, including those that used only one of the three techniques or combined them in simpler ways. The new, combined model consistently outperformed them all, showing that the specific way they integrated local scanning, bidirectional reading, and focused attention was the key to unlocking the data.

This work suggests that the future of food quality control could be entirely non-destructive. Instead of destroying samples to check their quality, factories could potentially scan every bag of rice as it moves along a production line, instantly knowing if the pigment levels are perfect. The researchers noted that while their model worked exceptionally well on the samples they collected, the true test will come from using it on rice from even more diverse sources and under different conditions. They plan to expand their data in the future to ensure the system works universally. For now, however, they have demonstrated a clear path forward: a method that turns a complex, messy chemical problem into a clean, fast, and digital solution, proving that the right combination of light and learning can see what the human eye cannot.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →