Model training method and system applied to analyte detection, medium and equipment

By acquiring spectral data from both venous and non-venous regions and training a convolutional neural network model, the problem of non-analyte influence in optical detection was solved, achieving non-invasive, convenient, and high-precision analyte detection.

CN121337342APending Publication Date: 2026-01-16XIAN RUIXIN MICROELECTRONICS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410951479.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2026-01-16

AI Technical Summary

Technical Problem

Existing optical detection methods are difficult to effectively remove the influence of non-analytes, resulting in insufficient accuracy in non-invasive analyte detection.

Method used

By dividing the venous and non-venous regions, spectral data of detection points and reference points are obtained, and a convolutional neural network model is used for training to remove the influence of non-analytes and improve detection accuracy.

Benefits of technology

It enables non-invasive detection, improves the accuracy of analyte detection, reduces detection costs, and makes the detection method more convenient and real-time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121337342A_ABST
    Figure CN121337342A_ABST
Patent Text Reader

Abstract

The invention provides a model training method and system applied to analyte detection, a medium and equipment, and belongs to the field of optical analysis, the method comprises the following steps: a data acquisition step: acquiring spectral data reflecting non-uniform distribution of reflected signals or excitation signals generated when an analyte is irradiated by light rays, and acquiring spectral data of the non-uniform distribution of the reflected signals or excitation signals; acquiring a real detection result of the analyte in the same period; and a model training step: taking the acquired spectral data as the input of a detection model, taking the real detection result as the output of the detection model, and training the detection model. According to the method, the obtained spectral data can be prevented from being influenced by non-analytes, and the accuracy of the detection model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of optical analysis, and more specifically, to a model training method, system, medium, and device for the detection of analytes. Background Technology

[0002] Current blood glucose testing methods fall into three main categories: non-invasive, minimally invasive, and invasive. Among them, invasive and minimally invasive methods have higher accuracy and can meet the requirements of clinical blood glucose testing. However, both invasive and minimally invasive methods can cause pain and discomfort to diabetic patients. Therefore, the demand for non-invasive blood glucose testing has emerged.

[0003] The main non-invasive methods for monitoring blood glucose concentration are divided into two categories: fluid collection methods and optical methods. The former includes transdermal collection of interstitial fluid and iontophoresis, while the latter includes mid-infrared spectroscopy, near-infrared spectroscopy, photoacoustic spectroscopy, Raman spectroscopy, optical rotation, and light scattering coefficient methods.

[0004] The invention patent with publication number CN110575181A discloses a training method for a non-invasive blood glucose detection network model using near-infrared spectroscopy. The method uses ambient temperature, ambient humidity, systolic blood pressure, diastolic blood pressure, pulse rate, body temperature, and single-wavelength near-infrared absorbance and corresponding invasive blood glucose concentration data to train a BP artificial neural network. Based on this, sensitivity analysis is performed to select four variables—systolic blood pressure, pulse rate, body temperature, and single-wavelength near-infrared absorbance—as input variables for the NARX model, and the final NARX detection model is obtained through training.

[0005] The invention patent with publication number CN107192690B discloses a non-invasive blood glucose detection method using near-infrared spectroscopy and a method for training the detection network model. It first trains multiple artificial neural networks using near-infrared spectral data and their corresponding invasive blood glucose concentration data, and selects two of these artificial neural networks as the basic structure. Based on this, it uses particle swarm optimization to optimize the weight coefficients of the two artificial neural networks to obtain the detection network model. The weight coefficients are then used to adjust the contribution ratio of the two artificial neural networks in the detection network model to overcome the differences in daily physiological patterns and individual variability among individuals.

[0006] The invention patent with publication number CN117607125A discloses a method and electronic device for training and applying a spectral detection model. The method involves acquiring spectral data from multiple samples, constructing a training set and a test set based on the spectral data of the multiple samples, wherein the multiple samples include multiple iced samples and multiple de-iced samples, and the spectral data includes spectral data obtained from each bombardment of each of the multiple samples using laser-induced breakdown spectroscopy (LIBS) technology; and iteratively updating the pre-constructed basic model based on the training set and the test set at least once until a spectral detection model that meets preset requirements is obtained.

[0007] The invention patent with publication number CN117911710A discloses a multispectral target detection model training method, target detection method, and system, which acquires training data. The training data includes multiple paired visible-infrared images and labels indicating the target category and location information in the images. The multispectral target detection model is trained based on the training data. The multispectral target detection model includes a contour enhancement network, a fusion focusing network, a contrast bridging network, and an information guidance network. The contour enhancement network is used to extract target contours, wherein an intensity adaptive operator is introduced to enhance the perception of target contours according to scene and task requirements, and an intensity adjustment parameter is introduced to adaptively adjust the enhancement amplitude. The fusion focusing network is used to extract complementary information, different spectral features, and key information of targets in different spatial locations from visible and infrared light modalities, and to perform feature filtering. The contrast bridging network is used to separate visible-infrared data into positive and negative sample pairs using the idea of ​​contrast learning, improving the ability to perceive modality-invariant features in visible-infrared scenes. The information guidance module is used to guide the model to more effectively fuse the feature information of the two modalities during training.

[0008] As can be seen from the above, using detection models to analyze spectral data is the current development direction for analyte detection. However, due to the limitations of traditional optical detection methods, the spectral data obtained inevitably contains a large influence from non-analytes, so the detection model can never achieve true accuracy. Summary of the Invention

[0009] To address the shortcomings of existing technologies, the purpose of this invention is to provide a model training method, system, medium, and device for analyte detection.

[0010] A model training method for analyte detection according to the present invention includes:

[0011] Data acquisition steps: Acquire spectral data reflecting the uneven distribution of reflection or excitation signals generated by the analyte under light irradiation, and acquire the actual detection results of the analyte during the same period;

[0012] Model training steps: Use the acquired spectral data as input to the detection model and the actual detection results as output to train the detection model.

[0013] Preferably, the data acquisition step includes:

[0014] Based on the first image of the imaging area where the target is illuminated by infrared light, the grayscale distribution of the pixels divides the imaging area into a candidate region for detection points and a candidate region for reference points. Detection points are selected from the candidate regions for detection points, and reference points are selected from the candidate regions for reference points. The spectral data of the detection points and the spectral data of the reference points are then obtained respectively.

[0015] Preferably, the data acquisition step includes:

[0016] Based on the grayscale values ​​of pixels in the second image of the imaging area acquired at the same location under ultraviolet light illumination, a pixel whose grayscale value meets the preset requirements is selected from the candidate detection point region as a detection point, or a combination of the pixel and its adjacent pixels is selected as a detection point. A pixel whose grayscale value is within the preset deviation range from the selected detection point is selected from the candidate reference point region as a reference point, or a combination of the pixel and its multiple adjacent pixels is selected as a reference point. The fluorescence spectrum data of the detection point and the fluorescence spectrum data of the reference point are then calculated.

[0017] Preferably, the data acquisition step includes: dividing the imaging area into a candidate region for detection points with smaller gray values ​​and a candidate region for reference points with larger gray values ​​according to the gray distribution data; selecting a pixel in the second image whose gray value meets a preset requirement as a detection point or a combination of the pixel and its neighboring pixels as a detection point according to the candidate region for detection points; and selecting a pixel in the second image whose gray value is within a preset deviation range from the gray value of the detection point as a reference point or a combination of the pixel and its multiple neighboring pixels as a reference point according to the candidate region for reference points.

[0018] Substitute the gray values ​​of the detection points in the second image into the spectral reconstruction algorithm to obtain the spectral data of the detection points. Substitute the gray values ​​of the reference points in the second image into the spectral reconstruction algorithm to obtain the spectral data of the reference points.

[0019] Preferably, the detection model adopts a convolutional neural network model, which sequentially includes an input layer, at least two convolutional layers, at least two activation function layers, a Flatten layer, a fully connected layer, and an output layer, wherein the convolutional layers and the activation function layers are distributed alternately; the activation function used in the activation function layers is the ReLU function.

[0020] Preferably, in the model training step, if the error between the output result of the detection model and the actual detection result meets a preset condition, then training is stopped to obtain the detection model.

[0021] Preferably, in the model training step, the training degree of the detection model needs to be set with different parameters as needed. The extracted feature values ​​are continuously learned according to the different parameter settings until the error between the output result and the real detection result meets the requirements, then the training stops and the detection model is obtained.

[0022] The present invention provides a method for detecting an analyte, comprising the steps of the model training method applied to analyte detection.

[0023] A model training system for analyte detection according to the present invention includes:

[0024] Data acquisition module: acquires spectral data reflecting the uneven distribution of reflection or excitation signals generated by the analyte under light irradiation, and acquires the actual detection results of the analyte during the same period;

[0025] Model training module: The acquired spectral data is used as the input to the detection model, and the actual detection results are used as the output of the detection model to train the detection model.

[0026] Preferably, the data acquisition module includes:

[0027] Based on the first image of the imaging area where the target is illuminated by infrared light, the grayscale distribution of the pixels divides the imaging area into a candidate region for detection points and a candidate region for reference points. Detection points are selected from the candidate regions for detection points, and reference points are selected from the candidate regions for reference points. The spectral data of the detection points and the spectral data of the reference points are then obtained respectively.

[0028] Preferably, the data acquisition module includes:

[0029] Based on the grayscale values ​​of pixels in the second image of the imaging area acquired at the same location under ultraviolet light illumination, a pixel whose grayscale value meets the preset requirements is selected from the candidate detection point region as a detection point, or a combination of the pixel and its adjacent pixels is selected as a detection point. A pixel whose grayscale value is within the preset deviation range from the selected detection point is selected from the candidate reference point region as a reference point, or a combination of the pixel and its multiple adjacent pixels is selected as a reference point. The fluorescence spectrum data of the detection point and the fluorescence spectrum data of the reference point are then calculated.

[0030] Preferably, the data acquisition module includes: dividing the imaging area into a candidate region for detection points with smaller gray values ​​and a candidate region for reference points with larger gray values ​​according to gray distribution data; selecting a pixel in the second image whose gray value meets a preset requirement as a detection point or a combination of the pixel and its neighboring pixels as a detection point according to the candidate region for detection points; and selecting a pixel in the second image whose gray value is within a preset deviation range from the gray value of the detection point as a reference point or a combination of the pixel and its multiple neighboring pixels as a reference point according to the candidate region for reference points.

[0031] Substitute the gray values ​​of the detection points in the second image into the spectral reconstruction algorithm to obtain the spectral data of the detection points. Substitute the gray values ​​of the reference points in the second image into the spectral reconstruction algorithm to obtain the spectral data of the reference points.

[0032] Preferably, the detection model in the model training module adopts a convolutional neural network model, which sequentially includes an input layer, at least two convolutional layers, at least two activation function layers, a Flatten layer, a fully connected layer, and an output layer, wherein the convolutional layers and the activation function layers are distributed alternately; the activation function used in the activation function layers is the ReLU function.

[0033] Preferably, in the model training module, if the error between the output result of the detection model and the actual detection result meets a preset condition, then training is stopped to obtain the detection model.

[0034] Preferably, the training level of the detection model in the model training module needs to be set with different parameters as needed. The extracted feature values ​​are continuously learned according to the different parameter settings until the error between the output result and the real detection result meets the requirements, then the training stops and the detection model is obtained.

[0035] The present invention provides an analyte detection system, comprising the module of the model training system applied to analyte detection.

[0036] According to the present invention, a computer-readable storage medium storing a computer program is provided, wherein when the computer program is executed by a processor, the steps of the model training method for analyte detection are implemented.

[0037] An electronic device according to the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the model training method for analyte detection.

[0038] Compared with the prior art, the present invention has the following beneficial effects:

[0039] 1. This application obtains spectral data of detection points and reference points by dividing the area where veins are located into areas where non-vein vessels are located. When there are multiple detection points and reference points, the average value of the fluorescence spectral data of all detection points and the average value of the fluorescence spectral data of all reference points are calculated respectively. This removes non-analytes contained in the spectral data, reduces the influence of non-analytes, and improves the accuracy of the detection model.

[0040] 2. The technical solution of this application does not require electrochemical reaction with the analyte, making the detection method more convenient. In particular, when detecting analytes in living organisms, it can achieve the purpose of non-invasive detection.

[0041] 3. This application utilizes the non-uniform distribution of analytes in the imaging region to obtain spectral data from different regions. Since the distribution of other components besides the analytes in the imaging region is relatively uniform, the differences in spectral data from different regions can directly reflect the information related to the analytes and spectral data after the influence of non-analytes has been largely eliminated, such as the concentration of the analytes.

