Next Article in Journal
Impact of Deformability and Rigidity of Starch Granules on Linear and Non-Linear Rheological Behavior of Waxy Rice Starch Gels and Applicability for Food End Uses
Previous Article in Journal
Nutritional Quality Assessment of Miscellaneous Cassava Tubers Using Principal Component Analysis and Cluster Analysis
Previous Article in Special Issue
Development and Validation of Near-Infrared Reflectance Spectroscopy Prediction Modeling for the Rapid Estimation of Biochemical Traits in Potato
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Non-Destructive Inspection of Physicochemical Indicators of Lettuce at Rosette Stage Based on Visible/Near-Infrared Spectroscopy

by
Wei Li
1,
Qiaohua Wang
1,2,* and
Yingli Wang
1
1
College of Engineering, Huazhong Agricultural University, Wuhan 430070, China
2
Key Laboratory of Agricultural Equipment in the Middle and Lower Reaches of the Yangtze River, Ministry of Agriculture, Wuhan 430070, China
*
Author to whom correspondence should be addressed.
Foods 2024, 13(12), 1863; https://doi.org/10.3390/foods13121863
Submission received: 18 May 2024 / Revised: 6 June 2024 / Accepted: 9 June 2024 / Published: 13 June 2024

Abstract

:
Lettuce is a globally important cash crop, valued by consumers for its nutritional content and pleasant taste. However, there is limited research on the changes in the growth indicators of lettuce during its growth period in domestic settings. Quality assessment primarily relies on subjective evaluations, resulting in significant variability. This study focused on hydroponically grown lettuce during the rosette stage and investigated the patterns of changes in the indicators and spectral curves over time. By employing spectral preprocessing and selecting characteristic wavelengths, three models were developed to predict the indicators. The results showed that the optimal model structures were S_G-UVE-PLSR (SSC and vitamin C) and Nor-CARS-PLSR (moisture content). The PLSR models achieved prediction set correlation coefficients of 0.8648, 0.8578, and 0.8047, with residual prediction deviations of 1.9685, 1.9568, and 1.6689, respectively. The optimal models were integrated into a portable device, using real-time analysis software written in Matlab2021a, for the prediction of the physicochemical indicators of lettuce during the rosette stage. The results demonstrated prediction set correlation coefficients of 0.8215, 0.8472, and 0.7671, with root mean square errors of prediction of 0.5348, 1.5813, and 2.3347 for a sample size of 180. The small discrepancies between the predicted and actual values indicate that the developed device can meet the requirements for real-time detection.

1. Introduction

Lettuce, also known as leaf lettuce, is a globally important vegetable crop that originated in Europe and is now widely cultivated worldwide [1,2]. As one of the most popular vegetables in the world, lettuce is not only loved for its pleasant taste but also for its low calorie, low fat, and low sodium content. It is rich in minerals such as calcium, iron and potassium, fiber, folate, vitamin C, and carotenoids, as well as other nutrients and bioactive compounds. Lettuce has been associated with various health benefits, such as cholesterol and blood pressure reduction and the prevention of heart rhythm disorders [3,4,5]. Therefore, it is of great significance to rapidly and accurately assess the quality of lettuce. Currently, there is limited research on changes in the growth indicators of lettuce in China, and the grading of lettuce quality lacks clear guidelines. It is often dependent on subjective evaluations, leading to significant fluctuations in quality assessment, which has a significant impact on the development prospects of lettuce. Soluble solids content (SSC), moisture content, and vitamin C are three key physicochemical indicators of lettuce. SSC is composed of soluble sugars and organic acids, which play an important role in the flavor, texture, and marketability of lettuce. Moisture content is an important indicator of freshness, representing the ratio of water to dry matter in lettuce. The content of vitamin C can indirectly reflect the nutritional value of lettuce [6,7]. Currently, the commonly used methods for testing physicochemical indicators of fruits and vegetables involve destructive sampling. This method is labor-intensive, time-consuming, and can cause internal tissue damage to the samples, which has a significant impact on their edibility and marketability [8]. Therefore, there is an urgent need in the market for a non-destructive and efficient technique to assess the physicochemical indicators of lettuce.
Visible/near-infrared spectroscopy is a technique that utilizes the electromagnetic spectrum range of visible light and near-infrared light for analysis. It combines electronics, optics, information processing, and computer science techniques to integrate spectral information of samples with spatial information. By collecting the reflectance, absorption, and scattering spectral data of samples in the visible/near-infrared spectral range, visible/near-infrared spectroscopy can provide information about the external characteristics, internal physical structure, and chemical composition of the samples. In recent years, both domestic and international research has successfully utilized visible/near-infrared spectroscopy to predict soluble solids content, moisture content, vitamin C content, and other parameters in fruits and vegetables [9,10,11,12,13,14]. These research results demonstrate the enormous potential of visible/near-infrared spectroscopy in the quality assessment of fruits and vegetables.
In this study, lettuce was grown using hydroponic cultivation, and experiments were conducted to determine the SSC, moisture content, and vitamin C levels of lettuce at the rosette stage. The changes in the internal indicators of lettuce during the rosette stage were analyzed based on the number of growth days. Additionally, non-destructive testing of the physicochemical indicators of lettuce at the rosette stage was performed using visible/near-infrared spectroscopy. A portable device for visible/near-infrared spectroscopy was designed to achieve online non-destructive testing of the physicochemical indicators of lettuce at the rosette stage.

2. Materials and Methods

2.1. Experimental Materials

The growth cycle of lettuce generally consists of four stages: germination, seedling, rosette, and heading. The experimental samples in this study were the leaves of lettuce at the rosette stage. The experimental design was as follows: Firstly, a small amount of hot water at 55 °C was poured into clean glass bottles, and Italian Romaine lettuce seeds were soaked in the hot water for approximately 12 h. After soaking, the seeds were transferred to Petri dishes lined with filter paper, and the dishes were placed in a germination chamber (15 °C, no light) for 24 h. A foam board with 100 small holes measuring 1 cm × 1 cm each and a bottom board measuring approximately 2 m in length, 1 m in width, and 0.4 m in height were prepared. Nutrient solution was poured into the bottom board, and the roots of germinated seeds were inserted into the holes in the foam. The foam was placed in the nutrient solution in the bottom board, and the entire bottom board was placed in a growth chamber (temperature of 20 °C, humidity of 60% RH, and illumination of 30,000 Lx). During the growth period, nutrient solution (the variety of nutrient solution used was Hoagland’s Nutrient Solution, and the nutrient solution was configured in the ratio of 1g of powder to 1L of water) was added to the plants every 2 days, and the nutrient solution was replaced every week. When the plants reached the seedling stage, the foam with the seedlings was separated and transplanted until the plants reached the rosette stage. Then, lettuce plants at the rosette stage were selected, and intact and healthy leaves were harvested. The leaves were cut into small pieces measuring 25 mm × 25 mm and placed in labeled plastic bags for further analysis. Due to the small size of the cut leaves, each labeled leaf could only be used for the detection of one physicochemical indicator. The lettuce plants at the rosette stage are shown in Figure 1.

