Blood glucose testing method and electronic equipment

By integrating monitoring modules and processing modules in electronic devices, the posture and movement status are monitored in real time, ensuring the stability of blood sugar parameter collection, solving the problem of low accuracy of non-invasive blood sugar tests, and achieving higher test accuracy and user experience.

CN119184687APending Publication Date: 2024-12-27GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310766402.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-26
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

Existing non-invasive blood sugar testing methods are easily disturbed, resulting in low accuracy of blood sugar testing, especially when the user's posture or movement state changes, which may affect the accuracy of the test results.

Method used

Design an electronic device to ensure that blood glucose parameters are collected and analyzed without changing these states, thereby improving the accuracy of blood glucose testing. The device includes a monitoring module and a processing module that uses sensors (such as a six-axis gyroscope sensor) to monitor the status in real time and re-acquire blood sugar parameters if necessary to ensure the accuracy of the test results.

Benefits of technology

By monitoring and adjusting the acquisition status in real time, the accuracy of blood sugar tests is significantly improved, the inaccurate test results caused by changes in user posture or movement are reduced, and the user experience and testing efficiency are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119184687A_ABST
    Figure CN119184687A_ABST
Patent Text Reader

Abstract

The invention provides a blood glucose testing method and electronic equipment. The accuracy of blood glucose testing is improved. The method comprises the following steps: monitoring the state of the electronic equipment under the condition of executing a blood glucose parameter acquisition task; under the condition that the state of the electronic equipment does not occur, the collected blood glucose parameters are analyzed, and a blood glucose test result is obtained; wherein the state comprises at least one of a posture, an angle and a motion state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of spectral technology, and in particular to a blood sugar testing method and electronic equipment. Background Art

[0002] Diabetes can cause various acute and long-term complications in patients with blood sugar levels exceeding 600 mg / dl, such as blindness, kidney disease, neurological and circulatory system diseases, amputation, stroke, and cardiovascular disease (CVD). Regular monitoring of blood sugar is a necessary step for doctors and patients to manage diabetes. Currently, blood sugar testing is divided into three methods: invasive, minimally invasive, and non-invasive. Among them, invasive methods usually require puncturing the skin (usually fingers) to draw blood samples, causing pain and discomfort to patients, and are accompanied by potential risks of infection or tissue damage. Non-invasive methods can achieve blood sugar testing while avoiding the risks brought by the above-mentioned invasive methods, thereby improving user experience.

[0003] However, non-invasive blood glucose testing is easily interfered with, which may result in low accuracy of blood glucose testing. Summary of the invention

[0004] The present application provides a blood sugar testing method and electronic device, which improve the accuracy of blood sugar testing.

[0005] In a first aspect, a blood glucose testing method is provided, which is applied to an electronic device, and the method comprises: when executing a blood glucose parameter collection task, monitoring the state of the electronic device; when it is determined that the state of the electronic device has not occurred, analyzing the collected blood glucose parameters to obtain a blood glucose test result; wherein the state comprises at least one of a posture, an angle and a motion state.

[0006] In the present application, the electronic device can analyze the collected blood glucose parameters to obtain blood glucose test results when it is determined that its own state has not changed, and the state includes at least one of posture, angle and motion state. In other words, when the electronic device performs the task of collecting blood glucose parameters, it can also monitor its own state, and then determine whether it can continue to perform the operation of collecting blood glucose parameters based on the changes in its own state, and then obtain the above-mentioned high-precision blood glucose test results when it is determined that it can continue to collect blood glucose parameters.

[0007] In a second aspect, an electronic device is provided, comprising: a monitoring module and a processing module, wherein the monitoring module is used to monitor the state of the electronic device when executing a blood glucose parameter collection task; the processing module is used to analyze the collected blood glucose parameters to obtain a blood glucose test result when it is determined that the state of the electronic device has not occurred; wherein the state includes at least one of a posture, an angle and a motion state.

[0008] In a third aspect, another electronic device is provided, including a processor, the processor is coupled to a memory, and can be used to execute instructions in the memory to implement the method in any possible implementation of the first aspect. Optionally, the electronic device also includes a memory. Optionally, the electronic device also includes a communication interface, and the processor is coupled to the communication interface.

[0009] In a fourth aspect, a processor is provided, comprising: an input circuit, an output circuit and a processing circuit. The processing circuit is used to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation of the first aspect.

