Data management method and equipment for blood glucose monitoring equipment and storage medium

By judging the data packet threshold and confirmation information in the continuous blood glucose monitoring device, optimizing data transmission, combined with low-power Bluetooth and Huffman coding, the problem of high power consumption of wireless data transmission is solved, the power consumption of the device is reduced, and the data quality is improved. Cache duration and accuracy.

CN118764844APending Publication Date: 2024-10-11GOERTEK INC
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410850760.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing continuous blood glucose monitoring equipment consumes too much power during wireless data transmission, resulting in storage capacity and power consumption that do not meet actual usage requirements, affecting user comfort and data accuracy.

Method used

By judging the confirmation information received from the target terminal, it is determined whether the historical data packet reaches the data threshold. If not, the target data packet is generated and transmitted based on the historical data packet and target blood glucose data, and the size of the data packet for a single transmission is controlled. Bluetooth technology and Huffman coding compress data to optimize data transmission and storage.

Benefits of technology

It reduces the overall power consumption of the device, increases the user's effective data cache time, solves the problem of storage capacity and power consumption not meeting actual needs, and enhances the device's usage efficiency and data accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764844A_ABST
    Figure CN118764844A_ABST
Patent Text Reader

Abstract

The invention discloses a data management method and device of blood glucose monitoring equipment and a storage medium, and relates to the technical field of wireless communication, and the data management method of the blood glucose monitoring equipment comprises the steps that if target blood glucose data collected at the current moment is received, the target blood glucose data is stored; judging whether confirmation information of the target terminal responding to the historical data packet transmitted at the last moment is received or not; if the confirmation information is not received, whether the historical data packet reaches a data threshold value is determined, and the data threshold value is in positive correlation with a payload corresponding to a wireless transmission protocol; and if the historical data packet does not reach the data threshold, generating and transmitting a target data packet to the target terminal based on the historical data packet and the target blood glucose data. The technical effects of reducing the overall power consumption of the equipment and prolonging the effective data caching duration of the user can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a data management method, device and storage medium for a blood glucose monitoring device. Background Art

[0002] Currently, users use continuous blood glucose monitoring devices to continuously monitor blood glucose levels. In related technologies, continuous blood glucose monitoring devices are usually able to continuously and dynamically monitor changes in human blood glucose levels throughout the day, and process the monitoring data to form a continuous blood glucose map. At the same time, continuous blood glucose data is analyzed to discover hidden hyperglycemia, hypoglycemia and other phenomena that are not easily detected by traditional blood glucose monitoring methods.

[0003] Considering the actual use, continuous blood glucose monitoring equipment needs to be worn continuously. In order to improve the wearing comfort of users, the equipment has very high design requirements in terms of volume, weight and contact area. At the same time, in order to make the data more accurate and diverse, the frequency of data monitoring is also getting higher and higher. Therefore, there is a conflict between the performance of the equipment and the design limitations such as volume. Under the current design requirements, the overall storage capacity and power consumption of the equipment do not meet the actual use needs. Summary of the invention

[0004] The main purpose of the present application is to provide a data management method, device and storage medium for a blood glucose monitoring device, aiming to solve the technical problem of high power consumption of wireless data transmission in related technologies.

[0005] To achieve the above objectives, the present application provides a data management method for a blood glucose monitoring device, the data management method for a blood glucose monitoring device comprising:

[0006] If the target blood sugar data collected at the current moment is received, determining whether confirmation information of the target terminal in response to the historical data packet transmitted at the previous moment is received;

[0007] If the confirmation information is not received, determining whether the historical data packet reaches a data threshold, wherein the data threshold is positively correlated with a payload corresponding to a wireless transmission protocol;

[0008] If the historical data packet does not reach the data threshold, a target data packet is generated and transmitted to the target terminal based on the historical data packet and the target blood glucose data.

[0009] In one embodiment, the step of generating and transmitting a target data packet to the target terminal based on the historical data packet and the target blood glucose data includes:

[0010] Determining a blood sugar data sequence corresponding to the historical data packet;

[0011] Based on the acquisition time, the target blood glucose data is appended to the blood glucose data sequence to generate the target data packet;

[0012] Transmit the target data packet to the target terminal.

[0013] In one embodiment, after the step of determining whether confirmation information of the target terminal in response to the historical data packet transmitted at the last moment is received, the following steps are included:

[0014] If the confirmation message is received, deleting the historical data packet;

[0015] Generate a target data packet using the target blood sugar data as the first value after the data header;

[0016] Transmit the target data packet to the target terminal.

[0017] In one embodiment, after the step of determining whether the historical data packet reaches the data threshold, the following steps are included:

[0018] If the historical data packet reaches the data threshold, the historical data packet is used as the target data packet corresponding to the current moment;

[0019] Transmit the target data packet to the target terminal.

[0020] In one embodiment, the step of transmitting the target data packet to the target terminal includes:

[0021] Determine the priority of the current collection task;

[0022] determining a transmission interval according to the priority, wherein the priority is negatively correlated with the transmission interval;

[0023] The target data packet is transmitted to the target terminal based on the transmission interval.

[0024] In one embodiment, the data management method of the blood glucose monitoring device further includes:

[0025] When the blood glucose collection task is triggered, blood glucose data is collected based on the collection interval;

[0026] Generate a data sequence based on the collected blood sugar data, wherein the data header of the data sequence is the initial collection data corresponding to the blood sugar collection task;

[0027] The data sequence is stored.

[0028] In one embodiment, after the step of storing the data sequence, the following steps are included:

[0029] If the current occupancy of the storage space reaches the storage threshold, compress the data sequence; or,

[0030] The data series whose collection time is earlier than the set time threshold are deleted.

[0031] In one embodiment, the step of compressing the data sequence comprises:

[0032] Compress the data sequence based on Huffman coding; or,

[0033] determining abnormal data values ​​in the data sequence;

[0034] Determining a retention time interval based on a collection time corresponding to the abnormal data value, wherein the collection time falls within the retention time interval;

[0035] The blood sugar data within the retention time interval is used as the compressed data sequence.

[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a data management device for a blood glucose monitoring device, the data management device for the blood glucose monitoring device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the data management method for the blood glucose monitoring device as described above.

[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and the computer-readable storage medium stores a program for implementing the data management method of the blood glucose monitoring device. The program for implementing the data management method of the blood glucose monitoring device is executed by a processor to implement the steps of the data management method of the blood glucose monitoring device as described above.

[0038] The present application provides a data management method for a blood glucose monitoring device. The present application first determines whether the target terminal has received confirmation information in response to the historical data packet transmitted at the previous moment by receiving the target blood glucose data collected at the current moment, that is, by whether the confirmation information is received, it is first determined whether the target data packet to be transmitted needs to be streamlined. If the confirmation information is not received, it is determined whether the historical data packet reaches the data threshold, wherein the data threshold is positively correlated with the effective load corresponding to the wireless transmission protocol. That is, if the confirmation information is not received, there is no need to streamline in the first judgment, so a second judgment is made to determine the composition of the target data packet to be transmitted, so that the size of the data packet transmitted in a single time is limited within the data threshold, and the power consumption of each transmission is controlled. Finally, if the historical data packet does not reach the data threshold, based on the historical data packet and the target blood glucose data, the target data packet is generated and transmitted to the target terminal. The technical effect of reducing the overall power consumption of the device and increasing the effective data cache time of the user is achieved.

[0039] In summary, the device and the terminal in this application are connected through low-power Bluetooth technology and data communication. According to the Bluetooth connection status, the cached data is uploaded to the mobile phone application and displayed to the user. Among them, the design of low-power data transmission protocol and efficient local data caching overcomes the technical problem that the overall storage capacity and power consumption of the device do not meet the actual use requirements under the current design requirements in the relevant technology, and achieves the technical effect of reducing the overall power consumption of the device and increasing the effective data caching time of the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0042] Figure 1 A flow chart of a method for data management of a blood glucose monitoring device according to an embodiment of the present invention;

[0043] Figure 2 This is a schematic diagram of the composition of the target data packet when no confirmation information in response to the historical data packet at time n is received in the first embodiment of the data management method for the blood glucose monitoring device of the present application;

[0044] Figure 3 A schematic diagram of the composition of a target data packet when confirmation information in response to a historical data packet at time n is received in Embodiment 1 of the data management method for a blood glucose monitoring device of the present application;

[0045] Figure 4 A schematic diagram of adding target blood glucose data to a data packet in Embodiment 1 of the data management method for a blood glucose monitoring device of the present application;

[0046] Figure 5 A flow chart of the second embodiment of the data management method for the blood glucose monitoring device of the present application;

[0047] Figure 6 This is a schematic diagram of the data sequence in Embodiment 3 of the data management method for the blood glucose monitoring device of the present application;

[0048] Figure 7 This is an example diagram of the format of a data sequence compressed by Huffman coding in Embodiment 4 of the data management method for a blood glucose monitoring device of the present application;

[0049] Figure 8This is a schematic diagram of the hardware structure involved in an embodiment of the data management device of the blood glucose monitoring device of the present application.

[0050] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0052] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0053] The main solution of the present application is: if the target blood glucose data collected at the current moment is received, determine whether the confirmation information of the target terminal in response to the historical data packet transmitted at the previous moment is received; if the confirmation information is not received, determine whether the historical data packet reaches the data threshold, wherein the data threshold is positively correlated with the payload corresponding to the wireless transmission protocol; if the historical data packet does not reach the data threshold, generate and transmit the target data packet to the target terminal based on the historical data packet and the target blood glucose data.