2.2. Measurement Indicators and Methods

2.2.1. Determination of Soluble Solids Content

Lettuce soluble solids were measured using a Shen Guang WAY (2WAJ, Shanghai Li-Chen Bang Xi Instrument Technology Co., Ltd., (Shanghai, China)) Abel refractor device, using the following steps Place the leaves in a mortar and pestle to crush them into crumbs, strain the crumbs using filter paper, and drop the filtered juice onto the surface of the refracting prism using a dropper. Make sure the liquid is uniform, the field of view is intact, and there are no air bubbles. Next, open the visor, and close the reflector. Adjust the eyepiece view so that the crosshairs are clearly imaged. Make the demarcation line free of blue and orange by rotating and adjusting the handwheel so that the demarcation line is centered on the crosshairs. The value of the upper half of the reading was noted as the SSC content of the lettuce [15].

2.2.2. Determination of Moisture Content

The moisture content of lettuce was measured using an electric blast drying oven. The electric blast drying oven was produced by Shanghai Li-Chen Bang Xi Instrument Technology Co., Ltd. with a power supply of 220 V/50 Hz and a blast power of 10 W. The drying oven was used to measure the moisture content of lettuce, selecting the same number of aluminum boxes as the total number of samples and weighing them to obtain the corresponding mass, m 0 . The lettuce leaves were placed into the aluminum boxes and weighed to obtain the weight, m 1 . The boxes were then placed into an electric hot air drying oven set at a temperature of 105 °C and dried for 6 h. After drying, the boxes were taken out and weighed. They were then placed back into the drying oven for an additional 15 min and weighed again. If there was a difference between the two weighing results, the aluminum boxes were placed back into the drying oven until the most recent two weighing results were the same. At this point, the weight, m 2 , was recorded. The moisture content, m , was calculated using Equation (1).
m = m 1 m 2 m 1 m 0

2.2.3. Determination of Vitamin C

The vitamin C content of lettuce was measured using a vitamin C test kit, which was produced by Shanghai Yuan Ye Biologicals Co. (Shanghai, China). The fresh lettuce leaves were placed in a mortar and crushed. An accurate measurement of two grams of crushed fragments was taken and transferred into a 2 mL centrifuge tube. The reagents from the kit were prepared in the following order: tissue homogenate, V C buffer reagent, MPA working solution, and eight gradients (25, 50, 75, 100, 125, 150, 200, 250 µg/mL) of V C standard reagent. Using a clean dropper, the tissue homogenate was dropped into the centrifuge tube and thoroughly mixed until the liquid level reached 1.5 mL. The centrifuge tube containing the sample fragments was centrifuged for 5 min, and 0.1 mL of the supernatant was taken out and mixed with 0.1 mL of distilled water. After thorough mixing, the liquid representing the sample was obtained. Next, the sample liquid, the eight gradients of V C standard reagent, and distilled water were dropped into a 96-well plate. Three wells were used for the titration of each sample liquid. MPA working solution and V C buffer reagent were added in sequence and thoroughly mixed. The plate was placed in a water bath at 30 degrees Celsius and allowed to react for 20 min. Before starting the measurements, the spectrophotometer was zeroed with a blank. Then, the plate was placed in the spectrophotometer, and the parameters were set to 760 nanometers. The absorbance results of each well were recorded.
The absorbance values corresponding to the eight gradients of V C standard reagent were plotted on the y-axis, while the concentrations of the V C standard reagent were plotted on the x-axis. This generated a standard curve for V C . A regression equation was obtained from the standard curve. By substituting the absorbance values of the sample determination wells into the regression equation, the vitamin C content of the sample could be calculated.

2.3. Visible/Near-Infrared Spectral Acquisition

The visible/near-infrared diffuse reflectance spectroscopy acquisition system mainly consists of an adjustable halogen lamp light source, glass fiber optic cable, Maya2000Pro spectrometer, and 84UV collimating lens, as shown in Figure 2.
The visible/near-infrared spectrometer used in this experiment was the Maya2000Pro fiber optic spectrometer (Ocean Optics, Orlando, FL, USA). It is a compact and high-performance spectrometer that can measure spectra in the visible to near-infrared range. It provides high resolution and high sensitivity for spectral measurements and is widely used for absorbance, raw light intensity, reflectance, and transmittance measurements of solid and liquid samples [16,17]. In order to obtain stable and reliable spectral information, a powerful and stable light source, the WC-150 (Shanghai Winci Optoelectronics Technology Co., Ltd., China, Shanghai, China) 150 W halogen lamp cold light source, was chosen for this experiment. This light source has adjustable light intensity and is equipped with a cooling device. Its effective wavelength range is from 400 nm to 900 nm. When combined with the spectrometer, it can provide spectra in the visible/near-infrared range from 400 nm to 1000 nm.
Before collecting the visible/near-infrared spectra of the lettuce samples, it was necessary to acquire the dark spectrum and reference spectrum, using the following method. After preheating the instrument for 30 min, turn on the power switch, and adjust the brightness to 0 to collect the dark spectrum and save it. Then, adjust the light source to the maximum, and place a white standard board to collect the reference spectrum and save it. Set the acquisition mode of the spectrometer to “reflection”, and adjust the light source intensity to 50%. Place the lettuce sample on the sample stage, ensuring that the center of the sample aligns with the collimating lens on a vertical line. Collect the diffuse reflectance spectra data of the sample.

2.4. Modeling and Evaluation Methodology

