Next Article in Journal
Acetone Detection and Classification as Biomarker of Diabetes Mellitus Using a Quartz Crystal Microbalance Gas Sensor Array
Next Article in Special Issue
Design and Development of Large-Band Dual-MSFA Sensor Camera for Precision Agriculture
Previous Article in Journal
Intelligent Vehicle Decision-Making and Trajectory Planning Method Based on Deep Reinforcement Learning in the Frenet Space
Previous Article in Special Issue
Rapid Detection of Total Viable Count in Intact Beef Dishes Based on NIR Hyperspectral Hybrid Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Non-Destructive Determination of Bayberry Sugar and Acidity by Hyperspectral Remote Sensing of Si-Sensor and Low-Cost Portable Instrument Development

1
College of Artificial Intelligence, Hangzhou Dianzi University, Hangzhou 310018, China
2
Jinhua Agricultural Science Study Institute, Jinhua 321000, China
3
Zhejiang Agricultural Machinery Research Institute, Jinhua 321000, China
4
Institute of Agricultural Remote Sensing & Information Application, Zhejiang University, Hangzhou 310058, China
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(24), 9822; https://doi.org/10.3390/s23249822
Submission received: 27 October 2023 / Revised: 30 November 2023 / Accepted: 3 December 2023 / Published: 14 December 2023
(This article belongs to the Special Issue Perception and Imaging for Smart Agriculture)

Abstract

:
The digitalization of information is crucial for the upgrading of the bayberry digital agriculture industry, while the low-cost information detection sensing equipment for bayberry are a bottleneck for the digital development of the industry. The existing rapid and non-destructive detection devices for fruit acidity and sugar content mainly use near-infrared and mid-infrared spectral characteristic for detection. These devices use expensive InGaAs sensor, which are difficult to promote and apply in the bayberry digital industry. This study is based on the high-spectral range of 454–998 nm in bayberry fruit to study the mechanism of fruit sugar and acidity content detection and to develop a portable bayberry fruit sugar and acidity detection device using Si-sensor in order to achieve low-cost quality parameter detection of bayberry fruit. The research results show that: Based on the hyperspectral of bayberry fruit, the sensitive wavelength for sugar content inversion is 610 nm, and the inversion accuracy (RMSE) is 1.399Brix; the sensitive wavelength for pH inversion is 570 nm, and the inversion accuracy (RMSE) is 0.1329. Based on the above spectroscopic detection mechanism and spectral dimension reduction methods, combined with low-cost Si-sensor (400–1000 nm), a low-cost non-destructive portable bayberry fruit sugar and acidity detection device has been developed, with detection accuracies of 94.74% and 97.14%, respectively. This bayberry fruit sugar and acidity detector provides a low-cost portable non-destructive quality detection instrument of bayberry, which is in line with the industrial group of low consumption in which the bayberry is mainly cultivated on a small scale, accelerating the digitalization process of the bayberry industry.

1. Introduction

Bayberry (Myrica rubra cv. DongKui Orient Pearl) is a special economic crop in South China. In Xianju county, Zhejiang province, China alone, the total output of bayberry reached 90,000 tons in 2019, with a total output value of $1.65 billion [1,2]. Bayberry fruit contains a variety of organic acids which can increase the acidity in the intestines and stomach and help digestion and absorption. Anthocyanins and vitamin C contained in this fruit have an antioxidant function, can improve immunity, and delay aging [3]. The fruit acid it contains prevents the conversion of sugar into fat in the body and helps with weight loss [4]. The traditional grade detection process mainly relies on manual sorting based on the color of bayberry fruit into different grades with the naked eye. According to empirical methods, the darker the color, the higher the sugar content and the lower the acidity [5].
Nonetheless, this method has high requirements for workers’ proficiency, strong subjectivity, and low sorting efficiency, which cannot meet the current digital demand of bayberry grade detection. At present, non-destructive testing instruments for fruits on the market, such as the K-SS900LC detector from Japan, the F-750 detector from the United States, and the TPF-750 detector from China, are commonly used in the near-infrared band for testing, using expensive indium gallium arsenide photodetectors (InGaAs sensor) [6,7]. Also, these instruments do not contain the specified model for detecting the sugar and acidity of bayberry. Therefore, it is difficult to widely promote them in small-scale bayberry planters. Additionally, bayberry fruits have a high moisture content, and the spectral information in the near-infrared band is susceptible to moisture interference, resulting in lower detection accuracy [8]. At present, PAL-1 sugar meter with an accuracy of ±0.2%, a destructive testing instrument, is commonly used to detect the sugar content of bayberry [9], and this method was employed for the validated data collection. Therefore, there is an urgent need to develop a non-destructive and fast detection instrument for bayberry fruit sugar and acidity content based on visible hyperspectral.
With the development of hyperspectral technology, the detection methods of manually identifying fruit variety quality and chemical analysis of fruit internal and external quality are being gradually replaced by hyperspectral non-destructive testing technology [10,11]. Shao [12] proposed a comprehensive prediction method for the acidity value of bayberry juice by combining visible/near-infrared spectroscopy with Partial Least Squares (PLS) and Artificial Neural Network (ANN) (sensitive wavelength range of 945–965 nm). Zhao et al. [13]. established a Partial Least Squares prediction model for wavelength and green plum pH value based on hyperspectral imaging using different dimension reduction and filtering methods (sensitive wavelength range of 556–843 nm). Extensive research has shown that hyperspectral non-destructive testing technology has been widely applied. Building upon this, we conducted a study on the non-destructive detection of sugar and acidity content in bayberries based on hyperspectral remote sensing in the visible light region. Common silicon photodetection devices (Si-sensor) are valued at just a few dollars, reducing the cost of instruments for visible light band detection. Moreover, numerous previous studies have shown a certain correlation between anthocyanins, sugar content and pH [14]. Cheng et al. [15]. using various apples as samples, demonstrated a significant correlation between the anthocyanin content of apple peels and pH during maturation. Additionally, in Mutsu apples, anthocyanins were significantly correlated with soluble solids, confirming the feasibility of using anthocyanins for sugar content inversion. Liu et al. [16] proposed a method for inverting the relative content of anthocyanins in corn leaves using hyperspectral remote sensing technology. The quadratic models based on RI (521, 698) and other models for anthocyanin inversion showed high coefficients of determination, indicating the feasibility of inversion anthocyanins through spectral technology.
Based on the above conclusions, this study proposes a non-destructive detection method for bayberry fruit sugar content and acidity based on visible hyperspectral information and conducts research on low-cost instrument development methods. On this basis, a low-cost non-destructive portable bayberry sugar content and acidity detection instrument is developed. This instrument uses a Si-sensor and a bandpass filter with a bandwidth of 32 nm, priced at around $100, which is far cheaper than the nearly $1000 portable lossy sugar meter (such as PAL-1) on the market. This enables individual farmers to conduct classification detection and packaging, differing from the previous situation where only large enterprises could perform classification detection. This has significant implications for simplifying bayberry production processes and improving overall economic income.