[0054] At present, in order to improve the wearing comfort of users, the equipment has very high design requirements in terms of volume, weight and contact area. At the same time, in order to make the data more accurate and diverse, the frequency of data monitoring is also getting higher and higher. Therefore, there is a conflict between the performance of the equipment and the design limitations such as volume. Under the current design requirements, the overall storage capacity and power consumption of the equipment do not meet the actual use needs.

[0055] In this application, the device and the terminal are connected through low-power Bluetooth technology and data communication is carried out. According to the Bluetooth connection status, the cached data is uploaded to the mobile phone application and displayed to the user. Among them, from the design of low-power data transmission protocol and the design of efficient local data caching, the technical problem that the overall storage capacity and power consumption of the device do not meet the actual use requirements under the current design requirements in the relevant technology is overcome, and the technical effect of reducing the overall power consumption of the device and increasing the effective data caching time of the user is achieved.

[0056] It should be noted that the execution subject of this embodiment can be a blood glucose monitoring device, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a data management device of a blood glucose monitoring device capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the blood glucose monitoring device as an example of the execution subject to illustrate this embodiment and the following embodiments.

[0057] Based on this, the present application proposes a data management method for a blood glucose monitoring device according to the first embodiment. Figure 1 The data management method of the blood glucose monitoring device includes steps S110 to S130:

[0058] Step S110: If the target blood glucose data collected at the current moment is received, it is determined whether confirmation information of the target terminal in response to the historical data packet transmitted at the previous moment is received.

[0059] In this embodiment, the user uses a blood glucose monitoring device to monitor his or her blood glucose level, and the blood glucose monitoring device collects blood glucose data according to a preset collection method and a preset collection frequency. The current moment is the latest collection moment. The target blood glucose data is the blood glucose data collected at the current moment.

[0060] In a usage scenario of the present embodiment, the user performs continuous blood glucose data collection through a blood glucose monitoring device. After collecting the blood glucose data, the blood glucose monitoring device transmits the generated data packet to the target terminal after each collection or according to a preset transmission interval. The target terminal can be a mobile phone, a tablet, a computer or a server, etc. The transmission technology used is a wireless transmission technology, which can be Bluetooth, low-power Bluetooth, Star Flash, WiFi or NFC (Near Field Communication). The data packet transmitted at the current moment is the target data packet. The data packet transmitted before the current moment is a historical data packet. After receiving the data packet, the target terminal responds to the blood glucose monitoring device to return confirmation information when certain conditions are met. Therefore, the blood glucose monitoring device does not receive the confirmation information of the target terminal in response to the historical data packet transmitted at the last moment, and there are at least two situations. The first is that the target terminal side does not meet the conditions for feedback confirmation information, such as insufficient data volume, or too much abnormal data. The second situation is that the historical data packet of the blood glucose monitoring device at the last moment was not successfully delivered to the target terminal.

[0061] Therefore, if the target blood glucose data collected at the current moment is received, it is determined whether the confirmation information of the target terminal in response to the historical data packet transmitted at the previous moment is received. If the confirmation information is not received, step S120 is executed. If the confirmation information is received, the historical data packet is deleted; the target blood glucose data is used as the first value after the data header to generate a target data packet; and the target data packet is transmitted to the target terminal.

