Portable detector for detecting sugar core of apple
Through a portable detector combined with spectral technology and machine learning algorithms, rapid and non-destructive testing of apple candy hearts is achieved, solving the time-consuming and labor-intensive problem of traditional detection methods, and improving the convenience and accuracy of detection.
Patent Information
- Application Number
- CN202510286653.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-12
- Publication Date
- 2025-06-06
AI Technical Summary
The traditional apple candy heart detection method relies on manual slice inspection, which is time-consuming and labor-intensive and difficult to achieve rapid detection of a large number of apples.
A portable detector is designed, including a light source, control element, spectral acquisition element and spectral information analysis element, and the rapid and non-destructive detection of apple candy hearts through spectral technology and machine learning algorithms.
Online field testing of apple candy hearts has been achieved, which significantly improves the convenience and accuracy of the inspection, ensures the best picking time for apples, and avoids economic losses caused by indoor testing.
Smart Images

Figure CN120102472A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of agricultural product detection, and in particular to a portable detector for detecting apple cores. Background Art
[0002] In agricultural production, candy apples are a common phenomenon, which refers to brown or transparent spots that appear inside apples. This is usually caused by low temperature damage during the growth process. Although candy apples may not have obvious differences in taste, they have a significant impact on the appearance quality and commercial value of apples. The traditional method of detecting candy apples mainly relies on manual slicing inspection, which is not only time-consuming and labor-intensive, but also difficult to achieve rapid detection of large numbers of apples.
[0003] Therefore, it is particularly important to develop an efficient and accurate technology for detecting apple candy core. Summary of the invention
[0004] In recent years, with the rapid development of spectral technology and machine learning algorithms, these technologies have been widely used in the quality inspection and classification of agricultural products. Spectral technology can obtain the internal chemical information of a substance by analyzing its spectral characteristics, while machine learning algorithms can learn and extract useful features from a large amount of data to achieve accurate prediction of unknown samples. In view of this, the present invention proposes a portable detector for apple candy core detection, which aims to achieve rapid and non-destructive detection of apple candy core.
[0005] The present invention proposes a portable detector for detecting the core of an apple, comprising a light source, a control element, a spectrum collection element and a spectrum information analysis element;
[0006] Wherein, the light source is configured to provide a detection light source to the surface of the apple to be tested;
[0007] The spectrum collection system is configured to collect spectrum information of apples;
[0008] The spectrum information analysis element is configured to receive the spectrum information and perform data processing and analysis;
[0009] The control element is connected to the light source, and is configured to control the on and off of the light source, and control the start and stop of the spectrum collection system.
[0010] Preferably, the light source is a halogen lamp, the illumination wavelength range of the halogen lamp is 360-2000nm, and the operating voltage is 12V.
[0011] Preferably, the spectrum collection element is an AIOX2000-3 spectrometer, whose inspection range is 350-1050nm and operating voltage is 3.3V.
[0012] Preferably, the spectrum collection element includes a vacuum chuck, a vacuum ball, a collimating mirror and an optical fiber interface;
[0013] Among them, the vacuum suction cup is connected to the vacuum ball and is used to absorb the apple to be tested; the collimating lens is arranged at the connection between the vacuum suction cup and the vacuum ball, and the collimating lens is used to collimate the light emitted by the light source; the optical fiber interface is arranged at the end of the vacuum ball away from the vacuum suction cup, and the optical fiber interface is connected to the spectrometer, and is used to transmit the collected spectral information to the spectrometer.
[0014] Preferably, the spectral information analysis element includes a box body, a box cover, a display screen, a processor, a heat sink and a spectrometer;
[0015] The processor is connected to the spectrometer, and is used to receive spectral information collected by the spectrometer, and perform data analysis to determine whether the apple has a core; the display screen is arranged in the box, and the display screen is configured to display the analysis results; the outer surface of the box cover is provided with an opening, and the opening is used to expose the display screen; the radiator is arranged next to the processor, and is used to dissipate heat from the processor; the spectrometer is arranged in the box, and is connected to the processor, and is used to collect spectral information of the apple.
[0016] Preferably, the spectrum information analysis element further includes an antenna and a network module;
[0017] The antenna is arranged outside the box, the network module is arranged inside the box, and the network module is connected to the processor and the antenna respectively; the antenna and the network module are used to realize data transmission between the detector and the host computer.
[0018] Preferably, the spectral information analysis element is configured to pre-process the collected spectral data to remove noise and perform standardization processing, and the standardization processing is performed according to the following calculation formula:
[0019]
[0020] Among them, S(λ) represents the original spectral data; μ represents the mean of the spectral data; σ represents the standard deviation; S′(λ) represents the standardized spectral data.
[0021] Preferably, the spectral information analysis element is further configured to extract spectral characteristic values of the characteristic band of the sugar core, and the characteristic values are calculated according to the following calculation formula:
[0022]
[0023] Among them, F i represents the characteristic value of a specific band; w(λ) represents the weight function; λ 1 , 2 Indicates the spectral wavelength range associated with the sugar core.
[0024] Preferably, the spectrum information analysis component is further configured to calculate the sugar content index of apples based on regression analysis, and the sugar content index is calculated according to the following regression equation:
[0025]
[0026] Among them, Y represents the sugar index; β 0 , β i represents the regression coefficient; F i Represents the spectral characteristic values of different characteristic bands.
[0027] Preferably, the spectral information analysis component is further configured to optimize the detection of the core of the apple based on machine learning, and adopt a support vector machine classification algorithm to determine whether the apple has the core of the apple, and the determination process satisfies the following optimization objective function:
[0028]
[0029] Among them, w represents the feature weight vector; b represents the bias term; C represents the classification hyperparameter; yi represents the sample label, +1 represents that the apple has a sugar core, and -1 represents that the apple has no sugar core.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] In terms of functions, the portable nondestructive apple core detector of the present invention can realize online field detection of apple core and output the test results in real time, which significantly improves the convenience of apple core detection. The device can perform nondestructive testing at various key periods before apples mature, ensuring the best time to pick apples, while avoiding the economic losses that may be caused by indoor testing after picking;
[0032] In terms of structural design, the spectrum acquisition part of the portable apple candy core nondestructive tester adopts vacuum adsorption technology, which minimizes the interference of the external environment on the spectrometer and ensures the accuracy of the spectrum information. In addition, the use of the vacuum suction cup will not cause any damage to the apple being tested. In the light source irradiation and control part, the present invention integrates the design of the halogen lamp and the control button, making the entire measurement process simpler and ensuring the efficiency and accuracy of the measurement to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0034] Figure 1 It is a schematic diagram of the structure of a portable detector for detecting the candied core of apples according to the present invention;
[0035] Figure 2 It is a structural schematic diagram of the spectrum information analysis element of the present invention;
[0036] Figure 3 It is a structural schematic diagram of the light source and the control element of the present invention;
[0037] Figure 4 It is a structural schematic diagram of the spectrum collection element of the present invention;
[0038] In the figure, 1. light source; 2. control element; 3. spectrum collection element; 4. spectrum information analysis element; 5. optical fiber; 6. box; 7. box cover; 8. display screen; 9. processor; 10. heat sink; 11. spectrometer; 12. network module; 13. 6V interface; 14. 12V interface; 15. power switch; 16. first button; 17. second button; 18. vacuum suction cup; 19. collimator; 20. vacuum ball; 21. optical fiber interface; 22. antenna. DETAILED DESCRIPTION
[0039] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features described in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0040] See also Figure 1-4 , this embodiment provides a portable detector for detecting the candy core of apples, comprising a light source 1, a control element 2, a spectrum collection element 3 and a spectrum information analysis element 4;
[0041] Wherein, the light source 1 is configured to provide a detection light source 1 to the surface of the apple to be tested;
[0042] The spectrum collection element 3 is configured to collect spectrum information of apples;
[0043] The spectrum information analysis element 4 is configured to receive the spectrum information and perform data processing and analysis;
[0044] The control element 2 is connected to the light source 1 , and is configured to control the on and off of the light source 1 , and control the start and stop of the spectrum collection element 3 .
[0045] It can be seen that the present embodiment aims to introduce a portable detector, which is specially used for detecting the candy core of apples, and which comprises a plurality of key components, including a light source 1, a control element 2, a spectrum collection element 3 and a spectrum information analysis element 4;
[0046] Among these components, the role of light source 1 is crucial. It is carefully designed and configured so as to provide accurate detection light source 1 to the surface of the apple to be inspected, ensuring the accuracy of the inspection process;
[0047] The spectrum collection element 3 also plays an indispensable role. It is specially configured to collect spectrum information of the apple surface, which is crucial for subsequent analysis and judgment.
[0048] The spectrum information analysis component 4 is responsible for receiving the spectrum information provided by the spectrum collection component 3, and identifying and judging whether the apple contains sugar core through a series of complex data processing and analysis processes;
[0049] The control element 2 serves as the central nervous system of the entire detector. It connects and controls the light source 1 and the spectrum collection element 3. It is responsible for accurately controlling the opening and closing of the light source 1 and the starting and stopping of the spectrum collection element 3 to ensure the smoothness and efficiency of the entire detection process.
[0050] It can be understood that the portable detector of this embodiment realizes the accurate detection of the apple core by integrating multiple key components. This detector not only improves the accuracy of detection, but also greatly simplifies the operation process, making the detection process more convenient and efficient. In practical applications, the detector can be widely used in orchards, agricultural product markets, food processing companies and other scenarios, providing strong technical support for apple quality detection and grading. In addition, the design of the detector also fully considers portability and ease of use, so that users can perform detection anytime and anywhere, greatly improving work efficiency.
[0051] In some embodiments of the present application, the light source 1 is a halogen lamp, the illumination wavelength range of the halogen lamp is 360-2000nm, and the operating voltage is 12V.
[0052] It is understandable that the reason why the present embodiment selects a halogen lamp as the light source 1 is that the halogen lamp has the characteristics of stable illumination intensity and a wide wavelength range, and is very suitable for spectral detection. In the present embodiment, the illumination wavelength range of the halogen lamp is set to 360-2000nm, which covers the main spectral information required for the detection of the apple candy core, ensuring the comprehensiveness and accuracy of the detection. At the same time, the operating voltage of the halogen lamp is set to 12V, which not only ensures the stable operation of the light source 1, but also avoids the potential safety hazards caused by excessive voltage. By adopting a halogen lamp as the light source 1, the portable detector of the present embodiment is more scientific and reasonable in the selection of the light source 1, and further improves the accuracy and reliability of the detection.
[0053] In some embodiments of the present application, the spectrum collection element 3 is an AIOX2000-3 spectrometer 11, whose inspection range is 350-1050nm and operating voltage is 3.3V.
[0054] It is understandable that the reason why the AIOX2000-3 spectrometer 11 is selected as the spectrum acquisition element 3 in this embodiment is that the spectrometer 11 has the advantages of a wide inspection range, high sensitivity, and fast response speed, and is very suitable for the spectral information acquisition of the apple candy core. In this embodiment, the inspection range of the AIOX2000-3 spectrometer 11 is set to 350-1050nm. This range is matched with the illumination wavelength range of the halogen lamp, and can fully cover the spectral information required for the detection of the apple candy core, further improving the accuracy and comprehensiveness of the detection. At the same time, the operating voltage of the spectrometer 11 is 3.3V, and the low-power design makes the entire detector more energy-saving and environmentally friendly. By adopting the AIOX2000-3 spectrometer 11 as the spectrum acquisition element 3, the portable detector of this embodiment is more efficient and accurate in spectral information acquisition, providing users with more reliable detection results.
[0055] In some embodiments of the present application, the spectrum collection element 3 includes a vacuum chuck 18, a vacuum ball, a collimating lens 19 and an optical fiber interface 21;
[0056] Among them, the vacuum suction cup 18 is connected to the vacuum ball and is used to absorb the apple to be tested; the collimator 19 is arranged at the connection between the vacuum suction cup 18 and the vacuum ball, and the collimator 19 is used to collimate the light emitted by the light source 1; the optical fiber interface 21 is arranged at the end of the vacuum ball away from the vacuum suction cup 18, and the optical fiber interface 21 is connected to the spectrometer 11, and is used to transmit the collected spectral information to the spectrometer 11.
[0057] The spectrum collection element 3 is connected to the spectrum information analysis element 4 via an optical fiber 5 .
[0058] It is understandable that the reason why the spectrum collection element 3 including the vacuum suction cup 18, vacuum ball, collimator 19 and optical fiber interface 21 is designed in this embodiment is to ensure that the spectrum information of the apple surface can be stably and accurately collected during the detection process. The connection design of the vacuum suction cup 18 and the vacuum ball allows the apple to be firmly adsorbed, avoiding shaking and displacement during the detection process, thereby ensuring the stability and accuracy of the spectrum information collection. The setting of the collimator 19 can collimate the light emitted by the light source 1, so that the light can be evenly irradiated on the surface of the apple, further improving the accuracy and reliability of the spectrum information collection. The connection between the optical fiber interface 21 and the spectrometer 11 realizes the real-time transmission and analysis of the spectrum information, providing users with more timely and accurate test results. Through such a clever design, the portable detector of this embodiment is more efficient and stable in the collection of spectrum information, providing users with more reliable technical support.
[0059] In some embodiments of the present application, the spectral information analysis element 4 includes a box body 6, a box cover 7, a display screen 8, a processor 9, a heat sink 10 and a spectrometer 11;
[0060] Among them, the processor 9 is connected to the spectrometer 11, and is used to receive the spectral information collected by the spectrometer 11, and perform data analysis to determine whether the apple has a sugar core; the display screen 8 is arranged on the outer surface of the box cover 7, and is used to display the analysis results; the radiator 10 is arranged next to the processor 9, and is used to dissipate heat for the processor 9; the spectrometer 11 is arranged in the box body 6, and is connected to the processor 9, and is used to collect the spectral information of the apple.
[0061] It is understandable that the reason why the present embodiment designs the spectral information analysis element 4 including the box body 6, the box cover 7, the display screen 8, the processor 9, the radiator 10 and the spectrometer 11 is to realize the efficient collection, accurate analysis and timely display of the spectral information. The processor 9 is the core of the entire analysis element. It connects and receives the spectral information from the spectrometer 11. Through a series of complex data processing and analysis algorithms, it can accurately determine whether the apple has a sugar core. Preferably, the processor 9 is an ARM processor 9. The setting of the display screen 8 enables the analysis results to be displayed in real time and intuitively in front of the user, providing great convenience for the user. The design of the radiator 10 effectively avoids the overheating problem that may occur in the long-term working process of the processor 9, and ensures the stable operation of the entire analysis element. The spectrometer 11 is responsible for collecting the spectral information of the apple and transmitting it to the processor 9 for analysis. Through such a design, the portable detector of the present embodiment is more efficient and accurate in spectral information analysis, providing users with more reliable technical guarantees.
[0062] In some of the embodiments of the present application, the spectrum information analysis element 4 further includes an antenna 22 and a network module 12;
[0063] The antenna 22 is arranged outside the box 6, the network module 12 is arranged inside the box 6, and the network module 12 is connected to the processor 9 and the antenna 22 respectively; the antenna 22 and the network module 12 are used to realize data transmission between the detector and the host computer.
[0064] It is understandable that the reason why the antenna 22 and the network module 12 are added to the spectrum information analysis element 4 in this embodiment is to realize the remote transmission and sharing of the detection data. Among them, the network module 12 is preferably a 4G module. Antenna 22 is a device for receiving and transmitting signals. It is arranged outside the housing 6 to ensure the stable transmission of signals. The network module 12 is responsible for the packaging, encryption and transmission of data. It is arranged in the housing 6 and connected with the processor 9 and the antenna 22 to realize the seamless connection between the detector and the remote terminal. Through such a design, users can not only view the detection results in real time on site, but also obtain the detection data anytime and anywhere through the host computer, which greatly improves the work efficiency and convenience. At the same time, this also provides the possibility for the remote analysis and processing of data, and provides users with more comprehensive and reliable technical support.
[0065] In some embodiments of the present application, the spectrum information analysis element 4 further includes a 6V interface 13 , a 12V interface 14 and a power switch 15 .
[0066] In some embodiments of the present application, the spectral information analysis element 4 is configured to pre-process the collected spectral data to remove noise and perform standardization processing, and the standardization processing is performed according to the following calculation formula:
[0067]
[0068] Among them, S(λ) represents the original spectral data; μ represents the mean of the spectral data; σ represents the standard deviation; S′(λ) represents the standardized spectral data.
[0069] It is understandable that the reason why the present embodiment performs preprocessing on the collected spectral data is to improve the accuracy and reliability of subsequent data analysis. During the spectral data collection process, due to the influence of various factors, such as instrument noise, environmental interference, etc., the collected spectral data often has certain noise and fluctuations. If these noises and fluctuations are not processed, they will have an adverse effect on the subsequent data analysis and even lead to erroneous judgment results. Therefore, the present embodiment uses preprocessing technology to denoise and standardize the collected spectral data. By removing noise, useless information in the data can be reduced and the signal-to-noise ratio of the data can be improved; and standardization can convert the data into a unified scale, so that the data between different samples are comparable. Such a preprocessing process provides a more accurate and reliable data basis for subsequent data analysis.
[0070] In some embodiments of the present application, the spectrum information analysis element 4 is further configured to extract the spectrum characteristic value of the characteristic band of the sugar core, and the characteristic value is calculated according to the following calculation formula:
[0071]
[0072] Among them, F i represents the characteristic value of a specific band; w(λ) represents the weight function; λ 1 , 2 Indicates the spectral wavelength range associated with the sugar core.
[0073] It is understandable that the reason why the present embodiment further configures the spectral information analysis element 4 to extract the spectral characteristic values of the core characteristic band is to more accurately identify and judge whether the apple has a core. In the spectral data, the spectral characteristic values of the core characteristic band often contain important information about the core of the apple. By extracting these characteristic values, we can have a deeper understanding of the core characteristics of the apple, thereby improving the accuracy and reliability of the judgment. When calculating the characteristic values, we use a weight function w(λ), which performs weighted processing according to the spectral wavelength ranges λ1 and λ2 related to the core to highlight the information of these key bands. Through such a design, the spectral information analysis element 4 of the present embodiment is more accurate and efficient in identifying and judging the core of the apple, providing users with a more reliable technical means.
[0074] In some embodiments of the present application, the spectrum information analysis element 4 is further configured to calculate the sugar content index of apples based on regression analysis, and the sugar content index is calculated according to the following regression equation:
[0075]
[0076] Among them, Y represents the sugar index; β 0 , β irepresents the regression coefficient; F i Represents the spectral characteristic values of different characteristic bands.
[0077] It is understandable that the reason why the present embodiment further configures the spectral information analysis element 4 to calculate the apple's heart index based on regression analysis is to quantitatively evaluate the degree of the apple's heart and provide users with a more intuitive basis for judgment. In practical applications, it is not enough to simply identify and extract the spectral characteristic values of the heart characteristic band. We also need a method to quantify the relationship between these characteristic values and the degree of the apple's heart. Regression analysis is an effective tool that can help us establish a mathematical model between characteristic values and heart index. In this model, the heart index Y is used as the dependent variable to represent the degree of the apple's heart; and the spectral characteristic values Fi of different characteristic bands are used as independent variables to reflect the spectral characteristics of apples in specific bands. The regression coefficients β0 and βi describe the degree and direction of the influence of these characteristic values on the heart index. Through such regression analysis, we can quickly and accurately calculate the heart index of the apple based on the collected spectral data, providing users with a more convenient and reliable detection method.
[0078] In some embodiments of the present application, the spectral information analysis element 4 is further configured to optimize the detection of the core of the apple based on machine learning, using a support vector machine classification algorithm to determine whether the apple has a core of the apple, and the determination process satisfies the following optimization objective function:
[0079]
[0080] Among them, w represents the feature weight vector; b represents the bias term; C represents the classification hyperparameter; yi represents the sample label, +1 represents that the apple has a sugar core, and -1 represents that the apple has no sugar core.
[0081] It is understandable that the reason why the present embodiment further configures the spectral information analysis element 4 to optimize the detection of the core based on machine learning is to further improve the accuracy and efficiency of the detection of the core. In practical applications, although we have quantitatively evaluated the degree of the core of apples by means of preprocessing, feature extraction and regression analysis, these traditional methods may still have certain limitations in the face of complex and changeable actual situations. Therefore, the present embodiment introduces machine learning technology, especially the support vector machine classification algorithm, to make a more accurate and efficient judgment on the core of apples. As a powerful classification tool, the support vector machine can find the optimal classification hyperplane in a high-dimensional space and effectively separate samples of different categories. In this embodiment, we optimize the objective function, continuously adjust the feature weight vector w and the bias term b, as well as the classification hyperparameter C, so that the classifier can better adapt to the actual data and improve the accuracy and generalization ability of the classification. At the same time, we train and learn according to the sample label yi (+1 indicates that the apple has a core, -1 indicates that the apple has no core), so that the classifier can automatically identify and classify new apple samples. Through such a design, the spectrum information analysis element 4 of this embodiment is more intelligent and efficient in detecting the sugar core, and provides users with more accurate and reliable detection results.
[0082] In some embodiments of the present application, a first button 16 and a second button 17 are provided on the control element 2 .
[0083] When the first button 16 is pressed, the spectrometer 11 starts to collect spectral information of the tested apple. After the display screen 8 shows that the collection is completed, the second button 17 is pressed, and the ARM processor 9 obtains the spectral information from the spectrometer 11 and uploads the spectral information to the host computer (such as a remote terminal) through the 4G module and saves it. It should be understood by those skilled in the art that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0084] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0085] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0086] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A portable detector for detecting apple core, characterized in that: It includes a light source, a control element, a spectrum collection element and a spectrum information analysis element; Wherein, the light source is configured to provide a detection light source to the surface of the apple to be tested; The spectrum collection system is configured to collect spectrum information of apples; The spectrum information analysis element is configured to receive the spectrum information and perform data processing and analysis; The control element is connected to the light source, and is configured to control the on and off of the light source, and control the start and stop of the spectrum collection system.
2. The portable detector for detecting the candy core of apples according to claim 1, characterized in that: The light source is a halogen lamp, the illumination wavelength range of the halogen lamp is 360-2000nm, and the operating voltage is 12V.
3. The portable detector for detecting the candy core of apples according to claim 1, characterized in that: The spectrum acquisition element is an AIOX2000-3 spectrometer, the inspection range of which is 350-1050nm and the operating voltage is 3.3V.
4. The portable detector for detecting the candy core of apples according to claim 1, characterized in that: The spectrum collection element includes a vacuum chuck, a vacuum ball, a collimating mirror and an optical fiber interface; Among them, the vacuum suction cup is connected to the vacuum ball and is used to absorb the apple to be tested; the collimating lens is arranged at the connection between the vacuum suction cup and the vacuum ball, and the collimating lens is used to collimate the light emitted by the light source; the optical fiber interface is arranged at the end of the vacuum ball away from the vacuum suction cup, and the optical fiber interface is connected to the spectrometer, and is used to transmit the collected spectral information to the spectrometer.
5. The portable detector for detecting the candy core of apples according to claim 1, characterized in that: The spectrum information analysis element includes a box body, a box cover, a display screen, a processor, a heat sink and a spectrometer; The processor is connected to the spectrometer, and is used to receive spectral information collected by the spectrometer, and perform data analysis to determine whether the apple has a core; the display screen is arranged in the box, and the display screen is configured to display the analysis results; the outer surface of the box cover is provided with an opening, and the opening is used to expose the display screen; the radiator is arranged next to the processor, and is used to dissipate heat from the processor; the spectrometer is arranged in the box, and is connected to the processor, and is used to collect spectral information of the apple.
6. The portable detector for detecting the candy core of apples according to claim 5, characterized in that: The spectrum information analysis element also includes an antenna and a network module; The antenna is arranged outside the box, the network module is arranged inside the box, and the network module is connected to the processor and the antenna respectively; the antenna and the network module are used to realize data transmission between the detector and the host computer.
7. The portable detector for detecting the candy core of apples according to claim 1, characterized in that: The spectral information analysis component is configured to pre-process the collected spectral data to remove noise and perform standardization processing, and the standardization processing is performed according to the following calculation formula: Among them, S(λ) represents the original spectral data; μ represents the mean of the spectral data; σ represents the standard deviation; S′(λ) represents the standardized spectral data.
8. The portable detector for detecting the candy core of apples according to claim 7, characterized in that: The spectrum information analysis component is further configured to extract the spectrum characteristic value of the characteristic band of the sugar core, and the characteristic value is calculated according to the following calculation formula: Among them, F i represents the characteristic value of a specific band; w(λ) represents the weight function; λ1 and λ2 represent the spectral wavelength range related to the sugar core.
9. The portable detector for detecting the candy core of apples according to claim 8, characterized in that: The spectrum information analysis component is further configured to calculate the sugar content index of the apple based on regression analysis, and the sugar content index is calculated according to the following regression equation: Among them, Y represents the sugar content index; β0, β i represents the regression coefficient; F i Represents the spectral characteristic values of different characteristic bands.
10. The portable detector for detecting the candy core of apples according to claim 9, characterized in that: The spectral information analysis component is further configured to optimize the detection of the core of the apple based on machine learning, using a support vector machine classification algorithm to determine whether the apple has a core of the apple, and the determination process satisfies the following optimization objective function: Among them, w represents the feature weight vector; b represents the bias term; C represents the classification hyperparameter; yi represents the sample label, +1 represents that the apple has a sugar core, and -1 represents that the apple has no sugar core.