2. Acquisition and Preprocessing of Data

The experimental samples in this article were bayberry collected from a bayberry picking base in Xianju, Zhejiang province on 21 June 2020. The bayberry was divided into four grades through skilled sorting workers in the local area. Two hundred bayberries of uniform shape and size and no extruded water were selected, fifty of each grade, and the sample numbers given were 1–200. Hyperspectral images of each bayberry were collected under a natural light environment. Anthocyanin content, total sugar, soluble solids, and pH value were measured in a laboratory environment.

2.1. Acquisition and Processing of Hyperspectral Image Data of Bayberry Fruit

The UHD-185 hyperspectral imager was used to collect hyperspectral images of bayberry under natural light conditions in the field. The UHD-185 hyperspectral imager has a spectral resolution of 4 nm, a sampling interval of less than 100 μs, and a spatial resolution of 1mm within the wavelength range of 454 nm to 998 nm [17]. Hyperspectral images were collected using the Spectralon® (North Sutton, NH, USA) standard diffuse reflectance whiteboard before measurement to calibrate the hyperspectral images and a tripod was used to allow the UHD-185 to capture the hyperspectral images of bayberry in a fixed position. The following figure shows the spectral characteristics of four different grades of bayberry, and grade I is the optimal one.
According to the spectral characteristics in Figure 1, the reflectance of different grades of bayberry significantly changes in the 530–630 nm wavelength range, and the reflectance decreases with quality improvement. Therefore, this range is determined to be the sensitive band for bayberry quality.

2.2. Determination of Physical and Chemical Data of Bayberry Fruit

In order to model the sugar and acidity of bayberry, this article conducted experimental measurements on the anthocyanin content, total sugar content, soluble solids, and pH value of bayberry fruit.
This article uses spectrophotometry to measure the content of anthocyanins in bayberry [18]. Anthocyanin extraction solution was prepared in a ratio of 2:50 between bayberry and solution [19,20]. This article uses the anthrone-sulfuric acid method to measure the total sugar content of bayberry [21]. The sample solution was prepared in a ratio of 2:3000 between bayberry and solution, and the measurement unit is μg/g. This article uses the PAL-1 digital sugar meter developed by the Atago Company in Japan (Fukaya-shi, Japan) to measure the soluble solids in bayberry (the actual measurement data of the sugar meter is soluble solids, but when there are fewer other contents and more sugar content in the solution, the measurement result can be considered as sugar content [22]), the accuracy of this instrument is ±0.2% [23]. A bayberry solution was prepared in a ratio of 2:10 between bayberry and solution to measure the sugar content and conversion to obtain the sugar content of the bayberry; the unit is Brix. For the pH value of waxberry, we use a pH meter to measure it. A bayberry solution was prepared in a ratio of 2:1000 between bayberry and solution to measure the pH value of the bayberry solution and convert it to obtain the pH of the bayberry.

2.3. Componpents Characteristics of Bayberry Grade

As shown in Table 1, there is a significant difference between the maximum and minimum values of anthocyanins in bayberry, with 518.04 μg/g and 10.18 μg/g, indicating a significant difference in anthocyanin content among different grades of bayberry. The standard deviation of the pH value determination is only 0.21, indicating that there have been no significant changes in the pH fluctuation among different grades of bayberry. The sugar content fluctuates relatively closely. The measured sugar content, acidity, and anthocyanin content are evenly distributed, covering various grades of bayberry, which meets the subsequent modeling requirements.

3. Results and Discussion

3.1. Spectral Non-Destructive Detecting Mechanism of Sugar and Acidity in Bayberry Fruit

Traditional manual detection of the grade of bayberry mainly involves the human eye qualitatively dividing it into several grades based on color (visible light region), and the color of bayberry is determined by its anthocyanin content [24]. The study on inverting anthocyanin content through hyperspectral analysis is relatively mature [25,26]. This article attempts to find the relationship between anthocyanin content, sugar and acidity, and uses hyperspectral information to quantitatively detect the sugar and acidity of bayberry, achieving the datafication of bayberry grade sorting. By using visible light sensors instead of near-infrared and mid-infrared sensors, the cost of the instrument can be reduced.