[0062] As an optional implementation, if a confirmation message in response to a historical data packet is received, it indicates that the target terminal has received the previous data, and the blood glucose data corresponding to the historical data packet is deleted in the target data packet sent at the current moment. Then, a target data packet is generated based on the data header and the target blood glucose data, and then the target data packet is transmitted to the target terminal through wireless transmission technology. The process of generating the target data packet is to use the target blood glucose data as the first data after the data header, that is, the first value, and then the data header and the first value form the target data packet.

[0063] For example, refer to Figure 2 , Figure 2 When the confirmation information in response to the historical data packet at time n is not received, the composition of the target data packet is the historical data packet corresponding to time n, plus the target blood glucose data at time n+1. Figure 3 When receiving the confirmation information in response to the historical data packet at time n, the composition of the target data packet, namely, the data header and the target blood glucose data at time n+1.

[0064] Step S120: If the confirmation information is not received, determine whether the historical data packet reaches a data threshold, wherein the data threshold is positively correlated with the effective load corresponding to the wireless transmission protocol.

[0065] In this embodiment, the data threshold is positively correlated with the effective load corresponding to the wireless transmission protocol, that is, the larger the effective load, the larger the data threshold.

[0066] As an optional implementation, the wireless transmission technology is BLE (Bluetooth Low Energy), which is a short-range, low-cost, interoperable wireless communication technology. The characteristics of BLE technology include low power consumption, fast connection and long-distance transmission. The data threshold is determined according to the maximum data length corresponding to the payload (Payload) of a single data packet in BLE.

[0067] Exemplarily, the maximum data length PKG_Max_Len corresponding to the payload is determined, and the value occupied length Value_Len of a single blood glucose data is obtained. Then, the data threshold is determined according to the maximum data length and the value occupied length of a single blood glucose data. For example, the maximum data length is divided by the value occupied length to determine the data threshold.

[0068] In this embodiment, if the confirmation information is not received, it indicates that the data packet to be transmitted this time needs to include a historical data packet, then the historical data packet in the transmission queue is obtained, the number of blood glucose data included in the historical data packet is determined, and it is determined whether the number reaches the data threshold. If the number does not reach the data threshold, step S130 is executed. If the number of blood glucose data reaches the data threshold, it is determined that the historical data packet reaches the data threshold, and the historical data packet is used as the target data packet corresponding to the current moment, and then the target data packet is transmitted to the target terminal.

[0069] That is, when the target data packet sent has not received confirmation information ACK, the single data packet is sent with the maximum payload and is no longer updated. The same data packet, that is, the historical data packet, is sent each time until the business layer chooses to discard the packet or receives ACK.

[0070] Step S130: if the historical data packet does not reach the data threshold, a target data packet is generated and transmitted to the target terminal based on the historical data packet and the target blood glucose data.

[0071] In this embodiment, if the historical data packet does not reach the data threshold, it indicates that blood glucose data can continue to be added to the data packet, and the target blood glucose data collected at the current moment is added to the historical data packet to generate a target data packet.

[0072] As an optional implementation, if the historical data packet does not reach the data threshold, determine the blood glucose data sequence corresponding to the historical data packet; based on the collection time, append the target blood glucose data to the blood glucose data sequence to generate the target data packet; and transmit the target data packet to the target terminal.

[0073] Exemplarily, if the historical data packet does not reach the data threshold, the blood glucose data sequence corresponding to the historical data packet is determined, and then the target blood glucose data corresponding to the current moment is added to the blood glucose data corresponding to the previous moment. Figure 2 , Figure 2 The n+1 moment is the current moment, the n moment is the previous moment, the target blood glucose data Value_tn+1 corresponding to the n+1 moment is added to the historical data packet, and the target data packet is generated after the blood glucose data Value_tn. Then the target data packet is transmitted to the target terminal.

[0074] In this embodiment, refer to Figure 4 ,The blood glucose data collected at each interval is accumulated after the previous blood glucose data.

