← Latest papers
📄 agriculture

Leave-One-Day-Out Cross-Validation of NIR-PLSR Models for Simultaneous Prediction of Eight Banana Quality Attributes during 12-Day Storage

This study demonstrates that near-infrared spectroscopy combined with partial least squares regression and leave-one-day-out cross-validation enables the simultaneous, non-destructive prediction of multiple banana quality attributes during 12-day storage, revealing that while models for total soluble solids, monosaccharides, and firmness perform well, temporal generalization is often overestimated by traditional random cross-validation methods.

Original authors: Pu Zhang, Feng Zhang, Jin Luo, Wenlin Wang, Xiaohe Wang, Hanxia Liu, Fang Lin, Hong Zhao, Jinfeng Peng

Published 2026-09-10
📖 6 min read🧠 Deep dive

Original authors: Pu Zhang, Feng Zhang, Jin Luo, Wenlin Wang, Xiaohe Wang, Hanxia Liu, Fang Lin, Hong Zhao, Jinfeng Peng

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

Bananas are a study in contradictions. They arrive at the market hard, green, and starchy, yet they possess an internal clock that drives them to soften, sweeten, and eventually rot. This transformation is not merely a change in appearance; it is a complex biochemical event where stored starch breaks down into sugars, cell walls dissolve, and acidity shifts. For farmers and retailers, knowing exactly where a banana sits on this timeline is crucial. If a fruit is picked too early, it never ripens properly; if it is picked too late, it spoils before it reaches the consumer. Traditionally, the only way to know the internal state of a banana is to cut it open, crush the flesh, and run it through chemical tests. This method destroys the fruit, making it impossible to track the same banana as it ripens day by day.

To solve this, scientists have turned to light. Near-infrared spectroscopy is a technique that uses invisible light to peer inside fruit without touching it. When this light hits a banana, it bounces off in a pattern that changes depending on what is inside—how much water is present, how much sugar has formed, and how firm the tissue remains. By analyzing these light patterns, researchers hope to build a model that can predict the quality of the fruit instantly and non-destructively. However, building such a model is tricky because bananas change rapidly. A banana from yesterday looks very different from one tomorrow, and a model trained on a mix of days might learn to recognize the date rather than the fruit itself.

A team of researchers from Xi'an Jiaotong University and the China National Research Center for Food Safety Inspection and Testing set out to test this idea with a rigorous approach. They gathered seventy-two bananas and stored them in a controlled environment at a steady temperature and humidity for twelve days. Every single day, they measured the same fruit using a near-infrared spectrometer, which captures the light reflection, and then immediately destroyed that specific fruit to measure its actual chemical contents. They tracked eight different qualities: three types of sugar (fructose, glucose, and sucrose), starch, total soluble solids (a measure of sweetness and dissolved matter), firmness, pH, and acidity.

The researchers faced a specific challenge in how they tested their predictions. In many studies, scientists mix all their data together and randomly split it into training and testing groups. This method often gives overly optimistic results because the model can learn from samples that are almost identical to the ones it is supposed to predict. To avoid this, the team used a method called leave-one-day-out cross-validation. Imagine a model that is trained on data from eleven days of storage and then asked to predict the quality of the fruit on the twelfth day, a day it has never seen before. They repeated this process, leaving out each of the twelve days in turn, to see if the model could truly generalize to new, unseen time periods.

The results revealed a clear divide between what the light could see and what it could not. The model was remarkably successful at predicting the attributes that change most dramatically during ripening. It could accurately forecast the levels of glucose and total soluble solids, with a performance so strong that it could distinguish between high and low values with great precision. It also performed well for fructose, starch, and the firmness of the fruit. These are the qualities that define the transition from a hard, starchy green banana to a soft, sweet yellow one. The light patterns captured the massive shift in sugar content and the breakdown of the fruit's structure with high reliability.

However, the model struggled with the more subtle changes. It could only offer rough estimates for sucrose, the specific sugar that often peaks in the middle of the ripening process, and it failed to predict the fruit's acidity and pH levels with any useful accuracy. The researchers found that the changes in acidity were simply too small and too noisy for the light sensors to detect against the background of the fruit's other properties. This suggests that while light is excellent for tracking the major structural and sugar changes, it is not yet sensitive enough to measure the fine chemical shifts in tartness.

A key finding of the study was that the way the data is tested matters more than the technology itself. When the researchers compared their strict "leave-one-day-out" method against the standard random-split method, they found that the random method significantly overestimated how well the models would work in the real world. The random method made the models look better than they actually were because it allowed the model to access similar data from other days. The strict time-based testing showed that while the models are promising, they are not perfect, and their ability to predict the future depends heavily on how they are validated.

To make the technology more practical, the team also looked at whether they could simplify the sensors. Instead of using the entire range of light wavelengths, they identified specific bands of light that carried the most important information. They found that by focusing only on these key wavelengths, they could reduce the complexity of the system by more than half without losing much predictive power. This means that in the future, a simple, low-cost device using just a few specific colors of light could potentially be used to sort bananas on a conveyor belt, telling workers exactly which fruits are ready to eat and which need more time, all without cutting a single one open.

The study concludes that while near-infrared light is a powerful tool for monitoring the ripening of bananas, it is not a magic wand that solves every problem. It excels at tracking the big changes in sugar and texture but has limits when it comes to acidity. The research also serves as a warning to the scientific community: when studying things that change over time, like fruit ripening, you cannot rely on random testing methods. You must test your models against the future they are meant to predict. By doing so, the researchers have provided a realistic roadmap for developing non-destructive tools that can help reduce food waste and ensure that the bananas we eat are at their peak.

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 →