3.1.1. Analysis of the Relationship between Sugar and Acidity and Anthocyanin Content in Bayberry Fruit

The correlation between the total sugar, sugar content, and pH value measured and the anthocyanin content was analyzed.
Figure 2 shows that there is a high correlation between sugar content and anthocyanin content, with a correlation coefficient of 0.8098. A relationship model between anthocyanin and sugar content can be constructed, and the sugar content of bayberry can be inverted using hyperspectral analysis. The correlation between total sugar and pH value with anthocyanins is relatively low, so it cannot be directly inverted through anthocyanin content.

3.1.2. Analysis of the Relationship between the Displacement Characteristics of Anthocyanin Absorption Peak and pH Value in Bayberry Fruit

Figure 1 shows the spectral reflectance of four different grades of bayberry fruits at 454–998 nm. It can be concluded from this figure that the tendencies in spectral reflectance of different grades of bayberry fruits are basically consistent. There is a significant difference in spectral reflectance in the band of 530–630 nm, and its trend is consistent with the change in grade of bayberry fruit. The distinction between different grades in the bands after 750 nm is also relatively obvious, but the trend of spectral changes is inconsistent with the trend of grade changes. There is a reflectance peak between 550 and 650 nm, and this peak will decrease with the improvement of bayberry quality. In high-quality bayberries, this peak basically disappears. At the same time, in Figure 1, we can observe that the peak position will shift to the left as the quality of bayberry improves. The shift of anthocyanin absorption peak may be caused by changes in pH. This is a similar phenomenon in the PROSPECT-D of F é ret and J. B, where the absorption peak position of anthocyanins changes with pH value [27]. We conducted experiments on this and measured the absorption spectra of bayberry solutions adjusted to different pH values using hydrochloric acid and sodium hydroxide. Figure 3 shows that the absorption peak positions of bayberry solutions at different pH values make a significant shift, and as the pH value of the bayberry solution increases, the absorption peak of the bayberry solution absorption spectrum shows a significant right shift trend. There is a certain relationship between the pH values of the spectrum of bayberry. This indicates that it is feasible to establish a pH model for bayberry fruit using spectroscopy.

3.2. Construction and Validation of a Non-Destructive Detection Model for Sugar and Acidity of Bayberry Fruit

According to the above research and analysis, the characteristics of anthocyanins are linearly related or significantly consistent with sugar content and pH value in bayberry fruit. Based on band sensitivity analysis, this article establishes a spectral method that conforms to the inversion of sugar content and pH in bayberry fruit by the reflectance of the bayberry fruit at 530–630 nm and spectral normalization index. This article selects hyperspectral and physicochemical data from eighty bayberries to establish a model and validates the model with hyperspectral and physicochemical data from twenty bayberries. Constructing normalization index of spectrum NI [28], as shown in the following equation:
N I = R i R j R i + R j
where R i and R j represents the reflectance of bayberry at the wavelength of i nm and j nm, respectively.

3.2.1. Establishment of Inversion Model for Sugar and Acidity of Bayberry Fruit

According to the analysis of spectral characteristics, the variation of reflectance with anthocyanin content is more significant in the 530–630 nm wavelength range. Calculate the normalization index of any combination of two bands within the 530–630 nm wavelength range and calculate the correlation coefficient R 2 between the normalization index and the anthocyanin content and pH value of bayberry, as shown in Figure 4. Through the analysis of correlation coefficients, the bands of normalized index NI were selected as 620 nm and 630 nm, and the correlation coefficient between normalized index NI and anthocyanins was relatively high in this band. The selected bands for normalization index NI are 620 nm and 630 nm, and the correlation coefficient between normalization index NI and pH value is relatively high in this band.
Calculate the correlation coefficient R 2 between the reflectance and anthocyanin content of bayberry at 530–630 nm, as shown in Figure 5a. From Figure 5a, the highest correlation coefficient is 0.81 at 610 nm. At this band, the correlation between reflectance and anthocyanin content is highest. Therefore, the band of reflectance was selected as 610 nm. Calculate the correlation coefficient R 2 between the reflectance and pH value of bayberry at 530–630 nm, as shown in Figure 5b. From Figure 5b, the correlation coefficients are high at 560–620 nm. Considering the low-cost of subsequent instrument development, the reflectance band was selected as 570 nm for inversion.
Using the selected wavebands, the unitary linear relationship, the unitary quadratic relationship, the exponential relationship, the logarithmic relationship and the power function relationship between the normalized index NI, reflectance and anthocyanin content and pH value of bayberry were constructed, as shown in Table 2 below.
According to the correlation analysis, the R 2 of the univariate quadratic model for invert anthocyanin content using reflectance is 0.6795, and the R 2 of the univariate quadratic model for inverting anthocyanin content using normalized index NI is 0.6458. The correlation between the two is relatively close. However, due to considerations of practicality and portability in instrument production, the reflectivity at 610 nm was ultimately selected to invert the anthocyanin content of bayberry fruit. Its model is
C a n t h = 0.7375 R 620 2 36.21 R 620 + 483.7
C a n t h is the anthocyanin content in the fruit of bayberry, in units of μg/g, R 610 is the reflectance of bayberry in the 610 nm band. The relationship between the anthocyanin content and the sugar content of bayberry was constructed, including the unitary linear relationship, the unitary quadratic relationship, the exponential relationship, the logarithmic relationship and the power function relationship. The determination coefficient R 2 of the unitary linear model for inverting sugar content using anthocyanins is 0.6658, indicating a high correlation. Therefore, the model for inverting sugar content using anthocyanins in bayberry fruit is selected, as shown in Equation (3).
C s u g a r = 0.01087 C a n t h + 6.284
In Equation (3), C s u g a r is the sugar content in the fruit of bayberry, in units of Brix. C a n t h is the content of anthocyanins in the fruit of bayberry.
The R 2 of the power function model for inversion of pH value using reflectance is 0.6589, and the R 2 of the unitary quadratic model for inversion of pH value using normalization index NI is 0.7071. Although the model of inverting pH value using normalization index performs well, considering the practicality and portability of instrument production, the reflectance at 570 nm was ultimately selected to invert the pH value of bayberry fruit. The model is shown in Equation (4).
P H = 1.515 R 570 0.2733 + 1.434
In Equation (4), P H is the pH value of the fruit of bayberry, R 570 is the reflectance of bayberry in the 570 nm band.