[0010] In the specific implementation process, the processor can be a chip, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a trigger, and various logic circuits. The input signal received by the input circuit can be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit can be, for example, but not limited to, output to a transmitter and transmitted by the transmitter, and the input circuit and the output circuit can be the same circuit, which is used as an input circuit and an output circuit at different times. The embodiments of the present application do not limit the specific implementation methods of the processor and various circuits.

[0011] In a fifth aspect, a processing device is provided, comprising a processor and a memory. The processor is used to read instructions stored in the memory, and can receive signals through a receiver and transmit signals through a transmitter to execute the method in any possible implementation of the first aspect.

[0012] Optionally, there are one or more processors and one or more memories.

[0013] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0014] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.

[0015] It should be understood that the relevant data interaction process, such as sending indication information, can be a process of outputting indication information from a processor, and receiving capability information can be a process of receiving input capability information from a processor. Specifically, the processed output data can be output to a transmitter, and the input data received by the processor can come from a receiver. Among them, the transmitter and the receiver can be collectively referred to as a transceiver.

[0016] The processing device in the fifth aspect mentioned above can be a chip. The processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.

[0017] In a sixth aspect, a computer program product is provided, the computer program product comprising: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method in any possible implementation of the first aspect.

[0018] In a seventh aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instructions) which, when executed on a computer, enables the computer to execute a method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a schematic diagram of the system architecture of an electronic device provided in an embodiment of the present application;

[0020] Figure 2 is a flow chart of a blood sugar testing method provided in an embodiment of the present application;

[0021] Figure 3 is a flowchart of a first specific example of a blood sugar testing method provided in an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of an interface of an electronic device for blood glucose testing provided in an embodiment of the present application;

[0023] Figure 5 is a flowchart of a second specific example of the blood sugar testing method provided in an embodiment of the present application;

[0024] Figure 6 is a schematic diagram of an interface of an electronic device for blood glucose testing provided in an embodiment of the present application;

[0025] Figure 7 is a schematic diagram of an interface of an electronic device for blood glucose testing provided in an embodiment of the present application;

[0026] Figure 8 is a structural block diagram of an example of an electronic device provided in an embodiment of the present application;

[0027] Fig. 9 It is a structural diagram of another example of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0029] Diabetes can cause various acute and long-term complications in patients with blood sugar levels exceeding 600 mg / dl, such as blindness, kidney disease, neurological and circulatory system diseases, amputations, strokes, and cardiovascular disease (CVD). Regular monitoring of blood sugar is a necessary step for doctors and patients to manage diabetes. Blood sugar testing is divided into three methods: invasive, minimally invasive, and non-invasive. Among them, invasive methods usually require puncturing the skin (usually fingers) to draw blood samples, causing pain and discomfort to patients, and are accompanied by potential risks of infection or tissue damage. Non-invasive methods can achieve blood sugar testing while avoiding the risks of the above-mentioned invasive methods, thereby improving user experience.

[0030] Currently, the above non-invasive method can be achieved through Raman spectroscopy.

[0031] However, this non-invasive blood glucose testing method is easily affected, which may lead to the problem of low accuracy of blood glucose test results.

[0032] For example, if a stronger Raman spectrum signal is to be collected, the collection operation needs to be performed for a certain period of time. If the user does not maintain the posture during this period of time, the accuracy of the blood sugar test result may be affected.

[0033] In view of this, the embodiments of the present application provide a blood glucose testing method and an electronic device, wherein the electronic device can analyze the collected blood glucose parameters to obtain blood glucose test results when it is determined that the state of the electronic device has not changed, and the state includes at least one of a posture, an angle, and a motion state. In other words, when the electronic device performs a blood glucose parameter collection task, it can also monitor its own state, and then determine whether it can maintain the operation of collecting blood glucose parameters based on changes in its own state, and then obtain the above-mentioned high-precision blood glucose test results when it is determined that it can maintain the collection of blood glucose parameters.

[0034] For example, Figure 1 A schematic diagram of a system architecture of an electronic device provided in an embodiment of the present application.

[0035] like Figure 1As shown, the electronic device includes a processor 110, a transceiver 120, and a display unit 170. The display unit 170 may include a display screen.

[0036] Optionally, the electronic device may further include a memory 130. The processor 110, the transceiver 120 and the memory 130 may communicate with each other through an internal connection path to transfer blood glucose data. The memory 130 is used to store a computer program, and the processor 110 is used to call and run the computer program from the memory 130.

[0037] The processor 110 and the memory 130 may be combined into a processing device, or more commonly, they are independent components, and the processor 110 is used to execute the program code stored in the memory 130 to implement the above functions. In specific implementation, the memory 130 may also be integrated into the processor 110, or may be independent of the processor 110.