The PLSR (Partial Least Squares Regression), LSSVMs (Least Squares Support Vector Machines), and MLR (Multiple Linear Regression) models were established based on the spectral information of lettuce, including the original spectra and the spectra after feature wavelength extraction. These models were used to predict the SSC (soluble solids content), moisture content, and vitamin C value of lettuce.
In order to perform feature wavelength extraction and model building, this study utilized three methods: CARS (Competitive Adaptive Reweighted Sampling), SPA (Successive Projection Algorithm), and UVE (Uninformative Variable Elimination) to select feature variables with relevant information. These selected feature variables were used to establish three models: Partial Least Squares Regression (PLSR), Least Squares Support Vector Machines (LSSVMs), and Multiple Linear Regression (MLR). MLR is a statistical method based on linear models, also known as Inverse Least Squares, which is widely used in statistics and data analysis. It is particularly suitable for exploring the linear relationship between spectral data and physicochemical properties. PLSR is widely used for information extraction and chemical feature analysis. It combines the advantages of Multiple Linear Regression, principal component analysis, and correlation analysis and can effectively handle high-dimensional data and multicollinearity issues. LSSVM is based on the Support Vector Machine approach and solves the multivariate linear equation system instead of quadratic programming problems. By comparing and analyzing these three models, the performance differences in feature wavelength extraction and modeling can be evaluated.
The accuracy and stability of the models are evaluated based on the correlation coefficient of calibration ( R C ) and root mean square error of calibration (RMSEC) for the training set, as well as the correlation coefficient of prediction ( R P ), root mean square error of prediction (RMSEP), and residual predictive deviation (RPD). A higher value of R C and R P , closer to 1, indicates the higher stability and predictive accuracy of the model. A lower value of RMSEC and RMSEP, closer to 0, also indicates better model performance [18]. The RPD value is used to assess the model’s predictive ability. When the RPD value is less than 1.5, it suggests poor prediction capability and insufficient stability. When the RPD value is between 1.5 and 2.0, it indicates good stability, allowing for rough quantitative predictions. When the RPD value is greater than or equal to 2.0, the model exhibits excellent stability and applicability, enabling accurate qualitative predictions [19].
R c = i = 1 k c ( y m i y n i ) 2 / i = 1 k c ( y m i y j ) 2
R p = i = 1 k p ( y m i y n i ) 2 / i = 1 k c ( y m i y j ) 2
R M S E C = 1 n c i = 1 k c ( y m i y n i ) 2
R M S E P = 1 n p i = 1 k p ( y m i y n i ) 2
R P D = s t d p / R M S E P
In the equation, y m i represents the predicted value of the i-th sample in the calibration set or prediction set, y n i represents the actual measured value of the i-th sample in the calibration set or prediction set, y j represents the average value of all actual measured values of the calibration set samples or prediction set samples, and k represents the total number of samples involved in the calibration set or prediction set. s t d p represents the standard deviation of the prediction set.

3. Results

3.1. Changes in Physicochemical Index Parameters with Time in Lettuce at Rosette Stage

The lettuce plants are selected when they reach the heading stage for the experiments. To prevent interference among plants due to limited space, the plants are divided into individual seedlings. On the 5th day of growth, the first experiment is conducted. The lettuce plants are harvested, and intact and clean leaves are selected. The leaves are then cut into small pieces measuring 25 mm × 25 mm. For each experiment, a total of 90 leaf pieces are cut and divided equally into 3 portions for the detection of SSC, moisture content, and vitamin C. The experiment cycle is set to 30 days, allowing a total of 6 experiments to be conducted. This results in obtaining 180 sets of data for each physicochemical index. The average values of the lettuce physicochemical indices are plotted against the number of days of growth in the heading stage, as shown in Figure 3.
According to Figure 3, the relative content of SSC in lettuce shows an increasing trend before the 10th day of the heading stage, rising from 2.51 to 2.66. Between 10 and 15 days of growth, the SSC content gradually decreases, reaching a minimum of 2.26. After 15 days, the SSC content starts to increase again, reaching its maximum value of 3.23 on the 30th day. The moisture content of lettuce shows a decreasing trend before the 20th day of the heading stage, decreasing from 95.48 to 90.65. Between 20 and 30 days of growth, the moisture content slightly increases, reaching 90.99 on the 30th day. The relative content of vitamin C in lettuce gradually decreases between the 10th day of the heading stage, declining from 16.93 to 10.83. Between 10 and 15 days of growth, the relative content of vitamin C slightly decreases, reaching 10.64 on the 15th day. Between 15 and 20 days of growth, the relative content of vitamin C steeply increases, reaching 28.18 on the 20th day. Between 20 and 30 days of growth, the relative content of vitamin C initially decreases from 28.18 to 22.07, and then increases to 24.31.
Overall, during the heading stage, the SSC of lettuce shows a general trend of increasing, then decreasing, and gradually increasing again. The moisture content tends to gradually decrease, followed by a slight increase. The relative content of vitamin C shows a pattern of decreasing, followed by a sharp increase, then decreasing again, and finally increasing.

3.2. Characteristics of Visible/Near-Infrared Diffuse Reflectance Spectra of Lettuce at Rosette Stage and Changing Law

3.2.1. Characterization of Visible/Near-Infrared Diffuse Reflectance Spectra of Lettuce at Rosette Stage

Figure 4 shows the diffuse reflectance spectroscopy of lettuce in the range of 400 nm to 1000 nm. Based on the curves in the figure, it can be observed that there are distinct peaks and valleys in the reflectance curves at 449 nm, 559 nm, 670 nm, 717 nm, 812 nm, and 901 nm. The wavelength range of 400 nm to 780 nm corresponds to the visible light spectrum, which reflects the color and luminous information of lettuce. Among them, 449 nm is in the violet light range, while 559 nm is in the green light range. Due to the weak absorption of green light by chlorophyll in the leaf, there is a pronounced reflection peak around 559 nm, which is the main reason for the green color of the leaf. Around 670 nm, the leaf undergoes photosynthesis, leading to an enhanced absorption of red light by chlorophyll. Therefore, there is a distinct absorption valley in that wavelength range. In the range of 670 nm to 720 nm, the decrease in chlorophyll content leads to a decrease in pigment content, resulting in an increase in reflectance [20]. The peaks and valleys in the reflectance spectrum of lettuce leaves in the range of 800 nm to 1000 nm are related to the vibrations of intermolecular chemical bonds. At 901 nm, there is a pronounced peak due to the vibrations of hydroxyl (O-H) and amino (N-H) groups in the leaf [21].

3.2.2. Changing Pattern of Visible/Near-Infrared Diffuse Reflectance Spectra of Lettuce at Rosette Stage

Figure 5 shows the average spectrum of the 90 lettuce leaf samples collected in each experiment. The spectrum data were obtained in the wavelength range of 400 nm to 1000 nm, with a total of 1360 wavelength points.
From the graph, it can be observed that the reflectance of the visible/near-infrared spectrum of lettuce during the heading stage shows a consistent trend of variation. As the number of days of growth increases, the overall trend of reflectance is gradually increasing. From the 5th day to the 10th day, the reflectance at the peaks of 559 nm and 901 nm, as well as the valley at 812 nm, shows a slow increase, while the reflectance at the peak of 717 nm shows no significant change. From the 10th day to the 15th day, there is a significant increase in reflectance at the peaks of 559 nm, 717 nm, and 901 nm, as well as the valley at 818 nm. From the 15th day to the 20th day, the reflectance at the peak of 559 nm shows an increasing trend, while the reflectance at the peaks of 717 nm and 901 nm slightly decreases, and the reflectance at the valley of 812 nm shows no significant change. From the 20th day to the 30th day, there is a sharp increase followed by a gradual increase in reflectance at the peaks of 559 nm, 717 nm, and 901 nm, as well as the valley at 818 nm. There is a noticeable difference in the reflectance spectra between the 5th day and the 30th day of the heading stage of lettuce.