[0075] The present application provides a data management method for a blood glucose monitoring device. The present application first determines whether the target terminal has received confirmation information in response to the historical data packet transmitted at the previous moment by receiving the target blood glucose data collected at the current moment, that is, by whether the confirmation information is received, it is first determined whether the target data packet to be transmitted needs to be streamlined. If the confirmation information is not received, it is determined whether the historical data packet reaches the data threshold, wherein the data threshold is positively correlated with the effective load corresponding to the wireless transmission protocol. That is, if the confirmation information is not received, there is no need to streamline in the first judgment, so a second judgment is made to determine the composition of the target data packet to be transmitted, so that the size of the data packet transmitted in a single time is limited within the data threshold, and the power consumption of each transmission is controlled. Finally, if the historical data packet does not reach the data threshold, based on the historical data packet and the target blood glucose data, the target data packet is generated and transmitted to the target terminal. The technical effect of reducing the overall power consumption of the device and increasing the effective data cache time of the user is achieved.

[0076] In summary, the device and the terminal in this application are connected through low-power Bluetooth technology and data communication. According to the Bluetooth connection status, the cached data is uploaded to the mobile phone application and displayed to the user. Among them, the design of low-power data transmission protocol and efficient local data caching overcomes the technical problem that the overall storage capacity and power consumption of the device do not meet the actual use requirements under the current design requirements in the relevant technology, and achieves the technical effect of reducing the overall power consumption of the device and increasing the effective data caching time of the user.

[0077] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 5 , the steps in embodiment 1 transmit the target data packet to the target terminal, including:

[0078] Step S210, determining the priority corresponding to the current collection task.

[0079] In this embodiment, the current collection task is the task corresponding to the current collection of blood glucose data. For example, a background continuous monitoring task, that is, when the blood glucose monitoring device is worn, the background continuously collects the user's blood glucose data. An active monitoring task, that is, the user triggers the interactive control on the blood glucose monitoring device, and the blood glucose monitoring device performs the active monitoring task to collect the user's blood glucose data at a second collection frequency that is greater than or equal to the first collection frequency of the background continuous monitoring task. An auxiliary monitoring task, that is, the device has blood glucose monitoring, blood oxygen monitoring and / or heart rate monitoring functions at the same time, and it is necessary to combine blood glucose data with heart rate data and / or blood oxygen data, that is, collect the above data at the same time.

[0080] Determine the collection task currently being executed and determine the preset priority of the collection task.

[0081] Step S220: determining a transmission interval according to the priority, wherein the priority is negatively correlated with the transmission interval.

[0082] In this embodiment, the connection interval of BLE is adjusted according to the service status. It is a fixed period, such as 7.5 milliseconds to 4 seconds. The shorter the connection interval, the higher the communication efficiency and the higher the power consumption; the longer the connection interval, the lower the communication efficiency and the lower the power consumption. In order to minimize the power consumption of the system, the connection interval is dynamically adjusted according to the service content to meet the highest efficiency and lowest power consumption in different scenarios. That is, the priority is negatively correlated with the transmission interval. The higher the priority of the collection task, the smaller the transmission interval and the higher the transmission frequency; the lower the priority of the collection task, the larger the transmission interval and the lower the transmission frequency.

[0083] As an optional implementation, after determining the priority corresponding to the current collection task, the transmission interval associated with the priority is determined. Wherein, multiple collection tasks may be executed simultaneously, and in this case, the collection task with the highest priority is used as the current collection task.

[0084] Exemplarily, the transmission interval corresponding to the high priority is 7.5 milliseconds, the transmission interval corresponding to the medium priority is 1 second, and the transmission interval corresponding to the low priority is 4 seconds.

[0085] Exemplarily, for example, the transmission interval corresponding to high priority is 7.5 milliseconds, the transmission interval corresponding to medium priority is 2 seconds, and the transmission interval corresponding to low priority is 4 seconds.

[0086] In this embodiment, the specific value of the transmission interval is any value in the range of 7.5 milliseconds to 4 seconds. The number of priorities is not specifically limited and is not exhaustive in this embodiment.

[0087] Step S230: transmitting the target data packet to the target terminal based on the transmission interval.

[0088] In this embodiment, after the transmission interval is determined, the target data packet is transmitted to the target terminal through a wireless communication protocol based on the transmission interval.

[0089] As an optional implementation, the collection time interval of the blood glucose monitoring device is equal to the transmission interval, that is, the blood glucose data is collected once, the corresponding target data packet is determined, and the target data packet is sent to the target terminal.