[0038] In addition, in order to make the functions of the electronic device more complete, the electronic device may also include one or more of an input unit 160, an audio circuit 180 and a sensor 101, and the sensor 101 may include at least a hexagonal six-axis gyroscope sensor to monitor and determine the state of the electronic device.

[0039] Optionally, the electronic device may further include a power supply 150 for providing power to various devices or circuits in the electronic device.

[0040] Understandably, Figure 1 The operations and / or functions of each module in the electronic device shown are respectively for implementing the corresponding processes in the following method embodiments. For details, please refer to the description in the following method embodiments, and the detailed description is appropriately omitted here to avoid repetition.

[0041] Understandably, Figure 1 The processor 110 in the electronic device shown may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0042] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0043] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0044] It is understandable that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0045] Understandably, Figure 1 The power supply 150 shown is used to supply power to the processor 110 , the memory 130 , the display unit 170 , the input unit 160 , the transceiver 120 , and the like.

[0046] The transceiver 130 can provide wireless communication solutions for electronic devices including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 120 can be one or more devices integrating at least one communication processing module.

[0047] The electronic device implements the display function through a GPU, a display unit 170, and an application processor. The GPU is a microprocessor for image processing, which connects the display unit 170 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0048] The display unit 170 is used to display images, videos, etc. (such as the blood sugar test interface of the present application). The display unit 170 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc.

[0049] The memory 130 can be used to store computer executable program codes, which include instructions. The memory 130 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, at least one application required for a function, etc. The data storage area may store data (such as blood glucose test data) created during the use of the electronic device, etc. In addition, the memory 130 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the memory 130 and / or instructions stored in a memory provided in the processor.

[0050] The electronic device can implement audio functions through the audio circuit 180 and the application processor, for example, playing blood sugar data.

[0051] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0052] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

[0053] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0054] In addition, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.

[0055] In order to make the purpose and technical solution of the present application clearer and more intuitive, a blood glucose testing method and an electronic device provided by the present application are described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] Figure 2 2 is a schematic flow chart of a blood sugar testing method 200 provided in an embodiment of the present application. The method 200 can be performed by a device capable of testing blood sugar, which is referred to as an electronic device in the present application. Figure 2 As shown, the method 200 may include the following steps:

[0057] S201, the electronic device monitors the status of the electronic device while executing a blood glucose parameter collection task.

[0058] In one possible manner, the electronic device can perform the above-mentioned blood glucose parameter collection task through Raman spectroscopy and obtain blood glucose parameters (ie, Raman spectroscopy signals).

[0059] It should be understood that the Raman spectrum signal is the Raman scattering of glucose molecules after the incident laser light source enters the user's dermal capillaries and is recorded by the spectrometer after filtering and light path shaping. Therefore, before the above S201, the user needs to place the electronic device in a position that can be used for blood sugar parameter collection, such as the user can place the electronic device on the arm or other body parts by wearing it, and keep a relaxed and static posture so that the electronic device can enter the test step.

[0060] Exemplarily, the electronic device can monitor the posture of the electronic device by acquiring at least one of the posture, angle and motion state of the electronic device while performing the blood glucose parameter collection task through the above-mentioned Raman spectroscopy.

[0061] In a possible implementation, the electronic device may monitor the state of the electronic device through a sensor, wherein the sensor may be composed of a plurality of angular velocity sensors and a plurality of acceleration sensors.

[0062] Exemplarily, the sensor may be a six-axis gyroscope sensor, which may be composed of three angular velocity sensors and three acceleration sensors, so that the six-axis gyroscope sensor can measure the rotation speed and acceleration of the electronic device in three axes, and can determine the posture, angle and motion state of the object through calculation by a microprocessor.

[0063] It should be understood that the electronic device can acquire at least one of the above-mentioned postures, angles and motion states in real time or periodically, and this application does not limit this.

[0064] It should also be understood that the above-mentioned blood glucose parameter collection task can be executed when the electronic device clears the cached historical blood glucose parameters.

[0065] S202: When determining that the state of the electronic device has not changed, the electronic device analyzes the collected blood glucose parameters to obtain a blood glucose test result.

[0066] It should be understood that the blood glucose test result is obtained by analyzing the collected blood glucose parameters when the electronic device determines that the retention time of the state has not changed is greater than or equal to the collection time threshold. The collection time threshold can be understood as the shortest time required for the electronic device to collect blood glucose parameters sufficient for analysis to obtain the blood glucose test result.

