1. Introduction
The vegetable industry plays an important role in the global agricultural economy, and vegetable quality is a key determinant of its economic value [
1,
2]. Postharvest vegetables undergo continuous respiration, transpiration, and redox reactions, leading to irreversible quality loss [
2,
3,
4]. Traditional quality detection mainly relies on manual judgment, which is inefficient and subjective, leading to unreliable results [
2,
5,
6]. Conventional chemical methods rely on destructive sampling [
5,
6,
7]. Consequently, conventional detection approaches have notable limitations in large-scale and high-throughput applications, and fail to meet the requirements of modern intelligent agriculture. Efficient, low-cost and non-destructive testing technologies are urgently needed to improve postharvest quality assessment and monitoring. This study developed a low-cost, portable, wireless spectral sensing system to overcome the limitations of traditional detection methods.
Vis/NIR spectroscopy has become a primary technique for potato quality evaluation due to its rapidity, non-invasiveness, and efficiency [
8,
9,
10,
11,
12]. Although progress has been achieved in predicting DC, SC, soluble solids, biochemical components, and physiological indicators of potatoes using conventional benchtop and portable NIR systems [
8,
9,
10,
11,
12,
13], most existing studies rely on either bulky benchtop spectrometers or handheld portable devices, both of which present notable limitations for practical postharvest applications. Benchtop spectrometers offer satisfactory precision but are bulky, costly, and non-portable, making field deployment and dynamic monitoring infeasible [
11,
12,
13]. Portable NIR devices support on-site detection, yet they still necessitate manual close-range operation, thus failing to realize long-term, real-time, or unattended monitoring [
11,
12,
13]. Furthermore, the vast majority of current research prioritizes laboratory-based model development using high-performance instruments, with limited attention to engineering practicability, low-cost hardware integration, and adaptability to unstructured field environments [
8,
9,
10,
13]. These limitations hinder the practical extension of spectral detection in the potato postharvest industry. A low-cost 12-channel spectral sensing system based on AS7262 and AS7263 was developed to reduce the equipment cost associated with conventional spectrometers. Wireless transmission and cloud access were integrated to realize on-site real-time monitoring and improve the flexibility of field measurement. Mean normalization and a lightweight MLR model were adopted to match the embedded hardware and support potential future on-site applications.
Accordingly, to address the abovementioned limitations of existing Vis/NIR detection technologies for potato postharvest quality management, the present study aimed to develop a portable, wireless, low-cost 12-channel Vis/NIR optical sensing system for rapid and non-destructive quality assessment of potatoes under temperature-stable postharvest conditions, as a preliminary step toward future deployment in storage and transportation scenarios. Specifically, we collected Vis/NIR spectral data from two commercial potato cultivars, preprocessed the data using mean normalization consistent with the pre-optimized scheme above, and constructed an MLR prediction model for six core potato quality indicators, namely DC, SC, L*, a*, b*, and BI. The optimized MLR model was integrated into the developed sensing hardware to achieve synchronous spectral data acquisition, wireless transmission and on-site real-time prediction. The performance and reliability of the system were validated using potato samples under controlled laboratory conditions, confirming its capability for non-destructive quality assessment. The system integrates low-cost hardware design, wireless real-time monitoring, and embedded lightweight modelling for potato quality assessment. It serves as a proof-of-concept demonstration that an ultra-low-cost chip-scale multispectral sensor can provide useful predictive information for potato quality screening, and may help advance the transition from laboratory spectral research to on-site agricultural applications.
3. Results and Discussion
To overcome the destructive, offline, non-portable and lack of wireless in-situ monitoring limitations of traditional potato quality detection, this study developed a low-cost, wireless 12-channel Vis/NIR spectral sensing system for real-time, non-destructive quality assessment, with potential for future application in postharvest scenarios. As shown in
Figure 1a, the 12-channel Vis/NIR spectral sensing system integrates two 6-channel spectral sensors (AS7262 and AS7263) to acquire spectral signals at discrete wavelengths of 450 nm, 500 nm, 550 nm, 570 nm, 600 nm, 610 nm, 650 nm, 680 nm, 730 nm, 760 nm, 810 nm, and 860 nm. The visible range of 450–680 nm covers characteristic absorption bands of tuber pigments (carotenoids, anthocyanins), enabling the prediction of potato color-related indicators including L*, a*, b* and BI. The 730–860 nm near-infrared region corresponds to the third overtone absorption of C–H and O–H bonds, which are sensitive to internal carbohydrate and moisture contents relevant to DC and SC. These candidate sensitive bands were preliminarily screened by referring to published Vis/NIR studies on potato quality detection. Wavelengths carrying highly overlapping spectral information were eliminated to reduce data redundancy. On the basis of these target spectral regions, commercially available multi-wavelength sensors were screened, and the AS7262 and AS7263 photodiode sensors were finally selected, as their factory-fixed channels well cover the predetermined bands. This hardware solution supports the development of a low-cost, miniaturized wireless sensing platform. Equipped with wireless transmission modules, the proposed system exhibits superior portability and wireless data transmission capability compared with bulky laboratory spectrometers and conventional handheld detection devices. Specifically, light emitted by the built-in LEDs irradiates the potato surface, and the integrated photodiode array captures diffuse reflected light and converts optical signals into electrical signals for subsequent analysis [
20]. When light of a specific intensity irradiates the potato, photons primarily interact with the peel tissue before being detected as diffuse reflectance. Given that visible radiation penetrates only 1–2 mm and near-infrared radiation up to 860 nm is still partially attenuated by the dense peel layer, the measured spectral signals predominantly carry information from the peel surface rather than directly from the internal parenchyma where starch and dry matter are concentrated. Nevertheless, these peel-mediated spectral variations can still establish correlative relationships with internal quality attributes through chemometric modeling [
8,
21]. The multispectral sensor converts voltage/current signals into digital signals for output via the analog-to-digital converter (ADC) and digital-to-analog converter (DAC) modules. The ESP32, serving as a microcontroller unit (MCU), performs data communication with visible light sensors and near-infrared sensors on the I
2C channel. The received spectral data information is transmitted to the cloud database via the Wi-Fi wireless transmission module for storage and analysis. The system realizes synchronous spectral collection, wireless data transmission and real-time quality prediction. The developed platform shows promise for future deployment in potato postharvest storage, transportation and sales.
Figure 1b illustrates the laboratory workflow of MLR model calibration, including two parallel branches of physicochemical measurement for internal quality indicators and color index acquisition for appearance parameters. All measured data are subsequently aggregated for statistical analysis and model fitting, which leads to the final MLR model calibration as the output of this workflow. Independent-sample
t-tests confirmed significant differences (
p < 0.01) in all six quality indicators between the two tested potato varieties, providing a solid statistical basis for model training and generalization performance evaluation. DC is the total solid fraction remaining after complete moisture removal and serves as a direct indicator of potato quality, as postharvest respiration continuously degrades dry matter into soluble substances [
22]. Starch accounts for 60–80% of potato dry matter and largely determines processing and edible quality [
23]. Color parameters (L*, a*, b*) and BI are core visual quality metrics, reflecting internal metabolism, nutritional value, and processing suitability [
24]; L* specifically indicates enzymatic browning degree [
5], a* and b* relate to non-enzymatic browning products, and BI integrates these three parameters to assess overall browning tendency during processing and storage [
25]. In summary, these quality indicators link visual phenotypes to intrinsic quality through a multi-dimensional quantitative framework. Following the data analysis and calibration procedure shown in
Figure 1b, combined with the developed wireless sensing system, they support rapid, non-destructive prediction and show promise for future deployment in on-site postharvest quality assessment.
This study first acquired the reference data of six core potato quality indicators (DC, SC, L*, a*, b*, BI) using standard physicochemical methods, and synchronously collected Vis/NIR spectral data via the developed wireless sensing system. The optimized MLR prediction model was embedded into the sensing hardware to achieve real-time quality prediction. The system provides a low-cost, wireless platform for rapid potato quality assessment, demonstrating the potential of using discrete-wavelength sensors for this purpose. The platform shows promise for future adaptation to postharvest scenarios (
Figure 1c). Overall, this low-cost, wireless system offers a promising approach for non-destructive quality detection, offering a pathway from laboratory spectral research toward potential industrial applications.
As shown in
Figure 2a, the self-developed Vis/NIR sensing system was used to collect the spectral reflectance of potato samples in the discrete wavelength range of 450 nm to 860 nm. The collected spectral curves exhibited multiple absorption peaks. These peaks arise from the electronic transitions of characteristic functional groups, which reflect the intrinsic compositional information of potatoes and are statistically correlated with the quality indicators investigated in this study [
26,
27]. For instance, the absorption peak around 650 nm is associated with chlorophyll [
28], while the peak near 680 nm is related to chlorophyll a [
29]. These peaks can indicate whether potatoes exhibit greening and correlate with color indicators related to L*, a*, and b*. The peak at 730 nm is associated with the absorption of carotenoids, which can reflect the carotenoid content in potatoes [
30]. These data are also closely correlated with color indices such as a* and b*. The spectral characteristics around 810 nm and 860 nm are related to the third overtones of O-H and C-H bonds [
31] and are correlated with DC and SC. Notably, these third-overtone signatures are weak and prone to noise interference. The prominent absorption bands of starch and water derived from the second overtones of O-H and C-H are distributed in the 900–1400 nm short-wave infrared region, which is beyond the detection range of the adopted spectral sensors. Nevertheless, the 450–860 nm Vis-NIR range still contains distinguishable spectral information correlated with potato quality attributes. Indeed, previous studies have demonstrated that the 700–900 nm region can be effectively used for predicting dry matter and starch content in intact potatoes [
11], and portable spectroscopic instruments utilizing discrete bands within the 700–1000 nm window are capable of achieving reliable non-destructive quantification of these two key indicators [
12]. Combined with optimized spectral preprocessing and chemometric algorithms, effective quantitative prediction can be realized to meet the demand of preliminary postharvest quality monitoring. Spectral preprocessing can effectively reduce baseline drift, multiplicative scattering effect and environmental noise during spectral acquisition, retain the intrinsic spectral information related to potato chemical composition, and improve the signal-to-noise ratio and accuracy of subsequent prediction models [
32]. In this study, four methods, namely norm (
Figure 2b), SNV, SNV-norm, and MSC-norm (
Figures S1–S3), were used to preprocess the spectra to screen the optimal preprocessing strategy and optimize the performance of subsequent potato quality prediction models. As shown in
Figure 2b, normalization preprocessing enhanced the absorption features associated with chlorophyll, carotenoids, and carbohydrates. However, the other preprocessing methods were less effective at revealing these absorption features than mean normalization (
Figures S1–S3). Mean normalization is beneficial for identifying and selecting effective wavelengths. This includes the 650 nm band for chlorophyll absorption [
28], around 730 nm related to carotenoid absorption [
30], and the 810 nm and 860 nm bands corresponding to the third overtones of O–H and C–H bonds [
31].
Figure 2c–h present the distribution differences of six key quality indicators between Dutch No.15 and Atlantic potato varieties using box plots with scatter points. The box plot intuitively presents the statistical central tendency and data dispersion range of each indicator, while the scatter points represent the measured values of individual samples. In terms of nutritional components (
Figure 2c,d), Atlantic potatoes had a higher DC, mainly ranging from 23% to 25%, while that of Dutch No.15 potatoes was primarily concentrated between 19% and 21%. The SC of the two varieties showed the same trend as DC. The median SC of Atlantic potatoes was approximately 21%, while that of Dutch No.15 potatoes was around 17%. This characteristic indicates that Atlantic potatoes had higher DC accumulation efficiency and starch storage capacity, and exhibited superior nutrient accumulation characteristics. In terms of color characteristics, Dutch No.15 potatoes had significantly higher L* and b* values (
Figure 2e,f), indicating a brighter appearance and a more pronounced yellow hue. In contrast, Atlantic potatoes had a higher a* (
Figure 2h), which may be related to the accumulation of pigment components such as anthocyanins in tubers [
5,
33]. Additionally, the Dutch No.15 potatoes had a significantly higher BI (
Figure 2g), implying that this variety may have a higher browning tendency under equivalent processing or storage conditions [
5,
25,
33]. The highly significant genotypic differences in all quality indicators between the two varieties provided a sufficient and reliable sample basis for the subsequent construction of universal quality prediction models.
To explore the statistical association between spectral signals and potato quality attributes, a correlation heatmap was constructed to visualize their pairwise correlation across the 450–860 nm Vis/NIR region (
Figure 2i). The horizontal axis represents each spectral wavelength, and the vertical axis corresponds to the six measured quality indicators. The color gradient ranges from pink (positive correlation, correlation coefficient close to 1) to green (negative correlation, correlation coefficient close to −1), which intuitively presents the magnitude and direction of the calculated correlation coefficients between quality indices and spectral bands. As illustrated in
Figure 2i, different correlation patterns were observed among different indicators. DC, SC, and a* values exhibited an overall negative correlation with most spectral wavelengths, and the correlation intensity varied with wavelength, with several bands exhibiting strong negative correlations. In contrast, L*, b*, and BI were predominantly positively correlated with spectral information, and the color gradient further revealed differences in positive correlation strength at different wavelengths. These significant correlations support effective variable selection and improve the interpretability of chemometric models for potato quality prediction. The strength of these correlations is conducive to variable selection and correlation analysis for establishing chemometrics-based models between potato quality indicators and spectral data. These results support the use of Vis/NIR spectroscopy for non-destructive quality evaluation of potatoes.
This study analyzed the original spectral data using four preprocessing methods, namely norm, SNV, SNV-norm, and MSC-norm. Three prediction models (PLSR, MLR, and SVM) were then constructed using the original and preprocessed spectra as input variables to predict six key potato quality indicators and identify the optimal combination of preprocessing method and prediction model. The results showed that the MLR model outperformed PLSR and SVM across all indicators (
Figure 3a–i and
Figure S4a–i), with R
2CV values ranging from 0.606 to 0.881. As shown in
Figure 3a–i, the MLR consistently outperformed the PLSR and SVM across all preprocessing groups, with the lowest RMSECV, highest R
2CV, and most reasonable RPD values (1.610–2.905). For DC, the MLR model achieved satisfactory predictive performance (
Figure 3a–c and
Table S1). Its R
2CV ranged from 0.791 to 0.807, and its RPD ranged from 1.946 to 2.290, indicating acceptable predictive capability for screening purposes. For b*, the MLR model achieved higher accuracy, with R
2CV ranging from 0.829 to 0.881 and RPD values exceeding 2.0 for all preprocessing groups (
Figure S4d–f), indicating good predictive performance. The MLR model showed limited predictive performance for BI, and its prediction accuracy (R
2CV = 0.726) was the lowest among all quality indicators, as supported by
Figure 3g–i and
Table S6. This lower performance is likely due to overlapping spectral responses from endogenous metabolites and browning-related compounds in potato tubers. Nevertheless, MLR still outperformed PLSR and SVM for BI prediction.
The choice of preprocessing method also substantially influenced model performance, even when using the same spectral data and modelling algorithm. Among all preprocessing methods, mean normalization consistently yielded the best performance for the MLR model. As shown in
Figure 3a–i and
Tables S1–S6, mean normalization achieved the lowest RMSECV, highest R
2CV, and highest RPD values, whereas SNV, SNV-norm, and MSC-norm resulted in varying degrees of performance degradation. The performance differences between preprocessing methods can be explained by the characteristics of the sensor configuration. SNV and MSC are established methods for correcting scattering effects in continuous full-range spectra. However, the proposed system operates at 12 discrete wavelengths, where spectral data are sparsely distributed. Under this condition, these methods tend to over-correct the spectral signals, eliminating subtle but quality-related variations and thereby reducing the sensitivity of subsequent models. In contrast, mean normalization adjusts spectral amplitudes without altering the relative spectral shape, making it more suitable for sparse wavelength data. This explains why mean normalization consistently outperformed the other methods in this study. For DC (
Figure 3a–c and
Table S1), all preprocessing methods except SNV improved prediction accuracy; mean normalization achieved the best performance with R
2CV = 0.798, RMSECV = 0.0106, and RPD = 2.236. For the b* value prediction model (
Figure S4d–f and Table S5), the combination of mean normalization preprocessing and the MLR model also exhibited the best predictive performance, with an R
2CV of 0.881, an RMSECV of 1.432, and an RPD of 2.905. Notably, for mean normalization with MLR, the RPD values for DC, L*, a*, and b* all exceeded 2.0 (
Figure 3c and
Figure S4c,f,i), indicating acceptable predictive capability for screening applications. Overall, the MLR model with mean normalization consistently outperformed all other model-preprocessing combinations. The lower predictive performance of SVM, relative to both PLSR and MLR, can be attributed to three factors. Firstly, the correlations between potato quality indicators and Vis/NIR reflectance are predominantly linear. Applying nonlinear SVM to intrinsically linear modeling tasks introduces unnecessary overfitting risks and weakens generalization ability. Secondly, the self-developed sensing system only acquires 12 discrete wavelengths, resulting in a low-dimensional feature space that cannot fully activate the kernel-based nonlinear mapping advantage of SVM, whereas linear regression algorithms adapt better to sparse wavelength data. Thirdly, the calibration dataset contains approximately 120 samples. As a hyperparameter-sensitive nonlinear algorithm, SVM tends to deliver unstable predictions on small datasets; in contrast, MLR and PLSR exhibit stronger robustness without complicated hyperparameter tuning. Consistent with this trend, mean normalization with MLR yielded lower RMSECV, an R
2CV closer to 1.0, and higher RPD values than other combinations. Unlike SVM and PLSR, MLR has low computational complexity and fast execution speed, making it suitable for real-time on-site monitoring on the system’s embedded microcontroller. Therefore, mean normalization combined with MLR was selected as the preferred approach for non-destructive prediction of potato quality indicators in this system. Detailed numerical results, including RMSEC, R
2C, RMSECV, R
2CV, and RPD, for each model under different preprocessing methods, are provided in
Tables S1–S6.
To eliminate the proportional differences in reflection intensity across different wavelengths and enhance the comparability of spectral data, the spectral data of the validation set were first subjected to mean normalization. The processed spectra were then input into the established MLR model to predict six potato quality indicators. Scatter plots of measured versus predicted values (
Figure 4a–f) were used to quantitatively assess model performance. For the prediction of DC (
Figure 4a), the RMSEP was 0.010, with an R
2P of 0.814, indicating good predictive performance for DC. For SC, the RMSEP was 0.012 with R
2P = 0.784 (
Figure 4b). For L*, RMSEP = 1.287 and R
2P = 0.813 (
Figure 4c). For a*, RMSEP = 0.594 and R
2P = 0.739 (
Figure 4d), which was the lowest among the color parameters, possibly due to the complex pigment metabolism in potato tubers. For b*, the model achieved the highest R
2P = 0.936 (
Figure 4e), indicating very good predictive performance for yellowness. For BI, R
2P = 0.853 (
Figure 4f), indicating reliable prediction of browning degree. Overall, the predicted values agreed well with the measured values for both potato cultivars. These results demonstrate that the MLR models with mean normalization can effectively capture the correlation between Vis/NIR spectral data and quality indicators, providing a reliable approach for non-destructive quality prediction. To further evaluate the predictive reliability of the optimal MLR models, a comprehensive diagnostic analysis was carried out. Residual plots exhibited no obvious systematic trends or heteroscedasticity, verifying that the assumptions of linear regression were satisfied. Bias values for all six quality indicators were close to zero, ranging from −0.008 to 0.052. Regression slopes varied between 0.91 and 1.04, with intercepts near zero, demonstrating good agreement between predicted and measured values. According to standard RPD classification criteria, the RPD values of DC (2.236), L* (2.148), a* (2.001) and b* (2.905) were greater than 2.0, implying that these models are suitable for quantitative screening applications. By contrast, the RPD values of SC (1.946) and BI (1.732) were below 2.0, indicating that their corresponding models are only appropriate for trend estimation rather than accurate quantification. Collectively, these analyses support a more rigorous model evaluation framework instead of relying on R
2 alone. To evaluate the stability of the developed models, cross-validation results across all folds were analyzed. For each quality indicator, RMSECV values were closely matched to their corresponding RMSEC values (
Tables S1–S6), revealing that the models exhibited no severe overfitting on the current dataset. To contextualize the performance of the proposed system, a comparison with a previously reported Vis/NIR study on potato quality prediction is provided (
Table S7) [
33,
34,
35]. The prediction accuracies achieved in this study (R
2P = 0.739–0.936) are comparable to those reported using a portable spectrometer. For instance, Escuredo et al. [
12] adopted a commercial portable NIR device for potato quality estimation and reported R
2 values of 0.74–0.98 for moisture-related parameters. This comparison suggests that the selected wavebands of the proposed 12-channel system capture sufficient quality-related spectral information to support rapid screening applications.