[0090] As another optional implementation, the collection time interval of the blood glucose monitoring device is not equal to the transmission interval. If the collection time interval is smaller than the transmission interval, that is, after collecting blood glucose data and determining the corresponding target data packet, the target data packet is added to the sending queue, and when the transmission time corresponding to the transmission interval is reached, the target data packet with the latest timestamp in the sending queue is transmitted to the target terminal.

[0091] By adopting the method of determining the priority corresponding to the current acquisition task; determining the transmission interval according to the priority, wherein the priority is negatively correlated with the transmission interval; and transmitting the target data packet to the target terminal based on the transmission interval, the technical effect of flexibly adjusting the transmission interval and reducing the power consumption of data transmission is achieved.

[0092] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those of the first embodiment and the second embodiment can be referred to the above introduction, and will not be repeated in the following. On this basis, the data management method of the blood glucose monitoring device also includes:

[0093] Step S310, when the blood glucose collection task is triggered, blood glucose data is collected based on the collection interval.

[0094] In this embodiment, triggering a blood glucose collection task refers to executing a blood glucose collection process. The blood glucose monitoring device collects blood glucose data once, which is considered to trigger a blood glucose collection task. The collection interval is the reciprocal of the collection frequency. The collection interval is a preset value, or is negatively correlated with the sensor performance of the blood glucose monitoring device. The stronger the sensor performance, the smaller the collection interval.

[0095] Step S320, generating a data sequence based on the collected blood glucose data, wherein the data header of the data sequence is the initial collection data corresponding to the blood glucose collection task.

[0096] In this embodiment, after the blood sugar data is collected, a data sequence is generated according to the blood sugar data.

[0097] Optionally, after the blood glucose data is collected, a data sequence corresponding to the collection task is determined according to the collection task to which the blood glucose data belongs, and the collected blood glucose data is added to the data queue.

[0098] Optionally, blood glucose data is collected and added to a data sequence with the latest timestamp.

[0099] Optionally, refer to Figure 6 , Figure 6 This is an example of a data sequence. The data header is the initial collection data corresponding to the blood glucose collection task, that is, in the storage space opened up by the system, the sending pointer points to the collection time of the current first blood glucose data, and the second field and thereafter are continuous blood glucose measurement raw data.

[0100] Step S330, storing the data sequence.

[0101] In this embodiment, after the data sequence is generated or updated, the data sequence is stored.

[0102] Exemplarily, the user starts the blood glucose collection task through the button of the device or the application on the smart device, or performs blood glucose collection in the background. The device will automatically start collecting blood glucose data according to the preset collection interval. Collect blood glucose data, and the device continuously collects blood glucose data according to the set collection interval. The data collected each time includes the current blood glucose level and the collection time. The device processes the collected blood glucose data internally to generate a data sequence. The data sequence uses the initial collection time data as the data header, and then arranges the collected blood glucose data in sequence (blood glucose data 1, blood glucose data 2, ... blood glucose data n). The device stores the generated data sequence in the internal memory. If the device supports cloud synchronization, the data sequence can also be automatically uploaded to the cloud server so that the user can access and analyze the data on any device.

[0103] Furthermore, users can view data series through an application on their smart device, which may provide charts, trend analysis, and alert functions. This helps users understand changes in their blood sugar levels and adjust their diet and lifestyle according to the doctor's advice.

[0104] Based on the above embodiments, Embodiment 4 of the present application proposes a data management method for a blood glucose monitoring device, after step S330, including:

[0105] Step S410: If the current occupancy of the storage space reaches the storage threshold, compress the data sequence.

[0106] In this embodiment, if the blood glucose storage space is full and subsequent data cannot be cached, the oldest data needs to be erased to reserve space for new collected data. Since the historical blood glucose data records the user's continuous blood glucose measurement values ​​and the user's health status over a period of time, easy deletion will affect the comprehensive evaluation of the user and the doctor. Therefore, at least two data compression methods are adopted.

[0107] As an optional implementation, if the current occupancy of the storage space reaches a storage threshold, the data sequence is compressed based on Huffman coding.

[0108] For example, 1k of original data is Huffman encoded and stored in a non-volatile memory, and only the header is sent. Figure 7 , Figure 7 The following are examples of the formats after encoding. For example, the ratio of Huffman coding lossless compression is 1:1.25.