3.2.2. Validation of the Sugar Acidity Inversion Model for Bayberry Fruit

The anthocyanin content of twenty bayberries was extracted and measured using a methanol hydrochloric acid aqueous solution, and the sugar content and pH value of these twenty bayberries were measured using a sugar meter. The inversion model mentioned above was used to calculate the sugar content and pH value of bayberry, and this was compared with the measured values to verify the performance of the sugar content inversion model and pH value inversion model. The validation root mean square error (RMSE) of the sugar content inversion model was 1.399, and the validation root mean square error (RMSE) of the pH value inversion model was 0.1329, both reaching a high level. Figure 6a shows the comparison between simulated and measured values of sugar content. The two-dimensional scatter points composed of simulated and measured values of sugar content of bayberry are all roughly around the 1:1 line, indicating that the model for the relationship between anthocyanins and sugar content in the bayberry fruit is effective. Figure 6b shows the comparison between simulated and measured pH values. The two-dimensional scatter points composed of simulated and measured pH values of bayberry are all roughly around the 1:1 line, indicating that the acidity inversion model in bayberry fruit is effective.

3.3. Low-Cost Portable Bayberry Fruit Quality Testing Device

Based on the sugar acidity inversion model of bayberry, a low-cost sugar acidity detector for bayberry fruit was developed. This instrument is applied to quality detection in unnatural light source scenarios, using two characteristic wavelength LED lights as light sources; reflected light information on the surface of bayberry fruit was collected through filters and Si-sensor to further invert sugar and acidity.

3.3.1. Consistency Analysis of Characteristic Spectrum and Inversion RESULT of Bayberry Sugar and Acidity at Different Spectral Resolutions

The spectral resolution of the spectral image reaches 4 nm, and each channel contains 4 nm of spectral data. It is necessary to install a filter in front of the lens of an industrial camera to remove the image information in bands other than characteristic bands. At present, the commonly used filter has a bandwidth of 30 nm, which cannot meet the requirement of 4 nm spectral resolution of spectral images. The characteristic bands of bayberry detection were analyzed, and the spectral information of the band was compared with a bandwidth of about 30 nm centered around the characteristic band with the spectral information of the 4 nm characteristic band in the spectral image. If they are relatively consistent, the characteristic bands can be expanded to 30 nm, thus reducing the cost of the instrument.
The spectral resolution in the spectral image is high (4 nm), so the characteristic band is taken as the central wavelength, and 16 nm wavelength is extended to both sides as the expanded spectral resolution (32 nm), and the characteristic bands become 554–586 nm and 594–626 nm. Based on the spectral response characteristics of different quality bayberry, several sample spectra were selected from the corresponding spectral datasets, and the average spectra in the range of 554–586 nm and 594–626 nm were extracted from them; this was compared with the characteristic spectra of 570 nm and 610 nm. The obtained spectral data is shown in Figure 7.
From Figure 7, it can be observed that there is indeed some consistency between the 32 nm bandwidth spectrum and the characteristic spectrum of different quality samples of bayberry. The spectral reflectance of each sample is relatively close, and the RMSE values between the spectra of the 570 nm and 610 nm characteristic bands are 0.0023 and 0.0021, respectively, which meet the accuracy requirements. This indicates that the spectral response of bayberry has a high consistency near the two characteristic wavelengths. Therefore, it is feasible to use the spectral information with a 32 nm bandwidth as a substitute for the characteristic spectrum.
The characteristic spectra with different spectral resolutions have relatively consistent spectral information, but there are still some differences that can cause errors in the inversion of acidity and sugar content. Therefore, it is necessary to compare the inversion results of different bandwidth characteristic spectra for each sample to analyze whether the final error meets the accuracy requirements. Based on the acidity and sugar content inversion model mentioned earlier, the different inversion results for each sample are shown in Figure 8.
Similarly, the inversion results of the characteristic spectra with different spectral resolutions are also relatively consistent, indicating that the inversion error caused by spectral error will not affect the inversion of relevant chemical components. The RMSE values for pH value and sugar content inversion accuracy are 0.04 and 0.001, respectively, meeting the accuracy requirements. Therefore, the bayberry quality characteristic wavelengths of 570 nm and 610 nm based on spectral imaging can be extended to the 554–586 nm and 594–626 nm bands, respectively. The spectral information of different bandwidths has a high consistency in the inversion of sugar and acid content, which provides feasibility for the RGB sensor to acquire characteristic spectral information.

3.3.2. Instrument Development Method

