Sampling rate determination method, display method, device and storage device of physiological data
By detecting abnormalities of the acquisition equipment and judging the acquisition time, a final sampling rate that is closer to the actual situation is calculated, which solves the problem of data and time mismatch in medical equipment, and improves the accuracy and reliability of data acquisition.
Patent Information
- Application Number
- CN202010220081.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-25
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2040-03-25
AI Technical Summary
When medical equipment collects physiological data, due to the deviation of clock accuracy and software timer accuracy, the collected data volume and duration do not match the ratio indicated by the initial sampling rate, resulting in inconsistency between data and time, affecting the accuracy of data and reliability.
By detecting abnormalities or stops of the acquisition device, we can determine whether the total collection time meets the preset conditions. If it is met, the final sampling rate will be calculated based on the total data amount and the total duration. If it is not met, the initial sampling rate will be used to ensure that the final sampling rate will be more Close to the actual situation.
It effectively reduces the impact of clock and software timer errors, improves the accuracy and reliability of data acquisition, ensures that the amount of data collected is closer to the actual situation, and reduces the problem of greater errors as the acquisition time is.
Smart Images

Figure CN113450900B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical technology, and in particular to a sampling rate determination method, display method, equipment and storage device for physiological data. Background Art
[0002] In the medical field, in order to obtain the patient's vital signs information, monitoring equipment and other acquisition devices can be used to collect physiological data of the acquisition object for a period of time, so as to facilitate the doctor to analyze the collected physiological data. In the actual use of the acquisition equipment, there is a deviation between the clock accuracy and the software timer accuracy and the design indicators, resulting in the amount of data collected and the duration not being strictly equivalent to the ratio of the amount of data and the duration indicated by the initial sampling rate of the acquisition equipment. Taking the initial sampling rate of the acquisition equipment as 2000bit / s as an example, due to the errors caused by the clock, software timer, etc., the actual duration used to collect 2000bit physiological data is not 1s, but may be 0.99s, or 1.01s, etc.; or, the acquisition equipment actually collects for 1s, and the amount of physiological data obtained is not 2000bit.
[0003] At present, after receiving physiological data from the acquisition device, the data is directly processed according to the initial sampling rate of the acquisition device, and the system may have certain, inevitable errors and approximate error ranges. The medical field has strict requirements on the matching degree of data and duration. If the physiological data is processed for a long time according to the initial sampling rate of the acquisition device, if the data acquisition frequency is fast, after a period of time, the time corresponding to the physiological data has exceeded the actual current system time; if the data acquisition frequency is slow, after a period of time, the time corresponding to the physiological data has not reached the actual current system time, and a time delay occurs. Therefore, when performing a continuous acquisition of physiological data, the total amount of data collected and the duration are relatively different from the theoretical total amount of data and duration corresponding to the initial sampling rate.
[0004] Based on this, how to determine the sampling rate that meets the actual data collection situation has become an urgent problem to be solved. Summary of the invention
[0005] The present application mainly provides a method for determining a sampling rate of physiological data, a display method, an apparatus and a storage device, which can obtain a sampling rate that is more in line with the actual collection situation of physiological data.
[0006] In order to solve the above problems, the first aspect of the present application provides a method for determining the sampling rate of physiological data, including: detecting that an abnormality occurs in the current collection of physiological data by the collection device or stops collecting the data; judging whether the total duration of the current collection meets the preset conditions; if the preset conditions are met, then based on the total amount of data collected and the total duration, obtaining the final sampling rate of the current collection; if the preset conditions are not met, then using the initial sampling rate of the current collection determined previously as the final sampling rate.
[0007] The obtaining of the final sampling rate of the current collection based on the total amount of data collected this time and the total duration includes: taking the ratio between the total amount of data collected this time and the total duration as the final sampling rate of the current collection.
[0008] The preset condition is that the total duration of the current collection is greater than a preset threshold or the longest collection duration of a single collection of physiological data in history.
[0009] Among them, before detecting that the current collection of physiological data by the collection device is abnormal or stops collecting, the method also includes: receiving the physiological data collected by the collection device in this collection; and updating the total amount of data and total duration of this collection based on the received physiological data and the receiving time.
[0010] Among them, before receiving the physiological data collected by the acquisition device in this acquisition, the method also includes: using a preset sampling rate as the initial sampling rate of this acquisition, or using the final sampling rate of a historical single acquisition with the longest acquisition time as the initial sampling rate of this acquisition; initializing the acquisition device.
[0011] In order to solve the above-mentioned problem, the second aspect of the present application provides a method for displaying physiological data, including: determining a target display range of physiological data; obtaining a final sampling rate of original physiological data, wherein the final sampling rate corresponding to the original physiological data is determined by any physiological data sampling rate determination method of the first aspect mentioned above; based on the final sampling rate, reading physiological data in the original physiological data that matches the target display range as target physiological data; and displaying the target physiological data.
[0012] Wherein, the target display range includes a start display time and a stop display time; based on the final sampling rate, reading the physiological data in the original physiological data that matches the target display range as the target physiological data includes: obtaining a first time difference between the start display time and the start time of the original physiological data, and a second time difference between the stop display time and the start time of the original physiological data; obtaining the product of the first time difference, the second time difference and the final sampling rate respectively to obtain a target start data position and a target stop data position; and taking the physiological data in the original physiological data located between the target start data position and the target stop data position as the target physiological data.
[0013] Among them, displaying the target physiological data includes: determining whether the starting time of the target physiological data is consistent with the starting display time of the target display range; if so, using the position corresponding to the starting display time as the drawing starting position; if not, adjusting the drawing starting position to the position corresponding to the starting time of the target physiological data; and starting to draw the target physiological data based on the drawing starting position.
[0014] In order to solve the above-mentioned problem, the third aspect of the present application provides an electronic device, comprising a processor and a memory coupled to each other, wherein the processor is used to execute a computer program stored in the memory to execute the sampling rate determination method of physiological data of the above-mentioned first aspect and / or execute the display method of physiological data of the above-mentioned second aspect.
[0015] To solve the above problems, the fourth aspect of the present application provides a storage device storing a computer program that can be executed by a processor to implement any of the methods in the above aspects.
[0016] In the above scheme, after detecting that the acquisition device has an abnormality or stops acquiring physiological data, it is determined whether the total duration of this acquisition meets the preset conditions. Therefore, when the total duration of this acquisition meets the preset conditions, the final sampling rate of this acquisition is obtained based on the total amount of data and the total duration of this acquisition. This is different from directly using the initial sampling rate as the final sampling rate. Instead, the dynamic sampling rate calculated using the total amount of data and the total duration when the total duration of this acquisition meets the preset conditions is used as the final sampling rate of this acquisition; if the total duration of this acquisition does not meet the preset conditions, the previously determined initial sampling rate of this acquisition is used as the final sampling rate, so that the final sampling rate is the initial sampling rate. Based on this, the final sampling rate of the physiological data is closer to the actual sampling rate of the physiological data. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of an embodiment of a method for determining a sampling rate of physiological data of the present application;
[0018] Figure 2 is a flow chart of another embodiment of the method for determining the sampling rate of physiological data of the present application;
[0019] Figure 3 is a flow chart of an embodiment of a method for displaying physiological data of the present application;
[0020] Figure 4 It is a schematic diagram of the framework of an embodiment of the medical device of the present application;
[0021] Figure 5 It is a schematic diagram of the framework of an embodiment of the storage device of the present application. DETAILED DESCRIPTION
[0022] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.
[0023] See also Figure 1 , Figure 1 1 is a flow chart of an embodiment of a method for determining a sampling rate of physiological data of the present application. Specifically, the method of this embodiment includes the following steps:
[0024] Step S101: detecting that an abnormality occurs in the current collection of physiological data by the collection device or the collection is stopped.
[0025] The acquisition equipment includes probes, sensors, monitors, electrocardiographs and other equipment for collecting physiological data. The acquisition equipment has set an initial sampling rate before collecting physiological data. The initial sampling rate is the ratio between the amount of collected data and the collection time to be achieved during physiological data collection, such as 2000 bit / s. The acquisition equipment can use the preset sampling rate as the initial sampling rate for this collection, or use the final sampling rate of the historical single collection with the longest collection time as the initial sampling rate for this collection. The preset sampling rate can be the theoretical sampling rate corresponding to the design indicator of the acquisition equipment, or a sampling rate customized by humans within the theoretical sampling rate range; or the final sampling rate of any historical single collection of physiological data can be used as the initial sampling rate, etc., and no specific limitation is made here. Among them, the final sampling rate of the above-mentioned historical single collection of physiological data is the final sampling rate of the physiological data determined by the sampling rate determination method of physiological data of any embodiment of the present application.
[0026] Physiological data is data that needs to be collected at fixed time intervals and has a time accumulation effect. For example, the electrocardiograph collects data including but not limited to ECG waveform data and respiratory waveform data at fixed time intervals. In the actual use of the acquisition device, there are deviations between its clock accuracy and software timer accuracy and the design indicators. The actual sampling rate is used to collect physiological data, which leads to deviations between the collection of physiological data and the theory. The actual sampling rate of the acquisition device deviates from the initial sampling rate, forming a time accumulation effect. For example, the total amount of physiological data actually collected by the acquisition device within the preset collection time is less than the theoretical total amount of data, and the longer the collection time is, the greater the difference between the total amount of physiological data actually collected by the acquisition device and the theoretical total amount of data. If the physiological data is processed at the initial sampling rate, there will be a problem of data mismatch with time. Therefore, the final sampling rate is determined by using this application to make the final sampling rate close to the actual sampling rate.
[0027] An abnormality or cessation of collection during this collection indicates that a continuous physiological data collection has been interrupted, and the abnormality or cessation of collection includes but is not limited to communication abnormalities, shutdown of the collection device, manual control of the collection device to stop collecting physiological data, etc., which makes the electronic device executing the physiological data sampling rate determination method unable to receive physiological data, and is not specifically limited here.
[0028] Step S102: Determine whether the total duration of this collection meets the preset conditions.
[0029] The preset condition may be that the total duration of this collection is greater than a preset threshold or the longest collection duration of a single physiological data collection in history. The size of the preset threshold can be customized, for example, 1 hour, 24 hours, 5 days, etc. The longest collection duration of a single physiological data collection in history is the longest collection duration cached within a preset time, and the preset time includes but is not limited to all time since the collection device was used, the last month, etc. In one embodiment, the preset condition may be that the total duration of this collection is greater than the collection duration of the last physiological data collection. The preset condition may also be that the total duration of this collection is greater than the average collection duration of multiple physiological data collections, which is not limited here.
[0030] If it is determined that the total duration of this collection meets the preset conditions, step S103 is executed; if it is determined that the total duration of this collection does not meet the preset conditions, step S104 is executed.
[0031] Step S103: Based on the total amount of data collected this time and the total duration, a final sampling rate of this collection is obtained.
[0032] If the total duration of this collection meets the preset conditions, it indicates that the total amount of physiological data accumulated within the total duration of this collection is close to the total amount of physiological data actually collected by the collection device within the same time range, so the final sampling rate of this collection is obtained by using the total amount of data collected this time and the total duration, making the final sampling rate closer to the actual sampling rate. The method for obtaining the final sampling rate of this collection is to use the ratio between the total amount of data collected this time and the total duration as the final sampling rate of this collection.
[0033] Since the clock accuracy and software timer accuracy of the acquisition device basically remain in an accelerated or delayed state, the data error caused by the acquisition device will be inversely proportional to the acquisition duration. Therefore, in one embodiment, the total amount of data and the total duration when the total duration of a single acquisition is longer are used to obtain the final sampling rate, so that the final sampling rate is more in line with the actual ratio relationship.
[0034] Before the current collection of physiological data shows any abnormality or the collection is stopped, the physiological data is collected continuously and uploaded at fixed time intervals. The total amount of data and the total duration of the current collection are continuously accumulated and updated. When the current collection of physiological data shows any abnormality or the collection is stopped, and the total duration of the current collection meets the preset conditions, the final sampling rate of the physiological data is calculated using the actual total amount of data and the total duration, so that the final sampling rate of the physiological data is more in line with the relationship between the collection duration and the amount of data when the physiological data is actually collected.
[0035] Step S104: taking the previously determined initial sampling rate of this acquisition as the final sampling rate.
[0036] If the total duration of this acquisition does not meet the preset conditions, it indicates that the sampling rate will not be updated, and the initial sampling rate of this acquisition previously determined can be used as the final sampling rate. The initial sampling rate of this acquisition can be a theoretical sampling rate determined by the design indicators when the acquisition equipment is produced, or it can be the final sampling rate of the historical single acquisition of physiological data with the longest acquisition duration. Among them, the final sampling rate of the historical single acquisition of physiological data with the longest acquisition duration is the final sampling rate of the physiological data determined by this method.
[0037] In order to reduce the impact of data sampling errors caused by technical limitations such as clocks and software timers, the present application determines the final sampling rate of physiological data. If the initial sampling rate of the acquisition device is 2000bit / s, and the actual acquisition device has inevitable errors in the clock, software timer, etc. when collecting physiological data, the amount of physiological data obtained by the acquisition device for 1s is 2001bit, that is, there is an error between the initial sampling rate and the actual sampling rate, specifically, the amount of data with a difference of 1bit in 1s. Based on this, the longer the acquisition time is, the greater the sampling error is. For example, if the acquisition time reaches one day, the sampling error between the theoretical sampling data and the actual sampling data will reach about 86400. If the acquisition device is used to collect physiological data for a long time, the actual sampling error is proportional to the acquisition time, that is, the longer the acquisition time is, the greater the accumulated sampling error is. The final sampling rate obtained by the sampling rate determination method of physiological data of the present application is closer to the actual sampling rate of the acquisition device, and the longer the acquisition time is, the closer the final sampling rate is to the actual sampling rate of the acquisition device.
[0038] Through the above method, after detecting that the acquisition device has an abnormality or stops acquiring the physiological data, it is determined whether the total duration of this acquisition meets the preset conditions. Therefore, when the total duration of this acquisition meets the preset conditions, the final sampling rate of this acquisition is obtained based on the total amount of data and the total duration of this acquisition. This is different from directly taking the initial sampling rate as the final sampling rate. Instead, the dynamic sampling rate calculated using the total amount of data and the total duration when the total duration of this acquisition meets the preset conditions is used as the final sampling rate of this acquisition; if the total duration of this acquisition does not meet the preset conditions, the previously determined initial sampling rate of this acquisition is used as the final sampling rate, so that the final sampling rate is the initial sampling rate. Based on this, the final sampling rate of the physiological data is closer to the actual sampling rate of the physiological data.
[0039] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of another embodiment of the method for determining the sampling rate of physiological data of the present application. Specifically, the method of this embodiment includes the following steps:
[0040] Step S201: taking the final sampling rate of the historical single acquisition with the longest acquisition duration as the initial sampling rate of this acquisition.
[0041] Each time the collection device collects physiological data and completes the collection, this collection becomes the historical single collection of the collection device. Before this collection, all single collections of physiological data by the same collection device are historical single collections.
[0042] After the acquisition device acquires physiological data once, the sampling rate determination method of physiological data of any embodiment of the present application is used to obtain the final sampling rate of this acquisition. When a single acquisition is performed after this acquisition, the final sampling rate of this acquisition becomes the final sampling rate of the historical single acquisition. For the same acquisition device, the number of final sampling rates of historical single acquisitions is several, so the historical single acquisition with the longest acquisition time in the historical single acquisitions is found, and the final sampling rate of the historical single acquisition is used as the initial sampling rate of this acquisition. That is, the final sampling rate of the historical single acquisition is used as the initial sampling rate of this acquisition, wherein the historical single acquisition is the one with the longest acquisition time among several historical single acquisitions.
[0043] The final sampling rate of the historical single acquisition with the longest acquisition duration is the final sampling rate obtained by the sampling rate determination method of physiological data of any embodiment of the present application, so that when multiple physiological data are acquired, the initial sampling rate of the subsequent single physiological data acquisition is the final sampling rate of the historical single acquisition with the longest acquisition duration. Since the clock accuracy and software timer accuracy of the acquisition device basically maintain an accelerated or delayed state, the size of the data error caused by the acquisition device is inversely proportional to the acquisition duration, and then the final sampling rate of the historical single acquisition with the longest acquisition duration is selected as the initial sampling rate of this acquisition, so that the data acquisition of the entire process of this acquisition is more in line with the actual situation of the acquisition device.
[0044] Step S202: Initialize the acquisition device.
[0045] Initialization of the acquisition device is to set the initial sampling rate of the acquisition device so that the initial sampling rate for this acquisition is reset and updated.
[0046] Step S203: receiving the physiological data collected by the collection device in this collection.
[0047] After the collection device collects the physiological data, it uploads it at fixed time intervals, so that the electronic device that determines the physiological data sampling rate can receive the physiological data collected by the collection device in this collection.
[0048] Step S204: based on the received physiological data and the receiving time, the total amount of data collected this time and the total duration are updated.
[0049] There is a certain time interval for receiving physiological data. The total amount and duration of physiological data are continuously updated by using the amount of data and duration received at the last data reception time point, as well as the amount of data and duration received at the current data reception time point. Therefore, when the current collection stops, the total duration is the time difference between the start time of this continuous collection and the current time, and the total amount of data is the physiological data accumulated within the corresponding time.
[0050] Step S205: detecting that the current collection of physiological data by the collection device is abnormal or stops the collection.
[0051] Abnormal or stopped collection includes but is not limited to abnormal communication, shutdown of collection equipment, and manual control of collection equipment to stop collection. If the current collection is abnormal or stopped, the electronic device of the physiological data sampling rate will not receive the physiological data uploaded by the collection device, and the collection of physiological data will be interrupted and the continuous collection of physiological data cannot continue. When the collection device has noise in the current collection of physiological data or other things that do not affect the continuity of this collection, it does not mean that the current collection is abnormal or stopped.
[0052] Step S206: Determine whether the total duration of this collection meets the preset conditions.
[0053] In this embodiment, the preset condition is that the total duration of this acquisition is greater than the longest acquisition duration of a single acquisition of physiological data in history. Each time the acquisition device performs an acquisition, and when an abnormality occurs in a single acquisition or the acquisition is stopped, the acquisition duration is cached to generate the longest acquisition duration of a single acquisition of physiological data in history. Of course, the acquisition device can upload the longest acquisition duration of a single acquisition of physiological data in history to an electronic device that executes the method for determining the sampling rate of physiological data. The longest acquisition duration of a single acquisition of physiological data in history is the longest acquisition duration cached within a preset time, and the preset time includes but is not limited to all time since the acquisition device was used, the last month, etc.
[0054] If it is determined that the total duration of this collection meets the preset conditions, step S207 is executed; if it is determined that the total duration of this collection does not meet the preset conditions, step S208 is executed.
[0055] Step S207: Based on the total amount of data collected this time and the total duration, a final sampling rate of this collection is obtained.
[0056] If the total duration of this acquisition meets the preset conditions, the final sampling rate of this acquisition is the ratio between the total amount of data collected and the total duration. The final sampling rate obtained from this acquisition can be used as the initial sampling rate for subsequent single acquisitions.
[0057] Step S208: taking the previously determined initial sampling rate of this acquisition as the final sampling rate.
[0058] If the total duration of this acquisition does not meet the preset conditions, it indicates that the sampling rate will not be updated, and the initial sampling rate of this acquisition determined previously can be used as the final sampling rate.
[0059] The rest of the descriptions about step S207 and step S208 can refer to the above-mentioned step S103 and step S104, which will not be repeated here.
[0060] In one embodiment, the final sampling rate of this acquisition is used as the initial sampling rate of subsequent single acquisitions, so that for the same acquisition device, the initial sampling rate of the acquisition device is continuously optimized and the error impact of the acquisition device clock or software timer is reduced.
[0061] Through the above method, the final sampling rate of the historical single collection with the longest collection time is used as the initial sampling rate of this collection; the collection device is initialized; the physiological data collected by the collection device in this collection is received, and the total amount of data and the total time of this collection are continuously updated; after detecting that the collection of physiological data by the collection device is abnormal or stops collecting, it is determined whether the total time of this collection meets the preset conditions, so that when the total time of this collection meets the preset conditions, it indicates that the data deviation of this collection is small, and then the final sampling rate of this collection is obtained based on the total amount of data and the total time of this collection, which is different from directly taking the initial sampling rate as the final sampling rate, but using the dynamic sampling rate calculated by the total amount of data and the total time; if the total time of this collection does not meet the preset conditions, it indicates that the data deviation of this collection is large, then the previously determined initial sampling rate of this collection is used as the final sampling rate, so that the final sampling rate is the initial sampling rate. Based on this, regardless of whether the total time of this collection meets the conditions, the sampling rate closest to the actual physiological data collection is used as the final sampling rate of this collection, thereby reducing the deviation between the final sampling rate of this collection and the actual sampling rate.
[0062] See also Figure 3 , Figure 3 1 is a flow chart of an embodiment of a method for displaying physiological data of the present application. Specifically, the method of this embodiment includes the following steps:
[0063] Step S301: Determine a target display range of physiological data.
[0064] The target display range includes a start display time and a stop display time. In one embodiment, between the same start display time and the stop display time, there are multiple types of physiological data, such as an electrocardiogram waveform and a respiratory waveform, so the target display range may also include types of physiological data.
[0065] Step S302: Obtain the final sampling rate of the original physiological data.
[0066] The final sampling rate corresponding to the original physiological data is determined by any of the above-mentioned physiological data sampling rate determination method embodiments. The final sampling rate of the original physiological data is the ratio between the total amount of data and the total duration when the original physiological data is collected. It is a dynamic sampling rate calculated after the total amount of data and duration are continuously and dynamically updated, and when an acquisition anomaly occurs or the acquisition is stopped.
[0067] Step S303: Based on the final sampling rate, physiological data matching the target display range in the original physiological data is read as target physiological data.
[0068] The original physiological data includes a start time and an end time, while the target display range includes a start display time and an end display time. The target display range may be entirely or partially within the original physiological data range, for example, the start time of the original physiological data is 8h and the end time is 9h, the start display time of the target display range is 8.05h and the end display time is 8.15h, and the entire target display range is within the original physiological data range; or the start time of the original physiological data is 8h and the end time is 9h, the start display time of the target display range is 7.55h and the end display time is 8.05h, the start display time of the target display range is before the start time of the original physiological data, part of the target display range is within the original physiological data range, and the time difference of the target display range is greater than the time difference of the target physiological data; or the start time of the original physiological data is 8h and the end time is 9h, the start display time of the target display range is 8.55h and the end display time is 9.05h, and the end display time of the target display range is after the end time of the original physiological data, and similarly part of the target display range is within the original physiological data range, and the time difference of the target display range is greater than the time difference of the target physiological data. Therefore, based on the final sampling rate, the physiological data in the original physiological data that matches the target display range can be read as the target physiological data, and the range of the target physiological data depends on the original physiological data and the target display range.
[0069] Based on the start display time and the end display time of the target display range and the final sampling rate, the physiological data corresponding to the target display range in the original physiological data can be read to obtain the target physiological data. The method for obtaining the target physiological data is specifically as follows: obtaining the first time difference between the start display time and the start time of the original physiological data, and the second time difference between the end display time and the start time of the original physiological data; obtaining the product of the first time difference and the second time difference with the final sampling rate, respectively, to obtain the target start data position and the target end data position; and taking the physiological data between the target start data position and the target end data position in the original physiological data as the target physiological data.
[0070] For example, the final sampling rate of the original physiological data is 100 bit / s, the starting time of the original physiological data is 8 hours and the ending time is 9 hours, the starting display time of the target display range is 8.05 hours and the ending display time is 8.15 hours, and the entire target display range is within the original physiological data range. Based on this, the first time difference is 5m (i.e., 300s) and the second time difference is 15m (i.e., 900s); the first time difference and the second time difference are multiplied by the final sampling rate respectively, and the target starting data position and the target ending data position are obtained as 30000 bits and 90000 bits respectively, so that the physiological data between the data position 30000 bits and 90000 bits corresponding to the starting time of the original physiological data is taken as the target physiological data. At this time, since the entire target display range is within the original physiological data range, the time range corresponding to the target starting data position and the target ending data position is 8.05h to 8.15h, which is the same as the time range between the starting display time and the ending display time of the target display range, and the time difference of the target display range is equal to the time difference of the target physiological data.
[0071] The target display range's starting display time, ending display time, and final sampling rate are used to obtain the position offset of the target display range in the original physiological data, and the target physiological data is obtained. After using the dynamic sampling rate obtained when the total acquisition time meets the preset conditions as the final sampling rate for the original physiological data acquisition, the final sampling rate is used to read the physiological data in the original physiological data that matches the target display range. The time and position range of the acquired target physiological data are closer to the acquisition data that matches it in the original physiological data. Especially for physiological data with a longer acquisition time, the data error of the acquired target physiological data is smaller.
[0072] Step S304: display target physiological data.
[0073] After the target physiological data is acquired, the physiological data between the target start data position and the target end data position can be displayed. Specifically, after the target physiological data and its target start data position and target end data position are acquired, the target start data position is used as the drawing start position, and the target physiological data is started to be drawn until the target end data position is reached, so that the drawn physiological data is displayed, that is, the display of the target physiological data is completed.
[0074] In one embodiment, due to reasons such as acquisition suspension and limited range of original physiological data, the original physiological data does not include a part of the target display range, and thus the acquired target physiological data range is smaller than the target display range, and the drawing start position needs to be adjusted when displaying the target physiological data. Therefore, when displaying the target physiological data, it is determined whether the starting time of the target physiological data is consistent with the starting display time of the target display range; if so, the position corresponding to the starting display time is used as the drawing start position; if not, the drawing start position is adjusted to the position corresponding to the starting time of the target physiological data; and the target physiological data is drawn based on the drawing start position.
[0075] For example, the final sampling rate of the original physiological data is 100 bit / s, the start time of the original physiological data is 8 hours and the end time is 9 hours, the start display time of the target display range is 7.55 hours and the end display time is 8.05 hours, and the start display time of the target display range is before the start time of the original physiological data. Based on this, the first time difference is -5m (ie -300s) and the second time difference is 5m (ie 300s); the first time difference and the second time difference are multiplied by the final sampling rate respectively, and the target start data position and the target end data position are obtained as -30000bit and 30000bit respectively, so that the physiological data between the data position 0bit and 30000bit corresponding to the start time of the original physiological data is used as the target physiological data, that is, the time range corresponding to the target start data position and the target end data position is 8h to 8.05h. At this time, since the start display time of the target display range is before the start time of the original physiological data, only part of the target display range is within the original physiological data range, so the time range corresponding to the target start data position and the target end data position is 8h to 8.05h, and the start display time to the end display time of the target display range is 7.55h to 8.05h. The time difference of the target display range is greater than the time difference of the target physiological data.
[0076] Based on this, when displaying the target physiological data, it is determined that the starting time 8h of the target physiological data is inconsistent with the starting display time 7.55h of the target display range; the drawing starting position is adjusted to the position 8h corresponding to the starting time of the target physiological data; the target physiological data is drawn based on the drawing starting position, and then the target physiological data is displayed.
[0077] Therefore, when the start display time of the target display range is within the start time of the original physiological data, the start time of the target physiological data is consistent with the start display time of the target display range, and the position corresponding to the start display time is used as the starting position for drawing; when the start display time of the target display range is before the start time of the original physiological data, the start time of the target physiological data is inconsistent with the start display time of the target display range, and the starting position for drawing is adjusted to the position corresponding to the start time of the target physiological data, and the starting position for drawing at this time is also the start time of the original physiological data.
[0078] In order to reduce the impact of data sampling errors caused by technical limitations such as clocks and software timers, when displaying the target physiological data, the final sampling rate is used to obtain the physiological data corresponding to the target display range in the original physiological data for display, thereby narrowing the gap between the target display range and the actual time. The longer the acquisition time of the original physiological data, the closer the final sampling rate is to the actual sampling rate of the acquisition device, and the smaller the time accumulation effect when displaying the physiological data.
[0079] Through the above-mentioned method, the target display range of the physiological data is determined; the final sampling rate determined by the above-mentioned physiological data sampling rate determination method is obtained for the original physiological data; based on the final sampling rate, the physiological data matching the target display range in the original physiological data is read as the target physiological data; the target physiological data is displayed. Therefore, the target physiological data is acquired and displayed using the final sampling rate obtained by the above-mentioned physiological data sampling rate determination method, and the time when the physiological data is acquired from the original physiological data is closer to the time corresponding to the actual formation of the original physiological data, thereby reducing the time accumulation effect of displaying the target physiological data.
[0080] See also Figure 4 , Figure 4 4 is a schematic diagram of a framework of an embodiment of an electronic device of the present application. Specifically, in this embodiment, the electronic device 400 includes a memory 410 and a processor 420 coupled to each other. The processor 420 is used to execute program instructions stored in the memory 410.
[0081] The processor 420 controls the memory 410 and itself to implement the above-mentioned physiological data sampling rate determination method and / or execute the steps of any embodiment of the above-mentioned physiological data display method. The processor 420 can also be called a CPU (Central Processing Unit). The processor 420 may be an integrated circuit chip with signal processing capabilities. The processor 420 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 420 can be implemented by multiple integrated circuit chips.
[0082] See also Figure 5 , Figure 5 The schematic diagram of the framework of an embodiment of the storage device 500 of the present application. The storage device 500 of the present application stores program instructions 501 that can be executed by a processor, and the program instructions 501 are used to implement any of the above-mentioned physiological data sampling rate determination methods and / or execute the steps in the embodiments of the above-mentioned physiological data display method.
[0083] The storage device 500 may specifically be a medium that can store the program instructions 501, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or may be a server that stores the program instructions 501. The server may send the stored program instructions 501 to other devices for execution, or may execute the stored program instructions 501 by itself.
[0084] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or 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.
[0085] The units described 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 present embodiment.
[0086] 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0087] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
Claims
1. A method for determining a sampling rate of physiological data, characterized in that: include: The preset sampling rate is used as the initial sampling rate of this acquisition, or the final sampling rate of the historical single acquisition with the longest acquisition duration is used as the initial sampling rate of this acquisition; Initialize the acquisition device; It is detected that the current collection of physiological data by the collection device is abnormal or the collection is stopped; Determine whether the total duration of the current collection meets a preset condition, wherein the preset condition is that the total duration of the current collection is greater than a preset threshold or the longest collection duration of a single collection of physiological data in history; If the preset conditions are met, the final sampling rate of this collection is obtained based on the total amount of data collected this time and the total duration; If the preset condition is not met, the previously determined initial sampling rate of this acquisition is used as the final sampling rate.
2. The method according to claim 1, characterized in that The final sampling rate of this collection is obtained based on the total amount of data collected this time and the total duration, including: The ratio between the total amount of data collected this time and the total duration is taken as the final sampling rate of this collection.
3. The method according to claim 1, characterized in that Before detecting that an abnormality occurs in the current collection of physiological data by the collection device or the collection is stopped, the method further includes: Receiving the physiological data collected by the collection device in this collection; Based on the received physiological data and the receiving time, the total amount of data and the total duration of this collection are updated.
4. A method for displaying physiological data, characterized in that: include: Determine the target display range of physiological data; Obtaining a final sampling rate of the original physiological data, wherein the final sampling rate corresponding to the original physiological data is determined by the method according to any one of claims 1 to 3; Based on the final sampling rate, reading physiological data matching the target display range in the original physiological data as target physiological data; The target physiological data is displayed.
5. The method according to claim 4, characterized in that The target display range includes a start display time and a stop display time; The step of reading physiological data matching the target display range in the original physiological data based on the final sampling rate as target physiological data includes: Acquire a first time difference between the start display time and the start time of the original physiological data, and a second time difference between the end display time and the start time of the original physiological data; Obtain the product of the first time difference, the second time difference and the final sampling rate, respectively, to obtain a target starting data position and a target ending data position; The physiological data in the original physiological data located between the target starting data position and the target ending data position is used as the target physiological data.
6. The method according to claim 4, characterized in that The displaying of the target physiological data comprises: Determining whether the start time of the target physiological data is consistent with the start display time of the target display range; If yes, the position corresponding to the start display time is used as the drawing start position; if no, the drawing start position is adjusted to the position corresponding to the start time of the target physiological data; The target physiological data starts to be drawn based on the drawing start position.
7. A medical device, characterized in that: comprising a memory and a processor coupled to each other; The processor is used to execute the program instructions stored in the memory to implement the method according to any one of claims 1 to 6.
8. A storage device, characterized in that: Program instructions that can be executed by a processor are stored, and the program instructions are used to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Acquisition sample clock synchronization leveraging a global clocking mechanism in a distributed physiological sensing system
US20150116130A1
Sensor data transmissions
US20160278648A1