[0109] Exemplarily, the frequency of occurrence of each blood sugar data in the statistical data sequence is counted. Then, a Huffman tree is constructed according to the frequency, and shorter codes are assigned to data with higher frequencies, and longer codes are assigned to data with lower frequencies. Finally, the Huffman tree is used to encode the data sequence to generate a compressed data sequence.

[0110] As another optional implementation, determine the abnormal data value in the data sequence; determine the retention time interval based on the collection time corresponding to the abnormal data value, wherein the collection time falls within the retention time interval; and use the blood glucose data within the retention time interval as the compressed data sequence.

[0111] Analyze the data sequence to find abnormal data values, for example, values ​​outside the normal range. Determine the retention time interval based on the acquisition time corresponding to the abnormal data value. The length and starting point of the retention time can be set according to actual needs. The blood glucose data within the retention time interval is used as the compressed data sequence.

[0112] Exemplarily, in the identification of abnormal data, a statistical analysis method is selected to identify outliers by calculating the statistical characteristics of the data series, such as the mean, standard deviation, interquartile range, etc. For example, the Z-score method can be used to identify values ​​that deviate from the mean by more than two or three standard deviations. Alternatively, a visualization method can be selected to intuitively identify outliers in the data using visualization tools such as box plots or histograms. These charts can help users quickly find outliers or abnormal patterns in the data.

[0113] Then, determine the retention time interval. Based on the collection time of the abnormal data values, once the abnormal data values ​​are identified, the next step is to determine the collection time corresponding to these abnormal values. Based on these time points, a retention time interval can be set. For example, all data within a period of time before and after the abnormal data values ​​appear can be selected as the retention object. The length of the retention time interval can be determined based on actual needs and data characteristics. For example, if the abnormal data value is believed to be caused by a specific physiological or pathological state, then it may be necessary to retain data for a longer period of time for more in-depth analysis.

[0114] After determining the retention time interval, the blood glucose data within the interval is used as a compressed data sequence. This method not only reduces the space requirements for data storage, but also retains information that may be important for user health monitoring. By retaining the abnormal data part, the data distribution deviation caused by simply deleting the outliers can be avoided, thereby improving the accuracy and reliability of the overall data.

[0115] In this embodiment, retaining the abnormal data portion can not only effectively compress the data, but also retain key information, which is helpful for subsequent data analysis and health monitoring.

[0116] Step S420, alternatively, deleting the data sequence whose collection time is earlier than the set time threshold.

[0117] In this embodiment, if the current occupancy of the storage space reaches the storage threshold, in addition to data compression, the data sequence whose collection time is earlier than the set time threshold can also be deleted. The blood glucose data transmitted to the target terminal is kept as the latest data.

[0118] Since the data sequence is compressed if the current occupancy of the storage space reaches the storage threshold, or the data sequence whose collection time is earlier than the set time threshold is deleted, and multiple data compression methods are proposed, the storage space is not redundant and the timeliness of the data is guaranteed.

[0119] The present application provides a data management device for a blood glucose monitoring device, the data management device for the blood glucose monitoring device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data management method for the blood glucose monitoring device in the above-mentioned embodiment one.

[0120] Reference below Figure 8 , which shows a schematic diagram of the structure of a data management device suitable for implementing a blood glucose monitoring device in an embodiment of the present application. The data management device of the blood glucose monitoring device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The data management device of the blood glucose monitoring device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0121] like Figure 8As shown, the data management device of the blood glucose monitoring device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the data management device of the blood glucose monitoring device are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the data management device of the blood glucose monitoring device to communicate wirelessly or wired with other devices to exchange data. Although the data management device of the blood glucose monitoring device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0122] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0123] The data management device for the blood glucose monitoring device provided by the present application adopts the data management method for the blood glucose monitoring device in the above embodiment, which can solve the technical problem of high power consumption of wireless data transmission in the related technology. Compared with the prior art, the beneficial effects of the data management device for the blood glucose monitoring device provided by the present application are the same as the beneficial effects of the data management device for the blood glucose monitoring device provided by the above embodiment, and the other technical features in the data management device for the blood glucose monitoring device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0124] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0125] The above is only a specific implementation 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 claims.

[0126] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the data management method of the blood glucose monitoring device in the above-mentioned embodiment.