[0042] 4. This application uses fluorescence spectroscopy for detection, avoiding the traditional method of measuring analytes using Raman spectroscopy, thereby achieving low cost and miniaturization of the detection system and realizing the purpose of real-time detection. Attached Figure Description

[0043] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:

[0044] Figure 1 This is a flowchart of Example 1;

[0045] Figure 2 This is a schematic diagram of the first image acquired in Example 2;

[0046] Figure 3 This is a schematic diagram of the second image acquired in Example 2;

[0047] Figure 4 This is a schematic diagram of the detection model in Example 2;

[0048] Figure 5 This is a schematic diagram of the detection point-reference point spectral data obtained in Example 2;

[0049] Figure 6 Experimental results to assess the accuracy of the analytical results of the model;

[0050] Figure 7 This is a schematic diagram of the structure of an analyte detection device provided in Example 5;

[0051] Figure 8This is a schematic diagram of the structure of the electronic device provided in Example 6;

[0052] Figure 9 This is a flowchart of Example 7;

[0053] Figure 10 This is a schematic diagram of the structure of an analyte detection watch provided in Example 5;

[0054] Figure 11 A schematic diagram of the back of the watch used for analyte testing;

[0055] Figure 12 Exploded view of the watch for analysis;

[0056] Figure 13 A schematic diagram illustrating the usage status of a watch used for analyzing substances.

[0057] In the picture:

[0058] 100: Imaging area; 200: Detection equipment;

[0059] 201: Light source; 202: Imaging spectral detection device;

[0060] 203: Controller; 204: First bandpass filter;

[0061] 205: Lens; 206: Second bandpass filter;

[0062] 207: Circuit board; 501: Processor;

[0063] 502: Memory. Detailed Implementation

[0064] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the scope of protection of the present invention.

[0065] Example 1

[0066] Figure 1 This is a flowchart of this embodiment, which describes a method for detecting an analyte, including:

[0067] Imaging Steps: A light source provides light within a preset wavelength range to illuminate the first region, and an imaging spectral detection device images the first region, obtaining an image of the imaging area. The preset wavelength range of light illumination allows the image to reflect the distribution and spectral data of the reflected or excitation signals generated by the analyte under light illumination within the imaging area. The first region can be a specific area on the surface of human skin. To avoid the influence of external light, such as ambient light, on the detection, the acquisition window of the imaging spectral detection device needs to be tightly attached to the surface of the human skin in the first region. The imaging area refers to the area within the lens range of the imaging spectral detection device. In general, the imaging area can be a portion of the first region or the same region as the first region.

[0068] Since acquiring analyte distribution and spectral data requires illumination from light sources with varying wavelengths, there are two possible implementation methods: using a single light source with a wide wavelength range, or using two light sources, each with a smaller wavelength range. When using a single light source, the wavelength range of the light provided must simultaneously cover both the wavelength range needed to acquire analyte distribution and the wavelength range needed to acquire analyte spectral data. When using two light sources, each source provides different wavelengths; one wavelength covers the wavelength range needed to acquire analyte distribution data, and the other covers the wavelength range needed to acquire analyte spectral data. Furthermore, with a single light source, only one image is captured; with two light sources, two images are captured. For ease of processing, the imaging areas of the two images must be identical, meaning the acquisition window of the imaging spectral detection device must remain stationary on the human skin surface.

[0069] In this application, the analytes can be glucose, ketones, alcohols, lactate, oxygen, hemoglobin A1C, acetylcholine, amylase, bilirubin, cholesterol, human chorionic gonadotropin, creatine kinase (e.g., CK-MB), creatine, creatinine, DNA, fructosamine, glutamine, growth hormone, hormones, peroxides, prostate-specific antigen, prothrombin, RNA, thyroid-stimulating hormone, or troponin, or drugs such as antibiotics (e.g., gentamicin, vancomycin, etc.), digitalis, digoxin, abused drugs, theophylline, or warfarin. In embodiments detecting two or more analytes, the analytes can be monitored at the same or different times. In other embodiments, the analytes can also be other substances within the body surface, enabling non-invasive detection through this invention.

[0070] Spectral acquisition steps: An imaging spectral detection device acquires spectral data from the image, reflecting the non-uniform distribution of reflected or excitation signals generated by light irradiation of the analyte within the imaging region. Specifically, the imaging region can be divided into zones based on different data distribution patterns, facilitating the selection of locations from which spectral data can be acquired.

[0071] Analysis Steps: Based on the acquired spectral data, information about the analytes in the imaging region is obtained. This information includes the correlation between the analytes and the spectral data. Because the distribution of analytes varies in different regions, the reflected or excitation signals generated by the analytes when exposed to light will also differ. Taking human skin as an example, it is divided into three parts: the epidermis, dermis, and subcutaneous tissue. Veins and other blood vessels are located in the subcutaneous tissue. Irradiating skin areas with and without blood vessels with ultraviolet light will yield corresponding spectral data, as will irradiating skin areas with thicker blood vessels and those with thinner blood vessels. The difference between these two spectral data points reflects the correlation between the analytes in the blood vessels and the spectral data, such as the degree of influence of the analytes on the spectral data, providing intermediate information for further analysis, or directly obtaining information such as the concentration of the analytes through an analytical model.

[0072] Example 2

[0073] This embodiment, based on Embodiment 1, takes the detection of glucose in human blood vessels as an example and provides a non-invasive glucose detection method, including:

[0074] Imaging steps: Irradiate the skin at the location of the vein, such as the wrist or back of the hand, with infrared light in the first wavelength range of 800-1000 nm to acquire a first image of the imaging area. The first wavelength range is preferably in the near-infrared band. Then, irradiate the same location with ultraviolet light in the second wavelength range of 300-390 nm to acquire a second image of the imaging area.

[0075] like Figure 2 As shown, the horizontal axis represents the horizontal coordinate of the first image, and the vertical axis represents the vertical coordinate of the first image. White boxes represent selected detection point pixels on the veins, and black boxes represent selected reference point pixels on the surrounding skin. In the first image, some infrared light penetrates the skin, while some is absorbed. Simultaneously, the veins also absorb a significant amount of infrared light, resulting in lower pixel grayscale values ​​in vein areas and higher grayscale values ​​in non-vein areas. This allows for easy division of the imaging region into vein and non-vein areas.

[0076] like Figure 3As shown, the horizontal axis represents the horizontal coordinate of the second image, and the vertical axis represents the vertical coordinate of the second image. White boxes represent selected detection point pixels on the veins, and black boxes represent selected reference point pixels on the surrounding skin. In the second image, it is difficult to distinguish between areas containing veins and areas not containing veins; therefore, the first image is needed for differentiation. Excitation light in the second wavelength range of 300-390 nm is used to obtain high-quality effective fluorescence spectral signals. This is because the main response band of the imaging spectral detection device is located in the 400-800 nm range. When the wavelength of the excitation light used is less than 300 nm, the main peak of the fluorescence spectrum of the excited fluorescence radiation signal is located in the <400 nm band, making it difficult for the imaging spectral detection device to obtain high-quality effective fluorescence spectral signals. When the wavelength of the excitation light used is greater than 390 nm, the excitation light itself is also visible light, and the spectral signal of the excitation light is superimposed on the fluorescence spectral signal, making it difficult to eliminate the interference of the excitation light's spectral signal and extract the effective fluorescence spectral signal. After absorbing ultraviolet light in the wavelength range of 300-390 nm, glucose in veins can emit fluorescence radiation signals in the visible light band of 400-800 nm. This band is within the effective response range of the imaging spectral detection device. The characteristic spectral intensity of this fluorescence radiation signal is positively correlated with the concentration of glucose and has high fluorescence excitation efficiency.

[0077] Spectral acquisition steps: Based on the grayscale distribution of pixels in the first image, the imaging area is divided into regions containing veins and regions not containing veins. Detection points are selected from the locations in the second image corresponding to the locations in the vein regions, and reference points are selected from the locations in the second image corresponding to the locations in the non-vein regions. The spectral data of the detection points and the reference points in the second image are then acquired respectively. Specifically, based on the grayscale values ​​of pixels in the second image, a pixel with a grayscale value meeting preset requirements is selected as a detection point from the vein regions, or a combination of that pixel and its adjacent pixels is selected as a detection point. A pixel with a grayscale value within a preset deviation range from the selected detection point is selected from the non-vein regions, or a combination of that pixel and multiple adjacent pixels is selected as a reference point. The fluorescence spectral data of the detection points and the fluorescence spectral data of the reference points are then calculated in the second image. The spectral data is taken from a single pixel of the detection point or reference point, or an average of multiple pixels, which can be appropriately selected according to the width of the blood vessel. Averaging multiple pixels can improve the signal-to-noise ratio, but is limited by the width of the blood vessel, avoiding the capture of areas outside the blood vessel. Selecting a single pixel has high spatial resolution and is suitable for thinner blood vessels, but the signal-to-noise ratio is lower. The preset requirement for grayscale values ​​could be to use the point with the smallest grayscale value as the detection point, but this application does not impose this restriction. The calculation results are as follows: Figure 5As shown, the horizontal axis represents wavelength (in nm), and the vertical axis represents relative radiance (in W / nm). The solid line represents the spectral data of the detection point, and the dashed line represents the spectral data of the reference point. The reason why the grayscale value of the reference point and the grayscale value of the selected detection point are within a preset deviation range is that the skin in the imaging area may have influencing factors such as skin color, blemishes, and cosmetics, which can directly affect the spectral data of the reference point. The first image cannot distinguish areas with these influencing factors. By setting a preset deviation range for the grayscale value, these influencing factors can be effectively eliminated. Furthermore, ensuring that the grayscale value is within the preset deviation range ensures that the reference point is close to the detection point. For example, selecting it at the edge of a vein ensures that, apart from blood vessels, the color, thickness, and other parameters of the epidermis, dermis, and subcutaneous tissue are as close as possible, thus minimizing the influence of non-analytes on the deviation between the spectral data of the detection point and the spectral data of the reference point.

[0078] Besides spectral reconstruction algorithms, spectral data can also be obtained by generating radiometric calibration coefficients through prior radiometric calibration, and then calculating the spectral lines by multiplying the gray value by the radiometric calibration coefficients.

[0079] When selecting a combination of multiple pixels as the detection point, the fluorescence spectrum data of that detection point can be the average of the fluorescence spectrum data of these pixels. Similarly, the number of detection points and reference points can be one or more. When there are multiple detection points and reference points, the average of the fluorescence spectrum data of all detection points and the average of the fluorescence spectrum data of all reference points can be calculated separately.

[0080] Analysis steps: After preprocessing, the spectral data of the acquired detection points and reference points are input into the trained detection model, which outputs the glucose concentration or intermediate results relating glucose to the spectral data. During training, the detection model needs to simultaneously acquire the spectral data of the tested object and accurate test results, such as blood test results. The spectral data is used as the input to the detection model, and the blood test results are used as the output to train the model.

[0081] The detection model can employ a convolutional neural network model, which sequentially includes an input layer, at least two convolutional layers, at least two activation function layers, a Flatten layer, a fully connected layer, and an output layer. The convolutional layers and the activation function layers are distributed alternately. The activation function used in the activation function layers is the ReLU function.

[0082] In this convolutional neural network model, each convolutional kernel has a size of 1. The first convolutional layer has 32 kernels, and the second layer has 64 kernels, both used to extract blood glucose features. An activation function is used to non-linearly transform the output of each convolutional layer. The flatten layer flattens the output of the convolutional layers into a one-dimensional vector, facilitating connections to subsequent fully connected layers, resulting in a final output dimension of 1. During model training, the Adam optimizer is used, with mean squared error as the loss function, and mean absolute error is calculated as the performance metric for model evaluation.

[0083] When the output of the detection model is glucose concentration, training stops if the error between the output and the measured standard glucose concentration value meets a preset condition. When the output of the detection model is an intermediate result relating glucose and spectral data, such as an interneuron result, training stops if the error between the output and the interneuron result meets a preset condition. Further model correction is then performed on the interneuron result to obtain the glucose concentration.

[0084] like Figure 4 As shown, the Input layer is the spectral data input layer, obtained after preprocessing the original spectral data. The Hidden layer is an intermediate hidden layer, which uses convolutional deep learning to combine features and output the final predicted blood glucose concentration value. The Output layer can also use convolutional deep learning to combine features and output a neuron as an intermediate result value (Output1). The intermediate result value (Output1) and two infrared (IR) feature brightness values ​​are then used to train the model again to further correct the blood glucose prediction error and output the final predicted blood glucose concentration value (Output2). The training level of the detection model needs to be set with different parameters as required. The extracted glucose feature values ​​will continuously learn according to different parameter settings until the error between the output result and the standard glucose value of the above label value meets the requirements, at which point training stops and the detection model is obtained.

[0085] Through multiple iterations of training, neurons learn the corresponding changes in glucose concentration and glucose spectral characteristics of different samplers, thereby improving the universality of the detection model and enabling it to predict the glucose concentration of different users.

[0086] The entire glucose testing process eliminates the need for skin puncture for blood collection or implantation. It utilizes fluorescence spectroscopy to acquire the spectral information of the test subject and obtains the glucose test result based on this information, avoiding pain and discomfort and improving the comfort and convenience of the test. This method can precisely distinguish spectral signals from vascular and skin sites, enabling accurate extraction of subsequent glucose signals. Furthermore, it establishes a strong correlation between the spectral signal and glucose concentration, achieving precise measurement of glucose concentration. The test results are more accurate and easier to process.

[0087] Figure 6 The diagram shows the experimental results of the trained detection model. The horizontal axis represents the reference blood glucose concentration (in mmol / L) collected by the blood glucose meter, and the vertical axis represents the blood glucose concentration (in mmol / L) predicted using the method of this patent. A total of 2037 participants were collected, including 1537 in the training set and 500 in the prediction set. The figure shows the distribution of the detection model's results. The MARD value of the predicted samples was 11.32%, with the vast majority of samples falling into regions A and B. Specifically, 87.03% of the samples fell into region A, and 12.77% fell into region B, indicating that the detection model has high accuracy.

[0088] Example 3

[0089] This embodiment, based on Embodiment 2, replaces infrared light with visible light, providing another non-invasive glucose detection method, including:

[0090] Imaging steps: First, a first image of the imaging area is acquired by illuminating the skin at the location of the vein, such as the wrist or back of the hand, with visible light. Second, a second image of the imaging area is acquired by illuminating the same location with ultraviolet light in the second wavelength range of 300-390 nanometers.

[0091] In the first image, the imaging area can be easily divided into areas containing veins and areas not containing veins because the colors of the areas containing veins differ from those of the areas not containing veins.

[0092] In the second image, it is difficult to distinguish between areas containing veins and areas not containing veins; therefore, the first image is needed for differentiation. Using excitation light in the second wavelength range of 300-390 nm is to obtain high-quality effective fluorescence spectral signals. This is because the main response band of the imaging spectral detection device is located in the 400-800 nm range. When the excitation light wavelength is less than 300 nm, the main peak of the excited fluorescence radiation signal is located in the <400 nm band, making it difficult for the imaging spectral detection device to obtain high-quality effective fluorescence spectral signals. When the excitation light wavelength is greater than 390 nm, the excitation light itself is also visible light, and the spectral signal of the excitation light is superimposed on the fluorescence spectral signal, making it difficult to eliminate the interference of the excitation light spectral signal and extract the effective fluorescence spectral signal. After absorbing ultraviolet light in the 300-390 nm wavelength range, glucose in veins can emit fluorescence radiation signals in the 400-800 nm visible light band. This band is within the effective response range of the imaging spectral detection device, and the characteristic spectral intensity of this fluorescence radiation signal is positively correlated with the glucose concentration, exhibiting high fluorescence excitation efficiency.

[0093] Spectral acquisition steps: Based on the grayscale distribution of pixels in the first image, the imaging area is divided into areas containing veins and areas not containing veins. Detection points are selected from the areas containing veins, and reference points are selected from the areas not containing veins. The spectral data of the detection points and the spectral data of the reference points are then acquired. Specifically, based on the grayscale values ​​of pixels in the second image, a pixel with a grayscale value that meets preset requirements, or a combination of that pixel and its neighboring pixels, is selected from the areas containing veins as a detection point. A pixel with a grayscale value within a preset deviation range from the selected detection point, or a combination of that pixel and several neighboring pixels, is selected from the areas not containing veins as a reference point. The fluorescence spectral data of the detection point and the fluorescence spectral data of the reference point are then calculated. The reason why the grayscale value of the reference point is within the preset deviation range from the grayscale value of the selected detection point is that the skin in the imaging area may have influencing factors such as skin color, pigmentation, and cosmetics, which will directly affect the spectral data of the reference point. The first image cannot simultaneously distinguish areas with all influencing factors. By setting a preset deviation range for the grayscale values, these influencing factors can be effectively eliminated.

[0094] When selecting a combination of multiple pixels as the detection point, the fluorescence spectrum data of that detection point can be the average of the fluorescence spectrum data of these pixels. Similarly, the number of detection points and reference points can be one or more. When there are multiple detection points and reference points, the average of the fluorescence spectrum data of all detection points and the average of the fluorescence spectrum data of all reference points can be calculated separately.

[0095] Analysis steps: After preprocessing, the spectral data of the acquired detection points and reference points are input into the trained detection model, which outputs the glucose concentration. During training, the detection model needs to simultaneously acquire the spectral data of the tested object and accurate test results, such as blood test results. The spectral data is used as the input to the detection model, and the blood test results are used as the output to train the detection model.

[0096] The detection model can employ a convolutional neural network model, which sequentially includes an input layer, at least two convolutional layers, at least two activation function layers, a Flatten layer, a fully connected layer, and an output layer. The convolutional layers and the activation function layers are distributed alternately. The activation function used in the activation function layers is the ReLU function.

[0097] In this convolutional neural network model, each convolutional kernel has a size of 1. The first convolutional layer has 32 kernels, and the second layer has 64 kernels, both used to extract blood glucose features. An activation function is used to non-linearly transform the output of each convolutional layer. The flatten layer flattens the output of the convolutional layers into a one-dimensional vector, facilitating connections to subsequent fully connected layers, resulting in a final output dimension of 1. During model training, the Adam optimizer is used, with mean squared error as the loss function, and mean absolute error is calculated as the performance metric for model evaluation.

[0098] If the error between the output of the detection model and the standard glucose value meets the preset conditions, then training is stopped and the detection model is obtained.

[0099] The training level of the detection model needs to be set with different parameters as required. The extracted glucose feature values ​​will continuously learn according to the different parameter settings until the error between the output result and the standard glucose value of the above label value meets the requirements. Then the training stops and the detection model is obtained.

[0100] Through multiple iterations of training, neurons learn the corresponding changes in glucose concentration and glucose spectral characteristics of different samplers, thereby improving the universality of the detection model and enabling it to predict the glucose concentration of different users.

[0101] The entire glucose testing process requires no blood sampling or skin puncture. It acquires the spectral information of the test subject based on fluorescence spectroscopy and obtains the glucose test result from this information, avoiding pain and discomfort and improving the comfort and convenience of the test. This method can precisely distinguish spectral signals from vascular and skin sites, enabling accurate extraction of subsequent glucose signals. It also establishes a strong correlation between the spectral signal and glucose concentration, achieving precise measurement of glucose concentration, resulting in more accurate test results and easier processing.

[0102] Example 4

[0103] This embodiment provides a detection system for an analyte. The detection system can be implemented by executing the steps of the analyte detection method; that is, those skilled in the art can understand the analyte detection method as a preferred embodiment of the analyte detection system. The analyte detection system includes:

[0104] Imaging Module: The light source provides light within a preset wavelength range to illuminate the first region, and the imaging spectral detection device images the first region to obtain an image of the imaging area. By illuminating the area with light within the preset wavelength range, the image reflects the distribution data and spectral data of the reflected or excitation signals generated by the analyte under light illumination within the imaging area. Since different wavelength ranges are required to obtain the distribution data and spectral data of the analyte, the light source can be two corresponding wavelength ranges, or it can be a single light source with a larger wavelength range covering both required wavelength ranges. When two types of light are used, two images are obtained. For ease of processing, it is usually required that the imaging areas of the two images are identical.

[0105] In this application, the analyte can be glucose, ketones, alcohols, lactate, oxygen, hemoglobin A1C, acetylcholine, amylase, bilirubin, cholesterol, human chorionic gonadotropin, creatine kinase (e.g., CK-MB), creatine, creatinine, DNA, fructosamine, glutamine, growth hormone, hormones, peroxides, prostate-specific antigen, prothrombin, RNA, thyroid-stimulating hormone, troponin, or drugs such as antibiotics (e.g., gentamicin, vancomycin, etc.), digitalis, digoxin, abused drugs, theophylline, and warfarin. In embodiments detecting more than one analyte, the analytes can be monitored at the same or different times. In other embodiments, the analyte can also be other substances in a liquid.

[0106] Spectrum acquisition module: This module acquires spectral data from images using an imaging spectral detection device. This data reflects the non-uniform distribution of reflected or excitation signals generated by light irradiation of the analyte within the imaging region. Specifically, the imaging region can be partitioned based on different data distribution patterns, allowing for the selection of locations from which to acquire spectral data.

[0107] Analysis Module: Based on the acquired spectral data, this module obtains information about the analytes in the imaging region. This information includes the correlation between the analyte and the spectral data. Because the distribution of analytes varies in different zones, the reflected or excitation signals generated by the analytes when illuminated will also differ. Utilizing this characteristic, the differences in spectral data between the two can be obtained, thus accurately reflecting the correlation between the analyte and the spectral data, such as the analyte concentration.

[0108] Those skilled in the art will understand that, besides implementing the system and its various devices, modules, and units provided by this invention in the form of purely computer-readable program code, the same functions can be achieved entirely through logical programming of the method steps, making the system and its various devices, modules, and units of this invention function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, the system and its various devices, modules, and units provided by this invention can be considered as a hardware component, and the devices, modules, and units included therein for implementing various functions can also be considered as structures within the hardware component; alternatively, the devices, modules, and units for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0109] Example 5

[0110] Figure 7 The illustration shows an electronic device of this embodiment, specifically an analyte detection device 200. The detection device 200 is a portable, non-invasive detection device for the human body. It can be a standalone detection device or integrated into a watch or mobile phone, thereby enabling convenient and quick detection of analytes on the body surface.

[0111] The detection device 200 includes: a light source 201, an imaging spectral detection device 202, a controller 203, a first bandpass filter 204, a second bandpass filter 206, and a lens 205. The controller 203 establishes an electrical or communication connection with the light source 201 and the imaging spectral detection device 202, respectively.

[0112] Light source 201 provides light within a preset wavelength range. Since acquiring analyte distribution data and spectral data requires illumination from light sources with different wavelength ranges, there are two possible implementation methods: one light source providing a wider wavelength range; or two light sources, each providing a narrower wavelength range. When using only one light source, the wavelength range of the light provided must simultaneously cover the wavelength range required to acquire analyte distribution data and the wavelength range required to acquire analyte spectral data, such as a halogen lamp. When using two light sources, the two light sources provide different wavelengths; one wavelength covers the wavelength range required to acquire analyte distribution data, and the other wavelength covers the wavelength range required to acquire analyte spectral data, such as an infrared lamp combined with an ultraviolet lamp, or a visible light lamp combined with an ultraviolet lamp.

[0113] To ensure uniform illumination across the imaging area (100°), a ring-shaped light source can be used. This light source has multiple light-emitting modules evenly distributed around the same circumference. When there are two types of light sources, the light-emitting modules of the two types of light sources are arranged alternately.

[0114] The imaging spectral detection device 202 is capable of imaging the imaging region 100 to obtain a corresponding image according to instructions, and can also obtain corresponding spectral data according to instructions. The imaging spectral detection device 202 includes a sensor and a periodic pixel-level filter structure disposed on the sensor surface. The periodic pixel-level filter structure is used to spectrally modulate the incoming light signal, so that the sensor can generate an image containing the spectral information to be measured.

[0115] This periodic pixel-level filter structure comprises multiple filter pixel channels with different shapes. These channels are of uniform size and arranged evenly, with their length and width being integer multiples of the pixel size within the image sensor. Different shapes of pixel-level filter channels correspond to different spectral filtering coefficients, and these structures are periodically arranged in a fixed order. The sensor modulates the received first detection light through this periodic pixel-level filter structure on its surface, forming a mosaic image containing spectral information. Subsequently, an algorithm reconstructs a grayscale image containing the spectral information to be measured.

[0116] The controller 203 is configured to control the light source to provide light within a preset wavelength range to illuminate the first region, and to control the imaging spectral detection device to image the first region, obtaining an image of the imaging region. The controller also controls the imaging spectral detection device to acquire spectral data from the image reflecting the non-uniform distribution of reflection or excitation signals generated by the analyte under light illumination within the imaging region. Based on the acquired spectral data, information about the analyte in the imaging region is obtained, including information relating the analyte to the spectral data. When there is only one type of light source 201, one image is captured; when there are two types of light sources 201, two images are captured. When the first light source is on, the second light source is off; similarly, when the second light source is on, the first light source is off, and the two do not interfere with each other.

[0117] The first bandpass filter 204 is located between the light source 201 and the imaging area 100. Its function is to allow light within a preset wavelength range to pass through, while blocking light outside the preset wavelength range, thereby reducing the influence of other external light on the detection results.

[0118] The second bandpass filter 206 is located between the imaging spectral detection device 202 and the lens 205. Its function is to allow light in the wavelength range of the reflected signal or excitation signal generated by the analyte when it is illuminated to pass through, while light in other wavelength ranges is blocked, thereby reducing the influence of the reflected signal or excitation signal of non-analytes on the detection results.

[0119] Lens 205 can be used for fixed-focusing to obtain a clear image. In other embodiments, the second bandpass filter 206 may also be located on the side of lens 205 away from the imaging spectral detection device 202, which is not a limitation of the present invention.

[0120] Based on the above explanation, Figure 10 The image shown is an analyte detection watch provided in this embodiment. The front of the watch is a display screen, as shown... Figure 11 As shown, the back of the watch has a light-transmitting window and a built-in detection device 200. (As indicated...) Figure 12 As shown, both the light source 201 and the first bandpass filter 204 are ring-shaped structures. The light-emitting modules of the light source 201 are arranged in a ring. The emitted light is filtered by the first bandpass filter 204 and outputs light with the required wavelength, which shines onto the human body through the light-transmitting window on the back of the watch. The reflected signal or excitation signal from the human body enters the light-transmitting window, passes through the hollowed-out part in the middle of the light source 201 and the first bandpass filter 204, passes through the lens 205, and enters the second bandpass filter 206. After being filtered by the second bandpass filter 206, it enters the imaging spectral detection device 202. The imaging spectral detection device 202 is mounted on the circuit board 207. At the same time, the controller 203 (not shown in the figure) of the detection device 200 is also mounted on the circuit board 207. Figure 13 As shown, to more accurately identify the location of veins, the watch can be worn on the inside of the wrist.

[0121] Example 6

[0122] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 8 As shown, it includes at least one processor 501; and a memory 502 communicatively connected to at least one processor 501; wherein the memory 502 stores instructions executable by at least one processor 501, the instructions being executed by at least one processor 501 to enable at least one processor 501 to perform the above-described method for detecting the analyte.

[0123] The memory 502 and processor 501 are connected via a bus, which may include any number of interconnected buses and bridges. The bus connects various circuits of one or more processors 501 and memory 502 together. The bus can also connect various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be further described here. A bus interface provides an interface between the bus and the transceiver. The transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by processor 501 is transmitted over a wireless medium via an antenna, which further receives data and transmits it to processor 501.

[0124] Processor 501 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces,

[0125] Voltage regulation, power management, and other control functions are included. The memory 502 can be used to store data used by the processor 501 during operation.

[0126] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-described method for detecting analytes.

[0127] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0128] Example 7

[0129] Figure 9 This is a flowchart of this embodiment, which describes a model training method for analyte detection, including:

[0130] Data acquisition steps: Acquire spectral data reflecting the uneven distribution of reflection or excitation signals generated by the analyte under light irradiation, and acquire the actual test results of the analyte at the same time. In this embodiment, the same time refers to the same moment or time period (e.g., within five minutes) when acquiring the spectral data, such as blood test results.

[0131] Based on the first image of the imaging area acquired from the area where the target is illuminated by infrared light (i.e., the skin where the vein is located), the grayscale distribution of the pixels divides the imaging area into a candidate region for detection points and a candidate region for reference points. Detection points are selected from the candidate regions for detection points, and reference points are selected from the candidate regions for reference points. The spectral data of the detection points and the spectral data of the reference points are then acquired respectively.

[0132] Based on the grayscale values ​​of pixels in the second image of the imaging area acquired at the same location under ultraviolet light illumination, a pixel whose grayscale value meets the preset requirements is selected from the candidate detection point region as a detection point, or a combination of the pixel and its adjacent pixels is selected as a detection point. A pixel whose grayscale value is within the preset deviation range from the selected detection point is selected from the candidate reference point region as a reference point, or a combination of the pixel and its multiple adjacent pixels is selected as a reference point. The fluorescence spectrum data of the detection point and the fluorescence spectrum data of the reference point are then calculated.

[0133] Based on the grayscale distribution data, the imaging area is divided into a candidate region for detection points with smaller grayscale values ​​and a candidate region for reference points with larger grayscale values. Based on the candidate region for detection points, a pixel in the second image whose grayscale value meets the preset requirements is selected as a detection point, or a combination of that pixel and its neighboring pixels is selected as a detection point. Based on the candidate region for reference points, a pixel in the second image whose grayscale value is within the preset deviation range from that of the detection point is selected as a reference point, or a combination of that pixel and its multiple neighboring pixels is selected as a reference point.

[0134] Substitute the gray values ​​of the detection points in the second image into the spectral reconstruction algorithm to obtain the spectral data of the detection points. Substitute the gray values ​​of the reference points in the second image into the spectral reconstruction algorithm to obtain the spectral data of the reference points.

[0135] Model training steps: Use the acquired spectral data as input to the detection model and the actual detection results as output to train the detection model.

[0136] The detection model employs a convolutional neural network (CNN) model, which sequentially includes an input layer, at least two convolutional layers, at least two activation function layers, a Flatten layer, a fully connected layer, and an output layer. The convolutional layers and activation function layers are distributed alternately. The activation function used in the activation function layers is the ReLU function.

[0137] If the error between the output of the detection model and the actual detection result meets the preset condition, training stops and the detection model is obtained. The training level of the detection model needs to be set with different parameters as required. The extracted feature values ​​are continuously learned according to the different parameter settings until the error between the output result and the actual detection result meets the requirements, at which point training stops and the detection model is obtained.

[0138] Example 8

[0139] This embodiment describes a model training system for analyte detection, comprising:

[0140] Data acquisition module: acquires spectral data reflecting the uneven distribution of reflection or excitation signals generated by the analyte under light irradiation, and acquires the actual detection results of the analyte at the same time. In this embodiment, the same time refers to the same moment or time period (e.g., within five minutes) when acquiring the spectral data.

[0141] Based on the first image of the imaging area acquired from the area where the target is illuminated by infrared light (i.e., the skin where the vein is located), the grayscale distribution of the pixels divides the imaging area into a candidate region for detection points and a candidate region for reference points. Detection points are selected from the candidate regions for detection points, and reference points are selected from the candidate regions for reference points. The spectral data of the detection points and the spectral data of the reference points are then acquired respectively.

[0142] Based on the grayscale values ​​of pixels in the second image of the imaging area acquired at the same location under ultraviolet light illumination, a pixel whose grayscale value meets the preset requirements is selected from the candidate detection point region as a detection point, or a combination of the pixel and its adjacent pixels is selected as a detection point. A pixel whose grayscale value is within the preset deviation range from the selected detection point is selected from the candidate reference point region as a reference point, or a combination of the pixel and its multiple adjacent pixels is selected as a reference point. The fluorescence spectrum data of the detection point and the fluorescence spectrum data of the reference point are then calculated.

[0143] Based on the grayscale distribution data, the imaging area is divided into a candidate region for detection points with smaller grayscale values ​​and a candidate region for reference points with larger grayscale values. Based on the candidate region for detection points, a pixel in the second image whose grayscale value meets the preset requirements is selected as a detection point, or a combination of that pixel and its neighboring pixels is selected as a detection point. Based on the candidate region for reference points, a pixel in the second image whose grayscale value is within the preset deviation range from that of the detection point is selected as a reference point, or a combination of that pixel and its multiple neighboring pixels is selected as a reference point.

[0144] Substitute the gray values ​​of the detection points in the second image into the spectral reconstruction algorithm to obtain the spectral data of the detection points. Substitute the gray values ​​of the reference points in the second image into the spectral reconstruction algorithm to obtain the spectral data of the reference points.

[0145] Model training module: The acquired spectral data is used as the input to the detection model, and the actual detection results are used as the output of the detection model to train the detection model.

[0146] The detection model employs a convolutional neural network (CNN) model, which sequentially includes an input layer, at least two convolutional layers, at least two activation function layers, a Flatten layer, a fully connected layer, and an output layer. The convolutional layers and activation function layers are distributed alternately. The activation function used in the activation function layers is the ReLU function.

[0147] If the error between the output of the detection model and the actual detection result meets the preset condition, training stops and the detection model is obtained. The training level of the detection model needs to be set with different parameters as required. The extracted feature values ​​are continuously learned according to the different parameter settings until the error between the output result and the actual detection result meets the requirements, at which point training stops and the detection model is obtained.

[0148] Those skilled in the art will understand that the above embodiments are specific examples of implementing the present invention, and in practical applications, various changes in form and detail may be made without departing from the spirit and scope of the present invention.

[0149] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.

Claims

1. A method for training a model applied to analyte detection, characterized in that, The method comprises the following steps: The data acquisition step comprises the following steps: The data acquisition step comprises the following steps: 2.The model training method for analyte detection of claim 1, wherein, The data acquisition step comprises the following steps: The data acquisition step comprises the following steps: 3.The model training method for analyte detection of claim 2, wherein, The data acquisition step comprises the following steps: The data acquisition step comprises the following steps: 4.The model training method for analyte detection of claim 3, wherein, The data acquisition step comprises the following steps: The data acquisition step comprises the following steps: 5.The model training method for analyte detection of claim 1, wherein, The data acquisition step comprises the following steps: 6.The method of claim 1, wherein, The detection model adopts a convolutional neural network model, which comprises an input layer, at least two convolutional layers, at least two activation function layers, a Flatten layer, a full connection layer and an output layer in sequence, and the convolutional layers and the activation function layers are distributed alternately; and the activation function adopted by the activation function layer is a Relu function. 7.The model training method for analyte detection of claim 1, wherein, In the model training step, if the error between the output result of the detection model and the real detection result meets the preset condition, the training is stopped to obtain the detection model.

8. A method of detecting an analyte, characterized by, In the model training step, the training degree of the detection model needs to be set according to different parameters, and the extracted characteristic values are continuously learned according to the setting of different parameters until the error between the output result and the real detection result meets the requirement, and then the training is stopped to obtain the detection model. 9.A model training system applied to analyte detection, characterized in that, The method comprises the steps of the model training method for analyte detection according to any one of claims 1-7. The method comprises the steps of The data acquisition module acquires spectral data reflecting uneven distribution of reflection signals or excitation signals generated when the analyte is irradiated with light, and acquires a true detection result of the analyte at the same time period. The model training module trains a detection model by taking the acquired spectral data as input and the true detection result as output.

10. The model training system for analyte detection of claim 9, wherein, The data acquisition module comprises: The data acquisition module comprises: 11.The model training system for analyte detection of claim 10, wherein, The data acquisition module comprises: The data acquisition module comprises:

12. The model training system for analyte detection of claim 11, wherein, The data acquisition module comprises: The data acquisition module comprises: 13.The method of claim 9, wherein, The data acquisition module comprises: 14.The method of claim 9, wherein, The data acquisition module comprises:

15. The model training method for analyte detection according to claim 9, wherein, The detection model adopts a convolutional neural network model, which sequentially comprises an input layer, at least two convolutional layers, at least two activation function layers, a Flatten layer, a fully connected layer, and an output layer, wherein the convolutional layers and the activation function layers are distributed alternately; and the activation function adopted by the activation function layer is a Relu function.

16. A system for detecting an analyte, characterized by In the model training module, if the error between the output result of the detection model and the true detection result meets a preset condition, the training of the detection model is stopped. In the model training module, the training degree of the detection model needs to be set with different parameters according to needs, and the extracted feature values are constantly learned according to the setting of different parameters until the error between the output result and the true detection result meets the needs, and then the training of the detection model is stopped. The model training system for training the detection model of the analyte comprises the modules of any one of claims 9 to 15.

17. A computer readable storage medium storing a computer program, wherein the computer program comprises program instructions configured to cause a processor to perform the method of any one of claims 1 to 16. The computer program, which is executed by a processor, implements the steps of the model training method for analyte detection according to any one of claims 1 to 7.

18. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, The computer program, which is executed by a processor, implements the steps of the model training method for analyte detection according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Near-infrared spectroscopy non-invasive blood glucose detection method and its detection network model training method

    CN107192690B

  • Training method for network model for near infrared spectrum noninvasive blood glucose detection

    CN110575181A

  • Spectrum detection model training and application method and electronic equipment

    CN117607125A

  • Multispectral target detection model training method, target detection method and system

    CN117911710A