In this instrument, the light source adopts an LED controllable light source and collects illumination information through Si-sensor. It is necessary to record the illuminance of the light source as well as the illuminance of the light source after reflecting on the object to calculate the reflectance of an object. The illuminance reflected by an object can directly collect through Si-sensor, while the illuminance of the light source needs to be calibrated using a standard diffuse reflectance whiteboard according to the requirements of reflectivity collection. The calibration of LED light sources is performed by collecting the illuminance of the light source reflected by a standard whiteboard as its calibration value. Keeping the supply voltage of the LED unchanged, this calibration value can be used as a fixed parameter to calculate the reflectivity of different objects. The reflectivity of the measured object can be calculated through the following method:
(1)
Take the calibration results of 570 nm and 610 nm light sources which is LED1 and LED2 as the incident intensities E (LED1) and E (LED2), respectively.
(2)
Take the illuminance values of the two LED light sources reflected by the measured object collected by Si-sensor as the reflection intensity value L (LED1) and L (LED2), respectively.
(3)
Calculate the reflectivity of the measured object at two wavelengths separately: R570 = L(LED1)/E(LED1), R610 = L(LED2)/E(LED2).

3.3.3. Hardware Composition and Structure

The portable quality detector for bayberry is composed of a light source module, light information acquisition module, sugar and acidity detection module, and detection result display module (OLED display). All modules are controlled by Arduino main control board (Figure 9), and the schematic diagram of the instrument is shown in Figure 10.
The following modules introduce the hardware of the instrument:
(1)
Light source module: it is composed of LED1, LED2 and a blackout wall, which can remove the influence of ambient light and transmit specific wavelength light.
(2)
Light information acquisition module: the light intensity sensor is used as the light information acquisition sensor to realize the function of converting the received light intensity signal into a digital signal.
(3)
Sugar and acidity detection module: it is composed of the processor chip and the sugar and acidity detection model, which can convert the data received by the chip into the sugar and acidity result of the bayberry.
(4)
Test result display module: it is composed of OLED display to realize the visualization function of bayberry test results.

3.3.4. Instrument Control

The overall control of the instrument mainly includes the sequential switching control of two light sources of different wavelengths, the sensor data acquisition control synchronized with the light source switch, and the visual control of the detection results. The overall control flow diagram of the instrument is shown in Figure 11.
As shown in Figure 11, the Arduino main control board is controlled by touching the switch. After detecting that the key is closed once, the Arduino main control board will carry out the detection work. The specific control is as follows: First, power LED1 and power off after 1 s, and power LED2 for 1 s after 1 s. The data acquisition of the light intensity sensor is controlled according to the power switch of the two LED lights. When the two light sources are powered separately, the light intensity sensor will collect 1 s data synchronously and pass the collected reflected light data of the two light sources to the Arduino main control board, respectively. After receiving the two light data, the Arduino main control board will output the test results according to the calibration results and the sugar and acidity detection model. The two light dates are taken as the 570 nm reflection information and 610 nm reflection information. respectively, and in proportion to the calibration results of the two light sources to obtain the reflectivity information, which is further brought into the detection model and output to the display module. After receiving the information, the display module outputs it on the display screen, and the visual results include the sugar and acidity detection results of the bayberry fruit.

3.3.5. Verification of Instrument Accuracy

A portable bayberry quality detector was used to test the sugar and acidity of fifteen bayberries. An average of the positive and negative detection results of each bayberry sample was calculated to reduce detection errors. The average of sugar and acidity was used as the predicted sugar and acidity value of the sample. The true values of pH and sugar content of bayberry samples were collected through the pH meter and the sugar meter as the measured sugar acidity values of the samples. The predicted and true values of sample sugar and acidity (Figure 12) were compared, calculating the standard deviation and accuracy of data, and the accuracy of the instrument (Equations (5) and (6)) was analyzed. The results are shown in Table 3.
a b s o l u t e   d e v i a t i o n = | p r e d i c t e d   v a l u e t u r e   v a l u e |
a c c u r a c y = ( 1 m e a n   a b s o l u t e   d e v i a t i o n a v e r a g e   v a l u e )   ×   100

4. Conclusions