[0067] It should also be understood that the state of the electronic device has not changed, which is used to indicate that the state change amplitude of the electronic device is less than the amplitude threshold of the state change. Among them, the amplitude threshold of the state change can be determined by the electronic device based on the accuracy of the blood glucose test result. If the electronic device can be determined according to the user's accuracy requirements for the blood glucose test result, this application does not limit this.

[0068] In a possible implementation, when the blood glucose parameter is a Raman spectral signal, the electronic device can determine the blood glucose test result corresponding to the blood glucose parameter collected this time based on a preset correspondence between multiple different Raman spectral signals and multiple different blood glucose test results.

[0069] In the present application, the electronic device can analyze the collected blood glucose parameters to obtain blood glucose test results when it is determined that its own state has not changed, and the state includes at least one of posture, angle and motion state. In other words, when the electronic device performs a blood glucose parameter collection task, it can also monitor its own state, and then determine whether it can continue to perform the operation of collecting blood glucose parameters based on changes in its own state, and then obtain a blood glucose test result with higher accuracy when it is determined that it can continue to collect blood glucose parameters.

[0070] Optionally, to improve the accuracy of blood glucose testing, following the above S201, the electronic device may also execute a new blood glucose parameter collection task to obtain blood glucose test results when it is determined that the state of the electronic device has changed, so as to avoid the problem of low accuracy of blood glucose test results caused by changes in the state of the electronic device during the blood glucose parameter collection process.

[0071] Figure 3 Flow chart of the blood glucose testing method 300 provided in the embodiment of the present application. Figure 3 As shown, the method 300 includes the following steps:

[0072] S301, the electronic device monitors the status of the electronic device while executing a blood glucose parameter collection task.

[0073] Similarly, the electronic device can be placed on the user's body part where the data is collected by wearable means, and while performing the blood glucose parameter collection task through the above-mentioned Raman spectroscopy, at least one of the posture, angle and motion state of the electronic device can be obtained through a six-axis gyroscope sensor to monitor and judge the posture of the electronic device.

[0074] It should be understood that the electronic device can acquire at least one of the above-mentioned postures, angles and motion states in real time or periodically, and this application does not limit this.

[0075] It should also be understood that the above-mentioned blood glucose parameter collection task can be executed when the electronic device clears the cached historical blood glucose parameters.

[0076] S302, the electronic device determines whether a state has changed.

[0077] It should be understood that whether the state of the electronic device changes can be used to indicate whether the state change amplitude of the electronic device is less than the state change amplitude threshold. The above state change amplitude threshold can be determined by the electronic device based on the accuracy of the blood sugar test result.

[0078] In a possible implementation, the electronic device may determine or select the amplitude threshold of the above-mentioned state change according to the accuracy requirements of blood glucose test results of different types of users, and this application does not limit this.

[0079] Exemplarily, for users in a preset age group, such as minors, whose self-control or cooperation is relatively low, the amplitude threshold of the state change can be set higher to improve the user experience and the efficiency of blood glucose testing. Correspondingly, for users in non-preset age groups, such as adults, the amplitude threshold of the state change can be set lower. In other words, there can be multiple amplitude thresholds for the state change. Before determining whether its state has changed, the electronic device can select the corresponding amplitude threshold of the state change based on the user type, and then determine whether its state has changed based on the amplitude threshold of the state change.

[0080] S303, when the electronic device determines that the above state has changed, it ends the currently executed blood glucose parameter collection task and executes a new blood glucose parameter collection task to analyze and obtain the blood glucose test result.

[0081] Optionally, before the electronic device executes a new blood glucose parameter collection task, the electronic device may also output prompt information so that the user can learn about the current status of blood glucose parameter collection based on the prompt information.

[0082] Figure 4 FIG. 4 is a schematic diagram showing an interface 400 of an electronic device for blood glucose testing. Figure 4 As shown, the interface 400 displays a prompt message of "adjust posture and hold". Based on the prompt message of "adjust posture and hold", the user can know that the status of this blood glucose parameter collection task is failed. In order to obtain the blood glucose test result as soon as possible, the user can readjust the posture of the body part in contact with the electronic device and hold it, so that the status of the electronic device is changed and held. The electronic device can execute a new blood glucose parameter collection task based on the current maintained status to analyze and obtain the blood glucose test result.

[0083] It should be understood that the above prompt message of "adjust posture and maintain" is merely exemplary. In addition, the prompt message may also be "posture changes, please adjust" and the like, and the present application does not limit this.