3.3. Classification of the Sample Set

In this study, the Kennard–Stone (KS) method was chosen to divide the sample set [22]. There were 180 samples of lettuce for SSC, moisture content (MC), and vitamin C (VC), which were divided in a ratio of 3:1. The calibration set consisted of 135 samples, while the prediction set had 45 samples. The statistical results of the samples are shown in Table 1. From the observation of Table 1, the SSC content of lettuce leaves ranged from 1.48°Brix to 4.84°Brix, the moisture content ranged from 87.89% to 97.27%, and the vitamin C values ranged from 6.33% to 44.63%. After using the KS method for division, the sample indicators in the calibration set had a wider range than the prediction set, ensuring that the data in the prediction set could be fully incorporated into the model established by the calibration set.

3.4. Spectral Data Preprocessing

Preprocessing the raw spectra can effectively remove noise from the spectral curves. Common preprocessing methods include mean variance normalization (MVN), centering (Center), normalization (Nor), moving average method (MA), Savitzky–Golay convolution smoothing (S_G), standard normal variate (SNV) transformation, and multiplicative scatter correction (MSC). By comparing their effects in the Partial Least Squares Regression (PLSR) model, the preprocessing method that best matches the three indicators can be identified [23,24,25,26,27].
From Table 2, it can be observed that for the SSC indicator, using the S_G smoothing preprocessing method significantly improves the performance of the PLSR model. The models built with other preprocessing methods show similar performance to the model built with the raw spectra. For the moisture content indicator, the models built with the Center, Nor, S_G, and MSC preprocessing methods all show significant improvement. Among them, the Nor method has the best overall performance. For the vitamin C indicator, the S_G preprocessing method yields the best results, while the other methods do not show a significant improvement compared to the raw spectra.
Overall, the optimal spectral preprocessing method for the SSC and vitamin C indicators is S_G, while the optimal spectral preprocessing method for the moisture content indicator is Nor. The original spectra and the spectral curves after different spectral pre-processing are shown in Figure 6.

3.5. Spectral Characteristic Wavelength Selection

The original spectra of the collected lettuce contain a large number of wavelength points, among which there may be many features that are unrelated to the indicators. Therefore, it is necessary to perform feature extraction in the full wavelength range to extract the wavelengths that are relevant to the corresponding indicators.

3.5.1. CARS Method for Extracting Characteristic Wavelengths

Taking the moisture content of lettuce leaves as an example, this study set the number of principal components to 11, performed 160 resampling iterations with a resampling rate of 0.8, and used 5–fold cross–validation for calculation. The results are shown in Figure 7. Figure 7a displays the variation in the selected number of feature wavelengths, which gradually slows down as the number of iterations increases. Figure 7b shows the change in root mean square error of cross–validation (RMSECV) with an increasing number of iterations. At the beginning stage, ineffective feature data in the spectra are removed, resulting in a gradual decrease in RMSECV. However, as the number of iterations increases, effective feature data are also eliminated, leading to a gradual increase in RMSECV. Figure 7c illustrates that the minimum point of RMSECV corresponds to the vertical midline position of the regression coefficients, occurring at 92 iterations, with 33 selected feature wavelengths. At this point, RMSECV reaches its minimum value, indicating the best predictive performance of the model. Therefore, the optimal subset of feature variables can be determined as the spectral wavelength variable set corresponding to the minimum RMSECV, which includes 33 feature wavelengths.

3.5.2. UVE Method for Extracting Characteristic Wavelengths

Taking the moisture content of lettuce leaves as an example, this study set the threshold to 0.9 and the number of principal components to 13. The results are shown in Figure 8. The yellow curve on the left represents the stable values of the moisture content spectral variable matrix, while the red curve on the right represents the spectral random noise variable matrix. The two horizontal blue dashed lines represent the maximum threshold for random noise (±3.72). The variables between the dashed lines are eliminated as spectral information, while the variables outside the dashed lines are selected as feature variable information. By employing the Uninformative Variable Elimination (UVE) method, a total of 445 feature wavelengths are selected, accounting for 32.72% of the original spectra.

3.5.3. SPA Method for Extracting Characteristic Wavelengths

Taking the moisture content of lettuce leaves as an example, the process of extracting feature wavelengths using the Sequential Projection Algorithm (SPA) is shown in Figure 9. The SPA algorithm selects feature variables based on the trend of the root mean square error (RMSE). From Figure 9a, it can be observed that as the number of variables increases, the RMSE initially decreases rapidly, indicating the elimination of irrelevant information in the spectra. Afterward, the RMSE tends to flatten, indicating the elimination of irrelevant variables. The turning point in the curve is chosen as the selected feature variables. It is important to note that the turning point is not necessarily the lowest point of the curve but rather the point at which the RMSE reaches a reasonable range. At this point, the number of wavelength points is 16, and the value of RMSE is 1.27637. The selected feature wavelength variables account for 1.18% of the full spectrum. The indices of the selected wavelength points are shown in Figure 9b.

3.6. Modeling and Validation of Effects

For the soluble solids content and vitamin C indicators, the optimal preprocessing method is S_G, while for the moisture content indicator, the optimal preprocessing method is Nor. The spectral data of the three indicators were preprocessed using the respective optimal methods. The preprocessed data were then subjected to feature wavelength extraction, with the selected feature wavelengths serving as inputs for the MLR, PLSR, and LSSVM models. The experimental results of the three indicators of lettuce leaves were used as the outputs of the models.

3.6.1. Modeling

For the soluble solids content (SSC) indicator, the combination of the S_G preprocessing method and UVE feature wavelength extraction yielded better results for the MLR, PLSR, and LSSVM models, the results are shown in Table 3, Table 4 and Table 5. Among them, the PLSR model outperformed the MLR and LSSVM models. The PLSR model achieved a calibration set R C of 0.8946 and a prediction set R P of 0.8648, with a PRD value of 1.9685.
For the moisture content indicator, the combination of the Nor preprocessing method with CARS feature wavelength extraction yielded better results for the MLR and PLSR models. However, for the LSSVM model, the UVE feature wavelength extraction method performed the best. Among the models, the PLSR model achieved the best prediction for the moisture content indicator. The PLSR model had a calibration set R C of 0.8895 and a prediction set R P of 0.8578, with a PRD value of 1.9568.
For the vitamin C indicator, the combination of the S_G preprocessing method with UVE feature wavelength selection method performed best on the MLR, PLSR, and LSSVM models. Other feature wavelength selection methods resulted in decreased performance. Among the models, the PLSR model outperformed the MLR and LSSVM models. The PLSR model had a calibration set R C of 0.8345 and a prediction set R P of 0.8047, with a PRD value of 1.6689.
After comprehensive comparison, it can be concluded that the PLSR model performs better than the MLR and LSSVM models for predicting the physicochemical indicators (SSC, moisture content, and vitamin C) of lettuce during the head-forming stage. The optimal feature wavelength selection method for both the SSC and vitamin C indicators is UVE, while the optimal feature wavelength selection method for the moisture content indicator is CARS. Both the MLR and PLSR models are linear regression models, but the PLSR model consistently outperforms the MLR model for predicting the physicochemical indicators of lettuce during the head-forming stage. Therefore, the PLSR model is more suitable for predicting the content of physicochemical indicators in lettuce during the head-forming stage. The index plots of the characteristic wavelengths selected for the three metrics under the optimal model are shown in Figure 10.