This article obtained hyperspectral data of bayberry fruit through experiments, measured the total sugar content, anthocyanin content, sugar content, pH value and other physicochemical parameters of bayberry fruit, and analyzed the experimental data. Based on correlation analysis, spectral models of various physicochemical parameters were established using a simple statistical regression model and utilizing sensitive bands spectral and spectral indices of bayberry, and the models were validated. Finally, the sugar acidity model of bayberry with better accuracy and stability was obtained. Based on this model, a low-cost portable the sugar and acidity detector of bayberry fruit was developed. The main conclusions of this paper are as follows:
(1)
The spectra of bayberry fruits of different grades are clearly distinguished in the 530–630 nm wavelength range, and the reflectance decreases with the increase of bayberry quality. Therefore, the sensitive bands of bayberry fruit can be selected from the 530–630 nm wavelength range for modeling.
(2)
The correlation between total sugar content, sugar content, pH value, and anthocyanins in bayberry fruit was 0.1449, 0.8098, and 0.6699, respectively. Only the sugar content and anthocyanins showed a good correlation, so a sugar content model can be established by inversion of anthocyanins using spectra and then conducting an inversion of anthocyanin using sugar content. Through experiments, it was found that the absorption peak positions of bayberry solutions shifted significantly at different pH levels, and as the pH value of the bayberry solution increased, the absorption peak of absorption spectrum of the bayberry solution showed a significant right shift trend. Therefore, a pH inversion model of bayberry can be established using spectroscopy.
(3)
The normalization index composed of 620 nm and 630 nm, as well as the univariate quadratic model between the reflectance of 610 nm and anthocyanins, have the best effect, with the determination coefficients R2 of 0.6458 and 0.6795, respectively. Considering the development cost of the instrument, a 610 nm reflectance was selected to construct an anthocyanin inversion model. In the model of inverting sugar content with anthocyanins, the linear function relationship is the best, with the determination coefficient of 0.6658 and the verified RMSE of 1.339Brix. The normalization index composed of 620 nm and 630 nm, as well as the univariate quadratic model between reflectance of 570 nm and pH, have the best performance, with determination coefficients R2 of 0.7071 and 0.6589, respectively. Considering the development cost of the instrument, a 570 nm reflectance was selected to construct a pH inversion model.
(4)
Based on the above model, a low-cost sugar acidity detector of bayberry was developed. Since the characteristic spectra and inversion results are consistent at low resolution and high resolution, the instrument uses a filter with 32 nm bandwidth, which greatly reduces the instrument cost. The software of this instrument includes feature band light sources, collection of lighting information, calculation spectral reflectance of feature band, and an inverse method of bayberry sugar and acidity. The hardware includes a light source module, a lighting information acquisition module, a sugar and acidity detection module, and a detection result display module (OLED display screen). In addition, the detection accuracy of the instrument was verified. The accuracy of sugar content and pH were 94.74% and 97.14%, respectively. The RRMSE values of sugar content and pH were 6.61% and 3.72%, respectively.

Author Contributions

Conceptualization, Y.Z., J.W. and S.T.; methodology, Y.Z. and J.W.; experiment campaign, W.W. and Y.H. (Yadong He); data analysis, S.T. and J.W.; software, J.W.; validation, Y.H. (Yun Huang); formal analysis, Y.H. (Yun Huang); investigation, Y.H. (Yadong He) and W.W.; resources, Y.Z.; writing—original draft preparation, Y.Z., J.W. and W.W.; supervision, Y.Z. and F.W.; project administration, Y.Z.; funding acquisition, Y.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Natural Science Foundation of Zhejiang Province Exploration Project (LY20D010004, LQ20F050006). Jinhua Science and Technology Plan Project, Zhejiang Province (2022-2-010).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