[0084] It should be understood that the new blood glucose parameter collection task is executed within the preset time period when the electronic device displays the prompt information. In other words, in order to obtain a high-precision blood glucose test result, the user can adjust and maintain the body posture as soon as possible within the preset time period after receiving the prompt information, so that the electronic device can execute the new blood glucose parameter collection task.

[0085] Optionally, within the above-mentioned preset time period, if the user does not perform any operation, the electronic device may continue to perform a new blood glucose parameter collection task based on the current posture, and this application does not limit this.

[0086] It should be understood that after completing the currently executed blood glucose parameter collection task, the electronic device can also perform an operation of clearing the cached historical blood glucose parameters, and when determining that the clearing is completed, perform a new blood glucose parameter collection task to analyze and obtain the blood glucose test results.

[0087] Optionally, before the above S303 ends the currently executed blood glucose parameter collection task, the electronic device may also execute S304 to determine whether the number of times the state of the electronic device changes is less than a threshold value (number threshold value), and if it is determined that the number of times the state of the electronic device changes is less than the threshold value, execute the above new blood glucose parameter collection task, i.e., the above S303. Alternatively, if it is determined that the number of times the state of the electronic device changes is greater than or equal to the threshold value, the electronic device may also execute S305 to end the currently executed blood glucose parameter collection task.

[0088] It should be understood that the above number threshold may be preset or determined based on historical data or user information, and this application is not limited to this.

[0089] In a possible implementation, the electronic device may select or determine the above number threshold according to different types of users.

[0090] Exemplarily, for users in a preset age group, such as minors, whose self-control or cooperation is relatively low, the above-mentioned number threshold can be set higher to improve the success rate of blood glucose testing. Correspondingly, for users in non-preset age groups, such as adults, the above-mentioned number threshold can be set lower. In other words, the above-mentioned number threshold can be multiple, and before the electronic device determines the number of times its state changes, it can select the corresponding number threshold based on the user type, and then determine whether the number of times its state changes is less than the threshold based on the number threshold.

[0091] Optionally, following the above S302, when determining that the state has not changed, the electronic device may also obtain the blood glucose test results based on the blood glucose parameters collected by the currently executed blood glucose collection task. The specific details may refer to the description of S202 in the above embodiment, and will not be repeated here to avoid repetition.

[0092] It should be understood that in order to improve the accuracy of blood sugar testing and further improve the user experience, following the above S304, the electronic device can also continue to maintain the currently executed blood sugar parameter collection task according to user needs when it is determined that the number of times the state of the electronic device has changed is greater than or equal to the threshold, so as to obtain the blood sugar test results and avoid collecting blood sugar parameters multiple times, which affects the user experience. In other words, user needs have the highest priority.

[0093] Figure 5 Schematic flow chart of the blood glucose testing method 500 provided in the embodiment of the present application. Figure 5 As shown, the method 500 includes the following steps:

[0094] S501, the electronic device monitors the status of the electronic device while executing a blood glucose parameter collection task.

[0095] Similarly, the electronic device can be placed on the user's body part where the data is collected by wearable means, and while performing the blood glucose parameter collection task through the above-mentioned Raman spectroscopy, at least one of the posture, angle and motion state of the electronic device can be obtained through a six-axis gyroscope sensor to monitor and judge the posture of the electronic device. To avoid repetition, it will not be elaborated here.

[0096] It should be understood that the electronic device can acquire at least one of the above-mentioned postures, angles and motion states in real time or periodically, and this application does not limit this.

[0097] It should also be understood that the above-mentioned blood glucose parameter collection task can be executed when the electronic device clears the cached historical blood glucose parameters.

[0098] S502: When the electronic device determines that the above state has changed and the number of state changes is not less than a threshold, the electronic device determines whether a user operation for forced collection is detected.

[0099] In a possible implementation, the electronic device may select or determine the number threshold and the amplitude threshold of the state change according to different types of users.

[0100] Exemplarily, for users in a preset age group, such as minors, whose self-control or cooperation is relatively low, the above-mentioned number threshold can be set higher to improve the success rate of blood glucose testing. Correspondingly, for users in non-preset age groups, such as adults, the above-mentioned number threshold can be set lower. In other words, the above-mentioned number threshold can be multiple, and before the electronic device determines the number of times its state changes, it can select the corresponding number threshold based on the user type, and then determine whether the number of times its state changes is less than the threshold based on the number threshold.