3.6.2. Validation of Effects

We established PLSR models for the prediction of soluble solids content, moisture content, and vitamin C content in lettuce leaves during the head-forming stage using the optimal spectral preprocessing and feature wavelength selection methods. The predicted values of the training set and prediction set samples, as well as the actual measurements of the total samples, are shown in Figure 11.

3.7. Portable Visible/Near-Infrared Spectroscopy Testing Device for Lettuce Physical and Chemical Indicators

3.7.1. Detection Device Design

The developed visible/near-infrared spectroscopy acquisition device consists of a Maya2000Pro spectrometer, a 50 W halogen lamp, a collimating lens, and a glass fiber, as shown in Figure 12. The overall dimensions of the detection device are 17 cm × 26 cm × 16 cm. The Maya2000Pro spectrometer is easy to operate and has high sensitivity and low noise, making it suitable for integration with a small computer. Choosing a suitable illumination source can meet the requirements of sample spectral data acquisition and improve the accuracy of predicting the physicochemical indicators of the samples. The device uses an adjustable 50 W halogen lamp as the illumination source. Halogen lamps are cost-effective, have a long lifespan, and offer stable light output, making them suitable for sample spectral acquisition. Two 50 W halogen lamps are symmetrically arranged on the inner wall of the device. The collimating lens is positioned at the top of the device, with its center aligned with the center of the sample holder on the same vertical line. The glass fiber is connected to the collimating lens using an internal threaded tube, and the glass fiber is then connected to the Maya2000Pro spectrometer to collect the reflected light from the samples for visible/near-infrared spectroscopy. The control component used in the device is a Raspberry Pi 4B, which is a powerful and widely used single-board computer. It features a 1.5 GHz quad-core ARM Cortex-A72 processor, 4 GB of memory, and a rich set of GPIO pins. The Raspberry Pi 4B is connected to the 50 W halogen lamp through the GPIO pins for digital input and output. It is also connected to the Maya2000Pro spectrometer via a USB interface, enabling the control of the spectrometer and adjustment of the halogen lamp’s intensity.

3.7.2. Software Design

In the MATLAB 2021a GUI, there is a rich library of components that can meet the requirements for software design. To use MATLAB 2021a on a Raspberry Pi, you need to first download the MATLAB 2021a hardware support package to the SD card of the Raspberry Pi and perform the necessary parameter settings. The designed software interface is shown in Figure 13. The software reads the acquired lettuce spectral information and provides two preprocessing methods (S_G, Nor) and two feature wavelength selection methods (CARS, UVE) to process the collected spectral data. The preprocessed spectral curves and the selected wavelength bands for feature extraction are displayed on the corresponding interface. By default, the PLSR model is used to predict the content of physicochemical indicators. Clicking on the “Indicators predicted” button will display the predicted content of the physicochemical indicators of lettuce on the interface. Finally, the predicted data can be saved, and clicking on the “Exit Software” button will exit the software.

3.8. Device Performance Testing Experiment

After completing the construction of the portable device for lettuce during the head-forming stage, it is necessary to test and verify its performance. The experimental material used is lettuce leaves during the head-forming stage, and the sample preparation is consistent with Section 2.1. Performance testing of the device involves comparing the predicted values of the physicochemical indicators with the actual values. For each growth cycle of lettuce during the head-forming stage, 30 experimental samples are tested every 5 days. These 30 samples are evenly distributed for the detection of the content of the three physicochemical indicators. The total number of experimental samples is 180, with 60 samples for each indicator. The results of the device performance testing are shown in Figure 14.
According to Figure 14, the correlation coefficients for the prediction of SSC, moisture content, and vitamin C indicators in the prediction set of lettuce during the head-forming stage are 0.8215, 0.8472, and 0.7671, respectively. The root mean square errors of prediction (RMSEP) for the prediction set are 0.5348, 1.5813, and 2.3347, respectively. The prediction results for the physicochemical indicators are slightly lower compared to the results in Section 3.6, but the difference is not significant. This could be due to the influence of external environmental factors during the spectral acquisition process. The test results indicate that the device provides results for the physicochemical indicators of lettuce during the head-forming stage that are close to the actual measurements. The test results meet the requirements for practical detection.

4. Discussion

This study focused on hydroponic lettuce during the head-forming stage. A visible/near-infrared spectroscopy acquisition device was used to obtain the diffuse reflectance spectra of lettuce. By combining the actual measurements of the physicochemical indicators of lettuce, a non-destructive detection model for the physicochemical indicators of lettuce during the head-forming stage was developed based on visible/near-infrared spectroscopy technology. Based on the optimal model results, a portable visible/near-infrared spectroscopy detection device for lettuce during the head-forming stage was designed. Based on the completed experimental results, the following research conclusions can be drawn:
Research on the variation in internal physicochemical indicators and spectral characteristics of lettuce during the head-forming stage. Visible/near-infrared spectroscopy technology was used to investigate the changes in the internal physicochemical indicators (such as SSC, moisture content, and vitamin C) of hydroponic lettuce during the head-forming stage with increasing growth days. The results showed that with the increase in head-forming days, the relative content of SSC initially increased, then decreased, and gradually increased again. The moisture content initially decreased and then slightly increased. The relative content of vitamin C decreased initially, sharply increased, then decreased again, and finally increased. Based on the visible/near-infrared spectroscopy curves of lettuce during the head-forming stage, it was observed that at 449 nm, 559 nm, 670 nm, 717 nm, 812 nm, and 901 nm, the spectral reflectance curves exhibited distinct peaks and valleys. Throughout the entire growth period of lettuce during the head-forming stage, the reflectance variation trend of the visible/near-infrared spectroscopy curves remained consistent. With the increase in growth days, the overall reflectance of the spectral curves showed a gradual increase. There were significant differences in the reflectance spectral curves between the early and late stages of head-forming.
Research on the detection model of physicochemical indicators of lettuce during the head-forming stage based on visible/near-infrared spectroscopy technology. Hydroponic lettuce during the head-forming stage was used as the research object. The SSC, moisture content, and vitamin C indicators, as well as the visible/near-infrared diffuse reflectance spectra of lettuce, were collected. The KS algorithm was used to divide the sample set. By comparing the effects of seven spectral preprocessing methods (MVN, Center, Nor, MA, S_G, SNV, MSC), three spectral feature wavelength selection methods (CARS, UVE, SPA), and three models (MLR, PLSR, LSSVM), the optimal model structures corresponding to the three indicators were identified. The results showed that the optimal model structure for SSC and vitamin C indicators of lettuce during the head-forming stage was S_G-UVE-PLSR, while the optimal model structure for the moisture content indicator was Nor-CARS-PLSR. The correlation coefficients of PLSR models for SSC, moisture content, and vitamin C in the calibration set were 0.8946, 0.8895, and 0.8345, respectively and, in the prediction set, were 0.8648, 0.8578, and 0.8047, respectively. The residual prediction deviations of the prediction set were 1.9685, 1.9568, and 1.6689, respectively. The results based on the optimal model structure demonstrated the feasibility of using visible/near-infrared spectroscopy technology for the detection of the internal physicochemical indicators of lettuce during the head-forming stage, providing data validation and technical support for the development of portable devices.
Development of a portable visible/near-infrared spectroscopy detection device for physicochemical indicators of lettuce during the head-forming stage. A portable detection device for the physicochemical indicators of lettuce during the head-forming stage was developed, incorporating the optimal model. This device enables the prediction of physicochemical indicator parameters of lettuce during the head-forming stage. The results showed that the correlation coefficients of the prediction set for SSC, moisture content, and vitamin C indicators of 180 lettuce samples were 0.8215, 0.8472, and 0.7671, respectively. The root mean square errors (RMSEP) of the prediction set were 0.5348, 1.5813, and 2.3347, respectively. The predicted values of the physicochemical indicators showed small differences from the true values, indicating that the obtained results met the basic accuracy requirements. The detection device for physicochemical indicators of lettuce during the head-forming stage can simultaneously measure SSC, moisture content, and vitamin C in lettuce.