We acknowledge the contribution of Chendong Wang and Zuhao Chen for the collection of hyperspectral images of bayberries and associated support.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Yu, W.; Yuan, W. One of the high quality and efficient planting techniques of bayberry- the production status and development strategy of bayberry. Farmers Get Rich 2006, 42, 1. [Google Scholar]
  2. Ji, S.; Zhang, E. Analysis of the cultivation path of characteristic towns based on advantageous industries-Taking Yangmei Town, Xianju County, Zhejiang Province as an example. Shanghai Rural Econ. 2018, 13, 5. [Google Scholar]
  3. Ma, N.; Chen, Y. Health benefits and cultivation techniques of purple potato. Henannongye 2016, 27, 51–52. [Google Scholar]
  4. Lin, Y. One Type of Fruit Acid Tea and Its Preparation Method: CN201310687066.8. Patent CN104705439A, 17 July 2015. [Google Scholar]
  5. Liang, S.; Xu, Y.; Wang, W.; Zheng, X.; Ren, H.; Peng, J.; Zhang, Q.; Qi, X. Study on the formation discipline of fruit appearance and main nutrient quality in the fruit development of Chinese bayberry. J. Nucl. Agric. Sci. 2016, 30, 1135–1142. [Google Scholar]
  6. Yuan, L.; Guo, Z.; Chen, X.; Cai, J.; Sun, L.; Shi, Y. Application of a portably analyzer based on visual/near infrared spectroscopy. J. Food Saf. Qual. 2017, 8, 3455–3460. [Google Scholar]
  7. Li, W. Development on Nondestructive Sugar Content Detector for Kiwi Fruits. Master’s Thesis, Northwest Agriculture and Forestry University, Xianyang, China, 2017. [Google Scholar]
  8. Han, Y.; Zhao, Y.; Wang, Y. Study on the changes in polarized spectral response of soil moisture content in the visible and near-infrared bands. Spectrosc. Spectr. Anal. 2013, 33, 2071–2074. [Google Scholar]
  9. Niu, Y.; Fan, Q.; Liu, B.; Chen, C.; Liu, P.; Ding, P. Influencing factors and optimization of determination of soluble solid content in citrus juice. Mod. Hortic. 2021, 44, 3–6. [Google Scholar]
  10. He, Y.; Li, X. Discriminating varieties of waxberry using near infrared spectra. J. Infrared Millim. Waves 2006, 25, 192–194. [Google Scholar]
  11. Zhang, X.; Zhu, Y.; Zhao, Y.; Chen, M.; Sun, Q.; Xie, B.; Feng, S.; Gu, Q. Optimization of nondestructive testing method for soluble solid con-tent of peach based on visible/near infrared spectroscopy. Acta Agric. Zhejiangensis 2023, 35, 1617–1625. [Google Scholar]
  12. Shao, Y.N.; He, Y. Method for predicting acidity of bayberry juice by using VIS/near infrared spectra. J. Infrared Millim. Waves 2006, 25, 478–480. [Google Scholar]
  13. Zhao, M.; Yang, J.; Lu, D.; Cao, J.; Chen, Y. Detection methods of greengage acidity based on hyperspectral imaging. Trans. Chin. Soc. Agric. Mach. 2017, 48, 318–323. [Google Scholar]
  14. Liu, Y.; Guo, Y.; Li, X.; Tan, G. Determination and Stability Analysis of Anthocyanidin in Three Kinds of Fruit Peels. Storage Process 2017, 17, 89–93. [Google Scholar]
  15. Cheng, Y.; Liu, G.; Meng, Z.; Li, S. Relationship between anthocyanidin content in fruit peel and fruit quality during maturation in apples. J. Fruit Sci. 1999, 16, 98–103. [Google Scholar]
  16. Liu, X.; Liu, C.; Wu, S.; Shi, Z.; Chang, Q. Nondestructive inversion of anthocyanins content in maize leaves using hyperspectral remote sensing. Remote Sens. Inf. 2018, 33, 1–8. [Google Scholar]
  17. Wang, Y.; Fei, T. Inversion of chlorophyll content in tea leaves based on UHD185 imaging spectrometer. Geospat. Inf. 2018, 16, 50–53. [Google Scholar]
  18. Zhang, Y.; Sun, X.; Gao, X.; Cui, H. Detection of soybean isoflavones by the method of ultraviolet spectrophotomretry. Chin. J. Food Hyg. 2000, 12, 7–9. [Google Scholar]
  19. Weiss, D.; Halevy, A.H. Stamens and gibberellin in the regulation of corolla pigmentation and growth in Petunia hybrida. Planta 1989, 179, 89–96. [Google Scholar] [CrossRef] [PubMed]
  20. Wang, X.; Meng, X.; Peng, J. Regulation of petal growth, anthocyanin accumulation and CHS, DFR gene expression in gerbera. In Proceedings of the Eighth Member Representative Assembly and Academic Conference of the Chinese Society for Cell Biology, Nanjing, China, 1 November 2003. [Google Scholar]
  21. Wei, Y.; Zhang, S. Determination of content of Lycium barbarum polysaccharide by anthrone-sulfuric acid method. Sci. Technol. Food Ind. 2011, 33, 399–401. [Google Scholar]
  22. Ji, Z.; Wu, Q. Differences of soluble solids, reducing sugar, total sugar and sucrose in actual detection. Tech. Superv. Vert. Horiz. 1994, 11, 30. [Google Scholar]
  23. Zhou, P.; Jiang, Y.; Zhou, J. Correlation analysis between sarcocarp color and total soluble solids content in Cucurbita moschata. J. Henan Inst. Sci. Technol. 2017, 45, 12–15. [Google Scholar]
  24. Zhang, C.; Li, W.; Li, C.; Chen, L.; Qiu, D. Comparison of fruit quality and anthocyanin composition of Myrica rubra with different maturity levels. Subtrop. Agric. Res. 2022, 18, 41–45. [Google Scholar]
  25. Tian, M.; Ban, S.; Chang, Q.; Zhang, Z.; Wu, X.; Wang, Q. Quantified Estimation of Anthocyanin Content in Mosaic Virus Infected Apple Leaves Based on Hyperspectral Imaging. Spectrosc. Spectr. Anal. 2017, 37, 3187–3192. [Google Scholar]
  26. Zhang, Y. Hyperspectral Quantitative Remote Sensing Inversion Model and Mechanism of Various Pig-Ments in Plant Leaves Based on PROSPECT-PLUS Model. Ph.D. Thesis, Zhejiang University, Hangzhou, China, 2015. [Google Scholar]
  27. Féret, J.-B.; Gitelson, A.A.; Noble, S.D.; Jacquemoud, S. PROSPECT-D: Towards modeling leaf optical properties through a complete lifecycle. Remote Sens. Environ. 2017, 193, 204–215. [Google Scholar] [CrossRef]
  28. Xu, H. A Study on Information Extraction of Water Body with the Modified Normalized Difference Water Index (MNDWI). J. Remote Sens. 2005, 9, 589–595. [Google Scholar]