[0101] Exemplarily, for users in a preset age group, such as minors, whose self-control or cooperation is low, the amplitude threshold of the state change can be set higher to improve the user experience and the efficiency of blood glucose testing. Correspondingly, for users in non-preset age groups, such as adults, the amplitude threshold of the state change can be set lower. In other words, there can be multiple amplitude thresholds for the state change, and before the electronic device determines whether its state has changed, it can select the corresponding amplitude threshold of the state change based on the user type, and then determine whether its state has changed based on the amplitude threshold of the state change.

[0102] It should be understood that the above-mentioned user operation of forced collection may be a user operation acting on a forced collection function button and / or a forced collection interface, and this application does not limit this.

[0103] S503: When the electronic device determines that a user operation for forced collection is detected, the electronic device continues to maintain the currently executed blood glucose parameter collection task to obtain a blood glucose test result.

[0104] Exemplarily, when detecting a user operation with the above-mentioned forced collection, the electronic device can generate an instruction to continue the currently executed blood glucose parameter collection task in response to the user operation, and execute the operation corresponding to the instruction, namely the above-mentioned S503, to meet user needs and improve user experience.

[0105] It should be understood that before continuing the currently executed blood glucose parameter collection task, the terminal device can also adjust the judgment result of the state change of the electronic device from "changed" to "no change" so that the electronic device can execute the corresponding operation under the "no change" state, that is, continue to maintain the currently executed blood glucose parameter collection task.

[0106] Optionally, the electronic device may also output the judgment result of the adjusted state change, so that the user can be informed that the user operation of forced collection performed by the user is effective.

[0107] Figure 6 Schematic diagram of an interface 600 of an electronic device for blood glucose testing provided in an embodiment of the present application. Figure 6 As shown, when the electronic device determines that its state has changed, the electronic device can also display prompt information, such as the prompt information of "state has changed" displayed on the interface a. The user can learn from the interface a that the change in posture has caused the blood glucose parameter collection task to fail or be suspended. The user can click on any area of ​​the interface a as needed. When the electronic device detects the user operation of clicking on any area of ​​the interface a (i.e., the user operation of forced collection), it can adjust the judgment result of the above state from "changed" to "no change", generate a forced collection instruction, and execute the operation corresponding to the instruction.

[0108] Optionally, a function button for forced collection (not shown in the figure) may also be displayed on the interface a, so that the user can achieve the same effect as clicking any of the above areas of the above interface a by clicking the function button for forced collection.

[0109] Optionally, the user may also speak the word "forced collection" to achieve the same effect as clicking any area of ​​the interface a or clicking a function button for forced collection.

[0110] As shown in interface b, the interface displays a prompt message "status has not changed" so that the user can be informed based on the prompt message that the user operation of forced collection is effective, and can continue to maintain the currently executed blood glucose parameter collection task to obtain blood glucose test results.

[0111] It should be understood that the prompt information shown above is only exemplary. In addition, the above interface a may also display a prompt information of "Status Not OK", and the interface b may also display a prompt information of "Status OK", and this application does not limit this.

[0112] It should be understood that in addition to the display output method shown above, the electronic device can also output the above-mentioned prompt information about the status of the electronic device through voice or other methods, such as the above-mentioned "status mode change" prompt information and / or "status has not sent change" prompt information, and this application does not limit this.

[0113] Optionally, following the above S502, the electronic device may also execute S504 to end the currently executed blood glucose parameter collection task when it is determined that no user operation for forced collection is detected. That is, when no operation for forced collection is detected, it can be indicated that the user wants to end or abandon the current blood glucose collection task to avoid the problem that the final obtained blood glucose test result is not accurate enough due to inaccurate blood glucose parameters. Then, the electronic device may execute S504 to start a new blood glucose parameter collection task.

[0114] Optionally, when executing the above-mentioned blood glucose collection task (the currently executed blood glucose collection task or a new blood glucose collection task), the electronic device can also display the progress of the blood glucose collection task to let the user know how long the posture needs to be maintained, so as to avoid the user's posture changes without knowing it, causing the blood glucose collection task to be suspended or failed.

[0115] Figure 7 Schematic diagram of an interface 700 of an electronic device for blood glucose testing provided in an embodiment of the present application. Figure 7 As shown, a progress bar of the blood glucose parameter collection task is displayed on the interface 700. Based on the interface 700, the user can learn that the current blood glucose parameter task has been completed by 60%, and currently needs to maintain the posture so that the electronic device can complete the remaining 40%.

[0116] Optionally, the interface 700 may also display the remaining time required for the task, that is, the time the user needs to maintain the posture, such as “5 minutes of collection is required” as shown on the interface 700, to further improve the user experience.

[0117] It should be understood that in order to further improve the user experience, after the blood glucose test results can be obtained in the above S202, S303 or S503, the electronic device can also output the above blood glucose test results in a preset manner.

[0118] In a possible implementation, the electronic device may output the blood sugar test result obtained above by voice.

[0119] In another possible implementation, the electronic device may display the blood sugar test result obtained above.

[0120] Exemplarily, the electronic device may display the blood sugar test result in a character form, or may display the blood sugar test result in a graphic form.

[0121] It should also be understood that the preset methods shown above are merely exemplary. In actual use, the electronic device may also output the blood glucose test results in other ways, or may output the blood glucose test results in multiple ways together, such as outputting the blood glucose test results by voice while also displaying the blood glucose test results simultaneously. This application does not limit this.

[0122] It should be understood that the above embodiments may be coupled to each other, and this application does not limit this. Moreover, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0123] Combined with the above Figures 2 to 7 , describes in detail the blood sugar testing method of the present application embodiment, and will be combined with Figures 8 to 9 , describe in detail the electronic device of the embodiment of the present application.

[0124] Figure 8 An electronic device 800 provided in an embodiment of the present application is shown. The electronic device 800 includes: a monitoring module 801 and a processing module 802 .

[0125] Among them, the monitoring module 801 is used to: monitor the state of the above-mentioned electronic device when executing the blood glucose parameter collection task; the processing module 802 is used to: when it is determined that the state of the above-mentioned electronic device has not occurred, analyze the collected blood glucose parameters to obtain the blood glucose test results; wherein the above-mentioned state includes at least one of posture, angle and motion state.

[0126] Optionally, the processing module 802 is used to: when it is determined that the state of the electronic device has changed, terminate the currently executed blood glucose parameter collection task; and execute a new blood glucose parameter collection task to analyze and obtain the blood glucose test result.

[0127] Optionally, the processing module 802 is used to: determine the number of times the state of the electronic device changes; and if it is determined that the number of times the state of the electronic device changes is less than a threshold, execute the new blood glucose parameter collection task.

[0128] Optionally, the processing module 802 is used to: when it is determined that the number of times the state of the above-mentioned electronic device has changed is greater than or equal to a threshold, determine whether a user operation of forced collection has been detected; when it is determined that the above-mentioned user operation of forced collection has been detected, continue to maintain the currently executed blood glucose parameter collection task; wherein the above-mentioned user operation of forced collection is a user operation acting on the forced collection function button and / or the forced collection interface.

[0129] Optionally, the processing module 802 is used to: determine the maintenance time during which the state of the above-mentioned electronic device does not change; when it is determined that the above-mentioned maintenance time is greater than or equal to the collection time threshold, analyze the collected blood glucose parameters to obtain the above-mentioned blood glucose test results.

[0130] Optionally, the processing module 802 is used to clear cached historical blood glucose parameters.

[0131] Optionally, the processing module 802 is used to: output the blood sugar test result in a preset manner; wherein the preset manner includes at least one of a voice manner, a character manner and an image manner.

[0132] Optionally, the above blood glucose parameter is a Raman spectroscopy signal.

[0133] Optionally, the fact that the state of the electronic device has not changed is used to indicate that the amplitude of the state change of the electronic device is less than an amplitude threshold of the state change; wherein the amplitude threshold of the state change is determined based on the accuracy of the blood glucose test result.

[0134] It should be understood that the electronic device 800 here is embodied in the form of a functional module. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a proprietary processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit, and / or other suitable components that support the described functions. In an optional example, those skilled in the art will understand that the electronic device 800 may be specifically an electronic device in the above-mentioned embodiment, or the functions of the electronic device in the above-mentioned embodiment may be integrated in the electronic device 800, and the electronic device 800 may be used to execute the various processes and / or steps corresponding to the electronic device in the above-mentioned method embodiment, and to avoid repetition, it will not be repeated here.

[0135] The electronic device 800 has the function of implementing the corresponding steps performed by the electronic device in the above method; the above functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In the embodiment of the present application, Figure 8 The electronic device 800 may also be a chip or a chip system, such as a system on chip (SoC).

[0136] Fig. 9Another electronic device 900 provided by an embodiment of the present application is shown. The electronic device 900 includes: a processor 901 and a memory 902, a communication interface 903 and a bus 904. The memory 902 is used to store instructions, and the processor 901 is used to execute the instructions stored in the memory 902. The processor 901, the memory 902 and the communication interface 903 are connected to each other through the bus 904.

[0137] The processor 901 is used to: monitor the state of the electronic device when executing the blood glucose parameter collection task; and, when it is determined that the state of the electronic device has not occurred, analyze the collected blood glucose parameters to obtain the blood glucose test results; wherein the state includes at least one of posture, angle and motion state.

[0138] It should be understood that the electronic device 900 can specifically be the electronic device in the above embodiments, the functions of the electronic devices in the above embodiments can be integrated in the electronic device 900, and the electronic device 900 can be used to execute the various steps and / or processes corresponding to the electronic device in the above method embodiments.

[0139] Optionally, the memory 902 may include a read-only memory and a random access memory, and provide instructions and data to the processor 901. A portion of the memory 902 may also include a non-volatile random access memory. For example, the memory 902 may also store information about the device type. The processor 901 may be used to execute the instructions stored in the memory, and when the processor executes the instructions, the processor 901 may execute the various steps and / or processes corresponding to the electronic device in the above method embodiment.

[0140] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0141] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0142] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0143] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0144] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0145] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0146] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0147] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or terminal device, etc.) to perform all or part of the steps of the above methods in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0148] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the above claims.

Claims

1. A blood sugar testing method, characterized in that: Applied to electronic equipment, the method comprises: When executing the blood glucose parameter collection task, monitoring the state of the electronic device; When it is determined that the state of the electronic device has not occurred, analyzing the collected blood sugar parameters to obtain a blood sugar test result; The state includes at least one of a posture, an angle and a motion state.

2. The method according to claim 1, characterized in that The method further comprises: When it is determined that the state of the electronic device has changed, terminating the currently executed blood glucose parameter collection task; Execute a new blood sugar parameter collection task to analyze and obtain the blood sugar test results.

3. The method according to claim 2, characterized in that Before executing the new blood glucose parameter collection task, the method further includes: Determining the number of times the state of the electronic device changes; The execution of the new blood glucose parameter collection task includes: When it is determined that the number of times the state of the electronic device changes is less than a threshold, the new blood glucose parameter collection task is executed.

4. The method according to claim 3, characterized in that The method further comprises: When it is determined that the number of times the state of the electronic device changes is greater than or equal to a threshold, determining whether a user operation of forced collection is detected; When it is determined that the user operation of the forced collection is detected, continuing to maintain the currently executed blood glucose parameter collection task; The user operation of forced collection is a user operation acting on a forced collection function button and / or a forced collection interface.

5. The method according to claim 1, characterized in that Before analyzing the collected blood sugar parameters to obtain the blood sugar test results, the method further includes: Determine the holding time during which the state of the electronic device does not change; The collected blood sugar parameters are analyzed to obtain blood sugar test results, including: When it is determined that the holding time is greater than or equal to the collection time threshold, the collected blood sugar parameters are analyzed to obtain the blood sugar test result.

6. The method according to claim 3, characterized in that Before executing the new blood glucose parameter collection task, the method further includes: Clear cached historical blood glucose parameters.

7. The method according to claim 1, characterized in that The method further comprises: Outputting the blood sugar test result in a preset manner; The preset mode includes at least one of a voice mode, a character mode and an image mode.

8. The method according to any one of claims 1 to 7, characterized in that The blood sugar parameter is a Raman spectroscopy signal.

9. The method according to claim 1, characterized in that: The state of the electronic device has not changed, which indicates that the magnitude of the state change of the electronic device is less than the magnitude threshold of the state change; The amplitude threshold of the state change is determined based on the accuracy of the blood glucose test result.

10. An electronic device, characterized in that: include: A monitoring module, used to monitor the status of the electronic device when performing a blood sugar parameter collection task; The processing module is used to analyze the collected blood sugar parameters to obtain blood sugar test results when it is determined that the state of the electronic device has not occurred; wherein the state includes at least one of posture, angle and motion state.

11. An electronic device, characterized in that: The system comprises a processor and a memory, wherein the memory is used to store code instructions, and the processor is used to run the code instructions to execute the method according to any one of claims 1 to 9.

12. A chip, characterized in that: The system comprises a processor and a memory, wherein the memory is used to store code instructions, and the processor is used to run the code instructions to execute the method according to any one of claims 1 to 9.

13. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1 to 9.

14. A computer program product, comprising computer program code, characterized in that: When the computer program code is executed on a computer, the computer is caused to implement the method according to any one of claims 1 to 9.