Liquid nitrogen quick-frozen litchi quality detection method, device, equipment and medium
Through the liquid nitrogen quick-frozen lychee quality detection method, hyperspectral images and SVR algorithms are used to construct a lychee quality detection model, which solves the problems of weight loss and nutrient loss in lychee quality detection, achieves efficient and accurate quality assessment and detection, and simplifies User operations.
Patent Information
- Application Number
- CN202410678332.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, lychees that have been quick-frozen in liquid nitrogen have problems with weight loss, loss of soluble solids, titratable acid, vitamin C and other nutrients, and cannot meet the needs of lychee storage and deep processing.
Using the liquid nitrogen quick-frozen lychee quality detection method, by obtaining the physical and chemical index content and hyperspectral images of liquid nitrogen quick-frozen lychee samples, combined with the preset continuous projection and principal component analysis fusion algorithm, the SVR algorithm was used to build a lychee quality detection model to predict the quality of lychees. Quality score enables rapid and accurate assessment of lychee quality.
It achieves high-resolution, non-destructive testing of the quality of liquid nitrogen quick-frozen lychees, improves the accuracy and processing efficiency of fruit quality testing, and provides a theoretical basis for reducing lychee quality loss. Users can easily learn the quality without damaging the appearance of the fruit.
Smart Images