Author Contributions

Validation, Y.W.; Writing—original draft, W.L.; Project administration, Q.W. All authors have read and agreed to the published version of the manuscript.

Funding

This study was funded by the National Natural Science Foundation of China (No. 32072302), and the National Natural Science Foundation of China (No. 32342726).

Data Availability Statement

The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author/s.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ye, Z.; Tan, X.; Dai, M.; Chen, X.; Zhong, Y.; Zhang, Y.; Ruan, Y.; Kong, D. A hyperspectral deep learning attention model for predicting lettuce chlorophyll content. Plant Methods 2024, 20, 22. [Google Scholar] [CrossRef] [PubMed]
  2. Ling, C.; Wang, Y.; Pang, X.B.; Li, Z.L.; Deng, C.; Xu, Z.J. Progress of lettuce variety selection and new variety protection in China. Chin. Veg. 2022, 02, 5–12. [Google Scholar] [CrossRef]
  3. Kim, M.J.; Moon, Y.; Tou, J.C.; Mou, B.; Waterland, N.L. Nutritional value, bioactive compounds and health benefits of lettuce (Lactuca sativa L.). J. Food Compos. Anal. 2016, 49, 19–34. [Google Scholar] [CrossRef]
  4. Yang, X.; Gil, M.I.; Yang, Q.; Tomás-Barberán, F.A. Bioactive compounds in lettuce: Highlighting the benefits to human health and impacts of preharvest and postharvest practices. Compr. Rev. Food Sci. Food Saf. 2021, 21, 4–45. [Google Scholar] [CrossRef] [PubMed]
  5. Nicolle, C.; Cardinault, N.; Gueux, E.; Jaffrelo, L.; Rock, E.; Mazur, A.; Amouroux, P.; Rémésy, C. Health effect of vegetable-based diet: Lettuce consumption improves cholesterol metabolism and antioxidant status in the rat. Clin. Nutr. 2004, 23, 605–614. [Google Scholar] [CrossRef] [PubMed]
  6. Sun, H.X.; Wang, R.R.; Zhang, S.; Ren, R.; Su, L.; Lu, X. Determination of soluble solids content of Jade Dew pear based on visible/near-infrared spectroscopy. Agric. Prod. Process. 2023, 46–48+54. [Google Scholar] [CrossRef]
  7. Shen, Y.L. Research on Optical Measurement Method of Water Content of Lettuce Leaves. Master’s Thesis, Hebei Agricultural University, Baoding, China, 2020. [Google Scholar] [CrossRef]
  8. He, B.S.; Zhang, C.H.; Zuo, C.; Wang, D.; Li, C.; Li, H.; Ma, B.; Yuan, C. Research progress on the detection of vitamin C content in food. Jiangxi J. Agric. 2010, 22, 111–114+117. [Google Scholar] [CrossRef]
  9. Li, H.Q.; Sun, H.; Li, M.Z. Detection of vitamin C content in nodular kale based on visible/short-wave near-infrared spectroscopy. J. Agric. Eng. 2018, 34, 269–275. [Google Scholar]
  10. Yusmanizar; Setiasih, I.S.; Nurjanah, S.; Muhaeimin, M.; Nurhadi, B.; Rosniawaty, S.; Munawar, A.A. Fast and non-destructive prediction of moisture content and chologenic acid of intact coffee beans using near-infrared reflectance spectroscopy. IOP Conf. Series: Mater. Sci. Eng. 2019, 506, 012033. [Google Scholar] [CrossRef]
  11. Zhang, Y.; Guo, W. Moisture content detection of maize seed based on visible/near-infrared and near-infrared hyperspectral imaging technology. Int. J. Food Sci. Technol. 2020, 55, 631–640. [Google Scholar] [CrossRef]
  12. Shang, M.; Xue, L.; Jiang, W.; Cheng, B.; Li, Z.; Liu, M.; Li, J. Sorting of navel orange soluble solids content based on online near-infrared spectroscopy. Int. J. Food Eng. 2023, 19, 487–495. [Google Scholar] [CrossRef]
  13. Zhao, F.; Du, G.; Huang, Y. Exploring the use of near-infrared spectroscopy as a tool to predict quality attributes in prickly pear (Rosa roxburghii Tratt) with chemometrics variable strategy. J. Food Compos. Anal. 2021, 105, 104225. [Google Scholar] [CrossRef]
  14. Wang, T.T.; Feng, G.H.; Zhu, Y.J. Rapid determination of soluble solids and vitamin C content in blueberries by near-infrared spectroscopy combined with chemometrics. Food Ind. Sci. Technol. 2023, 44, 297–305. [Google Scholar] [CrossRef]
  15. Gao, S. Development of Spectral/Image Nondestructive Testing Technology and Device for Internal Quality of Red Grapes. Ph.D. Thesis, Huazhong Agricultural University, Wuhan, China, 2020. [Google Scholar]
  16. Lang, L. Development of a Visible/Near-Infrared Spectroscopy Detector for Fruit Brix. Ph.D. Thesis, Zhejiang University, Hangzhou, China, 2016. [Google Scholar]
  17. Ye, Z.F. Research on Non-Destructive Detection of Sex of Early Hatching Chicken Embryo Eggs Based on Spectral-Image Information. Master’s Thesis, Huazhong Agricultural University, Wuhan, China, 2022. [Google Scholar]
  18. Liu, F. Research on the Mechanism and Method of Rapid Nondestructive Detection of Life Information of Oilseed Rape Based on Spectral and Multispectral Imaging Technology. Ph.D. Thesis, Zhejiang University, Hangzhou, China, 2011. [Google Scholar]
  19. Dong, J.L.; Guo, W.C. Nondestructive determination of apple internal qualities using near-infrared hyperspectral reflectance imaging. Food Anal. Methods 2015, 8, 2635–2646. [Google Scholar] [CrossRef]
  20. Cong, S.L. Research on Detection of Multiple Pesticide Residues in Lettuce Leaves Based on Hyperspectral Image Technology. Master’s Thesis, Jiangsu University, Zhenjiang, China, 2019. [Google Scholar]
  21. Tian, W.Q. Spectral-Image Based Nondestructive Detection of Internal Quality of Salted Eggs during Pickling Period. Master’s Thesis, Huazhong Agricultural University, Wuhan, China, 2023. [Google Scholar]
  22. Wang, J.; Wang, L.S.; Wang, R.J. Visible/near-infrared spectral analysis of total nitrogen content of compound fertilizer based on preferred wavelength. J. Lumin. 2018, 39, 1785–1791. [Google Scholar]
  23. Wang, F.; Peng, Y.; Tang, X.; Li, L.; Li, Y. Nondestructive visible/near-infrared transmission spectroscopy for soluble solids content of cherry tomatoes. Chin. J. Food 2018, 18, 235–240. [Google Scholar] [CrossRef]
  24. Shi, Y.Y.; Li, J.Y.; Chu, X.L. Progress and application of multivariate correction modeling transfer methods. Anal. Chem. 2019, 47, 479–487. [Google Scholar] [CrossRef]
  25. Tian, W.Q. Non-Destructive Detection of Internal Quality of Salted Eggs during Pickling Period Based on Spectral-Image. Master’s Thesis, Huazhong Agricultural University, Wuhan, China, 2023. [Google Scholar]
  26. Savitzky, A.; Golay, M.J.E. Smoothing and differentiation of data by simplified least squares procedures. Anal. Chem. 1964, 36, 1627–1639. [Google Scholar] [CrossRef]
  27. Chen, B.W. Prediction of Timber Properties of Winged Podocarp Plantation Forests Based on Fourier Infrared Spectroscopy. Master’s Thesis, Fujian University of Agriculture and Forestry, Fuzhou, China, 2022. [Google Scholar]