[0127] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0128] The computer-readable storage medium may be included in the data management device of the blood glucose monitoring device; or may exist independently without being assembled into the data management device of the blood glucose monitoring device.

[0129] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the data management device of the blood glucose monitoring device, the data management device of the blood glucose monitoring device: if the target blood glucose data collected at the current moment is received, determines whether confirmation information of the target terminal in response to the historical data packet transmitted at the previous moment is received;

[0130] If the confirmation information is not received, determining whether the historical data packet reaches a data threshold, wherein the data threshold is positively correlated with a payload corresponding to a wireless transmission protocol;

[0131] If the historical data packet does not reach the data threshold, a target data packet is generated and transmitted to the target terminal based on the historical data packet and the target blood glucose data.

[0132] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0133] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0134] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0135] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the data management method of the above-mentioned blood glucose monitoring device, and can solve the technical problem of high power consumption of wireless data transmission in the related art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the data management method of the blood glucose monitoring device provided by the above-mentioned embodiment, and will not be repeated here.

[0136] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A data management method for a blood glucose monitoring device, characterized in that: The data management method of the blood glucose monitoring device comprises: If the target blood sugar data collected at the current moment is received, determining whether confirmation information of the target terminal in response to the historical data packet transmitted at the previous moment is received; If the confirmation information is not received, determining whether the historical data packet reaches a data threshold, wherein the data threshold is positively correlated with a payload corresponding to a wireless transmission protocol; If the historical data packet does not reach the data threshold, a target data packet is generated and transmitted to the target terminal based on the historical data packet and the target blood glucose data.

2. The data management method of the blood glucose monitoring device according to claim 1, characterized in that: The step of generating and transmitting a target data packet to the target terminal based on the historical data packet and the target blood glucose data comprises: Determining a blood sugar data sequence corresponding to the historical data packet; Based on the acquisition time, the target blood glucose data is appended to the blood glucose data sequence to generate the target data packet; Transmit the target data packet to the target terminal.

3. The data management method of the blood glucose monitoring device according to claim 1, characterized in that: After the step of determining whether confirmation information of the target terminal in response to the historical data packet transmitted at the last moment is received, the method includes: If the confirmation message is received, deleting the historical data packet; Generate a target data packet using the target blood sugar data as the first value after the data header; Transmit the target data packet to the target terminal.

4. The data management method of the blood glucose monitoring device according to claim 1, characterized in that: After the step of determining whether the historical data packet reaches the data threshold, the method further comprises: If the historical data packet reaches the data threshold, the historical data packet is used as the target data packet corresponding to the current moment; Transmit the target data packet to the target terminal.

5. The data management method of the blood glucose monitoring device according to any one of claims 2 to 4, characterized in that: The step of transmitting the target data packet to the target terminal comprises: Determine the priority of the current collection task; determining a transmission interval according to the priority, wherein the priority is negatively correlated with the transmission interval; The target data packet is transmitted to the target terminal based on the transmission interval.

6. The data management method of the blood glucose monitoring device according to any one of claims 1 to 4, characterized in that: The data management method of the blood glucose monitoring device further includes: When the blood glucose collection task is triggered, blood glucose data is collected based on the collection interval; Generate a data sequence based on the collected blood sugar data, wherein the data header of the data sequence is the initial collection data corresponding to the blood sugar collection task; The data sequence is stored.

7. The data management method of the blood glucose monitoring device according to claim 6, characterized in that: After the step of storing the data sequence, the method further comprises: If the current occupancy of the storage space reaches the storage threshold, compress the data sequence; or, The data series whose collection time is earlier than the set time threshold are deleted.

8. The data management method of the blood glucose monitoring device according to claim 7, characterized in that: The step of compressing the data sequence comprises: Compress the data sequence based on Huffman coding; or, determining abnormal data values ​​in the data sequence; Determining a retention time interval based on a collection time corresponding to the abnormal data value, wherein the collection time falls within the retention time interval; The blood sugar data within the retention time interval is used as the compressed data sequence.

9. A data management device for a blood glucose monitoring device, characterized in that: The data management device of the blood glucose monitoring device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data management method of the blood glucose monitoring device according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data management method for a blood glucose monitoring device according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Communication control method of intelligent glucometer, controller, medium and product

    CN121924455A