Figure CN118655092A
Abstract
Description
Technical Field
[0001] The present application relates to the field of fruit quality detection, and in particular to a method for detecting the quality of liquid nitrogen quick-frozen lychees, a corresponding device, an electronic device, and a computer-readable storage medium. Background Art
[0002] Litchi is an important specialty economic crop in my country. According to the data of the National Litchi and Longan Industry Technology System, in 2023, the production area of lychees in my country reached 7.9 million mu, and the output reached 3.29 million tons. Fresh lychees are not easy to store, which directly leads to a short-term oversupply and annual shortage of lychees, and also has a certain impact on the supply of deep-processing raw materials. Traditional frozen lychee technology has problems such as slow freezing rate, high juice loss rate after thawing, rapid color browning, and large loss of nutrients, which cannot meet people's demand for lychee storage.
[0003] Liquid nitrogen quick freezing technology is an efficient food freezing technology that can reduce the temperature of food to below freezing point in a very short time, forming small and uniform ice crystals, thereby maintaining the taste, color and nutritional value of the food. However, studies have shown that the quality of lychees after liquid nitrogen quick freezing may change, such as weight loss, loss of nutrients such as soluble solids, titratable acid and vitamin C.
[0004] In summary, the quality of lychees quick-frozen by liquid nitrogen in the prior art may change, such as weight loss, loss of nutrients such as soluble solids, titratable acid and vitamin C, etc. The applicant has made corresponding explorations to solve this problem. Summary of the invention
[0005] The purpose of the present application is to solve the above-mentioned problems and to provide a liquid nitrogen quick-frozen lychee quality detection method, a corresponding device, an electronic device and a computer-readable storage medium.
[0006] In order to meet the various objectives of this application, this application adopts the following technical solutions:
[0007] A method for detecting the quality of liquid nitrogen quick-frozen lychees proposed to meet one of the purposes of this application comprises:
[0008] In response to the liquid nitrogen quick-frozen lychee quality detection instruction, the physical and chemical index contents of the liquid nitrogen quick-frozen lychee sample and the hyperspectral image corresponding to the liquid nitrogen quick-frozen lychee sample are obtained, wherein the physical and chemical index contents include soluble solids, titratable acid and vitamin C content;
[0009] Extracting a region of interest from the preliminarily processed hyperspectral image, and calculating and determining average spectral reflectance data of the region of interest;
[0010] Based on the average spectral reflectance data, a preset continuous projection and principal component analysis fusion algorithm is used to extract the sensitive bands corresponding to the soluble solids, titratable acid and vitamin C content respectively, so as to determine the spectral reflectance data after feature dimension reduction;
[0011] Based on the SVR algorithm, a litchi quality detection model is constructed according to the spectral reflectance data after the feature dimension reduction and the soluble solids, titratable acid and vitamin C content;
[0012] Based on the pre-trained lychee quality detection model, the corresponding physicochemical index contents of the liquid nitrogen quick-frozen lychees to be tested are predicted, and the quality scores of the liquid nitrogen quick-frozen lychees to be tested are determined according to the physicochemical index contents and the corresponding weight loss values of the liquid nitrogen quick-frozen lychees to be tested, so as to complete the quality detection of the liquid nitrogen quick-frozen lychees.
[0013] Optionally, before the step of obtaining the physical and chemical index contents of the liquid nitrogen quick-frozen lychee sample and the hyperspectral image corresponding to the liquid nitrogen quick-frozen lychee sample, the method includes:
[0014] Each liquid nitrogen quick-frozen lychee sample was frozen with liquid nitrogen, and after being stored for a certain period of time and at a storage temperature, it was thawed in a water bath. The liquid nitrogen freezing temperature was -80°C, the storage temperature was -30°C to -4°C, the time was 20min to 60min, and the water bath thawing temperature was 25°C.
[0015] Optionally, the step of obtaining the physical and chemical index contents of the liquid nitrogen quick-frozen litchi sample and the hyperspectral image corresponding to the liquid nitrogen quick-frozen litchi sample includes:
[0016] The soluble solids content in the pulp of liquid nitrogen quick-frozen lychee samples was determined by refractometer, the titratable acid content in the pulp of liquid nitrogen quick-frozen lychee samples was determined by high performance liquid chromatography, and the vitamin C content in the pulp of liquid nitrogen quick-frozen lychee samples was determined by ultraviolet spectrophotometry.
[0017] Optionally, the step of extracting a region of interest from the preliminarily processed hyperspectral image and calculating and determining average spectral reflectance data of the region of interest includes:
[0018] The average spectral reflectance data is preprocessed by SNV-CWT, and its expression is:
[0019]
[0020] In the formula, Z i Represents the spectral reflectance data output after standard normal transformation, X i represents the average spectral reflectance data of each region of interest, Represents X iThe average value of X i The standard deviation of .
[0021]
[0022] Where W f (a, b) represent the wavelet coefficients, reflecting the relationship between the wavelet basis and the spectral reflectance at different scales. Z represents the spectral reflectance data output after the standard normal transformation. a,b (λ) represents the wavelet basis function, λ represents the wavelength of the spectral curve, a represents the expansion factor, and b represents the translation factor.
[0023] Optionally, the step of constructing a litchi quality detection model based on the spectral reflectance data after feature dimension reduction and the soluble solids, titratable acid and vitamin C content based on the SVR algorithm comprises:
[0024] Based on the SVR algorithm, a regression relationship between the soluble solids, titratable acid and vitamin C content and the spectral reflectance data after feature dimension reduction is established;
[0025] The soluble solids, titratable acid and vitamin C contents of liquid nitrogen quick-frozen lychee samples and the spectral reflectance data after feature dimensionality reduction are used as model input, and the regression relationship between the two is used as model output. A multi-objective prediction model for soluble solids, titratable acid and vitamin C content is trained to construct a lychee quality detection model.
[0026] Optionally, the step of predicting the physical and chemical index contents corresponding to the liquid nitrogen quick-frozen lychees to be tested based on the pre-trained lychee quality detection model, and determining the quality score of the liquid nitrogen quick-frozen lychees to be tested according to the physical and chemical index contents and the weight loss values corresponding to the liquid nitrogen quick-frozen lychees to be tested, comprises:
[0027] The calculation formula for the quality score F of liquid nitrogen quick-frozen lychees is:
[0028]
[0029] Where V n represents the weight of the nth indicator, F n Represents the score of the nth indicator.
[0030] Optionally, the step of determining the quality score of the liquid nitrogen quick-frozen lychees to be tested according to the physical and chemical index contents and the corresponding weight loss values of the liquid nitrogen quick-frozen lychees to be tested comprises:
[0031] In response to the liquid nitrogen quick-frozen lychee quality grade detection instruction, determine the soluble solids, titratable acid and vitamin C content and the weight loss value of the liquid nitrogen quick-frozen lychee;
[0032] Calculate and determine the quality score of the liquid nitrogen quick-frozen lychees based on the soluble solids, titratable acid and vitamin C contents and the weight loss value of the liquid nitrogen quick-frozen lychees;
[0033] The quality grade of the liquid nitrogen quick-frozen lychees is determined according to the quality score of the liquid nitrogen quick-frozen lychees, so as to complete the quality detection of the liquid nitrogen quick-frozen lychees.
[0034] A liquid nitrogen quick-frozen lychee quality detection device provided for another purpose of the present application comprises:
[0035] A data acquisition module is configured to respond to a liquid nitrogen quick-frozen lychee quality detection instruction to obtain the physical and chemical index content of the liquid nitrogen quick-frozen lychee sample and a hyperspectral image corresponding to the liquid nitrogen quick-frozen lychee sample, wherein the physical and chemical index content includes soluble solids, titratable acid and vitamin C content;
[0036] The average spectrum determination module is configured to extract a region of interest from the preliminarily processed hyperspectral image and calculate and determine average spectral reflectance data of the region of interest;
[0037] A feature dimension reduction module is configured to respectively extract the sensitive bands corresponding to the soluble solids, titratable acid and vitamin C content based on the average spectral reflectance data using a preset continuous projection and principal component analysis fusion algorithm to determine the spectral reflectance data after feature dimension reduction;
[0038] A detection model building module is configured to build a litchi quality detection model based on the spectral reflectance data after the feature dimension reduction and the soluble solids, titratable acid and vitamin C content based on an SVR algorithm;
[0039] The litchi quality detection module is configured to predict the physical and chemical index contents corresponding to the liquid nitrogen quick-frozen litchi to be detected based on a pre-trained litchi quality detection model, and determine the quality score of the liquid nitrogen quick-frozen litchi to be detected according to the physical and chemical index contents and the weight loss values corresponding to the liquid nitrogen quick-frozen litchi to be detected, so as to complete the quality detection of the liquid nitrogen quick-frozen litchi.
[0040] An electronic device provided to meet another purpose of the present application includes a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the steps of the liquid nitrogen quick-frozen lychee quality detection method described in the present application.
[0041] A computer-readable storage medium is provided to meet another purpose of the present application, which stores a computer program implemented according to the liquid nitrogen quick-frozen lychee quality detection method in the form of computer-readable instructions. When the computer program is called and executed by a computer, the steps included in the corresponding method are executed.
[0042] Compared with the prior art, the present application aims at the problems that the quality of lychees after quick freezing by liquid nitrogen in the prior art may change, such as weight loss, loss of nutrients such as soluble solids, titratable acid and vitamin C, etc. The present application includes but is not limited to the following beneficial effects:
[0043] First, the liquid nitrogen quick-frozen lychee quality detection method of the present application has the advantages of high resolution, large amount of information, and non-destructive detection. It can accurately and quickly evaluate the quality of lychees after liquid nitrogen quick-freezing, and score and grade the quality of liquid nitrogen quick-frozen lychees, providing a theoretical basis for reducing the quality loss of lychees in the subsequent liquid nitrogen quick-freezing process;
[0044] Secondly, the present application is based on a litchi quality detection model, which can accurately and quickly detect the quality of the fruit, effectively improving the accuracy of fruit quality detection and processing efficiency; further, using the liquid nitrogen quick-frozen litchi quality detection method of the present application, the user does not need to damage the appearance of the fruit, for example, there is no need to cut or taste the fruit, and the quality of the fruit can be easily obtained by simply uploading the litchi quality detection model to the server. The operation is simple, which greatly facilitates user use. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0046] Figure 1 This is a schematic diagram of the process of the liquid nitrogen quick-frozen lychee quality detection method of this application;
[0047] Figure 2 This is a schematic diagram of a structure diagram for sample object detection in an embodiment of the present application;
[0048] Figure 3 This is a principle block diagram of a liquid nitrogen quick-frozen lychee quality detection device in an embodiment of the present application;
[0049] Figure 4 It is a schematic diagram of the structure of the computer device in the embodiment of the present application. DETAILED DESCRIPTION
[0050] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.
[0051] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0052] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0053] It will be understood by those skilled in the art that the "client", "terminal" and "terminal device" used herein include both devices with wireless signal receivers, which are devices with only wireless signal receivers without transmission capabilities, and devices with receiving and transmitting hardware, which are devices with receiving and transmitting hardware capable of two-way communication on a two-way communication link. Such devices may include: cellular or other communication devices such as personal computers, tablet computers, which have single-line displays or multi-line displays or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service, personal communication system), which can combine voice, data processing, fax and / or data communication capabilities; PDA (Personal Digital Assistant, personal digital assistant), which may include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar and / or GPS (Global Positioning System, global positioning system) receiver; conventional laptop and / or palmtop computers or other devices, which have and / or include a conventional laptop and / or palmtop computer or other device with and / or including a radio frequency receiver. The "client", "terminal" and "terminal device" used herein may be portable, transportable, installed in a vehicle (air, sea and / or land), or suitable for and / or configured to run locally, and / or in a distributed form, at any other location on the earth and / or in space. The "client", "terminal" and "terminal device" used herein may also be a communication terminal, an Internet terminal, a music / video playing terminal, for example, a PDA, a MID (Mobile Internet Device) and / or a mobile phone with a music / video playing function, or a smart TV, a set-top box and other devices.
[0054] The hardware referred to by the names such as "server", "client", and "service node" in this application is essentially an electronic device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit calls the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input and output devices to complete specific functions.
[0055] It should be pointed out that the concept of "server" referred to in this application can also be extended to the case of server clusters. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided. In physical space, these servers can be independent of each other but can be called through interfaces, or integrated into a physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility, and should not use it to restrict the implementation of the network deployment method of this application.
[0056] Unless expressly specified, one or more technical features of the present application can be deployed on a server for implementation and accessed by a client through a remote call to obtain an online service interface provided by the server, or can be directly deployed and run on a client for access.
[0057] The neural network models referenced or may be referenced in this application, unless expressly specified, can be deployed on a remote server and remotely called on the client, or can be deployed and directly called on a client with sufficient device capabilities. In some embodiments, when it runs on the client, its corresponding intelligence can be obtained through transfer learning to reduce the requirements for the client's hardware operating resources and avoid excessive occupation of the client's hardware operating resources.
[0058] Unless explicitly specified, the various data involved in this application can be stored remotely on a server or on a local terminal device, as long as it is suitable for being called by the technical solution of this application.
[0059] Those skilled in the art should be aware that, although the various methods of the present application are described based on the same concept and thus present commonality to each other, unless otherwise specified, these methods can be independently executed. Similarly, for each embodiment disclosed in the present application, they are all proposed based on the same inventive concept, therefore, concepts with the same expression, and concepts that are appropriately changed for convenience despite different expressions, should be understood as equivalent.
[0060] Unless the mutually exclusive relationship between the embodiments to be disclosed in this application is explicitly stated, the relevant technical features involved in each embodiment can be cross-combined to flexibly construct a new embodiment, as long as such combination does not deviate from the creative spirit of this application and can meet the needs of the prior art or solve certain deficiencies in the prior art. Those skilled in the art should be aware of this flexibility.
[0061] See also Figure 1 as well as Figure 2 In one embodiment, the liquid nitrogen quick-frozen lychee quality detection method of the present application comprises:
[0062] Step S10, responding to the liquid nitrogen quick-frozen lychee quality detection instruction, obtaining the physical and chemical index content of the liquid nitrogen quick-frozen lychee sample and the hyperspectral image corresponding to the liquid nitrogen quick-frozen lychee sample, wherein the physical and chemical index content includes soluble solids, titratable acid and vitamin C content;
[0063] The liquid nitrogen quick-frozen lychee quality detection system in the computer terminal device can respond to the liquid nitrogen quick-frozen lychee quality detection instruction, obtain the physical and chemical index content of the liquid nitrogen quick-frozen lychee sample and the hyperspectral image corresponding to the liquid nitrogen quick-frozen lychee sample, wherein the physical and chemical index content includes soluble solids, titratable acid and vitamin C content;
[0064] In some embodiments, the liquid nitrogen quick-frozen lychee samples are fresh lychees with uniform growth and intact outer skin, and the number of samples can be 300, 400, 500, etc.
[0065] In some embodiments, before the step of obtaining the physical and chemical index content of the liquid nitrogen quick-frozen lychee sample and the hyperspectral image corresponding to the liquid nitrogen quick-frozen lychee sample, the method includes:
[0066] Each liquid nitrogen quick-frozen lychee sample was frozen with liquid nitrogen, and after being stored for a certain period of time and at a storage temperature, it was thawed in a water bath. The liquid nitrogen freezing temperature was -80°C, the storage temperature was -30°C to -4°C, the time was 20min to 60min, and the water bath thawing temperature was 25°C.
[0067] In some embodiments, the step of obtaining a weight loss value of a liquid nitrogen quick-frozen lychee sample comprises:
[0068] A thin film pressure sensor with a measuring range of 2 g to 1.5 kg was used to obtain the weight of each litchi sample before freezing, and the weight was numbered and recorded;
[0069] The litchi samples were frozen with liquid nitrogen, stored for a certain period of time and at a certain storage temperature, and then thawed in a water bath. The liquid nitrogen freezing temperature was -80°C, the storage temperature was -30°C to -4°C, the time was 20min to 60min, and the water bath thawing temperature was 25°C.
[0070] The weight of each lychee sample after thawing is obtained, and the weight loss value of the sample is calculated. The weight of each lychee sample after thawing is obtained by a thin film pressure sensor with a measuring range of 2g to 1.5kg, and the weight loss value of the sample is calculated by a weight loss function.
[0071] The calculation formula of the weight loss function is expressed as follows:
[0072] W0=W1-W2,
[0073] Where W0 represents the weight loss value of the litchi sample, W1 represents the net weight of the litchi sample before freezing, and W2 represents the net weight of the litchi sample after thawing.
[0074] In some embodiments, the step of obtaining the content of physical and chemical indicators includes:
[0075] The soluble solids content in the pulp of liquid nitrogen quick-frozen lychee samples was determined by refractometer, the titratable acid content in the pulp of liquid nitrogen quick-frozen lychee samples was determined by high performance liquid chromatography, and the vitamin C content in the pulp of liquid nitrogen quick-frozen lychee samples was determined by ultraviolet spectrophotometry.
[0076] Step S20, extracting a region of interest from the preliminarily processed hyperspectral image, and calculating and determining average spectral reflectance data of the region of interest;
[0077] After obtaining the physical and chemical index contents of the liquid nitrogen quick-frozen lychee sample and the hyperspectral image corresponding to the liquid nitrogen quick-frozen lychee sample, extracting the region of interest from the hyperspectral image after preliminary processing, and calculating and determining the average spectral reflectance data of the region of interest;
[0078] In some embodiments, a hyperspectral imager is used to obtain a hyperspectral image of a litchi sample and perform preliminary processing. A hyperspectral imager with a spectral range of 900 to 1700 nm and a resolution of 3 nm is selected to batch capture hyperspectral images of thawed litchi samples. Subsequently, the original hyperspectral image is preliminarily processed by black and white plate correction using SpecVIEW image acquisition software, which is specifically expressed as follows:
[0079]
[0080] Where R0 represents the original hyperspectral image, Rb represents the dark radiation image obtained by completely covering the camera lens with a black camera cover, and R w Indicates that a white reflective image was obtained using a Teflon white plate (99% reflectivity).
[0081] In some embodiments, a region of interest is extracted from the hyperspectral image after preliminary processing, and the average spectral reflectance data of the region is obtained. Specifically, ENVI software is used to select a 5*5 pixel rectangular area as a region of interest ROI based on the hyperspectral image after preliminary processing, and the average spectral reflectance data of each region of interest is obtained.
[0082] In some embodiments, the steps of extracting a region of interest from the preliminarily processed hyperspectral image and calculating and determining average spectral reflectance data of the region of interest include:
[0083] The average spectral reflectance data is preprocessed by SNV-CWT, and the SNV-CWT preprocessing is further spectrally corrected to improve the signal-to-noise ratio and effectively extract detail information. The expression is:
[0084]
[0085] In the formula, Z i Represents the spectral reflectance data output after standard normal transformation, X i represents the average spectral reflectance data of each region of interest, Represents X i The average value of X i The standard deviation of .
[0086]
[0087] Where W f (a, b) represent the wavelet coefficients, reflecting the relationship between the wavelet basis and the spectral reflectance at different scales. Z represents the spectral reflectance data output after the standard normal transformation. a,b (λ) represents the wavelet basis function, λ represents the wavelength of the spectral curve, a represents the expansion factor, and b represents the translation factor.
[0088] Step S30, based on the average spectral reflectance data, a preset continuous projection and principal component analysis fusion algorithm is used to extract the sensitive bands corresponding to the soluble solids, titratable acid and vitamin C content respectively, so as to determine the spectral reflectance data after feature dimension reduction;
[0089] After calculating and determining the average spectral reflectance data of the region of interest, based on the average spectral reflectance data, a preset continuous projection and principal component analysis fusion algorithm is used to respectively extract the sensitive bands corresponding to the soluble solids, titratable acid and vitamin C content to determine the spectral reflectance data after feature dimension reduction;
[0090] In some embodiments, a random method is used for sample division, and the spectral reflectance data obtained after SNV-CWT preprocessing (standard normal variable transformation fused with continuous wavelet transform preprocessing) and the soluble solids content, titratable acid content and vitamin C content of the corresponding sample are saved as an excel file, and the random sample division method is used to divide the sample set into a training set and a test set in a ratio of 3:1.
[0091] In some embodiments, a preset continuous projection and principal component analysis fusion algorithm (SPA-PCA) is used to extract sensitive bands of three physical and chemical indicators, namely, soluble solids content, titratable acid content and vitamin C content, respectively. By combining the advantages of SPA feature selection and PCA feature dimensionality reduction, the sensitive bands of soluble solids content, titratable acid content and vitamin C content are extracted, which can effectively realize the feature dimensionality reduction of spectral data and improve the robustness of the model.
[0092] Step S40, constructing a litchi quality detection model based on the SVR algorithm according to the spectral reflectance data after the feature dimension reduction and the soluble solids, titratable acid and vitamin C content;
[0093] After determining the spectral reflectance data after feature dimension reduction, constructing a litchi quality detection model based on the SVR algorithm according to the spectral reflectance data after feature dimension reduction and the soluble solids, titratable acid and vitamin C content;
[0094] In some embodiments, the step of constructing a litchi quality detection model based on the spectral reflectance data after feature dimension reduction and the soluble solids, titratable acid and vitamin C content based on the SVR algorithm includes:
[0095] Based on the SVR algorithm, a regression relationship between the soluble solids, titratable acid and vitamin C content and the spectral reflectance data after feature dimension reduction is established;
[0096] The soluble solids, titratable acid and vitamin C contents of liquid nitrogen quick-frozen lychee samples and the spectral reflectance data after feature dimensionality reduction are used as model input, and the regression relationship between the two is used as model output. A multi-objective prediction model for soluble solids, titratable acid and vitamin C content is trained to construct a lychee quality detection model.
[0097] Specifically, the regression relationship between the physicochemical index contents of litchi samples such as soluble solids, titratable acid and vitamin C content and the spectral reflectance data is established through the SVR algorithm. The specific method is: the divided training set is trained, and the three physicochemical index contents of soluble solids, titratable acid and vitamin C of litchi samples and the spectral reflectance data processed by continuous projection and principal component analysis fusion algorithm are used as model input, and the regression relationship between the two is used as model output. The multi-objective prediction model of litchi soluble solids, titratable acid and vitamin C content is obtained by training to construct a litchi quality detection model.
[0098] In some embodiments, the model effect is determined by the determination coefficient and the root mean square error, specifically including: designing a calculation formula for the determination coefficient and the root mean square error of the model performance, and using the soluble solids, titratable acid and vitamin C physicochemical index contents of the litchi samples in the test set, and comparing the soluble solids, titratable acid and vitamin C physicochemical index contents predicted by the multi-objective prediction model established by the SVR algorithm for the test set samples, to verify and optimize the prediction effect of the multi-objective prediction model for soluble solids, titratable acid and vitamin C content of litchi.
[0099] In some embodiments, the calculation formula of the model performance determination coefficient is:
[0100]
[0101] Where n represents the total number of litchi samples, f(xi) represents the predicted value of the physical and chemical indexes of the i-th litchi sample, and y i represents the measured value of the physical and chemical indexes of the i-th litchi sample, It is expressed as the average value of the physical and chemical index measurements of i litchi samples.
[0102] The formula for calculating the root mean square error is:
[0103]
[0104] Where n represents the total number of litchi samples, y i represents the measured value of the physical and chemical indexes of the i-th litchi sample, f(x i ) represents the predicted value of the physical and chemical indexes of the i-th litchi sample.
[0105] Step S50: predicting the corresponding physicochemical index contents of the liquid nitrogen quick-frozen lychees to be tested based on the pre-trained lychee quality detection model, and determining the quality score of the liquid nitrogen quick-frozen lychees to be tested according to the physicochemical index contents and the corresponding weight loss values of the liquid nitrogen quick-frozen lychees to be tested, so as to complete the quality detection of the liquid nitrogen quick-frozen lychees.
[0106] After constructing the litchi quality detection model, the physical and chemical index contents corresponding to the liquid nitrogen quick-frozen litchi to be tested are predicted based on the pre-trained litchi quality detection model, and the quality scores of the liquid nitrogen quick-frozen litchi to be tested are determined according to the physical and chemical index contents and the corresponding weight loss values of the liquid nitrogen quick-frozen litchi to be tested, so as to complete the quality detection of the liquid nitrogen quick-frozen litchi.
[0107] In some embodiments, the physical and chemical index contents of the liquid nitrogen quick-frozen lychees to be tested are predicted by the model and combined with the weight loss of the sample, and the score gradients of the soluble solids content, titratable acid content, and vitamin content in the liquid nitrogen quick-frozen lychees to be tested are divided according to "GH / T 1185-2020". The score gradients are divided according to the user's expected value of the mass loss of the lychee samples, and the calculation formula for the quality score F value of the liquid nitrogen quick-frozen lychees is determined to obtain a comprehensive quality score of the liquid nitrogen quick-frozen lychees to be tested.
[0108] The calculation formula for the quality score F of liquid nitrogen quick-frozen lychees is:
[0109]
[0110] Where V n represents the weight of the nth indicator, F n Represents the score of the nth indicator.
[0111] In some embodiments, the step of determining the quality score of the liquid nitrogen quick-frozen lychees to be tested according to the physical and chemical index content and the corresponding weight loss value of the liquid nitrogen quick-frozen lychees to be tested comprises:
[0112] Step S501, responding to the liquid nitrogen quick-frozen lychee quality grade detection instruction, determining the soluble solids, titratable acid and vitamin C contents and the weight loss value of the liquid nitrogen quick-frozen lychees;
[0113] Step S503, calculating and determining the quality score of the liquid nitrogen quick-frozen lychees based on the soluble solids, titratable acid and vitamin C contents and the weight loss value of the liquid nitrogen quick-frozen lychees;
[0114] Step S505: determining the quality grade of the liquid nitrogen quick-frozen lychees according to the quality score of the liquid nitrogen quick-frozen lychees, so as to complete the quality detection of the liquid nitrogen quick-frozen lychees.
[0115] Specifically, a litchi quality scoring threshold can be determined, and the litchi quality scoring threshold includes 0 to 60, 60 to 80, and 80 to 100, each of which corresponds to inferior quality, medium quality and superior quality, respectively. When the quality score of the liquid nitrogen quick-frozen litchi is between 0 and 60, the quality grade of the liquid nitrogen quick-frozen litchi is determined to be inferior quality; when the quality score of the liquid nitrogen quick-frozen litchi is between 60 and 80, the quality grade of the liquid nitrogen quick-frozen litchi is determined to be medium quality; when the quality score of the liquid nitrogen quick-frozen litchi is between 80 and 100, the quality grade of the liquid nitrogen quick-frozen litchi is determined to be superior quality.
[0116] As can be seen from the above embodiments, compared with the prior art, the present application aims at the problem that the quality of lychees after quick freezing by liquid nitrogen in the prior art may change, such as weight loss, loss of nutrients such as soluble solids, titratable acid and vitamin C, etc. The present application includes but is not limited to the following beneficial effects:
[0117] First, the liquid nitrogen quick-frozen lychee quality detection method of the present application has the advantages of high resolution, large amount of information, and non-destructive detection. It can accurately and quickly evaluate the quality of lychees after liquid nitrogen quick-freezing, and score and grade the quality of liquid nitrogen quick-frozen lychees, providing a theoretical basis for reducing the quality loss of lychees in the subsequent liquid nitrogen quick-freezing process;
[0118] Secondly, the present application is based on a litchi quality detection model, which can accurately and quickly detect the quality of the fruit, effectively improving the accuracy of fruit quality detection and processing efficiency; further, using the liquid nitrogen quick-frozen litchi quality detection method of the present application, the user does not need to damage the appearance of the fruit, for example, there is no need to cut or taste the fruit, and the quality of the fruit can be easily obtained by simply uploading the litchi quality detection model to the server. The operation is simple, which greatly facilitates user use.
[0119] See also Figure 3, a liquid nitrogen quick-frozen lychee quality detection device provided to meet one of the purposes of the present application, includes a data acquisition module 1100, an average spectrum determination module 1200, a feature dimension reduction module 1300, a detection model construction module 1400 and a lychee quality detection module 1500. Among them, the data acquisition module 1100 is configured to respond to the liquid nitrogen quick-frozen lychee quality detection instruction, obtain the physical and chemical index content of the liquid nitrogen quick-frozen lychee sample and the hyperspectral image corresponding to the liquid nitrogen quick-frozen lychee sample, wherein the physical and chemical index content includes soluble solids, titratable acid and vitamin C content; the average spectrum determination module 1200 is configured to extract the region of interest of the hyperspectral image after preliminary processing, and calculate and determine the average spectral reflectance data of the region of interest; the feature dimension reduction module 1300 is configured to respectively extract the soluble solids, titratable acid and vitamin C content based on the average spectral reflectance data by using a preset continuous projection and principal component analysis fusion algorithm. The sensitive bands corresponding to the acid and vitamin C content are used to determine the spectral reflectance data after feature dimension reduction; the detection model construction module 1400 is configured to construct a litchi quality detection model based on the SVR algorithm according to the spectral reflectance data after feature dimension reduction and the soluble solids, titratable acid and vitamin C content; the litchi quality detection module 1500 is configured to predict the physicochemical index content corresponding to the liquid nitrogen quick-frozen litchi to be detected based on the pre-trained litchi quality detection model, and determine the quality score of the liquid nitrogen quick-frozen litchi to be detected according to the physicochemical index content and the weight loss value corresponding to the liquid nitrogen quick-frozen litchi to be detected, so as to complete the quality detection of the liquid nitrogen quick-frozen litchi.
[0120] Based on any embodiment of this application, please refer to Figure 4 Another embodiment of the present application further provides an electronic device, which can be implemented by a computer device, such as Figure 4 As shown, a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. Among them, the computer-readable storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a liquid nitrogen quick-frozen lychee quality detection method. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute the liquid nitrogen quick-frozen lychee quality detection method of the present application. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0121] In this embodiment, the processor is used to execute Figure 3 The memory stores the program code and data required to execute the above modules or submodules. The network interface is used to transmit data between user terminals or servers. The memory in this embodiment stores the program code and data required to execute all modules / submodules in the liquid nitrogen quick-frozen lychee quality detection device of the present application, and the server can call the program code and data of the server to execute the functions of all submodules.
[0122] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the liquid nitrogen quick-frozen lychee quality detection method described in any embodiment of the present application.
[0123] The present application also provides a computer program product, including a computer program / instruction, which, when executed by one or more processors, implements the steps of the liquid nitrogen quick-frozen lychee quality detection method described in any embodiment of the present application.
[0124] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments of the present application can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0125] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
[0126] In summary, the present application is based on a litchi quality detection model, which can accurately and quickly detect the quality of the fruit, effectively improving the accuracy and processing efficiency of fruit quality detection; further, using the liquid nitrogen quick-frozen litchi quality detection method of the present application, the user does not need to damage the appearance of the fruit, for example, there is no need to cut or taste the fruit, only the litchi quality detection model needs to be uploaded to the server to easily obtain the quality of the fruit, which is simple to operate and greatly facilitates user use.
Claims
1. A method for detecting the quality of liquid nitrogen quick-frozen lychees, characterized in that: include: In response to the liquid nitrogen quick-frozen lychee quality detection instruction, the physical and chemical index contents of the liquid nitrogen quick-frozen lychee sample and the hyperspectral image corresponding to the liquid nitrogen quick-frozen lychee sample are obtained, wherein the physical and chemical index contents include soluble solids, titratable acid and vitamin C content; Extracting a region of interest from the preliminarily processed hyperspectral image, and calculating and determining average spectral reflectance data of the region of interest; Based on the average spectral reflectance data, a preset continuous projection and principal component analysis fusion algorithm is used to extract the sensitive bands corresponding to the soluble solids, titratable acid and vitamin C content respectively, so as to determine the spectral reflectance data after feature dimension reduction; Based on the SVR algorithm, a litchi quality detection model is constructed according to the spectral reflectance data after the feature dimension reduction and the soluble solids, titratable acid and vitamin C content; Based on the pre-trained lychee quality detection model, the corresponding physicochemical index contents of the liquid nitrogen quick-frozen lychees to be tested are predicted, and the quality scores of the liquid nitrogen quick-frozen lychees to be tested are determined according to the physicochemical index contents and the corresponding weight loss values of the liquid nitrogen quick-frozen lychees to be tested, so as to complete the quality detection of the liquid nitrogen quick-frozen lychees.
2. The method for detecting the quality of liquid nitrogen quick-frozen lychees according to claim 1, characterized in that: Before the step of obtaining the physical and chemical index content of the liquid nitrogen quick-frozen lychee sample and the hyperspectral image corresponding to the liquid nitrogen quick-frozen lychee sample, the method includes: Each liquid nitrogen quick-frozen lychee sample was frozen with liquid nitrogen, and after being stored for a certain period of time and at a storage temperature, it was thawed in a water bath. The liquid nitrogen freezing temperature was -80°C, the storage temperature was -30°C to -4°C, the time was 20min to 60min, and the water bath thawing temperature was 25°C.
3. The method for detecting the quality of liquid nitrogen quick-frozen lychees according to claim 1, characterized in that: The step of obtaining the physical and chemical index contents of the liquid nitrogen quick-frozen litchi sample and the hyperspectral image corresponding to the liquid nitrogen quick-frozen litchi sample comprises: The soluble solids content in the pulp of liquid nitrogen quick-frozen lychee samples was determined by refractometer, the titratable acid content in the pulp of liquid nitrogen quick-frozen lychee samples was determined by high performance liquid chromatography, and the vitamin C content in the pulp of liquid nitrogen quick-frozen lychee samples was determined by ultraviolet spectrophotometry.
4. The method for detecting the quality of liquid nitrogen quick-frozen lychees according to claim 1, characterized in that: The steps of extracting a region of interest from the preliminarily processed hyperspectral image and calculating and determining average spectral reflectance data of the region of interest include: The average spectral reflectance data is preprocessed by SNV-CWT, and its expression is: In the formula, Z i Represents the spectral reflectance data output after standard normal transformation, X i represents the average spectral reflectance data of each region of interest, Represents X i The average value of X i The standard deviation of . Where W f (a, b) represent the wavelet coefficients, reflecting the relationship between the wavelet basis and the spectral reflectance at different scales. Z represents the spectral reflectance data output after the standard normal transformation. a,b (λ) represents the wavelet basis function, λ represents the wavelength of the spectral curve, a represents the expansion factor, and b represents the translation factor.
5. The method for detecting the quality of liquid nitrogen quick-frozen lychees according to claim 1, characterized in that: The step of constructing a litchi quality detection model based on the SVR algorithm according to the spectral reflectance data after the feature dimension reduction and the soluble solids, titratable acid and vitamin C content comprises: Based on the SVR algorithm, a regression relationship between the soluble solids, titratable acid and vitamin C content and the spectral reflectance data after feature dimension reduction is established; The soluble solids, titratable acid and vitamin C contents of liquid nitrogen quick-frozen lychee samples and the spectral reflectance data after feature dimensionality reduction are used as model input, and the regression relationship between the two is used as model output. A multi-objective prediction model for soluble solids, titratable acid and vitamin C content is trained to construct a lychee quality detection model.
6. The method for detecting the quality of liquid nitrogen quick-frozen lychees according to claim 1, characterized in that: The steps of predicting the physical and chemical index contents corresponding to the liquid nitrogen quick-frozen lychees to be tested based on the pre-trained lychee quality detection model, and determining the quality score of the liquid nitrogen quick-frozen lychees to be tested according to the physical and chemical index contents and the weight loss values corresponding to the liquid nitrogen quick-frozen lychees to be tested, include: The calculation formula for the quality score F of liquid nitrogen quick-frozen lychees is: Where V n represents the weight of the nth indicator, F n Represents the score of the nth indicator.
7. The method for detecting the quality of liquid nitrogen quick-frozen lychees according to any one of claims 1 to 6, characterized in that: The step of determining the quality score of the liquid nitrogen quick-frozen lychees to be tested according to the physical and chemical index content and the corresponding weight loss value of the liquid nitrogen quick-frozen lychees to be tested comprises: In response to the liquid nitrogen quick-frozen lychee quality grade detection instruction, determine the soluble solids, titratable acid and vitamin C content and the weight loss value of the liquid nitrogen quick-frozen lychee; Calculate and determine the quality score of the liquid nitrogen quick-frozen lychees based on the soluble solids, titratable acid and vitamin C contents and the weight loss value of the liquid nitrogen quick-frozen lychees; The quality grade of the liquid nitrogen quick-frozen lychees is determined according to the quality score of the liquid nitrogen quick-frozen lychees, so as to complete the quality detection of the liquid nitrogen quick-frozen lychees.
8. A liquid nitrogen quick-frozen lychee quality detection device, characterized in that: include: A data acquisition module is configured to respond to a liquid nitrogen quick-frozen lychee quality detection instruction to obtain the physical and chemical index content of the liquid nitrogen quick-frozen lychee sample and a hyperspectral image corresponding to the liquid nitrogen quick-frozen lychee sample, wherein the physical and chemical index content includes soluble solids, titratable acid and vitamin C content; The average spectrum determination module is configured to extract a region of interest from the preliminarily processed hyperspectral image and calculate and determine average spectral reflectance data of the region of interest; A feature dimension reduction module is configured to respectively extract the sensitive bands corresponding to the soluble solids, titratable acid and vitamin C content based on the average spectral reflectance data using a preset continuous projection and principal component analysis fusion algorithm to determine the spectral reflectance data after feature dimension reduction; A detection model building module is configured to build a litchi quality detection model based on the spectral reflectance data after the feature dimension reduction and the soluble solids, titratable acid and vitamin C content based on an SVR algorithm; The litchi quality detection module is configured to predict the physical and chemical index contents corresponding to the liquid nitrogen quick-frozen litchi to be detected based on a pre-trained litchi quality detection model, and determine the quality score of the liquid nitrogen quick-frozen litchi to be detected according to the physical and chemical index contents and the weight loss values corresponding to the liquid nitrogen quick-frozen litchi to be detected, so as to complete the quality detection of the liquid nitrogen quick-frozen litchi.
9. An electronic device, comprising a central processing unit and a memory, characterized in that: The central processing unit is used to call and run the computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: It stores a computer program implemented according to the method described in any one of claims 1 to 7 in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the corresponding method are executed.
Citation Information
Patent Citations
Fruit quality detection method and device
CN116148210A
Fruit quality detection method and system based on fruit quality detection model
CN116840163A
Method for evaluating quality of tropical fruit solid-state processing raw materials based on three elements of appearance, texture and flavor
CN118033009A
Apparatus and method for measuring and correlating characteristics of fruit with visible / near infra-red spectrum
WO2001069191A1
Cited By
Control method and system for inhibiting litchi browning based on low-frequency electromagnetic field
CN120678125A
Control methods and systems for suppressing browning in litchi based on low-frequency electromagnetic fields
CN120678125B
Method and system for evaluating browning degree of dried longan based on image segmentation technology, and storage medium
CN121190426A
Evaluation method and system for dry longan browning degree based on image segmentation technology and storage medium
CN121190426B