Figure 1. Lettuce plants at rosette stage.
Figure 1. Lettuce plants at rosette stage.
Foods 13 01863 g001
Figure 2. Visible/near-infrared Spectrum Acquisition Unit. 1. Maya2000Pro spectrometer; 2. collimating lens; 3. light source; 4. halogen light source; 5. optical fiber; 6. splitter; 7. carrier stage.
Figure 2. Visible/near-infrared Spectrum Acquisition Unit. 1. Maya2000Pro spectrometer; 2. collimating lens; 3. light source; 4. halogen light source; 5. optical fiber; 6. splitter; 7. carrier stage.
Foods 13 01863 g002
Figure 3. Changing trend of physicochemical indexes of lettuce at rosette stage: (a) SSC changing trend; (b) Moisture content changing trend; (c) Vitamin C changing trend.
Figure 3. Changing trend of physicochemical indexes of lettuce at rosette stage: (a) SSC changing trend; (b) Moisture content changing trend; (c) Vitamin C changing trend.
Foods 13 01863 g003
Figure 4. Visible/near-infrared spectral curves of lettuce at rosette stage.
Figure 4. Visible/near-infrared spectral curves of lettuce at rosette stage.
Foods 13 01863 g004
Figure 5. Average spectral curve of lettuce at rosette stage.
Figure 5. Average spectral curve of lettuce at rosette stage.
Foods 13 01863 g005
Figure 6. Raw spectra and full–wavelength spectral profiles of different preprocessing methods.
Figure 6. Raw spectra and full–wavelength spectral profiles of different preprocessing methods.
Foods 13 01863 g006
Figure 7. Process of selecting the characteristic wavelength for lettuce leaves’ moisture content using the CARS algorithm: (a) Number of spectral characterization variables; (b) RMSECV changing trend; (c) Regression coefficient path.
Figure 7. Process of selecting the characteristic wavelength for lettuce leaves’ moisture content using the CARS algorithm: (a) Number of spectral characterization variables; (b) RMSECV changing trend; (c) Regression coefficient path.
Foods 13 01863 g007
Figure 8. Process of selecting the characteristic wavelength for lettuce leaves’ moisture content using the UVE algorithm.
Figure 8. Process of selecting the characteristic wavelength for lettuce leaves’ moisture content using the UVE algorithm.
Foods 13 01863 g008
Figure 9. Process of selecting the characteristic wavelength for lettuce leaves’ moisture content using the SPA algorithm: (a) RMSE changing trend; (b) Selected characteristic wavelength points.
Figure 9. Process of selecting the characteristic wavelength for lettuce leaves’ moisture content using the SPA algorithm: (a) RMSE changing trend; (b) Selected characteristic wavelength points.
Foods 13 01863 g009
Figure 10. Optimal model feature wavelength point index: (a) Index of characteristic wavelength points of the SSC indicator; (b) Index of characteristic wavelength points of the moisture content indicator; (c) Index of characteristic wavelength points of the vitamin C indicator.
Figure 10. Optimal model feature wavelength point index: (a) Index of characteristic wavelength points of the SSC indicator; (b) Index of characteristic wavelength points of the moisture content indicator; (c) Index of characteristic wavelength points of the vitamin C indicator.
Foods 13 01863 g010
Figure 11. Optimal model prediction results of physicochemical indexes in lettuce at rosette stage: (a) Optimal model prediction results for SSC indicators; (b) Optimal model prediction results for moisture content indicators; (c) Optimal model prediction results for vitamin C indicators.
Figure 11. Optimal model prediction results of physicochemical indexes in lettuce at rosette stage: (a) Optimal model prediction results for SSC indicators; (b) Optimal model prediction results for moisture content indicators; (c) Optimal model prediction results for vitamin C indicators.
Foods 13 01863 g011
Figure 12. Detection device design. 1. Maya2000Pro spectrometer; 2. glass optical fiber; 3. collimating lens; 4. halogen lamp light source; 5. lettuce sample; 6. carrier table.
Figure 12. Detection device design. 1. Maya2000Pro spectrometer; 2. glass optical fiber; 3. collimating lens; 4. halogen lamp light source; 5. lettuce sample; 6. carrier table.
Foods 13 01863 g012
Figure 13. Real-time analysis software design.
Figure 13. Real-time analysis software design.
Foods 13 01863 g013
Figure 14. Validation results of portable rosette stage lettuce physicochemical index testing device: (a) Predicted results of SSC indicators; (b) Predicted results of moisture content indicators; (c) Predicted results of vitamin C indicators.
Figure 14. Validation results of portable rosette stage lettuce physicochemical index testing device: (a) Predicted results of SSC indicators; (b) Predicted results of moisture content indicators; (c) Predicted results of vitamin C indicators.
Foods 13 01863 g014
Table 1. Results of KS algorithm to divide the sample set.
Table 1. Results of KS algorithm to divide the sample set.
IndicatorsSample SetMaximum ValuesMinimum ValueAverage ValueStandard Deviation
SSC/°Brixcalibration set4.841.482.680.6323
prediction set4.001.742.560.5422
MC/%calibration set97.2788.5792.312.0924
prediction set96.5987.8992.032.3821
VC/%calibration set44.636.3318.748.9190
prediction set42.007.2819.098.8027
Table 2. Raw spectra and PLSR modeling for seven preprocessing methods.
Table 2. Raw spectra and PLSR modeling for seven preprocessing methods.
IndicatorsPreprocessing MethodsLvs Number of Principal FactorsCalibration SetPrediction SetRPD
R C RMSEC R P RMSEP
SSCRAW160.87580.30410.70930.38001.4268
MVN130.84620.33570.66400.40621.3348
Center160.87610.30340.70870.38241.4247
Nor160.87110.30930.68780.39441.3748
MA160.85080.33100.70690.38081.4238
S_G210.87710.27180.85080.38391.9130
SNV140.86020.32220.67460.40241.3460
MSC110.80470.36580.77490.39531.4640
MCRAW150.57302.81190.39485.24390.4543
MVN150.97490.46490.74131.63211.4596
Center130.95870.58240.83741.26011.8749
Nor140.96100.57670.84851.26541.8824
MA160.56612.76000.41055.26760.4522
S_G160.84931.16960.84651.02961.8947
SNV150.97450.49720.78011.29841.5405
MSC140.97860.44550.83911.15711.8421
VCRAW130.90413.79280.65606.72921.3124
MVN120.89733.91840.65346.65831.3265
Center130.92443.57240.66046.69121.3197
Nor130.90803.71840.66686.56341.3457
MA130.87494.29810.66366.62781.3326
S_G130.79235.39870.78885.45201.6285
SNV100.85324.54390.65976.59501.3384
MSC110.86754.49350.63556.33931.2520
Table 3. Lettuce MLR modeled by characteristic wavelengths.
Table 3. Lettuce MLR modeled by characteristic wavelengths.
IndicatorsCharacteristic Wavelength Selection MethodsNumber of Characteristic Wave PointsLvs Number of Principal FactorsCalibration SetPrediction SetRPD
R C RMSEC R P RMSEP
SSCRaw1360150.83760.31440.82040.41521.7986
CARS22180.81490.33820.80320.43181.7228
UVE468170.85480.29760.83690.40071.8745
SPA17150.73410.41230.70710.52971.3649
MCRaw1360130.92470.87420.81691.39861.6892
CARS24140.86971.12760.84101.30941.8447
UVE464190.91740.91140.82231.38411.7134
SPA18160.74681.53290.80411.47631.6053
VCRaw1360160.74965.83200.73106.03281.5012
CARS21180.72136.11080.70316.49141.4361
UVE434170.81465.18170.78495.45971.6298
SPA23190.72316.09860.55277.63271.2049
Table 4. Lettuce PLSR modeled by characteristic wavelengths.
Table 4. Lettuce PLSR modeled by characteristic wavelengths.
IndicatorsCharacteristic Wavelength Selection MethodsNumber of Characteristic Wave PointsLvs Number of Principal FactorsCalibration SetPrediction SetRPD
R C RMSEC R P RMSEP
SSCRaw1360210.87710.27180.85080.38391.9130
CARS25230.85280.29550.82900.40751.8023
UVE437200.89460.25870.86480.37921.9685
SPA1790.77660.39680.72720.3771.4383
MCRaw1360140.96100.57670.84851.26541.8824
CARS3380.88950.95320.85781.21741.9568
UVE445150.95280.63300.84751.26261.8867
SPA16140.79981.25440.83821.34511.7710
VCRaw1360130.79235.39870.78885.45201.6285
CARS20200.74785.88000.76825.65001.5714
UVE417250.83454.98210.80475.29741.6689
SPA21160.75495.82620.58437.14271.2365
Table 5. Lettuce LSSVM modeled by characteristic wavelengths.
Table 5. Lettuce LSSVM modeled by characteristic wavelengths.
IndicatorsCharacteristic Wavelength Selection MethodsNumber of Characteristic Wave Points γ σ 2 Calibration SetPrediction SetRPD
R C RMSEC R P RMSEP
SSCRaw136012,54641380.87040.28020.81060.43391.6789
CARS2114,76246840.70310.40680.76660.50421.4414
UVE487954736210.84700.30230.79410.45051.6124
SPA1611,43638470.69730.44400.78610.43011.5499
MCRaw1360920125480.83481.23450.81371.46821.6685
CARS29984729980.82461.28970.80671.50781.6347
UVE383847921360.85471.10490.83201.37461.7649
SPA1810,34534780.81471.39460.76982.14391.4581
VCRaw1360967831470.74525.91230.71497.19481.4138
CARS2610,69836570.73466.03140.70397.31241.3887
UVE427852422370.79825.44970.75866.75361.5248
SPA1910,16940790.75345.80170.72287.11461.4376
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, W.; Wang, Q.; Wang, Y. Non-Destructive Inspection of Physicochemical Indicators of Lettuce at Rosette Stage Based on Visible/Near-Infrared Spectroscopy. Foods 2024, 13, 1863. https://doi.org/10.3390/foods13121863

AMA Style

Li W, Wang Q, Wang Y. Non-Destructive Inspection of Physicochemical Indicators of Lettuce at Rosette Stage Based on Visible/Near-Infrared Spectroscopy. Foods. 2024; 13(12):1863. https://doi.org/10.3390/foods13121863

Chicago/Turabian Style

Li, Wei, Qiaohua Wang, and Yingli Wang. 2024. "Non-Destructive Inspection of Physicochemical Indicators of Lettuce at Rosette Stage Based on Visible/Near-Infrared Spectroscopy" Foods 13, no. 12: 1863. https://doi.org/10.3390/foods13121863

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop