Data processing method and system for spectral sensor, analyte detection method and system, computer-readable storage medium and electronic device
Patent Information
- Application Number
- TW114124375
- Authority / Receiving Office
- TW · TW
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2024-07-16
- Filing Date
- 2025-06-27
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2045-06-26
AI Technical Summary
Existing non-invasive blood glucose detection methods using near-infrared spectroscopy face challenges due to strong absorption by human tissues, leading to interference and reduced accuracy in extracting blood glucose components from measurement spectra.
A data processing method for a spectral sensor involving a periodic pixel-level filter structure on the sensor surface to form a mosaic image, allowing for the selection of detection and reference points, and utilizing fluorescence spectroscopy to reconstruct spectral data, thereby removing interference components and improving accuracy.
The method enhances the accuracy of non-invasive glucose detection by effectively eliminating non-analyte interference, enabling real-time, low-cost, and miniaturized detection without the need for electrochemical reactions.
Smart Images

Figure TWG2TB001908911_001 
Figure TWG2TB001908911_002 
Figure TWG2TB001908911_003
Abstract
Description
[Technical Field]
[0001] This invention relates to the field of optical analysis, and more specifically, to a data processing method, system, media, and device for a spectral sensor. [Previous Technology]
[0002] There are many methods in the field of non-invasive blood glucose detection, including near-infrared spectroscopy, Raman spectroscopy, radiofrequency impedance spectroscopy, and saliva detection. Among them, near-infrared spectroscopy is considered one of the most promising non-invasive blood glucose detection technologies. However, there are still some obstacles to achieving accurate detection of blood glucose concentration: water, muscle, bone, and protein in human tissues have strong absorption characteristics for near-infrared light. The detection spectrum will carry a lot of interference information unrelated to blood glucose. Moreover, the near-infrared spectra of these tissues overlap with the near-infrared absorption spectrum of blood glucose. The effective information that can be used for analysis is easily submerged in background interference, which will increase the difficulty of extracting blood glucose components from the measurement spectrum to a certain extent and reduce the accuracy of blood glucose calculation models.
[0003] Patent CN112022167A discloses a non-invasive blood glucose detection method based on a spectral sensor, comprising: Step 1: A spectral sensor is designed at the fingertip, and an LED is designed on the other side of the fingertip; Step 2: A Fabry-Perot interferometer tunable filter is adapted within the spectral sensor, and the optical receiving range of the tunable filter is adjusted to the nm level; Step 3: Light emitted by a 1650nm LED passes through human tissue and is collected by a 1350nm-1650nm spectral sensor; Step 4: Light emitted by a 1720nm LED passes through human tissue and is collected by a 1550nm-1850nm spectral sensor.
[0004] Invention patent with publication number CN115624328A discloses an infrared emitter and a blood glucose meter for a non-invasive blood glucose meter, including: an integrated non-invasive sensor, a photoelectric conversion module, an intelligent control platform, and a blood glucose detection terminal; the intelligent control platform controls the integrated non-invasive sensor to emit infrared light to human skin tissue, the infrared light diffuses and reflects spectral signals through human skin tissue, the photoelectric conversion module converts the received spectral signals into electrical signals, the intelligent control platform converts the electrical signals into digital signals and then performs feature extraction and parameter analysis on the digital signals to obtain blood glucose concentration, and the user can view the blood glucose concentration through the blood glucose detection terminal.
[0005] Patent CN116035569A discloses a non-invasive blood glucose detection method based on multi-wavelength near-infrared spectroscopy, comprising: S1: a wearable device at the wrist position is provided with a near-infrared LED light source, and a photoelectric sensor is provided on the same side as the LED light source; S2: the multi-wavelength near-infrared LED light source emits near-infrared light into the wrist and reflects it back to the photoelectric sensor; S3: the PPG signal output by the photoelectric sensor is collected; S4: the PPG signal is processed and noise is removed using a bandpass filter; S5: the time-frequency features of the PPG signal are extracted based on the filtered signal in S4; S6: the human blood glucose concentration is identified based on the feature signal extracted in S5; S7: steps S1-S6 are repeated to perform dynamic real-time detection of human blood glucose concentration.
[0006] As can be seen from the above, the excitation signal generated by irradiating the body surface by the excitation light source needs to be demodulated before imaging. The accuracy of the spectral data output by traditional spectral detection equipment is low because the collected signal contains a large number of non-analyte interference components that cannot be effectively removed. [Summary of the Invention]
[0007] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a data processing method, system, media and device for a spectral sensor.
[0008] A data processing method for a spectral sensor according to the present invention includes: a data acquisition step: acquiring a reflection signal or excitation signal generated by light irradiation in an imaging area; a filtering step: generating an image, denoted as a mosaic image, by passing the acquired reflection signal or excitation signal through a periodic pixel-level filtering structure disposed on the sensor surface; and a processing step: selecting detection points and reference points from corresponding positions in the mosaic image according to a pre-divided candidate detection point region and a candidate reference point region in the imaging area, and calculating the spectral data of the detection points and the spectral data of the reference points respectively.
[0009] Preferably, the periodic pixel-level filter structure includes: multiple filter pixel channels with different pixel-level structures, the multiple filter pixel channels having the same size and being uniformly arranged, and their length and width being integer multiples of the pixel size in the image sensor.
[0010] Preferably, the filter pixel channels of different shaped pixel-level filter structures correspond to different spectral filtering coefficients, and the pixel-level filter structures with different spectral filtering coefficients are arranged periodically after being combined in a fixed order; the sensor modulates the received detection light through the periodic pixel-level filter structure to form a mosaic image containing spectral information, and then uses an algorithm to reconstruct a grayscale image containing the spectral information to be measured.
[0011] Preferably, the number of detection points and reference points in the processing step is one or more. 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.
[0012] The present invention provides a method for detecting an analyte, comprising the steps of the data processing method of the spectral sensor.
[0013] A data processing system for a spectral sensor according to the present invention includes: a data acquisition module for acquiring reflection or excitation signals generated by light irradiation in an imaging area; a filtering module for generating an image, denoted as a mosaic image, by passing the acquired reflection or excitation signals through a periodic pixel-level filtering structure disposed on the sensor surface; and a processing module for selecting detection points and reference points from corresponding positions in the mosaic image according to a pre-divided candidate detection point region and a candidate reference point region in the imaging area, and calculating the spectral data of the detection points and the spectral data of the reference points respectively.
[0014] Preferably, the periodic pixel-level filter structure includes: multiple filter pixel channels with different shapes and pixel-level structures, the multiple filter pixel channels have the same size and are uniformly arranged, and their length and width are integer multiples of the pixel size in the image sensor.
[0015] Preferably, the filter pixel channels of different shaped pixel-level filter structures correspond to different spectral filtering coefficients, and the pixel-level filter structures with different spectral filtering coefficients are arranged periodically after being combined in a fixed order; the sensor modulates the received detection light through the periodic pixel-level filter structure to form a mosaic image containing spectral information, and then uses an algorithm to reconstruct a grayscale image containing the spectral information to be measured.
[0016] Preferably, the number of detection points and reference points in the processing module is one or more. 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.
[0017] The present invention provides an analyte detection system, comprising a module of the data processing system of the spectral sensor.
[0018] 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 data processing method of the spectral sensor are implemented.
[0019] An electronic device provided by 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 data processing method of the spectral sensor.
[0020] Compared with the prior art, the present invention has the following beneficial effects: 1. The present application modulates the detection light through a periodic pixel-level filter structure set on the sensor surface to form a mosaic image containing spectral information, thereby obtaining a grayscale image containing the spectral information to be measured, removing interference components of non-analytes from the collected signal, and improving the accuracy of obtaining spectral data. 2. The technical solution of the present application does not require electrochemical reaction with the analyte, making the detection method more convenient, especially when detecting analytes in living organisms, achieving the purpose of non-invasive detection. 3. By utilizing the non-uniform distribution of the analyte in the imaging area, the present application can obtain spectral data from different regions. Since the distribution of other components besides the analyte in the imaging area is relatively uniform, the difference in spectral data from different regions can directly reflect the information related to the analyte and spectral data after basically excluding the influence of non-analytes, such as the concentration of the analyte. 4. The present 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 achieving the purpose of real-time detection.
[0021] In order to make the above and other objects, features and advantages of the present invention more apparent and understandable, embodiments are described below in detail with reference to the accompanying drawings.
Implementation Method
[0023] 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 present 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 protection scope of the present invention. Embodiment 1
[0024] Figure 1 is a flowchart of this embodiment. This embodiment provides a method for detecting an analyte, including:
[0025] Imaging Step: The first region is illuminated by light within a preset wavelength range provided by a light source, and the first region is imaged by an imaging spectral detection device to obtain an image of the imaging region. Illumination with light within the preset wavelength range allows the image to reflect the distribution data and spectral data of the reflected or excitation signals generated by the analyte under light illumination within the imaging region. 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 region refers to the area within the lens range of the imaging spectral detection device. In general, the imaging region can be a part of the first region or the same region as the first region.
[0026] Since acquiring analyte distribution data and spectral data requires illumination from light sources with different wavelength ranges, there are two possible implementation methods: the light source can provide a single light source with a wider wavelength range, or two light sources can each provide light sources with smaller wavelength ranges. When there is only one light source, the wavelength range of the light provided by that light source needs to cover both the wavelength range required to acquire analyte distribution data and the wavelength range required to acquire analyte spectral data. When there are two light sources, the two light sources provide different light sources, with one light source covering the wavelength range required to acquire analyte distribution data and the other light source covering the wavelength range required to acquire analyte spectral data. Furthermore, when there is only one light source, the image is captured as one image; when there are two light sources, the image is captured as two images. 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 surface of the human skin.
[0027] 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, or troponin, or it can be a drug such as antibiotics (e.g., gentamicin, vancomycin, etc.), digitalis, digoxin, abused drugs, theophylline, or warfarin. In embodiments that detect two or more analytes, the analytes can be monitored at the same or different times. In other embodiments, the analyte can also be other substances within the body surface, enabling non-invasive detection through this invention.
[0028] Spectral acquisition steps: Spectral data reflecting the uneven distribution of reflected or excitation signals generated by the analyte under light illumination in the imaging region is acquired from the image using an imaging spectral detection device. Specifically, the imaging region can be divided into zones based on different distribution patterns to facilitate the selection of locations from which spectral data can be acquired.
[0029] 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 differs 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: epidermis, dermis, and subcutaneous tissue. Veins and other blood vessels are located in the subcutaneous tissue. Ultraviolet light irradiation of skin areas with and without blood vessels can yield corresponding spectral data, as can skin areas with thicker blood vessels and skin areas with thinner blood vessels. The difference between these two spectral data can reflect 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, for further analysis, or directly obtain information such as the concentration of the analytes through an analytical model. Example 2
[0030] 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:
[0031] 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 nanometers, and acquire a first image of the imaging area. The first wavelength range is preferably the near-infrared band. Then irradiate the same location with ultraviolet light in the second wavelength range of 300-390 nanometers, and acquire a second image of the imaging area.
[0032] As shown in Figure 2, the horizontal axis represents the horizontal coordinate of the first image, and the vertical axis represents the vertical coordinate of the first image. The white boxes represent the selected detection point pixel blocks on the veins, and the black boxes represent the selected reference point pixel blocks on the surrounding skin. In the first image, part of the infrared light penetrates the human skin and part is absorbed by the human skin. At the same time, it is also largely absorbed by the veins. Therefore, the pixel gray values in the vein areas are smaller, while the pixel gray values in the non-vein areas are larger. This makes it easy to divide the imaging area into the vein area and the non-vein area.
[0033] As shown in Figure 3, the horizontal axis represents the horizontal coordinate of the second image, and the vertical axis represents the vertical coordinate of the second image. The white boxes represent the selected detection point pixel blocks on the veins, and the black boxes represent the selected reference point pixel blocks on the surrounding skin. In the second image, it is difficult to distinguish between the areas where veins are located and the areas where non-vein vessels are located, so the first image is needed for differentiation. An excitation light in the second wavelength range of 300-390 nanometers is used to obtain a high-quality effective fluorescence spectral signal. 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 a high-quality effective fluorescence spectral signal. 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 spectral signal of the excitation light and extract the effective fluorescence spectral signal. After absorbing ultraviolet light in the 300-390 nm wavelength range, glucose in veins can emit fluorescent radiation signals in the 400-800 nm visible light band. This band is within the effective response range of the imaging spectral detection device. The characteristic spectral intensity of this fluorescent radiation signal is positively correlated with the glucose concentration and has high fluorescence excitation efficiency.
[0034] 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 locations in the second image corresponding to the locations in the vein areas, and reference points are selected from the locations in the second image corresponding to the locations in the non-vein areas. The spectral data of the detection points and the spectral data of the reference points in the second image are acquired respectively. Specifically, based on the grayscale values of pixels in the second image, a pixel whose grayscale value meets the preset requirements is selected from the vein areas as a detection point, or a combination of that 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 non-vein areas as a reference point, 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 calculated in the second image. Spectral data is taken from a single pixel or an average of multiple pixels at the detection point and reference point, which can be appropriately selected based on the blood vessel width. Averaging multiple pixels can improve the signal-to-noise ratio, but is limited by the blood vessel width, avoiding the capture of areas outside the blood vessel. Selecting a single pixel offers high spatial resolution and is suitable for thinner blood vessels, but has a lower signal-to-noise ratio. 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 shown in Figure 5, where the horizontal axis represents wavelength (in nm), 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 gray values of the reference point and the selected detection point are within the preset deviation range is that the skin in the imaging area may have influencing factors such as skin color, spots, and cosmetics, which will directly affect the spectral data of the reference point. The first image cannot distinguish the areas with these influencing factors. By setting the preset deviation range of the gray values, these influencing factors can be effectively eliminated. In addition, the fact that the gray values of the reference point and the selected detection point are within the preset deviation range can ensure that the selection of the reference point is close to the detection point. For example, if it is selected at the edge of the vein, it can ensure that the color, thickness and other parameters of the epidermis, dermis and subcutaneous tissue are as close as possible, except for the blood vessels. This makes the deviation between the spectral data of the detection point and the spectral data of the reference point minimize the influence of non-analytes.
[0035] In addition to 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.
[0036] When selecting a combination of multiple pixels as the detection point, the fluorescence spectrum data of the detection point can be the average value of the fluorescence spectrum data of these pixels. Simultaneously, the number of detection points and reference points can be one or more. When there are multiple detection points and reference points, the average value of the fluorescence spectrum data of all detection points and the average value of the fluorescence spectrum data of all reference points can be calculated separately.
[0037] 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 detection model.
[0038] The detection model may 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, 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.
[0039] In this convolutional neural network model, each convolutional kernel has a size of 1. The first convolutional layer has 32 kernels, and the second convolutional layer has 64 kernels, both used to extract blood glucose features. The output of the convolutional layers is non-linearly transformed through an activation function. The flatten layer flattens the output of the convolutional layers into a one-dimensional vector, facilitating connection to subsequent fully connected layers, resulting in a final output dimension of 1. During model training, the Adam optimizer is used for model training, and the mean squared error is used as the loss function. The mean absolute error is also calculated as the performance metric for model evaluation.
[0040] When the output of the detection model is glucose concentration, if the error between the output and the measured standard glucose concentration value meets a preset condition, training is stopped to obtain the detection model. When the output of the detection model is an intermediate result of the correlation between glucose and spectral data, such as the result of an interneuron, if the error between the output and the result of the interneuron meets a preset condition, training is stopped to obtain the detection model. Further model correction processing is performed on the interneuron result to obtain the glucose concentration.
[0041] As shown in Figure 4, 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 performs deep learning through convolution operations, combines features, and outputs the final predicted blood glucose concentration value. Alternatively, deep learning through convolution operations can be used to combine features and output a neuron, Output1, as an intermediate result value. 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 the 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.
[0042] Through multiple iterations of training, neurons learn the corresponding variation patterns between different glucose concentrations 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.
[0043] The entire glucose detection process does not require puncturing the skin to collect blood or implant a needle. It acquires the spectral information of the subject based on fluorescence spectroscopy and obtains the glucose detection result based on this spectral information, avoiding pain and discomfort and improving the comfort and convenience of the test. This method can precisely distinguish the spectral signals of blood vessels and skin sites, making it possible to accurately extract the glucose signal. At the same time, it also makes the spectral signal strongly correlated with glucose concentration, realizing accurate measurement of glucose concentration, resulting in more accurate detection results and more convenient processing.
[0044] Figure 6 shows a schematic diagram of 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. The total sample size was 2037, including 1537 training samples and 500 prediction samples. 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. Example 3
[0045] This embodiment, based on Embodiment 2, replaces infrared light with visible light, providing another non-invasive glucose detection method, including:
[0046] Imaging steps: Illuminate the skin at the location of the vein, such as the wrist or back of the hand, with visible light to acquire a first image of the imaging area. Then, irradiate the same location with ultraviolet light in the second wavelength range of 300-390 nanometers to acquire a second image of the imaging area.
[0047] In the first image, since the color of the area where the veins are located differs from the color of the area where the non-vein vessels are located, the imaging area can be easily divided into the area where the veins are located and the area where the non-vein vessels are located.
[0048] 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 nanometers 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 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 spectral signal of the excitation light and extract the effective fluorescence spectral signal. After absorbing ultraviolet light in the 300-390 nm wavelength range, glucose in veins can emit fluorescent radiation signals in the 400-800 nm visible light band. This band is within the effective response range of the imaging spectral detection device. The characteristic spectral intensity of this fluorescent radiation signal is positively correlated with the glucose concentration and has high fluorescence excitation efficiency.
[0049] 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 second image corresponding to the areas containing veins, and reference points are selected from the second image corresponding to the areas not containing veins. The spectral data of the detection points and the spectral data of the reference points are acquired respectively. 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 adjacent 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 multiple adjacent 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 calculated. The reason why the grayscale value of the reference point is within a 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, spots, and cosmetics, which will directly affect the spectral data of the reference point. The first image cannot simultaneously distinguish the areas with all influencing factors. By setting a preset deviation range for the grayscale values, these influencing factors can be effectively eliminated.
[0050] When selecting a combination of multiple pixels as the detection point, the fluorescence spectrum data of the detection point can be the average value of the fluorescence spectrum data of these pixels. Simultaneously, the number of detection points and reference points can be one or more. When there are multiple detection points and reference points, the average value of the fluorescence spectrum data of all detection points and the average value of the fluorescence spectrum data of all reference points can be calculated separately.
[0051] 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.
[0052] The detection model may be 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.
[0053] In the convolutional neural network model, each convolutional kernel has a size of 1. The first convolutional layer has 32 kernels, and the second convolutional layer has 64 kernels, both used to extract blood glucose features. The output of the convolutional layer is non-linearly transformed through an activation function. The flatten layer flattens the output of the convolutional layer into a one-dimensional vector, facilitating connection to subsequent fully connected layers, resulting in a final output dimension of 1. During model training, the Adam optimizer is used for model training, and the mean squared error is used as the loss function. The mean absolute error is also calculated as the performance metric for model evaluation.
[0054] 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.
[0055] The training level of the detection model needs to be set with different parameters as required. The extracted glucose feature values will be continuously learned 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 will stop and the detection model will be obtained.
[0056] Through multiple iterations of training, neurons learn the corresponding variation patterns between different glucose concentrations 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.
[0057] The entire glucose detection process does not require blood collection or skin puncture. It acquires the spectral information of the test subject based on fluorescence spectroscopy and obtains the glucose detection result based on this spectral information, avoiding pain and discomfort and improving the comfort and convenience of the test. This method can finely distinguish the spectral signals of blood vessels and skin sites, making it possible to accurately extract the glucose signal subsequently. At the same time, it also makes the spectral signal strongly correlated with glucose concentration, realizing accurate measurement of glucose concentration, resulting in more accurate detection results and more convenient processing. Example 4
[0058] This embodiment provides an analyte detection system. The analyte 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:
[0059] 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 region. By illuminating the first region with light within the preset wavelength range, the image reflects the distribution data and spectral data of the reflected or excited signals generated by the analyte under light illumination within the imaging region. 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 there are two types of light, two images are obtained. For ease of processing, it is usually required that the imaging areas of the two images are the same.
[0060] In this application, the analyte may 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 that detect more than one analyte, the analytes may be monitored at the same or different times. In other embodiments, the analyte may also be other substances in a liquid.
[0061] Spectral Acquisition Module: This module acquires spectral data from an image, reflecting the non-uniform distribution of reflected or excitation signals generated by light irradiation of the analyte within the imaging region, using an imaging spectral detection device. Specifically, the imaging region can be partitioned according to different data distribution patterns to facilitate the selection of locations from which spectral data can be acquired.
[0062] Analysis Module: 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 differs 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, thereby accurately reflecting the correlation between the analytes and the spectral data, such as the concentration of the analytes.
[0063] Those skilled in the art will understand that, in addition to implementing the system and its various devices, modules, and units provided by the present invention in the form of logic gates, switches, dedicated integrated circuits, programmable logic controllers, and embedded microcontrollers, the same functions can be achieved entirely through logical programming of the method steps. Therefore, the system and its various devices, modules, and units provided by the present 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. Example 5
[0064] Figure 7 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.
[0065] 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 connection or a communication connection with the light source 201 and the imaging spectral detection device 202, respectively.
[0066] Light source 201 is capable of providing 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 capable of providing light with a wider wavelength range; or two light sources, each providing light with a narrower wavelength range. When there is only one light source, the wavelength range of the light provided by that light source needs to simultaneously cover the wavelength range capable of acquiring analyte distribution data and the wavelength range capable of acquiring analyte spectral data, such as a halogen lamp. When there are two light sources, the two light sources provide different light, with one light covering the wavelength range capable of acquiring analyte distribution data and the other covering the wavelength range capable of acquiring analyte spectral data, such as an infrared lamp combined with an ultraviolet lamp, or a visible light lamp combined with an ultraviolet lamp.
[0067] To ensure uniform illumination in the imaging area 100, a ring-shaped light source can be used. The light source has multiple light-emitting modules that are evenly distributed on 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.
[0068] The imaging spectral detection device 202 is capable of imaging the imaging region 100 to obtain a corresponding image according to instructions, and is also capable of obtaining 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.
[0069] This periodic pixel-level filter structure includes multiple filter pixel channels with different shapes. These filter pixel channels have the same dimensions and are uniformly arranged, 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 pixel-level filter structures with different spectral filtering coefficients are periodically arranged in a fixed order. The sensor modulates the received first detection light through the periodic pixel-level filter structure on its surface, forming a mosaic image containing spectral information. Subsequently, an algorithm is used to reconstruct a grayscale image containing the spectral information to be measured.
[0070] 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, thereby 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 type of light source is on, the second type of light source is off; similarly, when the second type of light source is on, the first type of light source is off, and the two do not interfere with each other.
[0071] 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.
[0072] 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 irradiated to pass through, while light in other wavelength ranges is blocked, thereby reducing the influence of the reflected signal or excitation signal of non-analyte on the detection results.
[0073] Lens 205 can be used for fixed-focusing in order 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 imaging spectral detection device 202, and the present invention is not limited thereto.
[0074] As described above, Figure 10 shows an analytical substance detection watch provided in this embodiment. The front of the watch is a display, as shown in Figure 11. The back of the watch has a light-transmitting window and a built-in detection device 200. As shown in Figure 12, both the light source 201 and the first bandpass filter 204 are annular 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 a wavelength that meets the requirements. This light is then irradiated 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 portion 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, the light 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. As shown in Figure 13, to more accurately identify the location of veins, the watch can be worn on the inside of the wrist. Example 6
[0075] Figure 8 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. As shown in Figure 8, it includes at least one processor 501; and a memory 502 communicatively connected to at least one processor 501. The memory 502 stores instructions that can be executed by at least one processor 501. The instructions are executed by at least one processor 501 so that at least one processor 501 can perform the above-mentioned method for detecting analytes.
[0076] The memory 502 and the processor 501 are connected via a bus. The bus may include any number of interconnected buses and bridges, connecting various circuits of one or more processors 501 and memory 502 together. The bus may 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 may 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 the processor 501 is transmitted over a wireless medium via an antenna, which further receives data and transmits it to the processor 501.
[0077] The processor 501 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. The memory 502 can be used to store the data used by the processor 501 during operation.
[0078] 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 the analyte.
[0079] 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 flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks. Example 7
[0080] Figure 9 is a flowchart of this embodiment. This embodiment provides a data processing method for a spectral sensor, including:
[0081] Data acquisition steps: Acquire the reflected signal or excitation signal generated when the imaging area is illuminated by light.
[0082] Filtering step: The acquired reflected signal or excitation signal is passed through a periodic pixel-level filter structure set on the sensor surface to generate an image, which is denoted as a mosaic image;
[0083] The periodic pixel-level filter structure includes: multiple filter pixel channels with different pixel-level structures, the multiple filter pixel channels have the same size and are evenly arranged, and their length and width are integer multiples of the pixel size in the image sensor.
[0084] The filter pixel channels of different shapes of pixel-level filter structures correspond to different spectral filtering coefficients, and the pixel-level filter structures with different spectral filtering coefficients are arranged periodically after being combined in a fixed order.
[0085] The sensor modulates the received detection light through a periodic pixel-level filter structure to form a mosaic image containing spectral information, and then uses an algorithm to reconstruct a grayscale image containing the spectral information to be measured.
[0086] Processing steps: Based on the pre-divided candidate regions for detection points and candidate regions for reference points in the imaging region, select detection points and reference points from the corresponding positions in the mosaic image, and calculate the spectral data of the detection points and the spectral data of the reference points respectively.
[0087] The number of detection points and reference points is one or more. When the number of detection points and reference points is multiple, 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. Example 8
[0088] This embodiment provides a data processing system for a spectral sensor, comprising:
[0089] Data acquisition module: Acquires the reflected or excitation signals generated when the imaging area is illuminated by light.
[0090] Filter module: The acquired reflected signal or excitation signal is processed through a periodic pixel-level filter structure set on the sensor surface to generate an image, which is denoted as a mosaic image;
[0091] The periodic pixel-level filter structure includes: multiple filter pixel channels with different pixel-level structures, the multiple filter pixel channels have the same size and are evenly arranged, and their length and width are integer multiples of the pixel size in the image sensor.
[0092] The filter pixel channels of different shapes of pixel-level filter structures correspond to different spectral filtering coefficients, and the pixel-level filter structures with different spectral filtering coefficients are arranged periodically after being combined in a fixed order;
[0093] The sensor modulates the received detection light through a periodic pixel-level filter structure to form a mosaic image containing spectral information, and then uses an algorithm to reconstruct a grayscale image containing the spectral information to be measured.
[0094] Processing module: Based on the pre-divided candidate regions for detection points and candidate regions for reference points in the imaging region, the module selects detection points and reference points from the corresponding positions in the mosaic image, and calculates the spectral data of the detection points and the spectral data of the reference points respectively.
[0095] The number of detection points and reference points is one or more. When the number of detection points and reference points is multiple, 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.
[0096] 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 can be made in form and detail without departing from the spirit and scope of the present invention.
[0097] 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 substantive content of the present invention. Unless otherwise specified, the embodiments and features described in the embodiments of this application can be arbitrarily combined with each other. [Simplified Explanation of the Diagram]
[0022] 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: Figure 1 is a flowchart of Embodiment 1; Figure 2 is a schematic diagram of a first image acquired in Embodiment 2; Figure 3 is a schematic diagram of a second image acquired in Embodiment 2; Figure 4 is a schematic diagram of the detection model of Embodiment 2; Figure 5 is a schematic diagram of the detection point-reference point spectral data obtained in Embodiment 2; Figure 6 is an experimental result of the accuracy of the analysis results of the analysis model; Figure 7 is a structural schematic diagram of an analyte detection device provided in Embodiment 5; Figure 8 is a structural schematic diagram of an electronic device provided in Embodiment 6; Figure 9 is a flowchart of Embodiment 7; Figure 10 is a structural schematic diagram of an analyte detection watch provided in Embodiment 5; Figure 11 is a schematic diagram of the back of the analyte detection watch; Figure 12 is an exploded view of the analyte detection watch; Figure 13 is a schematic diagram of the analyte detection watch in use.
Claims
1. A data processing method for a spectral sensor, characterized in that it includes: Data acquisition steps: Acquire the reflected signal or excitation signal generated by the imaging area being illuminated by light; Filtering steps: Generate an image by passing the acquired reflected signal or excitation signal through a periodic pixel-level filter structure set on the sensor surface, denoted as a mosaic image; Processing steps: Based on the pre-divided candidate detection point region and candidate reference point region of the imaging area, select detection points and reference points from the corresponding positions of the mosaic image, and calculate the spectral data of the detection points and the spectral data of the reference points respectively.
2. The data processing method for the spectral sensor as described in claim 1, characterized in that the periodic pixel-level filter structure comprises: Multiple filter pixel channels with different pixel-level structures have the same size and are evenly arranged. Their length and width are integer multiples of the pixel size in the image sensor.
3. The data processing method for the spectral sensor as described in claim 2, characterized in that the filter pixel channels of the pixel-level filter structures of different shapes correspond to different spectral filtering coefficients, and the pixel-level filter structures of different spectral filtering coefficients are periodically arranged after being combined in a fixed order; the sensor modulates the received detection light through the periodic pixel-level filter structures to form the mosaic image containing spectral information, and then uses an algorithm to reconstruct a grayscale image containing the spectral information to be measured.
4. The data processing method for the spectral sensor as described in claim 1, characterized in that the number of detection points and reference points in the processing step is one or more, and when the number of detection points and reference points is multiple, 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.
5. A method for detecting an analyte, comprising the steps of the data processing method of the spectral sensor described in any one of claims 1 to 4.
6. A data processing system for a spectral sensor, characterized in that it comprises: Data acquisition module: acquires the reflected or excitation signals generated when the imaging area is illuminated by light; Filtering module: generates an image, denoted as a mosaic image, by passing the acquired reflected or excitation signals through a periodic pixel-level filter structure set on the sensor surface; Processing module: selects detection points and reference points from corresponding positions in the mosaic image according to the pre-divided candidate detection point region and candidate reference point region of the imaging area, and calculates the spectral data of the detection point and the spectral data of the reference point respectively.
7. The data processing system for the spectral sensor as described in claim 6, characterized in that the periodic pixel-level filter structure comprises: Multiple filter pixel channels with different pixel-level structures have the same size and are evenly arranged. Their length and width are integer multiples of the pixel size in the image sensor.
8. The data processing system for the spectral sensor as described in claim 7, characterized in that the filter pixel channels of the pixel-level filter structures of different shapes correspond to different spectral filtering coefficients, and the pixel-level filter structures of different spectral filtering coefficients are periodically arranged after being combined in a fixed order; the sensor modulates the received detection light through the periodic pixel-level filter structures to form the mosaic image containing spectral information, and then uses an algorithm to reconstruct a grayscale image containing the spectral information to be measured.
9. The data processing system for the spectral sensor as claimed in claim 6, characterized in that the number of detection points and reference points in the processing module is one or more, and when the number of detection points and reference points is multiple, 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.
10. A detection system for an analyte, comprising a module of a data processing system for a spectral sensor as described in any one of claims 6 to 9.
11. A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, it implements the steps of the data processing method for a spectral sensor as described in any one of claims 1 to 4.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when executed by the processor, the computer program implements the steps of the data processing method for a spectral sensor as described in any one of claims 1 to 4.
Citation Information
Patent Citations
System for measuring presence and / or concentration of analytical substance dissolved in bodily fluid
CN115297762A
Noninvasive blood glucose detection method based on hyperspectral data analysis
CN118078277A
High efficiency multiplexing
TW201901121A
Non-invasive Glucose Sensor
US20220022784A1