Figure 1. Bayberry spectra with different grades.
Figure 1. Bayberry spectra with different grades.
Sensors 23 09822 g001
Figure 2. Correlation analysis between physical and chemical parameters of bayberry fruit and anthocyanin content. (a) Correlation between bayberry total sugar and anthocyanin content (b) Correlation between bayberry sugar content and anthocyanin content (c) Correlation analysis between bayberry fruit pH and anthocyanin content.
Figure 2. Correlation analysis between physical and chemical parameters of bayberry fruit and anthocyanin content. (a) Correlation between bayberry total sugar and anthocyanin content (b) Correlation between bayberry sugar content and anthocyanin content (c) Correlation analysis between bayberry fruit pH and anthocyanin content.
Sensors 23 09822 g002
Figure 3. Absorption spectra of bayberry solution at different pH.
Figure 3. Absorption spectra of bayberry solution at different pH.
Sensors 23 09822 g003
Figure 4. Correlation coefficient (R2) between the normalized index NI and the content of anthocyanins (a) and pH (b). The abscissa and ordinate indicate the wavelength in nm.
Figure 4. Correlation coefficient (R2) between the normalized index NI and the content of anthocyanins (a) and pH (b). The abscissa and ordinate indicate the wavelength in nm.
Sensors 23 09822 g004
Figure 5. Correlation coefficient between bayberry reflectance and the content of anthocyanin (a) and pH (b).
Figure 5. Correlation coefficient between bayberry reflectance and the content of anthocyanin (a) and pH (b).
Sensors 23 09822 g005
Figure 6. Comparison of modeled and measured values of reducing sugar content (a) and pH (b) in bayberry.
Figure 6. Comparison of modeled and measured values of reducing sugar content (a) and pH (b) in bayberry.
Sensors 23 09822 g006
Figure 7. Comparison of bayberry spectrum at 570 nm and the average spectrum in 554–586 nm (a), Comparison of bayberry spectrum at 610 nm and the average spectrum in 594–626 nm (b).
Figure 7. Comparison of bayberry spectrum at 570 nm and the average spectrum in 554–586 nm (a), Comparison of bayberry spectrum at 610 nm and the average spectrum in 594–626 nm (b).
Sensors 23 09822 g007
Figure 8. The pH inversion results with different bandwidth (a) and reducing sugar content inversion results with different bandwidth (b).
Figure 8. The pH inversion results with different bandwidth (a) and reducing sugar content inversion results with different bandwidth (b).
Sensors 23 09822 g008
Figure 9. Portable bayberry quality detector overall hardware block diagram.
Figure 9. Portable bayberry quality detector overall hardware block diagram.
Sensors 23 09822 g009
Figure 10. Schematic diagram of the portable bayberry quality detector ((a) Overall diagram of the instrument; (b) Light source and detection part; (c) Internal structure).
Figure 10. Schematic diagram of the portable bayberry quality detector ((a) Overall diagram of the instrument; (b) Light source and detection part; (c) Internal structure).
Sensors 23 09822 g010
Figure 11. Portable bayberry quality detector control flow diagram.
Figure 11. Portable bayberry quality detector control flow diagram.
Sensors 23 09822 g011
Figure 12. Comparison of modeled and measured values of reducing sugar (a) and pH (b).
Figure 12. Comparison of modeled and measured values of reducing sugar (a) and pH (b).
Sensors 23 09822 g012
Table 1. Component characteristics of different bayberry grades.
Table 1. Component characteristics of different bayberry grades.
Physical and Chemical ParametersMaxMinAverageStandard Deviation
Anthocyanin (μg/g)518.0410.18172.27135.98
Total sugar (mg/g)201.2819.9867.7629.80
Sugar content (Brix)13.505.418.181.59
pH2.851.932.360.21
Table 2. Linear relationship, quadratic relationship, exponential relationship, logarithmic relationship and power function relationship between reflectance, normalized index NI and relative content of bayberry anthocyanin.
Table 2. Linear relationship, quadratic relationship, exponential relationship, logarithmic relationship and power function relationship between reflectance, normalized index NI and relative content of bayberry anthocyanin.
Spectral IndexFunction R 2
Anthocyanin/(μg·g−1)reflectance
R (R610)
y = −15.02x + 3700.6197
y = 0.7375x2 − 36.21x + 483.70.6795
y = 544.9 × exp(−0.1064 × x)0.6776
y = −410.5 × log10(x) + 600.60.6745
y = −41,730 × x0.004231 + 42,3300.6745
NI (R620, R630)y = −1978 × x + 27.420.6448
y = −1831 × x2 − 2257 × x + 22.430.6458
y = 70.36 × exp(−10.33 × x)0.5978
pHreflectance
R (R570)
y = −0.02745x + 2.6070.5687
y = 0.001571x2 − 0.06363x + 2.730.6458
y = 2.627 × exp(−0.01233 × x)0.5841
y = −0.5685 × log10(x) + 2.8250.6541
y = 1.515 × x−0.2733 + 1.4340.6589
NI (R620, R630)y = −3.398 × x + 2.1480.6930
y = −11.45 × x2 − 5.092 × x + 2.1220.7071
y = 2.156 × exp(−1.403 × x)0.6864
Table 3. Accuracy verification of bayberry reducing sugar and pH.
Table 3. Accuracy verification of bayberry reducing sugar and pH.
MaxMinAverageAccuracy
Sugar content
/Brix
Modeled10.0808.6839.41994.74%
Measured10.9008.4009.729
pHModeled2.6162.5132.57497.14%
Measured2.7402.3602.573
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

Wang, J.; Wu, W.; Tian, S.; He, Y.; Huang, Y.; Wang, F.; Zhang, Y. Non-Destructive Determination of Bayberry Sugar and Acidity by Hyperspectral Remote Sensing of Si-Sensor and Low-Cost Portable Instrument Development. Sensors 2023, 23, 9822. https://doi.org/10.3390/s23249822

AMA Style

Wang J, Wu W, Tian S, He Y, Huang Y, Wang F, Zhang Y. Non-Destructive Determination of Bayberry Sugar and Acidity by Hyperspectral Remote Sensing of Si-Sensor and Low-Cost Portable Instrument Development. Sensors. 2023; 23(24):9822. https://doi.org/10.3390/s23249822

Chicago/Turabian Style

Wang, Jiaoru, Weizhi Wu, Shoupeng Tian, Yadong He, Yun Huang, Fumin Wang, and Yao Zhang. 2023. "Non-Destructive Determination of Bayberry Sugar and Acidity by Hyperspectral Remote Sensing of Si-Sensor and Low-Cost Portable Instrument Development" Sensors 23, no. 24: 9822. https://doi.org/10.3390/s23249822

APA Style

Wang, J., Wu, W., Tian, S., He, Y., Huang, Y., Wang, F., & Zhang, Y. (2023). Non-Destructive Determination of Bayberry Sugar and Acidity by Hyperspectral Remote Sensing of Si-Sensor and Low-Cost Portable Instrument Development. Sensors, 23(24), 9822. https://doi.org/10.3390/s23249822

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