WO2021164300A1 - Data presentation method, terminal device and storage medium - Google Patents

Data presentation method, terminal device and storage medium Download PDF

Info

Publication number
WO2021164300A1
WO2021164300A1 PCT/CN2020/124153 CN2020124153W WO2021164300A1 WO 2021164300 A1 WO2021164300 A1 WO 2021164300A1 CN 2020124153 W CN2020124153 W CN 2020124153W WO 2021164300 A1 WO2021164300 A1 WO 2021164300A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
line
preset
period
value
Prior art date
Application number
PCT/CN2020/124153
Other languages
French (fr)
Chinese (zh)
Inventor
李君劲
陈勇
陈玉梅
张孝甜
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021164300A1 publication Critical patent/WO2021164300A1/en

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H30/00ICT specially adapted for the handling or processing of medical images
    • G16H30/40ICT specially adapted for the handling or processing of medical images for processing medical images, e.g. editing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H10/00ICT specially adapted for the handling or processing of patient-related medical or healthcare data
    • G16H10/60ICT specially adapted for the handling or processing of patient-related medical or healthcare data for patient-specific data, e.g. for electronic patient records
    • G16H10/65ICT specially adapted for the handling or processing of patient-related medical or healthcare data for patient-specific data, e.g. for electronic patient records stored on portable record carriers, e.g. on smartcards, RFID tags or CD

Definitions

  • This application belongs to the field of terminal technology, and in particular relates to a data display method, terminal device and storage medium.
  • the various physiological conditions of the human body can be analyzed through physiological parameters that can reflect various physiological conditions of the human body.
  • physiological parameters can reflect various physiological conditions of the human body.
  • the blood oxygen saturation that can reflect the respiratory condition of the human body can be used to analyze the respiratory condition of the human body during sleep.
  • the prior art In order to facilitate the user to understand the change of a certain physiological parameter of the human body during a certain period of time, after acquiring the data value of the physiological parameter in the period of time, the prior art usually uses the acquisition time as the horizontal axis and the data value of the physiological parameter.
  • the vertical axis establishes a rectangular coordinate system, and in the coordinate system, based on all the acquired data values of the physiological parameter, the change trend graph of the physiological parameter in the period is directly drawn.
  • a periodic time period containing multiple data collection moments is usually taken as Unit observation period, by analyzing the changes of physiological parameters in different unit observation periods, to determine the corresponding changes in physiological conditions.
  • the change trend graph drawn based on the above drawing method can only show the user the change of a certain physiological parameter in a certain period of time at different data collection moments, but cannot directly show the user a certain physiological parameter in a certain period of time.
  • the embodiments of the present application provide a data display method, terminal device, and storage medium, which can intuitively display the changes of physiological parameters to be measured during different data observation periods within a preset data collection period.
  • an embodiment of the present application provides a data display method, including:
  • the first line is drawn and displayed based on all the maximum values in the preset coordinate system, and the second line is drawn and displayed based on all the minimum values;
  • the data value of the measured physiological parameter is the vertical axis.
  • the data value is marked as an abnormal data value, and the abnormal data value is eliminated from the data value.
  • the determining the maximum value, the minimum value and the average value of the data value in each data observation period includes:
  • the maximum value, the minimum value and the average value of the data value in each data observation period are determined.
  • the abnormal data values existing in the collected data values of the physiological parameters to be measured are eliminated, so that the remaining non-abnormal data values can accurately show the difference of the physiological parameters to be measured in the preset data collection period.
  • the true change of the data observation period improves the accuracy of analyzing the corresponding physiological conditions based on the physiological parameters to be measured.
  • the user can make the terminal device display the maximum, minimum, and/or average value of the physiological parameter to be measured in different data observation periods by operating on different data observation periods.
  • the user can By comparing the maximum value, minimum value and/or average value of the physiological parameter to be measured in different data observation periods, the changes of the data value of the physiological parameter to be measured in different data observation periods can be intuitively obtained, that is, the embodiment of the present application By means of numerical display, it is possible to more intuitively show the user the changes in the data values of the physiological parameters to be measured during different data observation periods.
  • the drawing and displaying the first line based on all the maximum values in the preset coordinate system and the drawing and displaying the second line based on all the minimum values include:
  • All the first coordinate points are sequentially connected in a preset order through a solid line to obtain a first connecting line, and the first connecting line is smoothed to obtain the first line;
  • the preset order is the The sequence of the collection time from early to late, or the sequence of the collection time from late to early;
  • All the second coordinate points are sequentially connected by a solid line in the preset order to obtain a second connecting line, and the second connecting line is smoothed to obtain the second line.
  • the preset data collection period is divided into a plurality of data observation periods, in the preset coordinate system based on all the maximum values before displaying the first line and drawing and displaying the second line based on all the minimum values, it also includes:
  • the performing smoothing processing on the first connecting line to obtain the first line includes:
  • the performing smoothing processing on the second connecting line to obtain the second line includes:
  • Smoothing is performed on the second connecting line to obtain a second smooth connecting line, and the part of the second smooth connecting line corresponding to the data missing period is replaced by a solid line with a dotted line to obtain the second line.
  • dotted lines are used to indicate the parts of the first line and the second line corresponding to the data missing period, so that the user can intuitively know which data observation periods have missing data values of physiological parameters to be measured.
  • the first area between the first line and the second line is filled with a preset color.
  • This embodiment can enable the user to intuitively observe the size of the area of the first area between the first line and the second line.
  • the filling the first area between the first line and the second line with a preset color includes:
  • the second preset color to fill the third area between the first line and the second line corresponding to the remaining data observation period; wherein, the remaining data observation period is excluding the data missing period During the remaining data observation period, the second area and the third area constitute the first area.
  • the areas between the first line and the second line corresponding to the data missing period and the data normal period are respectively filled with different colors, so that the user can intuitively know which data observation periods have data missing.
  • the method further includes:
  • the normal range is the range within which the data value of the physiological parameter to be measured should be in when the physiological condition reflected by the physiological parameter to be measured is in a normal state;
  • a third preset color is used to fill the non-overlapping part between the third area and the target area.
  • the data observation period corresponding to the non-overlapping part can be used to characterize the data observation period when the data value is not within the normal range. Therefore, by using the third preset color to fill the non-overlapping part, the user can intuitively or During which data observation period, there may be situations where the data value of the physiological parameter to be measured is not within the normal range.
  • the dividing the preset data collection period into multiple data observation periods includes:
  • a reference observation time period is determined according to the screen size, and the preset data collection period is divided into multiple data observation periods based on the reference observation time period.
  • different screen sizes are configured with reference observation durations that are compatible with them, specifically by configuring a longer reference observation duration for smaller screen sizes, so that the data values of physiological parameters to be measured are passed through a terminal device with a smaller screen.
  • the user can still clearly observe the changes in the data value of the physiological parameter to be measured in different data observation periods; by configuring a shorter baseline observation time for a larger screen size, the terminal device with a larger screen can be used Show more data observation periods, which can more accurately show the changes in the data values of the physiological parameters to be measured in different data observation periods.
  • an embodiment of the present application provides a terminal device, including:
  • the first obtaining unit is configured to obtain the data value of the physiological parameter to be measured collected within the preset data collection period;
  • a first determining unit configured to divide the preset data collection period into a plurality of data observation periods, and determine the maximum value, minimum value, and average value of the data value in each data observation period;
  • the first display unit is configured to draw and display a first line based on all the maximum values in a preset coordinate system, and draw and display a second line based on all the minimum values; the preset coordinate system takes the collection time as The horizontal axis uses the data value of the physiological parameter to be measured as the vertical axis.
  • an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the computer program, Realize the data display method as described in the first aspect above.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data display as described in the first aspect is realized. method.
  • embodiments of the present application provide a computer program product, which when the computer program product runs on a terminal device, causes the terminal device to execute the data display method described in any one of the above-mentioned first aspects.
  • the data display method divides the preset data collection period into multiple data observation periods, and determines the maximum, minimum, and average data values of physiological parameters to be measured in each data observation period. Value; then draw and display the first line based on all the maximum values in the preset coordinate system, and draw and display the second line based on all the minimum values, because each data observation period corresponds to between the first line and the second line.
  • the size of the area of the first area can intuitively reflect the overall size of the data value of the physiological parameter to be measured in the data observation period. Therefore, the user can observe the difference between the first line and the second line corresponding to different data observation periods.
  • the size of the area of the first region can intuitively know the changes of the data value of the physiological parameter to be measured in different data observation periods, that is, the embodiment of this application can intuitively show the user that the data value of the physiological parameter to be measured is in different data observations. Changes in time period.
  • FIG. 1 is a schematic diagram of an interaction process between a first terminal and a second terminal according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of the hardware structure of a terminal device to which a data display method provided by an embodiment of the present application is applicable;
  • Fig. 3 is a software structure block diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a data display method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of multiple data observation periods obtained by dividing a preset data collection period according to an embodiment of the present application
  • FIG. 6 is a schematic diagram of a drawing process of a first line and a second line provided by an embodiment of the present application
  • FIG. 7 is a specific schematic flowchart of S43 in a data display method provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another drawing process of the first line and the second line provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of a data display method provided by another embodiment of the present application.
  • FIG. 10 is a structural block diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a terminal device provided by another embodiment of the present application.
  • the term “if” can be construed as “when” or “once” or “in response to determination” or “in response to detecting “.
  • the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
  • the data display method provided in the embodiments of this application can be applied to a terminal device.
  • the terminal device may be the first terminal with the function of collecting physiological parameters to be measured, or it may not have the function of collecting physiological parameters to be measured, but has the function of data processing and data processing. Display function of the second terminal.
  • the first terminal may only have the data collection function; in other embodiments, the first terminal may have both the data processing function and the data processing function in addition to the physiological parameter collection function to be measured. Display function.
  • the physiological parameter to be measured can be determined according to the physiological condition of the human body to be analyzed. For example, if it is necessary to analyze the respiratory condition of the human body during sleep, the physiological parameter to be measured can be blood oxygen saturation that can reflect the respiratory condition of the human body. Spend.
  • the first terminal may include, but is not limited to, terminal devices such as wearable devices and portable medical devices.
  • the second terminal may include, but is not limited to, mobile phones, tablet computers, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (UMPCs) ), netbooks, personal digital assistants (personal digital assistants, PDAs), and other terminals.
  • AR augmented reality
  • VR virtual reality
  • PDAs personal digital assistants
  • the embodiments of this application do not impose any restrictions on the specific types of the first terminal and the second terminal.
  • the wearable device can also be a general term for using wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, Clothing and shoes, etc.
  • a wearable device is a portable device that is directly worn on the body or integrated into the user's clothes or accessories.
  • Wearable devices are not only a kind of hardware device, but also realize powerful functions through software support, data interaction, and cloud interaction.
  • wearable smart devices include full-featured, large-sized, complete or partial functions that can be implemented without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, and need to be used in conjunction with other devices such as smart phones. , Such as all kinds of smart bracelets and smart jewelry that can collect physiological data of the human body.
  • the first terminal with the function of collecting the physiological parameter to be measured corresponding to the physiological condition can be used to detect the physiological condition of the human body in the period of time.
  • the physiological parameters to be measured are collected.
  • the first terminal specifically collects the data value of the physiological parameter of the user through its built-in sensor for collecting the physiological parameter to be measured.
  • the first terminal may store all the data values of the physiological parameters to be measured that it has collected in a certain period of time in its memory.
  • the first terminal when it is necessary to display the change of the physiological parameter to be measured in a certain period of time through the first terminal that has both the data processing function and the data display function, the first terminal can directly obtain it from its memory. The data value of the physiological parameter to be measured collected during this period.
  • the second terminal and the first terminal may establish a communication connection, please refer to FIG. 1, FIG. Taking the first terminal as the wearable device 01 and the second terminal as the mobile phone 02 as an example, the interaction process between the first terminal and the second terminal is shown. As shown in FIG.
  • the first terminal can send the data values of the physiological parameters to be measured collected during this time period to the second terminal, and the second terminal can obtain the data of the physiological parameters to be measured collected during this time period. value.
  • the second terminal can establish a wireless communication connection with the first terminal, or the second terminal can also establish a wired communication connection with the first terminal. The embodiment of the application does not deal with the communication between the second terminal and the first terminal. Make any restrictions on the connection method.
  • the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , Display screen 194, subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 can include pressure sensor 180A, gyroscope sensor 180B, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light sensor 180L, bone Conduction sensor 180M and so on.
  • the sensor module 180 may also include a physiological parameter sensor to be measured for collecting a physiological parameter of the human body to be measured, for example, a blood oxygen saturation sensor 180C.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device 100.
  • the terminal device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • NPU neural-network processing unit
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the terminal device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the terminal device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the terminal device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transfer data between the terminal device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the terminal device 100.
  • the terminal device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the terminal device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the terminal device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and so on.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the terminal device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the terminal device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the terminal device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the terminal device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the terminal device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the terminal device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the terminal device 100 can be implemented, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the terminal device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the terminal device 100.
  • the storage data area can also store the data values of the physiological parameters to be measured in a certain period of time collected by the first terminal; when the terminal device 100 is the second terminal, the storage data area can also store the first terminal.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the terminal device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the terminal device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the terminal device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the terminal device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the terminal device 100 may be provided with at least one microphone 170C.
  • the terminal device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals.
  • the terminal device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the terminal device 100 determines the intensity of the pressure according to the change in capacitance.
  • the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the terminal device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the terminal device 100.
  • the angular velocity of the terminal device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the terminal device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the terminal device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the blood oxygen saturation sensor 180C can be used to measure the blood oxygen saturation in human blood.
  • the blood oxygen saturation sensor 180C is usually composed of two light-emitting tubes and a photoelectric tube.
  • One of the light-emitting tubes usually emits visible red light with a wavelength of 660nm, and the other light-emitting tube usually emits light with a wavelength between 920 and 950nm. Visible infrared light.
  • the magnetic sensor 180D includes a Hall sensor.
  • the terminal device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the terminal device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on.
  • the terminal device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the terminal device 100 emits infrared light to the outside through the light emitting diode.
  • the terminal device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100. When insufficient reflected light is detected, the terminal device 100 can determine that there is no object near the terminal device 100.
  • the terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the terminal device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the terminal device 100 when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid abnormal shutdown of the terminal device 100 due to low temperature.
  • the terminal device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the terminal device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the terminal device 100 may receive key input, and generate key signal input related to user settings and function control of the terminal device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the terminal device 100.
  • the terminal device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the terminal device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the terminal device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
  • the software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the terminal device 100 by way of example.
  • FIG. 3 is a software structure block diagram of a terminal device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, and so on.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the terminal device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • FIG. 4 is a schematic flowchart of a data display method provided by an embodiment of the present application.
  • the execution subject of the process may be the terminal device 100 shown in FIG. 2, as an example.
  • the terminal device may be the first terminal or the second terminal.
  • a data display method provided by this embodiment includes S41 to S43, which are described in detail as follows:
  • the preset data collection period is a pre-defined period for data collection of physiological parameters of the human body to be measured. Specifically, when it is necessary to analyze a certain physiological condition (ie physiological condition to be measured) of a certain user in a certain period of time, because it is necessary to collect the data value of the physiological parameter to be measured that can reflect the physiological condition to be measured in the period of time Therefore, this period can be defined as a preset data collection period.
  • the physiological parameter to be measured can be determined according to the physiological condition to be measured, and the start time and end time of the preset data collection period can be determined according to actual needs.
  • the user's breathing condition is the physiological condition to be measured.
  • the physiological parameter that can reflect the respiratory condition is the blood oxygen saturation of the human body
  • the physiological parameter to be measured is the blood oxygen saturation of the human body; because the data value of the user's blood oxygen saturation during sleep needs to be measured Collection, therefore, in this example, the preset data collection period is the user's sleep period.
  • the start time and end time of the preset data collection period can be determined according to the sleep period of the user to be tested, for example, if The sleep period of the user to be tested is 00:05-7:30, and the preset data collection period is also 00:05-7:30.
  • the data value of the physiological parameter to be measured within the preset data collection period can be collected through the first terminal with the function of collecting the physiological parameter to be measured.
  • the physiological parameter sensor to be measured in the first terminal usually will be based on the preset data collection time interval.
  • the data value of the parameter is collected.
  • the preset data collection time interval is usually determined according to actual needs.
  • the physiological parameter sensor to be measured collects the data value of the physiological parameter to be measured based on the preset data collection time interval, it usually first determines the preset data according to the start time of the preset data collection period and the preset data collection time interval.
  • the collection period includes multiple data collection moments, and when each data collection moment arrives, the data value of the physiological parameter to be measured is collected at the time, and then the data value of the physiological parameter to be measured at each data collection moment is obtained.
  • the start time of the preset data collection period is 00:05
  • the preset data collection time interval is a second
  • the data collection times included in the preset data collection period are from morning to night respectively: 00:05 , 00:05+a, 00:05+2a, ..., 00:05+n*a
  • the physiological parameter sensor to be measured will be 00:05, 00:05+a, 00:05+2a at the current time respectively ,..., 00:05+n*a
  • the data values of the physiological parameters to be measured are collected, and then the physiological parameters to be measured are respectively 00:05, 00:05+a, 00:05+2a, ..., Multiple data values at 00:05+n*a, etc., where n is determined according to the end time of the preset data collection period.
  • the preset data collection time interval is usually much shorter than the duration of the preset data collection period, multiple data values of the physiological parameter to be measured can be obtained within the preset data collection period, and each data value corresponds to For a data collection moment, the time interval between every two adjacent data collection moments is the preset data collection time interval. All the data values of the physiological parameters to be measured in the preset data collection period constitute a set of time series data.
  • the first terminal may store all the data values of the physiological parameter to be measured in the preset data collection period collected by the physiological parameter sensor to be measured in the memory of the first terminal.
  • the first terminal when the execution subject of the process is the first terminal, the first terminal can directly obtain the data value of the physiological parameter to be measured collected during the preset data collection period from its memory.
  • the second terminal when the execution subject of the process is the second terminal, the second terminal may first establish a communication connection with the first terminal, and then obtain from the memory of the first terminal within the preset data collection period The collected data value of the physiological parameter to be measured.
  • S42 Divide the preset data collection period into multiple data observation periods, and determine the maximum value, minimum value, and average value of the data value in each data observation period.
  • the terminal device After the terminal device obtains multiple data values of the physiological parameter to be measured in the preset data collection period, when displaying the changes of the physiological parameter to be measured in the preset data collection period based on the multiple data values, in order to enable the user to The change trend of the data value of the physiological parameter to be measured within the preset data collection period is intuitively and clearly observed, and the terminal device can divide the preset data collection period into multiple periodic data observation periods.
  • the duration of the data observation period can be set according to actual needs.
  • a reference observation duration can be predefined as the duration of the data observation period.
  • the terminal device may divide the preset data collection period into multiple data observation periods on average based on the pre-defined reference observation time period, and the time length of each data observation period obtained by the division is equal to the reference observation time period.
  • the terminal device when it divides the preset data collection period based on the reference observation time period, it may sequentially determine the start time and end time of each data observation period based on the start time of the preset data collection period and the reference observation time period, where , The start time of the first data observation period is the start time of the preset data collection period, the end time of the previous data observation period is the start time of the next data observation period, and the end time of the last data observation period is the preset data The end time of the collection period.
  • each data observation period obtained by the division includes multiple data collection moments, that is, each data observation period corresponds to the waiting time. Measure multiple data values of physiological parameters.
  • the reference observation period may be an integer multiple of the preset data collection time interval.
  • each divided data observation period includes a preset number of data collection moments, that is, every One data observation period corresponds to a preset number of data values of the physiological parameter to be measured, where the preset number is the ratio of the reference observation duration to the preset data collection time interval.
  • FIG. 5 is a schematic diagram of multiple data observation periods obtained by dividing the preset data collection period according to an embodiment of the present application. As shown in FIG. 5, if the preset data collection period starts The time is 00:30, and the end time of the preset data collection period is 07:30, that is, the duration of the preset data collection period is 7 hours. Assuming that the preset data collection interval is 0.01 second, and the reference observation time is 1 minute, then , The terminal device divides the preset data collection period based on the reference observation time length to obtain 420 data observation periods.
  • the first data observation period (data observation period 1) obtained by the division starts at 00:30, and the first data
  • the end time of the observation period (data observation period 1) is 00:31
  • the start time of the second data observation period (data observation period 2) is 00:31
  • the end of the second data observation period (data observation period 2) The time is 00:32, and so on
  • the start time of the last data observation period (data observation period N) is 07:29
  • Each divided data observation period contains 6000 data collection moments, that is, each data observation period corresponds to 6000 data values of physiological parameters to be measured.
  • each data observation period can use the data collection time corresponding to its start time as the included data collection time and end it The data collection time corresponding to the time is taken as the data collection time included in the next data observation period; or each data observation period can use the data collection time corresponding to its end time as the included data collection time, and the data collection time corresponding to its start time The time is regarded as the data collection time included in the last data observation period.
  • the terminal device divides the preset data collection period to obtain multiple data observation periods, it determines the maximum value and the minimum value among the data values of the physiological parameter to be measured in each data observation period, and calculates each data observation period. The average value of the data value of the physiological parameter to be measured in a data observation period.
  • the terminal device In order to improve the accuracy of the analysis of changes in the physiological parameters to be measured, the terminal device also detects abnormal data values in the data values after acquiring the data values of the physiological parameters to be measured in the preset data collection period.
  • the abnormal data value refers to the data value that is not within the reasonable range that the data value of the physiological parameter to be measured should be preset, and the reasonable range refers to the physiological condition of the human body to be measured under various possible conditions, and its corresponding physiological parameter to be measured.
  • the data value of the parameter should be in the range.
  • the blood oxygen saturation of the human body is usually greater than 95% under normal conditions; when the human body has mild hypoxemia, the arterial blood oxygen saturation of the human body The blood oxygen saturation of blood is usually less than 90%; when the human body has severe hypoxemia, the blood oxygen saturation of human arterial blood is usually less than 85%; but the blood oxygen saturation of human arterial blood is not lower than 70%. %.
  • the blood oxygen saturation of human arterial blood is lower than 70%, it can be considered that the value is an abnormal data value that cannot be measured from the human body. Therefore, the reasonable range of the blood oxygen saturation of human arterial blood can be Is greater than 70%.
  • the terminal device when the terminal device detects that a certain data value is not within a reasonable range that the data value of the physiological parameter to be measured should be within, it may mark the data value as an abnormal data value. Exemplarily, the terminal device may determine a value lower than 70% of the data value of blood oxygen saturation as an abnormal data value. After the terminal device determines the abnormal data value in the data value of the physiological parameter to be measured, it can eliminate the abnormal data value, and then determine the data value in each data observation period based on the remaining data value after the abnormal data value is eliminated. Maximum, minimum, and average.
  • the abnormal data values existing in the collected data values of the physiological parameters to be measured are eliminated, so that the remaining non-abnormal data values can accurately show the difference of the physiological parameters to be measured in the preset data collection period.
  • the true change of the data observation period improves the accuracy of analyzing the corresponding physiological conditions based on the physiological parameters to be measured.
  • the screen size of different terminal devices may be different, resulting in different lengths of the horizontal axis of the drawn preset coordinate system. Therefore, in order to ensure that the When data is displayed on the terminal device, the user can clearly observe the changes in the data value of the physiological parameter to be measured during different data observation periods, and can configure different benchmark observation time periods for different screen sizes.
  • the terminal device may store the corresponding relationship between the pre-configured screen size and the reference observation duration in its memory.
  • the screen size can be described by the length of the long side or the length of the short side of the screen.
  • S42 may specifically include the following steps:
  • a reference observation time period is determined according to the screen size, and the preset data collection period is divided into multiple data observation periods based on the reference observation time period.
  • the target terminal refers to the terminal device currently executing the data display method.
  • the screen size of the terminal device may be pre-stored in the memory of the terminal device, and the terminal device may obtain its screen size and the corresponding relationship between the pre-configured screen size and the reference observation duration from the memory.
  • the terminal device After the terminal device obtains its screen size and the corresponding relationship between the pre-configured screen size and the reference observation duration, based on the corresponding relationship between the pre-configured screen size and the reference observation duration, it determines the reference observation duration corresponding to its screen size , And then divide the preset data collection period into multiple data observation periods based on the reference observation time length.
  • different screen sizes are configured with reference observation durations that are compatible with them, specifically by configuring a longer reference observation duration for smaller screen sizes, so that the data values of physiological parameters to be measured are passed through a terminal device with a smaller screen.
  • the user can still clearly observe the changes in the data value of the physiological parameter to be measured in different data observation periods; by configuring a shorter baseline observation time for a larger screen size, the terminal device with a larger screen can be used Show more data observation periods, which can more accurately show the changes in the data values of the physiological parameters to be measured in different data observation periods.
  • S43 Draw and display a first line based on all the maximum values in a preset coordinate system, and draw and display a second line based on all the minimum values;
  • the data value of the physiological parameter to be measured is the vertical axis.
  • the collection time of the physiological parameters to be measured can be taken as the horizontal axis, Taking the data value of the physiological parameter to be measured as the vertical axis, draw a plane rectangular coordinate system, and the plane rectangular coordinate system is the preset coordinate system.
  • the terminal device may first determine the scales of the horizontal axis and the vertical axis of the preset coordinate system.
  • the terminal device may use the start time of the preset data collection period as the origin of the horizontal axis, and the end time of the preset data collection period as the maximum value of the collection time range corresponding to the horizontal axis.
  • the line segment between the origin of the horizontal axis and the maximum value of the collection time range is divided into N sub-line segments, and each sub-line segment corresponds to the preset data collection period
  • the collection time corresponding to the starting point of each sub-line segment is the start time of the data observation period corresponding to the sub-line segment
  • the collection time corresponding to the end point of each sub-line segment is the end of the data observation period corresponding to the sub-line segment time.
  • the terminal device can use the value 0 as the origin of the vertical axis, and based on the maximum value of all the data values of the physiological parameter to be measured in the preset data collection period Determine the maximum value of the data value range corresponding to the vertical axis.
  • the terminal device can take any value greater than the maximum value of all the data values of the physiological parameter to be measured in the preset data collection period as the data value corresponding to the vertical axis. The maximum value of the range.
  • the terminal device can also determine the origin of the vertical axis based on the minimum value of all the data values of the physiological parameter to be measured in the preset data collection period. Set the minimum value of all the data values of the physiological parameters to be measured in the data collection period as the origin of the vertical axis.
  • FIG. 6 is a schematic diagram of a drawing process of a first line and a second line provided by an embodiment of the present application.
  • the terminal device can use 00:30 as the origin of the horizontal axis and 7:30 as the origin of the horizontal axis.
  • 420 data observation periods can be included between the origin of the horizontal axis and the maximum value of the acquisition time range corresponding to the horizontal axis, where the start time of the first data observation period is 00: 30.
  • the end time of the first data observation period is 00:31
  • the start time of the second data observation period is 00:31
  • the end time of the second data observation period is 00:32
  • the last one The start time of the data observation period is 07:29
  • the end time of the last data observation period is 07:30.
  • the terminal device can choose a value less than 80, for example, 70 is the origin of the vertical axis, and it can be more than 95.
  • a numerical value of, for example 100 is the maximum value of the data value range corresponding to the vertical axis.
  • the terminal device may specifically draw the first line and the second line through S431 to S433 as shown in FIG. 7, which are described in detail as follows:
  • S431 Determine the first coordinate point of each maximum value in the preset coordinate system, and determine the second coordinate point of each minimum value in the preset coordinate system.
  • the terminal device after determining the scales of the horizontal axis and the vertical axis, determines the first coordinate point in the preset coordinate system of the maximum value of the physiological parameter to be measured corresponding to each data observation period, and determines each The minimum value of the physiological parameter to be measured corresponding to the data observation period is the second coordinate point in the preset coordinate system.
  • the first coordinate points of the maximum value of the physiological parameter to be measured corresponding to each data observation period determined by the terminal device in the preset coordinate system may be 11 and 12, respectively.
  • the second coordinate points of the minimum value of the physiological parameter to be measured corresponding to each data observation period determined by the terminal device in the preset coordinate system may be 21, 22, 23, 24, 25,..., 2n, etc., where n is the number of data observation periods to be measured included in the preset data collection period.
  • the dashed line perpendicular to the horizontal or vertical axis in the preset coordinate system is only a marking line displayed for the convenience of the user to observe. In other embodiments, the terminal device may not Show these markings.
  • S432 Connect all the first coordinate points in sequence in a preset order through a solid line to obtain a first connecting line, and perform smoothing processing on the first connecting line to obtain the first line;
  • the preset order is The sequence of the collection time from early to late, or the sequence of the collection time from late to early.
  • S433 Connect all the second coordinate points sequentially in the preset order through a solid line to obtain a second connecting line, and perform smoothing processing on the second connecting line to obtain the second line.
  • the terminal device determines the first coordinate point in the preset coordinate system of the maximum value of the physiological parameter to be measured corresponding to each data observation period, and determines the physiological parameter to be measured corresponding to each data observation period.
  • all the first coordinate points can be connected in sequence in a preset order through a solid line to obtain the first connecting line b1 ;
  • the preset sequence may be the sequence from early to late at the time of data collection, or the sequence from late to early at the time of data collection, which is not limited here.
  • the terminal device after the terminal device obtains the first connection line and the second connection line, it can perform smoothing processing on both the first connection line and the second connection line to obtain the first line respectively. c1 and the second line c2.
  • the terminal device may perform smoothing processing on the first connecting line and the second connecting line based on a cubic B-spline curve fitting algorithm.
  • the terminal device may also use other line smoothing algorithms to smooth the first connecting line and the second connecting line, which is not limited here.
  • the size of the area of the first area between the first line and the second line corresponding to each data observation period It can represent the overall size of the physiological parameter to be measured in the data observation period.
  • the larger the area of the first area between the first line and the second line it indicates that the data observation period is The greater the change in the overall data value of the physiological parameter to be measured; corresponding to a certain data observation period, the smaller the area of the first area between the first line and the second line, indicating the overall physiological parameter to be measured in the data observation period The smaller the change in the data value.
  • the data display method divides the preset data collection period into multiple data observation periods, and determines the maximum, minimum, and average data values of physiological parameters to be measured in each data observation period. Value; then draw and display the first line based on all the maximum values in the preset coordinate system, and draw and display the second line based on all the minimum values, because each data observation period corresponds to between the first line and the second line.
  • the size of the area of the first area can intuitively reflect the overall size of the data value of the physiological parameter to be measured in the data observation period. Therefore, the user can observe the difference between the first line and the second line corresponding to different data observation periods.
  • the size of the area of the first region can intuitively know the changes of the data value of the physiological parameter to be measured in different data observation periods, that is, the embodiment of this application can intuitively show the user that the data value of the physiological parameter to be measured is in different data observations. Changes in time period.
  • the sensor may not collect the data value of the physiological parameter to be measured at some data collection moments, that is, the data value of the physiological parameter to be measured at some data collection moments. It may be empty, which may result in missing data values of physiological parameters to be measured in the data observation period corresponding to these data collection moments. Therefore, in a preferred embodiment of the present application, before the first line and the second line are drawn, the data display method It can also include the following steps:
  • the data observation period in which the data value is missing is marked as a data missing period.
  • the terminal device can detect whether the data value is missing in each data observation period by detecting whether there is a corresponding physiological parameter data value at each data collection time included in each data observation period. .
  • the terminal device may consider that there is no corresponding physiological parameter data value in a certain data observation period when it detects that all the data collection moments included in a certain data observation period do not have the corresponding physiological parameter data value. Describe the situation where the data value is missing. In another possible implementation manner of this implementation, the terminal device may consider that there is no corresponding physiological parameter data value in a certain data observation period when it detects that at least one data collection time in a certain data observation period does not have the corresponding physiological parameter data value. Describe the situation where the data value is missing.
  • the terminal device may mark the data observation period in which the data value is missing as a data missing period.
  • performing smoothing processing on the first connecting line in S432 to obtain the first line may specifically include:
  • Smoothing is performed on the first connecting line to obtain a first smooth connecting line, and the part of the first smooth connecting line corresponding to the data missing period is replaced by a solid line with a dotted line to obtain the first line.
  • Performing smoothing processing on the second connecting line in S433 to obtain the second line may specifically include:
  • the terminal device may perform smoothing processing on the first connecting line to obtain the first smooth line.
  • the part of the smooth line that corresponds to the period of data missing is replaced by a solid line with a dashed line.
  • the terminal device may replace the portion of the second smooth line corresponding to the data missing period from the solid line to the dashed line.
  • FIG. 8 is a schematic diagram of another drawing process of the first line and the second line provided by an embodiment of the present application.
  • the terminal device can replace the part corresponding to the data observation period in the first smooth line from the actual data observation period.
  • the line is replaced with a dashed line to obtain a first line a1
  • the part corresponding to the data observation period in the second smooth line is replaced with a dashed line to obtain a second line a2.
  • dotted lines are used to indicate the parts of the first line and the second line corresponding to the data missing period, so that the user can intuitively know which data observation periods have missing data values of physiological parameters to be measured.
  • the first area between the first line and the second line may be filled with a preset color.
  • the preset color can be set according to actual needs.
  • the terminal device may fill the first area between the first line and the second line through the following steps:
  • the second preset color to fill the third area between the first line and the second line corresponding to the remaining data observation period; wherein, the remaining data observation period is excluding the data missing period During the remaining data observation period, the second area and the third area constitute the first area.
  • the first preset color and the second preset color are different colors, and the first preset color and the second preset color can also be set according to actual requirements.
  • the terminal device can fill 00:34 to 00 with the first preset color: 35
  • This data observation period corresponds to the second area A2 between the first line and the second line; the terminal device can also fill in the second preset color in addition to the data observation period of 00:34 ⁇ 00:35
  • the remaining data observation period corresponds to the third area between the first line and the second line, specifically including the area A31 between the first line and the second line corresponding to the period from 00:30 to 00:34, And corresponding to the period from 00:35 to 07:30, the area A32 between the first line and the second line.
  • the areas between the first line and the second line corresponding to the data missing period and the data normal period are respectively filled with different colors, so that the user can intuitively know which data observation periods have data missing.
  • the normal range refers to the range within which the data value of the physiological parameter to be measured should be in when the physiological condition of the human body reflected by the physiological parameter to be measured is normal.
  • the blood oxygen saturation of the human body is usually greater than 95% under normal conditions; when the human body has mild hypoxemia, the arterial blood oxygen saturation of the human body The blood oxygen saturation of blood is usually less than 90%; when the human body has severe hypoxemia, the blood oxygen saturation of human arterial blood is usually less than 85%; therefore, the normal range of human arterial blood oxygen saturation can be greater than 90%.
  • the terminal device in order to alert the user when the physiological condition to be measured reflected by the physiological parameter to be measured is abnormal, uses the second preset color to fill the remaining data observation in this embodiment.
  • the terminal device may further include S91 to S93 as shown in FIG. 9, which are described in detail as follows:
  • the normal range is the range within which the data value of the physiological parameter to be measured should be in when the physiological condition reflected by the physiological parameter to be measured is in a normal state.
  • the normal range within which the data value of the physiological parameter to be measured should lie usually contains one boundary value or two boundary values. Exemplarily, assuming that the data value of the physiological parameter to be measured should be greater than 90% of the normal range, then the normal range only contains a boundary value, which is 90%; assuming that the data value of the physiological parameter to be measured should be within The normal range is greater than 90% and less than 100%, then the normal range includes two boundary values, 90% and 100% respectively.
  • the terminal The device can determine the area where all the points with the ordinate greater than the boundary value in the preset coordinate system are located as the target area corresponding to the normal range in which the data value of the physiological parameter to be measured should be.
  • the terminal The device can determine the area where all the points with the ordinate less than the boundary value in the preset coordinate system are located as the target area corresponding to the normal range in which the data value of the physiological parameter to be measured should be.
  • the terminal device may determine the area where all the points of the ordinate in the preset coordinate system are between the first boundary value and the second boundary value as the physiological parameter to be measured The data value should be in the target area corresponding to the normal range.
  • the terminal device when the normal range that the physiological parameter to be measured should be in includes two boundary values, and the normal range requires the data value of the physiological parameter to be measured to be smaller than the second smaller value.
  • the terminal device can place all points in the preset coordinate system with ordinates less than the second boundary value in the area, and all points with ordinates greater than the first boundary value in the preset coordinate system.
  • the area is determined as the target area corresponding to the normal range in which the data value of the physiological parameter to be measured should be in.
  • the terminal device determines the normal range in which the data value of the physiological parameter to be measured should be in the target area corresponding to the preset coordinate system, it determines that the third area and the data value of the physiological parameter to be measured should be in the normal range.
  • the non-overlapping part between the target areas corresponding to the range is filled with a third preset color to fill the non-overlapping part between the third area and the target area corresponding to the normal range.
  • the third preset color is different from the first preset color and the second preset color.
  • the data observation period corresponding to the non-overlapping part can be used to characterize the data observation period when the data value is not within the normal range. Therefore, by using the third preset color to fill the non-overlapping part, the user can intuitively or During which data observation period, there may be situations where the data value of the physiological parameter to be measured is not within the normal range.
  • the data display method may further include the following steps:
  • the user can obtain the maximum, minimum, and/or data values in each data observation period by operating on the data observation period on the horizontal axis. Or average.
  • the input device of the terminal device includes a mouse
  • the user can move the cursor of the mouse on the horizontal axis, so that the cursor of the mouse stays on each data on the horizontal axis.
  • Observation period to know the maximum, minimum, and/or average value of the data value in each data observation period; in another possible way of this embodiment, when the terminal device supports touch input, the user can also directly use a finger Touch each data observation period on the horizontal axis to obtain the maximum, minimum, and/or average value of the data value in each data observation period.
  • the terminal device when it detects the user's operation on a certain data observation period on the horizontal axis, it can display an indicator line perpendicular to the horizontal axis at the position operated by the user, and based on the data observation period operated by the user
  • the maximum value, minimum value and average value of the data value respectively display the corresponding indication points of the maximum value, minimum value and/or average value at the corresponding position on the indication line, and the maximum value of the data value represented by each indication point , Minimum and/or average value.
  • the terminal device when the user holds the cursor 81 of the mouse in the data observation period of 00:33 to 00:34 on the horizontal axis, the terminal device can hold the cursor 81 An indicator line 82 perpendicular to the horizontal axis is displayed at the position.
  • the terminal equipment You can display the indication points 821, 823, and 822 corresponding to the maximum, minimum, and average values of the data value during the observation period of the data on the position of the vertical axis on the indicator line at 97.5, 91, and 95 respectively.
  • the terminal The device can also display the maximum, minimum, and average values of the data values represented by the indicator points 821, 823, and 822 in the form of a display frame 83.
  • the user can make the terminal device display the maximum, minimum, and/or average value of the physiological parameter to be measured in different data observation periods by operating on different data observation periods.
  • the user can By comparing the maximum value, minimum value and/or average value of the physiological parameter to be measured in different data observation periods, the changes of the data value of the physiological parameter to be measured in different data observation periods can be intuitively obtained, that is, the embodiment of the present application By means of numerical display, it is possible to more intuitively show the user the changes in the data values of the physiological parameters to be measured during different data observation periods.
  • FIG. 10 shows a structural block diagram of a terminal device provided by an embodiment of the present application.
  • Each unit included in the terminal device is used to perform each step in the foregoing embodiment. Please refer to the related descriptions in the foregoing embodiments. For ease of description, only the parts related to the embodiments of the present application are shown.
  • the terminal device may be a wearable device, or a mobile terminal such as a mobile phone or a tablet computer.
  • the terminal device 100 includes a first obtaining unit 101, a first determining unit 102, and a first display unit 103. in:
  • the first acquiring unit 101 is configured to acquire the data value of the physiological parameter to be measured collected within the preset data collection period.
  • the first determining unit 102 is configured to divide the preset data collection period into a plurality of data observation periods, and determine the maximum value, the minimum value, and the average value of the data value in each data observation period.
  • the first display unit 103 is configured to draw and display a first line based on all the maximum values in a preset coordinate system, and draw and display a second line based on all the minimum values; the preset coordinate system takes the collection time as The horizontal axis uses the data value of the physiological parameter to be measured as the vertical axis.
  • the terminal device 100 further includes a second display unit.
  • the second display unit is used to display the maximum, minimum and/or average value.
  • the first display unit 103 may include a coordinate point determination unit, a first line drawing unit, and a second line drawing unit. in:
  • the coordinate point determining unit is used to determine the first coordinate point of each of the maximum value in the preset coordinate system, and determine the second coordinate point of each of the minimum value in the preset coordinate system.
  • the first line drawing unit is configured to sequentially connect all the first coordinate points in a preset order through a solid line to obtain a first connecting line, and perform smoothing processing on the first connecting line to obtain the first line;
  • the preset sequence is the sequence from early to late for the collection time, or the sequence from late to early for the collection time.
  • the second line drawing unit is configured to sequentially connect all the second coordinate points in the preset order through a solid line to obtain a second connecting line, and perform smoothing processing on the second connecting line to obtain the second line .
  • the terminal device 100 may also include a first detection unit and a first marking unit. in:
  • the first detection unit is used to detect whether the data value is missing in each data observation period.
  • the first marking unit is used to mark the data observation period in which the data value is missing as a data missing period.
  • the first line drawing unit is specifically configured to perform smoothing processing on the first connection line to obtain a first smooth connection line, and divide the portion corresponding to the data missing period in the first smooth connection line by a solid line Replace with a dashed line to obtain the first line.
  • the second line drawing unit is specifically configured to perform smoothing processing on the second connection line to obtain a second smooth connection line, and replace the portion of the second smooth connection line corresponding to the data missing period from a solid line to a dashed line , To obtain the second line.
  • the terminal device 100 may also include a color filling unit.
  • the color filling unit is used to fill the first area between the first line and the second line with a preset color.
  • the color filling unit may specifically include a first color filling unit and a second color filling unit. in:
  • the first color filling unit is configured to use a first preset color to fill the second area between the first line and the second line corresponding to the data missing period.
  • the second color filling unit is used to fill the third area between the first line and the second line corresponding to the remaining data observation period with a second preset color; wherein, the remaining data observation period is except for the remaining data observation period.
  • the second area and the third area constitute the first area.
  • the color filling unit may also include a second acquiring unit, a second determining unit, and a third color filling unit. in:
  • the second acquiring unit is used to acquire the boundary value included in the preset normal range; the normal range is when the physiological condition reflected by the physiological parameter to be measured is in a normal state, the data value of the physiological parameter to be measured should be Scope.
  • the second determining unit is configured to determine the target area corresponding to the normal range in the preset coordinate system based on the boundary value.
  • the third color filling unit is configured to use a third preset color to fill the non-overlapping part between the third area and the target area.
  • the first determining unit may specifically include: a third acquiring unit and a time period dividing unit. in:
  • the third acquiring unit is used to acquire the screen size of the target terminal for displaying the data value.
  • the time period division unit is configured to determine a reference observation time period according to the screen size, and divide the preset data collection time period into multiple data observation time periods based on the reference observation time period.
  • the terminal device provided by the embodiment of the present application divides the preset data collection period into multiple data observation periods, and determines the maximum value and the maximum value of the physiological parameter to be measured in each data observation period. Minimum value and average value; then draw and display the first line based on all the maximum values in the preset coordinate system, and draw and display the second line based on all the minimum values. Because each data observation period corresponds to the first line and the first line The area of the first area between the two lines can intuitively reflect the overall size of the data value of the physiological parameter to be measured in the data observation period. Therefore, the user can observe the first line and the second line corresponding to the different data observation period.
  • the size of the area of the first area between the lines can intuitively know the changes of the data value of the physiological parameter to be measured in different data observation periods, that is, the embodiment of the present application can intuitively display the data value of the physiological parameter to be measured to the user Changes in different data observation periods.
  • FIG. 11 is a schematic structural diagram of a terminal device according to another embodiment of the present application.
  • the terminal device 100 of this embodiment includes: at least one processor 140 (only one is shown in FIG. 11), a processor, a memory 141, and a processor stored in the memory 141 and capable of being processed in the at least one processor.
  • the terminal device 100 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, a processor 140 and a memory 141.
  • FIG. 11 is only an example of the terminal device 100 and does not constitute a limitation on the terminal device 100. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. , For example, can also include input and output devices, network access devices, and so on.
  • the so-called processor 140 may be a central processing unit (Central Processing Unit, CPU), and the processor 140 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and application specific integrated circuits (Application Specific Integrated Circuits). , ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 141 may be an internal storage unit of the terminal device 100, for example, a hard disk or a memory of the terminal device 100.
  • the memory 141 may also be an external storage device of the terminal device 100, such as a plug-in hard disk, a smart media card (SMC), and a secure digital device equipped on the terminal device 100. (Secure Digital, SD) card, Flash Card, etc.
  • the memory 141 may also include both an internal storage unit of the terminal device 100 and an external storage device.
  • the memory 141 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program.
  • the memory 141 can also be used to temporarily store data that has been output or will be output.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned data display method can be realized.
  • the embodiments of the present application provide a computer program product.
  • the steps in the above data display method can be realized when the mobile terminal is executed.
  • 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.
  • the computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium.
  • ROM read-only memory
  • RAM random access memory
  • electric carrier signal telecommunications signal and software distribution medium.
  • U disk mobile hard disk, floppy disk or CD-ROM, etc.
  • computer-readable media cannot be electrical carrier signals and telecommunication signals.
  • the disclosed apparatus/network equipment and method may be implemented in other ways.
  • the device/network device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
  • components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be separately on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

Abstract

A data presentation method, a terminal device, and a storage medium, applicable to the technical field of terminals. The data presentation method comprises: obtaining data values of physiological parameters to be measured collected in a preset data collection period (S41); dividing the preset data collection period into a plurality of data observation periods, and determining the maximum, minimum and average values of the data values in each data observation period (S42); and drawing and displaying a first line in a preset coordinate system based on all the maximum values, and drawing and displaying a second line based on all the minimum values (S43). The data presentation method can intuitively present the change situations of said physiological parameters in different data observation periods of the present data collection period to a user.

Description

数据展示方法、终端设备及存储介质Data display method, terminal equipment and storage medium
本申请要求于2020年02月19日提交国家知识产权局、申请号为202010102583.4、申请名称为“数据展示方法、终端设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on February 19, 2020, the application number is 202010102583.4, and the application name is "data display method, terminal equipment and storage medium", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请属于终端技术领域,尤其涉及一种数据展示方法、终端设备及存储介质。This application belongs to the field of terminal technology, and in particular relates to a data display method, terminal device and storage medium.
背景技术Background technique
随着人们健康饮食的不断增强,人们对其各项生理状况的检测需求也越来越大。通常,可以通过能够反映人体各项生理状况的生理参数,来分析人体的各项生理状况。例如,可以通过能够反映人体呼吸状况的血氧饱和度,来分析人体在睡眠过程中的呼吸状况。With the continuous improvement of people's healthy diet, people's demand for testing their various physiological conditions is also increasing. Generally, the various physiological conditions of the human body can be analyzed through physiological parameters that can reflect various physiological conditions of the human body. For example, the blood oxygen saturation that can reflect the respiratory condition of the human body can be used to analyze the respiratory condition of the human body during sleep.
为了方便用户了解某时段内人体的某个生理参数的变化情况,现有技术在获取到该时段内该生理参数的数据值后,通常会以采集时间为横轴,以生理参数的数据值为纵轴建立直角坐标系,并在坐标系中基于获取到的该生理参数的所有数据值,直接绘制得到该生理参数在该时段内的变化趋势图。而在基于某时段内人体的某个生理参数的变化趋势对其对应的生理状况进行观测和分析时,为了提高分析的准确性,通常会以包含多个数据采集时刻的一周期性时间段作为单位观测时段,通过分析生理参数在不同单位观测时段的变化情况,来确定其对应的生理状况的变化情况。In order to facilitate the user to understand the change of a certain physiological parameter of the human body during a certain period of time, after acquiring the data value of the physiological parameter in the period of time, the prior art usually uses the acquisition time as the horizontal axis and the data value of the physiological parameter. The vertical axis establishes a rectangular coordinate system, and in the coordinate system, based on all the acquired data values of the physiological parameter, the change trend graph of the physiological parameter in the period is directly drawn. When observing and analyzing the corresponding physiological condition based on the change trend of a certain physiological parameter of the human body in a certain period of time, in order to improve the accuracy of the analysis, a periodic time period containing multiple data collection moments is usually taken as Unit observation period, by analyzing the changes of physiological parameters in different unit observation periods, to determine the corresponding changes in physiological conditions.
然而,基于上述绘图方法绘制出的变化趋势图只能向用户展示某个生理参数在某时段内的不同数据采集时刻的变化情况,而无法向用户直观地展示出某个生理参数在某时段内的不同数据观测时段的变化情况。However, the change trend graph drawn based on the above drawing method can only show the user the change of a certain physiological parameter in a certain period of time at different data collection moments, but cannot directly show the user a certain physiological parameter in a certain period of time. The changes in different data observation periods.
发明内容Summary of the invention
本申请实施例提供了一种数据展示方法、终端设备及存储介质,能够直观地展示出待测生理参数在预设数据采集时段内的不同数据观测时段的变化情况。The embodiments of the present application provide a data display method, terminal device, and storage medium, which can intuitively display the changes of physiological parameters to be measured during different data observation periods within a preset data collection period.
第一方面,本申请实施例提供了一种数据展示方法,包括:In the first aspect, an embodiment of the present application provides a data display method, including:
获取在预设数据采集时段内采集到的待测生理参数的数据值;Obtain the data value of the physiological parameter to be measured collected during the preset data collection period;
将所述预设数据采集时段划分为多个数据观测时段,并确定每个所述数据观测时段内所述数据值的最大值、最小值以及平均值;Dividing the preset data collection period into a plurality of data observation periods, and determining the maximum value, the minimum value, and the average value of the data value in each data observation period;
在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条;所述预设坐标系以采集时间为横轴,以所述待测生理参数的数据值为纵轴。The first line is drawn and displayed based on all the maximum values in the preset coordinate system, and the second line is drawn and displayed based on all the minimum values; The data value of the measured physiological parameter is the vertical axis.
示例性的,在获取到预设数据采集时段内采集到的待测生理参数的数据值之后,在确定每个所述数据观测时段内所述数据值的最大值、最小值以及平均值之前,还包括:Exemplarily, after acquiring the data value of the physiological parameter to be measured collected during the preset data collection period, before determining the maximum value, minimum value, and average value of the data value in each data observation period, Also includes:
对所述数据值中的异常数据值进行检测;Detecting abnormal data values among the data values;
在检测到某个数据值未在所述待测生理参数的数据值应在的合理范围内时,将该数据值标记为异常数据值,并从所述数据值中剔除所述异常数据值。When it is detected that a certain data value is not within a reasonable range that the data value of the physiological parameter to be measured should be within a reasonable range, the data value is marked as an abnormal data value, and the abnormal data value is eliminated from the data value.
相应的,所述确定每个所述数据观测时段内所述数据值的最大值、最小值以及平均值,包括:Correspondingly, the determining the maximum value, the minimum value and the average value of the data value in each data observation period includes:
基于剔除了所述异常数据值之后剩余的所述数据值,确定每个所述数据观测时段内所述数据值的最大值、最小值以及平均值。Based on the data value remaining after the abnormal data value is eliminated, the maximum value, the minimum value and the average value of the data value in each data observation period are determined.
本实施例通过对采集到的待测生理参数的数据值中存在的异常数据值进行剔除,从而能够通过剩余的非异常数据值,准确地展示出待测生理参数在预设数据采集时段的不同数据观测时段的真实变化情况,提高了基于待测生理参数对其对应的生理状况进行分析时的准确性。In this embodiment, the abnormal data values existing in the collected data values of the physiological parameters to be measured are eliminated, so that the remaining non-abnormal data values can accurately show the difference of the physiological parameters to be measured in the preset data collection period. The true change of the data observation period improves the accuracy of analyzing the corresponding physiological conditions based on the physiological parameters to be measured.
在第一方面的一种可能的实现方式中,在所述在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条之后,还包括:In a possible implementation of the first aspect, after the first line is drawn and displayed based on all the maximum values in the preset coordinate system, and the second line is drawn and displayed based on all the minimum values, Also includes:
当检测到对所述横轴上的任一所述数据观测时段的操作时,显示所操作的数据观测时段内的所述最大值、所述最小值和/或所述平均值。When an operation on any of the data observation period on the horizontal axis is detected, the maximum value, the minimum value and/or the average value in the operated data observation period are displayed.
本实施例中,用户可以通过对不同的数据观测时段进行操作来使终端设备显示不同的数据观测时段内待测生理参数的数据值的最大值、最小值和/或平均值,这样,用户可以通过对比不同数据观测时段内待测生理参数的数据值的最大值、最小值和/或平均值,直观地获知待测生理参数的数据值在不同数据观测时段的变化情况,即本申请实施例通过数值显示的方式,能够更加直观地向用户展示出待测生理参数的数据值在不同数据观测时段的变化情况。In this embodiment, the user can make the terminal device display the maximum, minimum, and/or average value of the physiological parameter to be measured in different data observation periods by operating on different data observation periods. In this way, the user can By comparing the maximum value, minimum value and/or average value of the physiological parameter to be measured in different data observation periods, the changes of the data value of the physiological parameter to be measured in different data observation periods can be intuitively obtained, that is, the embodiment of the present application By means of numerical display, it is possible to more intuitively show the user the changes in the data values of the physiological parameters to be measured during different data observation periods.
在第一方面的一种可能的实现方式中,所述在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条,包括:In a possible implementation of the first aspect, the drawing and displaying the first line based on all the maximum values in the preset coordinate system and the drawing and displaying the second line based on all the minimum values include:
确定各个所述最大值在所述预设坐标系中的第一坐标点,以及确定各个所述最小值在所述预设坐标系中的第二坐标点;Determining the first coordinate point of each of the maximum value in the preset coordinate system, and determining the second coordinate point of each of the minimum value in the preset coordinate system;
通过实线按照预设顺序依次连接所有所述第一坐标点,得到第一连接线,并对所述第一连接线进行平滑处理,得到所述第一线条;所述预设顺序为所述采集时间由早到晚的顺序,或所述采集时间由晚到早的顺序;All the first coordinate points are sequentially connected in a preset order through a solid line to obtain a first connecting line, and the first connecting line is smoothed to obtain the first line; the preset order is the The sequence of the collection time from early to late, or the sequence of the collection time from late to early;
通过实线按照所述预设顺序依次连接所有所述第二坐标点,得到第二连接线,并对所述第二连接线进行平滑处理,得到所述第二线条。All the second coordinate points are sequentially connected by a solid line in the preset order to obtain a second connecting line, and the second connecting line is smoothed to obtain the second line.
在第一方面的一种可能的实现方式中,在所述将所述预设数据采集时段划分为多个数据观测时段之后,在所述在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条之前,还包括:In a possible implementation of the first aspect, after the preset data collection period is divided into a plurality of data observation periods, in the preset coordinate system based on all the maximum values Before displaying the first line and drawing and displaying the second line based on all the minimum values, it also includes:
检测各个所述数据观测时段是否存在所述数据值缺失的情况;Detecting whether the data value is missing in each of the data observation periods;
将存在所述数据值缺失的情况的所述数据观测时段标记为数据缺失时段;Mark the data observation period in which the data value is missing as a data missing period;
相应的,所述对所述第一连接线进行平滑处理,得到所述第一线条,包括:Correspondingly, the performing smoothing processing on the first connecting line to obtain the first line includes:
对所述第一连接线进行平滑处理,得到第一平滑连接线,并将所述第一平滑连接线中所述数据缺失时段对应的部分由实线替换为虚线,得到所述第一线条;以及Performing smoothing processing on the first connecting line to obtain a first smooth connecting line, and replacing a portion of the first smooth connecting line corresponding to the data missing period with a dashed line from a solid line to obtain the first line; as well as
所述对所述第二连接线进行平滑处理,得到所述第二线条,包括:The performing smoothing processing on the second connecting line to obtain the second line includes:
对所述第二连接线进行平滑处理,得到第二平滑连接线,并将所述第二平滑连接 线中所述数据缺失时段对应的部分由实线替换为虚线,得到所述第二线条。Smoothing is performed on the second connecting line to obtain a second smooth connecting line, and the part of the second smooth connecting line corresponding to the data missing period is replaced by a solid line with a dotted line to obtain the second line.
在本实施例中,通过虚线来表示第一线条和第二线条中数据缺失时段对应的部分,从而使用户可以直观地获知哪些数据观测时段的待测生理参数的数据值存在缺失的情况。In this embodiment, dotted lines are used to indicate the parts of the first line and the second line corresponding to the data missing period, so that the user can intuitively know which data observation periods have missing data values of physiological parameters to be measured.
在第一方面的一种可能的实现方式中,在所述在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条之后,还包括:In a possible implementation of the first aspect, after the first line is drawn and displayed based on all the maximum values in the preset coordinate system, and the second line is drawn and displayed based on all the minimum values, Also includes:
采用预设颜色填充所述第一线条与所述第二线条之间的第一区域。The first area between the first line and the second line is filled with a preset color.
本实施例可以使用户直观地观测出第一线条与第二线条之间的第一区域的面积的大小。This embodiment can enable the user to intuitively observe the size of the area of the first area between the first line and the second line.
在第一方面的一种可能的实现方式中,所述采用预设颜色填充所述第一线条与所述第二线条之间的第一区域,包括:In a possible implementation of the first aspect, the filling the first area between the first line and the second line with a preset color includes:
采用第一预设颜色填充所述数据缺失时段对应的,所述第一线条与所述第二线条之间的第二区域;Using a first preset color to fill the second area between the first line and the second line corresponding to the data missing period;
采用第二预设颜色填充剩余数据观测时段对应的,所述第一线条与所述第二线条之间的第三区域;其中,所述剩余数据观测时段为除了所述数据缺失时段之外的其余数据观测时段,所述第二区域与所述第三区域构成所述第一区域。Use the second preset color to fill the third area between the first line and the second line corresponding to the remaining data observation period; wherein, the remaining data observation period is excluding the data missing period During the remaining data observation period, the second area and the third area constitute the first area.
本实施例分别通过不同的颜色填充数据缺失时段和数据正常时段各自对应的,第一线条与第二线条之间的区域,从而使用户可以直观地获知哪些数据观测时段存在数据缺失的情况。In this embodiment, the areas between the first line and the second line corresponding to the data missing period and the data normal period are respectively filled with different colors, so that the user can intuitively know which data observation periods have data missing.
在第一方面的一种可能的实现方式中,在所述采用第二预设颜色填充剩余数据观测时段对应的,第一线条与所述第二线条之间的第三区域之后,还包括:In a possible implementation of the first aspect, after the second preset color is used to fill the third area between the first line and the second line corresponding to the remaining data observation period, the method further includes:
获取预设的正常范围包含的边界值;所述正常范围为所述待测生理参数所反映的生理状况处于正常状态时,所述待测生理参数的数据值应在的范围;Acquiring the boundary value included in the preset normal range; the normal range is the range within which the data value of the physiological parameter to be measured should be in when the physiological condition reflected by the physiological parameter to be measured is in a normal state;
基于所述边界值,在所述预设坐标系中确定所述正常范围对应的目标区域;Based on the boundary value, determining a target area corresponding to the normal range in the preset coordinate system;
采用第三预设颜色填充所述第三区域与所述目标区域之间的非重叠部分。A third preset color is used to fill the non-overlapping part between the third area and the target area.
本实施例可以通过非重叠部分对应的数据观测时段,来表征存在数据值不在正常范围内的情况的数据观测时段,因此,通过采用第三预设颜色填充非重叠部分,可以使用户直观地或者哪些数据观测时段内可能存在待测生理参数的数据值不在正常范围内的情况。In this embodiment, the data observation period corresponding to the non-overlapping part can be used to characterize the data observation period when the data value is not within the normal range. Therefore, by using the third preset color to fill the non-overlapping part, the user can intuitively or During which data observation period, there may be situations where the data value of the physiological parameter to be measured is not within the normal range.
在第一方面的一种可能的实现方式中,所述将所述预设数据采集时段划分为多个数据观测时段,包括:In a possible implementation of the first aspect, the dividing the preset data collection period into multiple data observation periods includes:
获取用于显示所述数据值的目标终端的屏幕尺寸;Acquiring the screen size of the target terminal for displaying the data value;
根据所述屏幕尺寸确定基准观测时长,并基于所述基准观测时长将所述预设数据采集时段划分为多个数据观测时段。A reference observation time period is determined according to the screen size, and the preset data collection period is divided into multiple data observation periods based on the reference observation time period.
本实施例通过为不同的屏幕尺寸配置与其相适应的基准观测时长,具体通过为较小的屏幕尺寸配置较长的基准观测时长,使得在通过屏幕较小的终端设备对待测生理参数的数据值进行显示时时,用户依旧能够清楚地观测到待测生理参数的数据值在不同数据观测时段的变化情况;通过为较大的屏幕尺寸配置较短的基准观测时长,使得屏幕较大的终端设备可以展示更多的数据观测时段,进而能够更加准确地展示出待测 生理参数的数据值在不同数据观测时段的变化情况。In this embodiment, different screen sizes are configured with reference observation durations that are compatible with them, specifically by configuring a longer reference observation duration for smaller screen sizes, so that the data values of physiological parameters to be measured are passed through a terminal device with a smaller screen. When displaying, the user can still clearly observe the changes in the data value of the physiological parameter to be measured in different data observation periods; by configuring a shorter baseline observation time for a larger screen size, the terminal device with a larger screen can be used Show more data observation periods, which can more accurately show the changes in the data values of the physiological parameters to be measured in different data observation periods.
第二方面,本申请实施例提供了一种终端设备,包括:In the second aspect, an embodiment of the present application provides a terminal device, including:
第一获取单元,用于获取在预设数据采集时段内采集到的待测生理参数的数据值;The first obtaining unit is configured to obtain the data value of the physiological parameter to be measured collected within the preset data collection period;
第一确定单元,用于将所述预设数据采集时段划分为多个数据观测时段,并确定每个所述数据观测时段内所述数据值的最大值、最小值以及平均值;A first determining unit, configured to divide the preset data collection period into a plurality of data observation periods, and determine the maximum value, minimum value, and average value of the data value in each data observation period;
第一显示单元,用于在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条;所述预设坐标系以采集时间为横轴,以所述待测生理参数的数据值为纵轴。The first display unit is configured to draw and display a first line based on all the maximum values in a preset coordinate system, and draw and display a second line based on all the minimum values; the preset coordinate system takes the collection time as The horizontal axis uses the data value of the physiological parameter to be measured as the vertical axis.
第三方面,本申请实施例提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面所述的数据展示方法。In the third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, Realize the data display method as described in the first aspect above.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面所述的数据展示方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data display as described in the first aspect is realized. method.
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面中任一项所述的数据展示方法。In a fifth aspect, embodiments of the present application provide a computer program product, which when the computer program product runs on a terminal device, causes the terminal device to execute the data display method described in any one of the above-mentioned first aspects.
本申请实施例与现有技术相比存在的有益效果是:Compared with the prior art, the embodiments of this application have the following beneficial effects:
本申请实施例提供的一种数据展示方法,通过将预设数据采集时段划分为多个数据观测时段,并确定每个数据观测时段内待测生理参数的数据值的最大值、最小值以及平均值;再在预设坐标系中基于所有最大值绘制并显示第一线条,以及基于所有最小值绘制并显示第二线条,由于每个数据观测时段对应的,第一线条与第二线条之间的第一区域的面积的大小可以直观地体现该数据观测时段内待测生理参数的数据值的整体大小,因此,用户可以通过观测不同数据观测时段对应的第一线条与第二线条之间的第一区域的面积的大小,直观地获知待测生理参数的数据值在不同数据观测时段的变化情况,即本申请实施例能够直观地向用户展示出待测生理参数的数据值在不同数据观测时段的变化情况。The data display method provided by the embodiments of the present application divides the preset data collection period into multiple data observation periods, and determines the maximum, minimum, and average data values of physiological parameters to be measured in each data observation period. Value; then draw and display the first line based on all the maximum values in the preset coordinate system, and draw and display the second line based on all the minimum values, because each data observation period corresponds to between the first line and the second line The size of the area of the first area can intuitively reflect the overall size of the data value of the physiological parameter to be measured in the data observation period. Therefore, the user can observe the difference between the first line and the second line corresponding to different data observation periods. The size of the area of the first region can intuitively know the changes of the data value of the physiological parameter to be measured in different data observation periods, that is, the embodiment of this application can intuitively show the user that the data value of the physiological parameter to be measured is in different data observations. Changes in time period.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only of the present application. For some embodiments, for those of ordinary skill in the art, other drawings may be obtained based on these drawings without creative labor.
图1是本申请实施例提供的第一终端与第二终端之间的交互过程的示意图;FIG. 1 is a schematic diagram of an interaction process between a first terminal and a second terminal according to an embodiment of the present application;
图2是本申请实施例提供的一种数据展示方法所适用的终端设备的硬件结构示意图;FIG. 2 is a schematic diagram of the hardware structure of a terminal device to which a data display method provided by an embodiment of the present application is applicable;
图3是本发明实施例的终端设备的软件结构框图;Fig. 3 is a software structure block diagram of a terminal device according to an embodiment of the present invention;
图4是本申请实施例提供的一种数据展示方法的示意性流程图;FIG. 4 is a schematic flowchart of a data display method provided by an embodiment of the present application;
图5是本申请实施例提供的对预设数据采集时段进行划分得到的多个数据观测时段的示意图;FIG. 5 is a schematic diagram of multiple data observation periods obtained by dividing a preset data collection period according to an embodiment of the present application;
图6是本申请实施例提供的一种第一线条和第二线条的绘制过程的示意图;FIG. 6 is a schematic diagram of a drawing process of a first line and a second line provided by an embodiment of the present application;
图7是本申请实施例提供的一种数据展示方法中S43的具体示意性流程图;FIG. 7 is a specific schematic flowchart of S43 in a data display method provided by an embodiment of the present application;
图8是本申请实施例提供的另一种第一线条和第二线条的绘制过程的示意图;FIG. 8 is a schematic diagram of another drawing process of the first line and the second line provided by an embodiment of the present application;
图9是本申请又一实施例提供的一种数据展示方法的示意性流程图;FIG. 9 is a schematic flowchart of a data display method provided by another embodiment of the present application;
图10是本申请实施例提供的一种终端设备的结构框图;FIG. 10 is a structural block diagram of a terminal device provided by an embodiment of the present application;
图11是本申请另一实施例提供的一种终端设备的结构示意图。FIG. 11 is a schematic structural diagram of a terminal device provided by another embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in the specification and appended claims of this application, the term "comprising" indicates the existence of the described features, wholes, steps, operations, elements and/or components, but does not exclude one or more other The existence or addition of features, wholes, steps, operations, elements, components, and/or collections thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the specification and appended claims of this application refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the description of this application and the appended claims, the term "if" can be construed as "when" or "once" or "in response to determination" or "in response to detecting ". Similarly, the phrase "if determined" or "if detected [described condition or event]" can be interpreted as meaning "once determined" or "in response to determination" or "once detected [described condition or event]" depending on the context ]" or "in response to detection of [condition or event described]".
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of this application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。The reference to "one embodiment" or "some embodiments" described in the specification of this application means that one or more embodiments of this application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the sentences "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless it is specifically emphasized otherwise. The terms "including", "including", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
本申请实施例提供的数据展示方法可以应用于终端设备,终端设备可以是具备待测生理参数采集功能的第一终端,也可以是不具备待测生理参数采集功能,但具备数据处理功能和数据显示功能的第二终端。需要说明的是,在一些实施例中,第一终端可以仅具备数据采集功能;在另一些实施例中,第一终端除了具备待测生理参数采集功能外,还可以同时具备数据处理功能和数据显示功能。其中,待测生理参数可以根据待分析的人体生理状况确定,示例性的,若需要对人体在睡眠过程中的呼吸状况进行分析,则待测生理参数可以是能够反映人体呼吸状况的血氧饱和度。The data display method provided in the embodiments of this application can be applied to a terminal device. The terminal device may be the first terminal with the function of collecting physiological parameters to be measured, or it may not have the function of collecting physiological parameters to be measured, but has the function of data processing and data processing. Display function of the second terminal. It should be noted that in some embodiments, the first terminal may only have the data collection function; in other embodiments, the first terminal may have both the data processing function and the data processing function in addition to the physiological parameter collection function to be measured. Display function. Among them, the physiological parameter to be measured can be determined according to the physiological condition of the human body to be analyzed. For example, if it is necessary to analyze the respiratory condition of the human body during sleep, the physiological parameter to be measured can be blood oxygen saturation that can reflect the respiratory condition of the human body. Spend.
在实际应用中,第一终端可以包括但不限于可穿戴设备、便携式医疗设备等终端设备。第二终端可以包括但不限于手机、平板电脑、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算 机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等终端,本申请实施例不对第一终端和第二终端的具体类型作任何限制。In practical applications, the first terminal may include, but is not limited to, terminal devices such as wearable devices and portable medical devices. The second terminal may include, but is not limited to, mobile phones, tablet computers, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (UMPCs) ), netbooks, personal digital assistants (personal digital assistants, PDAs), and other terminals. The embodiments of this application do not impose any restrictions on the specific types of the first terminal and the second terminal.
作为示例而非限定,当终端设备为可穿戴设备时,该可穿戴设备还可以是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。可穿戴设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备不仅仅是一种硬件设备,更是通过软件支持以及数据交互、云端交互来实现强大的功能。广义穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,如智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类可进行人体生理数据采集等的智能手环、智能首饰等。As an example and not a limitation, when the terminal device is a wearable device, the wearable device can also be a general term for using wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, Clothing and shoes, etc. A wearable device is a portable device that is directly worn on the body or integrated into the user's clothes or accessories. Wearable devices are not only a kind of hardware device, but also realize powerful functions through software support, data interaction, and cloud interaction. In a broad sense, wearable smart devices include full-featured, large-sized, complete or partial functions that can be implemented without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, and need to be used in conjunction with other devices such as smart phones. , Such as all kinds of smart bracelets and smart jewelry that can collect physiological data of the human body.
在本申请实施例中,当需要对人体在某个时段内的某项生理状况进行检测时,可以通过具备该生理状况对应的待测生理参数采集功能的第一终端,对人体在该时段内的待测生理参数进行采集。在控制第一终端对用户的待测生理参数进行采集时,第一终端具体是通过其内置的用于采集待测生理参数的传感器,来采集用户的待测生理参数的数据值。第一终端可以将其在某时段内采集到的待测生理参数的所有数据值存储在其存储器中。In the embodiment of the present application, when it is necessary to detect a certain physiological condition of the human body in a certain period of time, the first terminal with the function of collecting the physiological parameter to be measured corresponding to the physiological condition can be used to detect the physiological condition of the human body in the period of time. The physiological parameters to be measured are collected. When controlling the first terminal to collect the physiological parameter of the user to be measured, the first terminal specifically collects the data value of the physiological parameter of the user through its built-in sensor for collecting the physiological parameter to be measured. The first terminal may store all the data values of the physiological parameters to be measured that it has collected in a certain period of time in its memory.
在本申请一实施例中,当需要通过同时具备数据处理功能和数据显示功能的第一终端对某时段内待测生理参数的变化情况进行展示时,第一终端可以直接从其存储器中获取其在该时段内采集到的待测生理参数的数据值。在本申请另一实施例中,当需要通过第二终端对该时段内待测生理参数的变化情况进行展示时,可以将第二终端与第一终端建立通信连接,请参阅图1,图1是以第一终端为可穿戴设备01,第二终端为手机02为例,示出的第一终端与第二终端之间的交互过程,如图1所示,当第二终端与第一终端建立通信连接后,第一终端可以将其在该时段内采集到的待测生理参数的数据值发送至第二终端,第二终端即获取到在该时段内采集到的待测生理参数的数据值。在实际应用中,第二终端可以与第一终端建立无线通信连接,或者,第二终端还可以与第一终端建立有线通信连接,本申请实施例不对第二终端与第一终端之间的通信连接方式做任何限定。In an embodiment of the present application, when it is necessary to display the change of the physiological parameter to be measured in a certain period of time through the first terminal that has both the data processing function and the data display function, the first terminal can directly obtain it from its memory. The data value of the physiological parameter to be measured collected during this period. In another embodiment of the present application, when the change of the physiological parameter to be measured in the period of time needs to be displayed through the second terminal, the second terminal and the first terminal may establish a communication connection, please refer to FIG. 1, FIG. Taking the first terminal as the wearable device 01 and the second terminal as the mobile phone 02 as an example, the interaction process between the first terminal and the second terminal is shown. As shown in FIG. 1, when the second terminal and the first terminal After the communication connection is established, the first terminal can send the data values of the physiological parameters to be measured collected during this time period to the second terminal, and the second terminal can obtain the data of the physiological parameters to be measured collected during this time period. value. In practical applications, the second terminal can establish a wireless communication connection with the first terminal, or the second terminal can also establish a wired communication connection with the first terminal. The embodiment of the application does not deal with the communication between the second terminal and the first terminal. Make any restrictions on the connection method.
请参阅图2,图2是本申请实施例提供的一种数据展示方法所适用的终端设备的硬件结构示意图。如图2所示,终端设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。当终端设备100为第一终端时,传感器模块180还可以包括用于采集人体待测生理参数的待测生理参数传感器, 例如,血氧饱和度传感器180C。Please refer to FIG. 2, which is a schematic diagram of the hardware structure of a terminal device to which a data display method provided by an embodiment of the present application is applicable. As shown in FIG. 2, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , Display screen 194, subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 can include pressure sensor 180A, gyroscope sensor 180B, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light sensor 180L, bone Conduction sensor 180M and so on. When the terminal device 100 is the first terminal, the sensor module 180 may also include a physiological parameter sensor to be measured for collecting a physiological parameter of the human body to be measured, for example, a blood oxygen saturation sensor 180C.
可以理解的是,本发明实施例示意的结构并不构成对终端设备100的具体限定。在本申请另一些实施例中,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc. Among them, the different processing units may be independent devices or integrated in one or more processors. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现终端设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the terminal device 100.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接 口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现终端设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现终端设备100的显示功能。The MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices. The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the terminal device 100. The processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the terminal device 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备100充电,也可以用于终端设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transfer data between the terminal device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备100的结构限定。在本申请另一些实施例中,终端设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the terminal device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低 噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and so on. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在终端设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the terminal device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
在一些实施例中,终端设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the terminal device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
终端设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and is used for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic  light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include one or N display screens 194, and N is a positive integer greater than one.
终端设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and is projected to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the terminal device 100 may include one or N cameras 193, and N is a positive integer greater than one.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。终端设备100可以支持一种或多种视频编解码器。这样,终端设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information, and it can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the terminal device 100 can be implemented, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备100使用过程中所创建的数据(比如音频数据,电话本等)等。当终端设备100为第一终端时,存储数据区还可以存储第一终端采集到的某时段内待测生理参数的数据值;当终端设备100为第二终端时,存储数据区还可以存储第二终端从第一终端中获取到的某时段内待测生理参数的数据值。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储 器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the terminal device 100. When the terminal device 100 is the first terminal, the storage data area can also store the data values of the physiological parameters to be measured in a certain period of time collected by the first terminal; when the terminal device 100 is the second terminal, the storage data area can also store the first terminal. The data value of the physiological parameter to be measured in a certain period of time acquired by the second terminal from the first terminal. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like. The processor 110 executes various functional applications and data processing of the terminal device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
终端设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端设备100可以设置至少一个麦克风170C。在另一些实施例中,终端设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the terminal device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。终端设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,终端设备100根据压力传感器180A检测所述触摸操作强度。终端设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive materials. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The terminal device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定终端设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定终端设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测终端设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导 航,体感游戏场景。The gyro sensor 180B may be used to determine the movement posture of the terminal device 100. In some embodiments, the angular velocity of the terminal device 100 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the terminal device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the terminal device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
血氧饱和度传感器180C可以用于测量人体血液中的血氧饱和度。血氧饱和度传感器180C通常由两只发光管和一只光电管组成,其中一只发光管通常发出波长为660nm的可见红光,另一只发光管通常发出波长为920~950nm之间的不可见红外光。The blood oxygen saturation sensor 180C can be used to measure the blood oxygen saturation in human blood. The blood oxygen saturation sensor 180C is usually composed of two light-emitting tubes and a photoelectric tube. One of the light-emitting tubes usually emits visible red light with a wavelength of 660nm, and the other light-emitting tube usually emits light with a wavelength between 920 and 950nm. Visible infrared light.
磁传感器180D包括霍尔传感器。终端设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当终端设备100是翻盖机时,终端设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The terminal device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the terminal device 100 is a flip machine, the terminal device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测终端设备100在各个方向上(一般为三轴)加速度的大小。当终端设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on.
距离传感器180F,用于测量距离。终端设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F, used to measure distance. The terminal device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端设备100通过发光二极管向外发射红外光。终端设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端设备100附近有物体。当检测到不充分的反射光时,终端设备100可以确定终端设备100附近没有物体。终端设备100可以利用接近光传感器180G检测用户手持终端设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 100 emits infrared light to the outside through the light emitting diode. The terminal device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100. When insufficient reflected light is detected, the terminal device 100 can determine that there is no object near the terminal device 100. The terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器180L用于感知环境光亮度。终端设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测终端设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。终端设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
温度传感器180J用于检测温度。在一些实施例中,终端设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,终端设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端设备100对电池142加热,以避免低温导致终端设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,终端设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid abnormal shutdown of the terminal device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the terminal device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal device 100, which is different from the position of the display screen 194.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal. In some embodiments, the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power-on button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The terminal device 100 may receive key input, and generate key signal input related to user settings and function control of the terminal device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端设备100的接触和分离。终端设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。终端设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备100中,不能和终端设备100分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the terminal device 100. The terminal device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the terminal device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
终端设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明终端设备100的软件结构。The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the terminal device 100 by way of example.
请参阅图3,图3是本发明实施例的终端设备100的软件结构框图。Please refer to FIG. 3, which is a software structure block diagram of a terminal device 100 according to an embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 3, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 3, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状 态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, and so on.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。The content provider is used to store and retrieve data and make these data accessible to applications. The data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, and so on. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
电话管理器用于提供终端设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the terminal device 100. For example, the management of the call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, and so on. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
2D图形引擎是2D绘图的绘图引擎。The 2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
请参阅图4,图4是本申请实施例提供的一种数据展示方法的示意性流程图,本申请实施例中,流程的执行主体可以是如图2所示的终端设备100,作为示例而非限定,终端设备可以是第一终端,也可以是第二终端。如图4所示,本实施例提供的一种数据展示方法包括S41~S43,详述如下:Please refer to FIG. 4. FIG. 4 is a schematic flowchart of a data display method provided by an embodiment of the present application. In an embodiment of the present application, the execution subject of the process may be the terminal device 100 shown in FIG. 2, as an example. Without limitation, the terminal device may be the first terminal or the second terminal. As shown in FIG. 4, a data display method provided by this embodiment includes S41 to S43, which are described in detail as follows:
S41:获取在预设数据采集时段内采集到的待测生理参数的数据值。S41: Obtain the data value of the physiological parameter to be measured collected during the preset data collection period.
在本申请实施例中,预设数据采集时段为预先定义的用于对人体的待测生理参数 进行数据采集的时段。具体的,当需要对某用户在某时段内的某项生理状况(即待测生理状况)进行分析时,由于需要对该时段内能够反映待测生理状况的待测生理参数的数据值进行采集,因此,可以将该时段定义为预设数据采集时段。In the embodiment of the present application, the preset data collection period is a pre-defined period for data collection of physiological parameters of the human body to be measured. Specifically, when it is necessary to analyze a certain physiological condition (ie physiological condition to be measured) of a certain user in a certain period of time, because it is necessary to collect the data value of the physiological parameter to be measured that can reflect the physiological condition to be measured in the period of time Therefore, this period can be defined as a preset data collection period.
其中,待测生理参数可以根据待测生理状况确定,预设数据采集时段的开始时刻和结束时刻可以根据实际需求确定。示例性的,当需要对某用户在睡眠过程中的呼吸状况进行分析,进而判断该用户在睡眠过程中是否出现呼吸暂停状况时,用户的呼吸状况即为待测生理状况。由于能够反映呼吸状况的生理参数为人体的血氧饱和度,因此,该示例中,待测生理参数为人体的血氧饱和度;由于需要对睡眠过程中用户的血氧饱和度的数据值进行采集,因此,在该示例中,预设数据采集时段即为用户的睡眠时段。在实际应用中,由于不同用户的睡眠时段的开始时刻和结束时刻不同,因此,在该示例中,预设数据采集时段的开始时刻和结束时刻可以根据待测用户的睡眠时段确定,例如,若待测用户的睡眠时段为00:05~7:30,则预设数据采集时段也为00:05~7:30。Among them, the physiological parameter to be measured can be determined according to the physiological condition to be measured, and the start time and end time of the preset data collection period can be determined according to actual needs. Exemplarily, when it is necessary to analyze the breathing condition of a user during sleep, and then determine whether the user has an apnea condition during sleep, the user's breathing condition is the physiological condition to be measured. Since the physiological parameter that can reflect the respiratory condition is the blood oxygen saturation of the human body, in this example, the physiological parameter to be measured is the blood oxygen saturation of the human body; because the data value of the user's blood oxygen saturation during sleep needs to be measured Collection, therefore, in this example, the preset data collection period is the user's sleep period. In practical applications, since the start time and end time of the sleep period of different users are different, in this example, the start time and end time of the preset data collection period can be determined according to the sleep period of the user to be tested, for example, if The sleep period of the user to be tested is 00:05-7:30, and the preset data collection period is also 00:05-7:30.
在具体应用中,可以通过具备待测生理参数采集功能的第一终端采集预设数据采集时段内待测生理参数的数据值。In a specific application, the data value of the physiological parameter to be measured within the preset data collection period can be collected through the first terminal with the function of collecting the physiological parameter to be measured.
需要说明的是,在通过第一终端对预设数据采集时段内待测生理参数的数据值进行采集时,第一终端中的待测生理参数传感器通常会基于预设数据采集时间间隔对待测生理参数的数据值进行采集。其中,预设数据采集时间间隔通常是根据实际需求确定的。It should be noted that when the data value of the physiological parameter to be measured in the preset data collection period is collected through the first terminal, the physiological parameter sensor to be measured in the first terminal usually will be based on the preset data collection time interval. The data value of the parameter is collected. Among them, the preset data collection time interval is usually determined according to actual needs.
具体的,待测生理参数传感器在基于预设数据采集时间间隔对待测生理参数的数据值进行采集时,通常会先根据预设数据采集时段的开始时刻以及预设数据采集时间间隔确定预设数据采集时段包含的多个数据采集时刻,并在每个数据采集时刻到来时,时对待测生理参数的数据值进行采集,进而得到待测生理参数在每个数据采集时刻的数据值。Specifically, when the physiological parameter sensor to be measured collects the data value of the physiological parameter to be measured based on the preset data collection time interval, it usually first determines the preset data according to the start time of the preset data collection period and the preset data collection time interval. The collection period includes multiple data collection moments, and when each data collection moment arrives, the data value of the physiological parameter to be measured is collected at the time, and then the data value of the physiological parameter to be measured at each data collection moment is obtained.
示例性的,假如预设数据采集时段的开始时刻为00:05,预设数据采集时间间隔为a秒,则预设数据采集时段包含的各个数据采集时刻由早到晚分别为:00:05、00:05+a、00:05+2a、……、00:05+n*a,待测生理参数传感器会分别在当前时间为00:05、00:05+a、00:05+2a、……、00:05+n*a时,对待测生理参数的数据值进行采集,进而得到待测生理参数分别在00:05、00:05+a、00:05+2a、……、00:05+n*a等时刻的多个数据值,其中,n根据预设数据采集时段的结束时刻确定。Exemplarily, if the start time of the preset data collection period is 00:05, and the preset data collection time interval is a second, the data collection times included in the preset data collection period are from morning to night respectively: 00:05 , 00:05+a, 00:05+2a, ..., 00:05+n*a, the physiological parameter sensor to be measured will be 00:05, 00:05+a, 00:05+2a at the current time respectively ,..., 00:05+n*a, the data values of the physiological parameters to be measured are collected, and then the physiological parameters to be measured are respectively 00:05, 00:05+a, 00:05+2a, ..., Multiple data values at 00:05+n*a, etc., where n is determined according to the end time of the preset data collection period.
可以理解的是,由于预设数据采集时间间隔通常远小于预设数据采集时段的时长,因此,在预设数据采集时段内可以得到待测生理参数的多个数据值,每个数据值均对应一个数据采集时刻,每相邻两个数据采集时刻之间的时间间隔即为预设数据采集时间间隔。预设数据采集时段内待测生理参数的所有数据值构成了一组时序数据。It is understandable that since the preset data collection time interval is usually much shorter than the duration of the preset data collection period, multiple data values of the physiological parameter to be measured can be obtained within the preset data collection period, and each data value corresponds to For a data collection moment, the time interval between every two adjacent data collection moments is the preset data collection time interval. All the data values of the physiological parameters to be measured in the preset data collection period constitute a set of time series data.
在本申请实施例中,第一终端可以将待测生理参数传感器采集得到的预设数据采集时段内待测生理参数的所有数据值存储在第一终端的存储器中。In the embodiment of the present application, the first terminal may store all the data values of the physiological parameter to be measured in the preset data collection period collected by the physiological parameter sensor to be measured in the memory of the first terminal.
在本申请一具体实施例中,当流程的执行主体为第一终端时,第一终端可以直接从其存储器中获取其在预设数据采集时段内采集到的待测生理参数的数据值。在本申请另一具体实施例中,当流程的执行主体为第二终端时,第二终端可以先与第一终端建立通信连接,再从第一终端的存储器中获取在预设数据采集时段内采集到的待测生 理参数的数据值。In a specific embodiment of the present application, when the execution subject of the process is the first terminal, the first terminal can directly obtain the data value of the physiological parameter to be measured collected during the preset data collection period from its memory. In another specific embodiment of the present application, when the execution subject of the process is the second terminal, the second terminal may first establish a communication connection with the first terminal, and then obtain from the memory of the first terminal within the preset data collection period The collected data value of the physiological parameter to be measured.
S42:将所述预设数据采集时段划分为多个数据观测时段,并确定每个所述数据观测时段内所述数据值的最大值、最小值以及平均值。S42: Divide the preset data collection period into multiple data observation periods, and determine the maximum value, minimum value, and average value of the data value in each data observation period.
在实际应用中,在基于预设数据采集时段内待测生理参数的多个数据值对待测生理参数所反映的待测生理状况进行观测和分析时,为了提高分析的准确性,通常会以包含多个数据采集时刻的一周期性时间段作为数据观测时段,通过分析待测生理参数在不同数据观测时段内的变化情况,来确定其对应的生理状况的变化情况,因此,在本实施例中,终端设备获取到预设数据采集时段内待测生理参数的多个数据值后,在基于该多个数据值展示待测生理参数在预设数据采集时段内的变化情况时,为了使用户能够直观且清楚地观测到预设数据采集时段内待测生理参数的数据值的变化趋势,终端设备可以将预设数据采集时段划分为多个周期性的数据观测时段。In practical applications, when multiple data values based on the physiological parameters to be measured within the preset data collection period are observed and analyzed, in order to improve the accuracy of the analysis, the inclusion of A periodic time period of multiple data collection moments is used as the data observation period. By analyzing the changes in the physiological parameters to be measured in different data observation periods, the corresponding changes in the physiological conditions are determined. Therefore, in this embodiment After the terminal device obtains multiple data values of the physiological parameter to be measured in the preset data collection period, when displaying the changes of the physiological parameter to be measured in the preset data collection period based on the multiple data values, in order to enable the user to The change trend of the data value of the physiological parameter to be measured within the preset data collection period is intuitively and clearly observed, and the terminal device can divide the preset data collection period into multiple periodic data observation periods.
其中,数据观测时段的时长可以根据实际需求设置。示例性的,可以预先定义一基准观测时长作为数据观测时段的时长。终端设备可以基于预先定义的基准观测时长,将预设数据采集时段平均划分为多个数据观测时段,划分得到的每一数据观测时段的时长与基准观测时长相等。更具体的,终端设备在基于基准观测时长对预设数据采集时段进行划分时,可以基于预设数据采集时段的开始时刻以及基准观测时长依次确定每一数据观测时段的开始时刻和结束时刻,其中,第一个数据观测时段的开始时刻为预设数据采集时段的开始时刻,前一数据观测时段的结束时刻为后一数据观测时段的开始时刻,最后一个数据观测时段的结束时刻为预设数据采集时段的结束时刻。Among them, the duration of the data observation period can be set according to actual needs. Exemplarily, a reference observation duration can be predefined as the duration of the data observation period. The terminal device may divide the preset data collection period into multiple data observation periods on average based on the pre-defined reference observation time period, and the time length of each data observation period obtained by the division is equal to the reference observation time period. More specifically, when the terminal device divides the preset data collection period based on the reference observation time period, it may sequentially determine the start time and end time of each data observation period based on the start time of the preset data collection period and the reference observation time period, where , The start time of the first data observation period is the start time of the preset data collection period, the end time of the previous data observation period is the start time of the next data observation period, and the end time of the last data observation period is the preset data The end time of the collection period.
需要说明的是,本申请实施例中,基准观测时长大于预设数据采集时间间隔,因此,划分得到的每一数据观测时段中均包含多个数据采集时刻,即每一数据观测时段均对应待测生理参数的多个数据值。在本实施例一种可能的实现方式中,基准观测时长可以为预设数据采集时间间隔的整数倍,这样,划分得到的每一数据观测时段中均包含预设数目个数据采集时刻,即每一数据观测时段均对应待测生理参数的预设数目个数据值,其中,预设数目为基准观测时长与预设数据采集时间间隔的比值。It should be noted that in the embodiments of the present application, the reference observation time period is greater than the preset data collection time interval. Therefore, each data observation period obtained by the division includes multiple data collection moments, that is, each data observation period corresponds to the waiting time. Measure multiple data values of physiological parameters. In a possible implementation of this embodiment, the reference observation period may be an integer multiple of the preset data collection time interval. In this way, each divided data observation period includes a preset number of data collection moments, that is, every One data observation period corresponds to a preset number of data values of the physiological parameter to be measured, where the preset number is the ratio of the reference observation duration to the preset data collection time interval.
示例性的,请参阅图5,图5是本申请实施例提供的对预设数据采集时段进行划分得到的多个数据观测时段的示意图,如图5所示,若预设数据采集时段的开始时刻为00:30,预设数据采集时段的结束时刻为07:30,即预设数据采集时段的时长为7小时,假设预设数据采集时间间隔为0.01秒,基准观测时长为1分钟,那么,终端设备基于基准观测时长对预设数据采集时段进行划分可以得到420个数据观测时段,划分得到的第一个数据观测时段(数据观测时段1)的开始时刻为00:30,第一个数据观测时段(数据观测时段1)的结束时刻为00:31,第二个数据观测时段(数据观测时段2)的开始时刻为00:31,第二个数据观测时段(数据观测时段2)的结束时刻为00:32,以此类推,最后一个数据观测时段(数据观测时段N)的开始时刻为07:29,最后一个数据观测时段(数据观测时段N)的结束时刻为07:30,其中,N=420。划分得到的每个数据观测时段均包含6000个数据采集时刻,即每个数据观测时段对应待测生理参数的6000个数据值。Exemplarily, please refer to FIG. 5. FIG. 5 is a schematic diagram of multiple data observation periods obtained by dividing the preset data collection period according to an embodiment of the present application. As shown in FIG. 5, if the preset data collection period starts The time is 00:30, and the end time of the preset data collection period is 07:30, that is, the duration of the preset data collection period is 7 hours. Assuming that the preset data collection interval is 0.01 second, and the reference observation time is 1 minute, then , The terminal device divides the preset data collection period based on the reference observation time length to obtain 420 data observation periods. The first data observation period (data observation period 1) obtained by the division starts at 00:30, and the first data The end time of the observation period (data observation period 1) is 00:31, the start time of the second data observation period (data observation period 2) is 00:31, and the end of the second data observation period (data observation period 2) The time is 00:32, and so on, the start time of the last data observation period (data observation period N) is 07:29, and the end time of the last data observation period (data observation period N) is 07:30, where, N=420. Each divided data observation period contains 6000 data collection moments, that is, each data observation period corresponds to 6000 data values of physiological parameters to be measured.
需要说明的是,当数据采集时刻落在每一数据观测时段的开始时刻以及结束时刻时,每一数据观测时段可以将其开始时刻对应的数据采集时刻作为其包含的数据采集 时刻,将其结束时刻对应的数据采集时刻作为下一数据观测时段包含的数据采集时刻;或者每一数据观测时段可以将其结束时刻对应的数据采集时刻作为其包含的数据采集时刻,将其开始时刻对应的数据采集时刻作为上一数据观测时段包含的数据采集时刻。It should be noted that when the data collection time falls at the start time and end time of each data observation period, each data observation period can use the data collection time corresponding to its start time as the included data collection time and end it The data collection time corresponding to the time is taken as the data collection time included in the next data observation period; or each data observation period can use the data collection time corresponding to its end time as the included data collection time, and the data collection time corresponding to its start time The time is regarded as the data collection time included in the last data observation period.
在本申请实施例中,终端设备对预设数据采集时段进行划分得到多个数据观测时段后,确定每一数据观测时段内待测生理参数的数据值中的最大值和最小值,并计算每一数据观测时段内待测生理参数的数据值的平均值。In the embodiment of the present application, after the terminal device divides the preset data collection period to obtain multiple data observation periods, it determines the maximum value and the minimum value among the data values of the physiological parameter to be measured in each data observation period, and calculates each data observation period. The average value of the data value of the physiological parameter to be measured in a data observation period.
在实际应用中,由于数据采集环境或待测生理参数传感器的不稳定性,导致采集得到的待测生理参数的数据值中可能会存在一些异常数据值,因此,在本申请另一实施例中,为了提高对待测生理参数的变化情况的分析的准确性,终端设备获取到预设数据采集时段内待测生理参数的数据值后,还对数据值中的异常数据值进行检测。其中,异常数据值指不在预设的待测生理参数的数据值应在的合理范围内的数据值,合理范围指人体的待测生理状况在各种可能的情况下,其对应的待测生理参数的数据值应在的范围。示例性的,以待测生理参数为人体的血氧饱和度为例,人体在正常情况下,动脉血的血氧饱和度通常大于95%;当人体存在轻度低氧血症时,人体动脉血的血氧饱和度通常小于90%;当人体存在重度低氧血症时,人体动脉血的血氧饱和度通常小于85%;但人体动脉血的血氧饱和度最低也不会低于70%,当出现人体动脉血的血氧饱和度低于70%的值时,可认为该值为不可能从人体测得的异常数据值,因此,人体动脉血的血氧饱和度的合理范围可以是大于70%。In practical applications, due to the instability of the data collection environment or the physiological parameter sensor to be measured, there may be some abnormal data values in the collected data values of the physiological parameter to be measured. Therefore, in another embodiment of the present application In order to improve the accuracy of the analysis of changes in the physiological parameters to be measured, the terminal device also detects abnormal data values in the data values after acquiring the data values of the physiological parameters to be measured in the preset data collection period. Among them, the abnormal data value refers to the data value that is not within the reasonable range that the data value of the physiological parameter to be measured should be preset, and the reasonable range refers to the physiological condition of the human body to be measured under various possible conditions, and its corresponding physiological parameter to be measured. The data value of the parameter should be in the range. Exemplarily, taking the physiological parameter to be measured is the blood oxygen saturation of the human body as an example, the blood oxygen saturation of the arterial blood of the human body is usually greater than 95% under normal conditions; when the human body has mild hypoxemia, the arterial blood oxygen saturation of the human body The blood oxygen saturation of blood is usually less than 90%; when the human body has severe hypoxemia, the blood oxygen saturation of human arterial blood is usually less than 85%; but the blood oxygen saturation of human arterial blood is not lower than 70%. %. When the blood oxygen saturation of human arterial blood is lower than 70%, it can be considered that the value is an abnormal data value that cannot be measured from the human body. Therefore, the reasonable range of the blood oxygen saturation of human arterial blood can be Is greater than 70%.
具体的,终端设备在检测到某个数据值未在待测生理参数的数据值应在的合理范围内时,可以将该数据值标记为异常数据值。示例性的,终端设备可以将血氧饱和度的数据值中低于70%的值确定为异常数据值。终端设备在确定出待测生理参数的数据值中的异常数据值后,可以将异常数据值进行剔除,再基于剔除了异常数据值之后剩余的数据值,确定每个数据观测时段内数据值的最大值、最小值以及平均值。Specifically, when the terminal device detects that a certain data value is not within a reasonable range that the data value of the physiological parameter to be measured should be within, it may mark the data value as an abnormal data value. Exemplarily, the terminal device may determine a value lower than 70% of the data value of blood oxygen saturation as an abnormal data value. After the terminal device determines the abnormal data value in the data value of the physiological parameter to be measured, it can eliminate the abnormal data value, and then determine the data value in each data observation period based on the remaining data value after the abnormal data value is eliminated. Maximum, minimum, and average.
本实施例通过对采集到的待测生理参数的数据值中存在的异常数据值进行剔除,从而能够通过剩余的非异常数据值,准确地展示出待测生理参数在预设数据采集时段的不同数据观测时段的真实变化情况,提高了基于待测生理参数对其对应的生理状况进行分析时的准确性。In this embodiment, the abnormal data values existing in the collected data values of the physiological parameters to be measured are eliminated, so that the remaining non-abnormal data values can accurately show the difference of the physiological parameters to be measured in the preset data collection period. The true change of the data observation period improves the accuracy of analyzing the corresponding physiological conditions based on the physiological parameters to be measured.
在实际应用中,当需要在不同的终端设备上进行数据展示时,由于不同终端设备的屏幕尺寸可能不同,导致绘制出的预设坐标系的横轴的长度可能不同,因此,为了保证在不同终端设备上进行数据展示时,用户能够清楚地观测到待测生理参数的数据值在不同数据观测时段的变化情况,可以为不同的屏幕尺寸配置不同的基准观测时长,其中,屏幕尺寸越大,其对应的基准观测时长越短;屏幕尺寸越小,其对应的基准观测时长越长。终端设备可以将预先配置的屏幕尺寸与基准观测时长之间的对应关系存储在其存储器中。In actual applications, when data needs to be displayed on different terminal devices, the screen size of different terminal devices may be different, resulting in different lengths of the horizontal axis of the drawn preset coordinate system. Therefore, in order to ensure that the When data is displayed on the terminal device, the user can clearly observe the changes in the data value of the physiological parameter to be measured during different data observation periods, and can configure different benchmark observation time periods for different screen sizes. The larger the screen size, The corresponding reference observation time is shorter; the smaller the screen size, the longer the corresponding reference observation time. The terminal device may store the corresponding relationship between the pre-configured screen size and the reference observation duration in its memory.
在实际应用中,屏幕尺寸可以通过屏幕的长边长度或短边长度来描述。In practical applications, the screen size can be described by the length of the long side or the length of the short side of the screen.
基于此,在本申请又一实施例中,S42,具体可以包括以下步骤:Based on this, in another embodiment of the present application, S42 may specifically include the following steps:
获取用于显示所述数据值的目标终端的屏幕尺寸;Acquiring the screen size of the target terminal for displaying the data value;
根据所述屏幕尺寸确定基准观测时长,并基于所述基准观测时长将所述预设数据采集时段划分为多个数据观测时段。A reference observation time period is determined according to the screen size, and the preset data collection period is divided into multiple data observation periods based on the reference observation time period.
在本实施例中,目标终端指当前执行数据展示方法的终端设备。In this embodiment, the target terminal refers to the terminal device currently executing the data display method.
在实际应用中,终端设备的屏幕尺寸可以预先存储在终端设备的存储器中,终端设备可以从其存储器中获取其屏幕尺寸以及预先配置的屏幕尺寸与基准观测时长之间的对应关系。In practical applications, the screen size of the terminal device may be pre-stored in the memory of the terminal device, and the terminal device may obtain its screen size and the corresponding relationship between the pre-configured screen size and the reference observation duration from the memory.
终端设备在获取到其屏幕尺寸以及预先配置的屏幕尺寸与基准观测时长之间的对应关系后,基于预先配置的屏幕尺寸与基准观测时长之间的对应关系,确定其屏幕尺寸对应的基准观测时长,进而基于基准观测时长,将预设数据采集时段划分为多个数据观测时段。After the terminal device obtains its screen size and the corresponding relationship between the pre-configured screen size and the reference observation duration, based on the corresponding relationship between the pre-configured screen size and the reference observation duration, it determines the reference observation duration corresponding to its screen size , And then divide the preset data collection period into multiple data observation periods based on the reference observation time length.
本实施例通过为不同的屏幕尺寸配置与其相适应的基准观测时长,具体通过为较小的屏幕尺寸配置较长的基准观测时长,使得在通过屏幕较小的终端设备对待测生理参数的数据值进行显示时时,用户依旧能够清楚地观测到待测生理参数的数据值在不同数据观测时段的变化情况;通过为较大的屏幕尺寸配置较短的基准观测时长,使得屏幕较大的终端设备可以展示更多的数据观测时段,进而能够更加准确地展示出待测生理参数的数据值在不同数据观测时段的变化情况。In this embodiment, different screen sizes are configured with reference observation durations that are compatible with them, specifically by configuring a longer reference observation duration for smaller screen sizes, so that the data values of physiological parameters to be measured are passed through a terminal device with a smaller screen. When displaying, the user can still clearly observe the changes in the data value of the physiological parameter to be measured in different data observation periods; by configuring a shorter baseline observation time for a larger screen size, the terminal device with a larger screen can be used Show more data observation periods, which can more accurately show the changes in the data values of the physiological parameters to be measured in different data observation periods.
S43:在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条;所述预设坐标系以采集时间为横轴,以所述待测生理参数的数据值为纵轴。S43: Draw and display a first line based on all the maximum values in a preset coordinate system, and draw and display a second line based on all the minimum values; The data value of the physiological parameter to be measured is the vertical axis.
在本申请实施例中,终端设备得到每一数据观测时段内待测生理参数的数据值的最大值、最小值以及平均值后,可以以待测生理参数的数据值的采集时间为横轴,以待测生理参数的数据值为纵轴,绘制平面直角坐标系,该平面直角坐标系即为预设坐标系。In the embodiments of the present application, after the terminal device obtains the maximum, minimum, and average values of the physiological parameters to be measured in each data observation period, the collection time of the physiological parameters to be measured can be taken as the horizontal axis, Taking the data value of the physiological parameter to be measured as the vertical axis, draw a plane rectangular coordinate system, and the plane rectangular coordinate system is the preset coordinate system.
终端设备在绘制出预设坐标系后,可以先确定预设坐标系的横轴和纵轴的尺度。After drawing the preset coordinate system, the terminal device may first determine the scales of the horizontal axis and the vertical axis of the preset coordinate system.
具体的,终端设备在确定横轴的尺度时,可以将预设数据采集时段的开始时刻作为横轴的原点,将预设数据采集时段的结束时刻作为横轴对应的采集时间范围的最大值,并基于预设数据采集时段包含的数据观测时段的个数N,将横轴的原点与采集时间范围的最大值之间的线段划分为N个子线段,每一子线段对应预设数据采集时段中的一个数据观测时段,每一子线段的起点对应的采集时间为该子线段对应的数据观测时段的开始时刻,每一子线段的终点对应的采集时间为该子线段对应的数据观测时段的结束时刻。Specifically, when determining the scale of the horizontal axis, the terminal device may use the start time of the preset data collection period as the origin of the horizontal axis, and the end time of the preset data collection period as the maximum value of the collection time range corresponding to the horizontal axis. And based on the number N of data observation periods included in the preset data collection period, the line segment between the origin of the horizontal axis and the maximum value of the collection time range is divided into N sub-line segments, and each sub-line segment corresponds to the preset data collection period The collection time corresponding to the starting point of each sub-line segment is the start time of the data observation period corresponding to the sub-line segment, and the collection time corresponding to the end point of each sub-line segment is the end of the data observation period corresponding to the sub-line segment time.
终端设备在确定纵轴的尺度时,在一种可能的实现方式中,终端设备可以将数值0作为纵轴的原点,并基于预设数据采集时段内待测生理参数的所有数据值的最大值确定纵轴对应的数据值范围的最大值,示例性的,终端设备可以任取一个大于预设数据采集时段内待测生理参数的所有数据值的最大值的数值,作为纵轴对应的数据值范围的最大值。在另一种可能的实现方式中,终端设备还可以基于预设数据采集时段内待测生理参数的所有数据值的最小值确定纵轴的原点,示例性的,终端设备可以任取一个小于预设数据采集时段内待测生理参数的所有数据值的最小值的数值,作为纵轴的原点。When the terminal device determines the scale of the vertical axis, in a possible implementation, the terminal device can use the value 0 as the origin of the vertical axis, and based on the maximum value of all the data values of the physiological parameter to be measured in the preset data collection period Determine the maximum value of the data value range corresponding to the vertical axis. Exemplarily, the terminal device can take any value greater than the maximum value of all the data values of the physiological parameter to be measured in the preset data collection period as the data value corresponding to the vertical axis. The maximum value of the range. In another possible implementation, the terminal device can also determine the origin of the vertical axis based on the minimum value of all the data values of the physiological parameter to be measured in the preset data collection period. Set the minimum value of all the data values of the physiological parameters to be measured in the data collection period as the origin of the vertical axis.
示例性的,请参阅图6,图6是本申请实施例提供的一种第一线条和第二线条的绘制过程的示意图。如图6的(a)所示,假设预设数据采集时段的开始时刻为00:30, 结束时刻为7:30,则终端设备可以将00:30作为横轴的原点,将7:30作为横轴对应的采集时间范围的最大值。假设数据观测时段的时长为1分钟,则横轴的原点与横轴对应的采集时间范围的最大值之间可以包括420个数据观测时段,其中,第一个数据观测时段的开始时刻为00:30,第一个数据观测时段的结束时刻为00:31,第二个数据观测时段的开始时刻为00:31,第二个数据观测时段的结束时刻为00:32,以此类推,最后一个数据观测时段的开始时刻为07:29,最后一个数据观测时段的结束时刻为07:30。假设预设数据采集时段内待测生理参数的所有数据值的最小值为80,最大值为95,则终端设备可以任取小于80的一个数值,例如70作为纵轴的原点,任取大于95的一个数值,例如100作为纵轴对应的数据值范围的最大值。Exemplarily, please refer to FIG. 6, which is a schematic diagram of a drawing process of a first line and a second line provided by an embodiment of the present application. As shown in Figure 6(a), assuming that the start time of the preset data collection period is 00:30 and the end time is 7:30, the terminal device can use 00:30 as the origin of the horizontal axis and 7:30 as the origin of the horizontal axis. The maximum value of the acquisition time range corresponding to the horizontal axis. Assuming that the duration of the data observation period is 1 minute, 420 data observation periods can be included between the origin of the horizontal axis and the maximum value of the acquisition time range corresponding to the horizontal axis, where the start time of the first data observation period is 00: 30. The end time of the first data observation period is 00:31, the start time of the second data observation period is 00:31, the end time of the second data observation period is 00:32, and so on, the last one The start time of the data observation period is 07:29, and the end time of the last data observation period is 07:30. Assuming that the minimum value of all the data values of the physiological parameters to be measured in the preset data collection period is 80 and the maximum value is 95, the terminal device can choose a value less than 80, for example, 70 is the origin of the vertical axis, and it can be more than 95. A numerical value of, for example 100, is the maximum value of the data value range corresponding to the vertical axis.
在本申请一实施例中,终端设备在确定了横轴和纵轴的尺度后,具体可以通过如图7所示的S431~S433来绘制第一线条和第二线条,详述如下:In an embodiment of the present application, after determining the scales of the horizontal axis and the vertical axis, the terminal device may specifically draw the first line and the second line through S431 to S433 as shown in FIG. 7, which are described in detail as follows:
S431:确定各个所述最大值在所述预设坐标系中的第一坐标点,以及确定各个所述最小值在所述预设坐标系中的第二坐标点。S431: Determine the first coordinate point of each maximum value in the preset coordinate system, and determine the second coordinate point of each minimum value in the preset coordinate system.
在本实施例中,终端设备在确定了横轴和纵轴的尺度后,确定每个数据观测时段对应的待测生理参数的最大值在预设坐标系中的第一坐标点,以及确定每个数据观测时段对应的待测生理参数的最小值在预设坐标系中的第二坐标点。In this embodiment, after determining the scales of the horizontal axis and the vertical axis, the terminal device determines the first coordinate point in the preset coordinate system of the maximum value of the physiological parameter to be measured corresponding to each data observation period, and determines each The minimum value of the physiological parameter to be measured corresponding to the data observation period is the second coordinate point in the preset coordinate system.
示例性的,如图6中的(a)所示,终端设备在预设坐标系中确定出的各个数据观测时段对应的待测生理参数的最大值的第一坐标点可以分别为11、12、13、14、15、……、1n,终端设备在预设坐标系中确定出的各个数据观测时段对应的待测生理参数的最小值的第二坐标点可以分别为21、22、23、24、25、……、2n等,其中n为预设数据采集时段包含的待测数据观测时段的个数。Exemplarily, as shown in (a) of FIG. 6, the first coordinate points of the maximum value of the physiological parameter to be measured corresponding to each data observation period determined by the terminal device in the preset coordinate system may be 11 and 12, respectively. , 13, 14, 15,..., 1n, the second coordinate points of the minimum value of the physiological parameter to be measured corresponding to each data observation period determined by the terminal device in the preset coordinate system may be 21, 22, 23, 24, 25,..., 2n, etc., where n is the number of data observation periods to be measured included in the preset data collection period.
需要说明的是,在图6和后续的图8中,预设坐标系中与横轴或纵轴垂直的虚线只是为了方便用户观察而显示的标线,在其他实施例中,终端设备可以不显示这些标线。It should be noted that, in FIG. 6 and subsequent FIG. 8, the dashed line perpendicular to the horizontal or vertical axis in the preset coordinate system is only a marking line displayed for the convenience of the user to observe. In other embodiments, the terminal device may not Show these markings.
S432:通过实线按照预设顺序依次连接所有所述第一坐标点,得到第一连接线,并对所述第一连接线进行平滑处理,得到所述第一线条;所述预设顺序为所述采集时间由早到晚的顺序,或所述采集时间由晚到早的顺序。S432: Connect all the first coordinate points in sequence in a preset order through a solid line to obtain a first connecting line, and perform smoothing processing on the first connecting line to obtain the first line; the preset order is The sequence of the collection time from early to late, or the sequence of the collection time from late to early.
S433:通过实线按照所述预设顺序依次连接所有所述第二坐标点,得到第二连接线,并对所述第二连接线进行平滑处理,得到所述第二线条。S433: Connect all the second coordinate points sequentially in the preset order through a solid line to obtain a second connecting line, and perform smoothing processing on the second connecting line to obtain the second line.
在本实施例中,终端设备在确定了各个数据观测时段对应的待测生理参数的最大值在预设坐标系中的第一坐标点,以及确定了各个数据观测时段对应的待测生理参数的最小值在预设坐标系中的第二坐标点后,如图6中的(b)所示,可以通过实线按照预设顺序依次连接所有所述第一坐标点,得到第一连接线b1;以及通过实线按照预设顺序依次连接所有所述第二坐标点,得到第二连接线b2。其中,预设顺序可以为数据采集时刻由早到晚的顺序,也可以为数据采集时刻由晚到早的顺序,此处不对其进行限定。In this embodiment, the terminal device determines the first coordinate point in the preset coordinate system of the maximum value of the physiological parameter to be measured corresponding to each data observation period, and determines the physiological parameter to be measured corresponding to each data observation period. After the minimum value is at the second coordinate point in the preset coordinate system, as shown in (b) in Figure 6, all the first coordinate points can be connected in sequence in a preset order through a solid line to obtain the first connecting line b1 ; And connect all the second coordinate points in sequence in a preset order through a solid line to obtain a second connecting line b2. Among them, the preset sequence may be the sequence from early to late at the time of data collection, or the sequence from late to early at the time of data collection, which is not limited here.
进一步的,如图6中的(c)所示,终端设备得到第一连接线和第二连接线后,可以对第一连接线和第二连接线均进行平滑处理,进而分别得到第一线条c1和第二线条c2。Further, as shown in Figure 6(c), after the terminal device obtains the first connection line and the second connection line, it can perform smoothing processing on both the first connection line and the second connection line to obtain the first line respectively. c1 and the second line c2.
在本实施例的一具体实现方式中,终端设备可以基于三次B样条曲线拟合算法对第一连接线和第二连接线进行平滑处理。在本实施的其他实现方式中,终端设备还可以采用其他线条平滑算法对第一连接线和第二连接线进行平滑处理,此处不对其进行限定。In a specific implementation of this embodiment, the terminal device may perform smoothing processing on the first connecting line and the second connecting line based on a cubic B-spline curve fitting algorithm. In other implementation manners of this embodiment, the terminal device may also use other line smoothing algorithms to smooth the first connecting line and the second connecting line, which is not limited here.
在本实施例中,终端设备在预设坐标系中绘制出第一线条和第二线条后,每个数据观测时段对应的,第一线条与第二线条之间的第一区域的面积的大小即可表征该数据观测时段内待测生理参数的整体大小,具体的,某数据观测时段对应的,第一线条与第二线条之间的第一区域的面积越大,表明该数据观测时段内待测生理参数的整体数据值的变化越大;某数据观测时段对应的,第一线条与第二线条之间的第一区域的面积越小,表明该数据观测时段内待测生理参数的整体数据值的变化越小。In this embodiment, after the terminal device draws the first line and the second line in the preset coordinate system, the size of the area of the first area between the first line and the second line corresponding to each data observation period It can represent the overall size of the physiological parameter to be measured in the data observation period. Specifically, for a certain data observation period, the larger the area of the first area between the first line and the second line, it indicates that the data observation period is The greater the change in the overall data value of the physiological parameter to be measured; corresponding to a certain data observation period, the smaller the area of the first area between the first line and the second line, indicating the overall physiological parameter to be measured in the data observation period The smaller the change in the data value.
本申请实施例提供的一种数据展示方法,通过将预设数据采集时段划分为多个数据观测时段,并确定每个数据观测时段内待测生理参数的数据值的最大值、最小值以及平均值;再在预设坐标系中基于所有最大值绘制并显示第一线条,以及基于所有最小值绘制并显示第二线条,由于每个数据观测时段对应的,第一线条与第二线条之间的第一区域的面积的大小可以直观地体现该数据观测时段内待测生理参数的数据值的整体大小,因此,用户可以通过观测不同数据观测时段对应的第一线条与第二线条之间的第一区域的面积的大小,直观地获知待测生理参数的数据值在不同数据观测时段的变化情况,即本申请实施例能够直观地向用户展示出待测生理参数的数据值在不同数据观测时段的变化情况。The data display method provided by the embodiments of the present application divides the preset data collection period into multiple data observation periods, and determines the maximum, minimum, and average data values of physiological parameters to be measured in each data observation period. Value; then draw and display the first line based on all the maximum values in the preset coordinate system, and draw and display the second line based on all the minimum values, because each data observation period corresponds to between the first line and the second line The size of the area of the first area can intuitively reflect the overall size of the data value of the physiological parameter to be measured in the data observation period. Therefore, the user can observe the difference between the first line and the second line corresponding to different data observation periods. The size of the area of the first region can intuitively know the changes of the data value of the physiological parameter to be measured in different data observation periods, that is, the embodiment of this application can intuitively show the user that the data value of the physiological parameter to be measured is in different data observations. Changes in time period.
在实际应用中,由于数据采集环境或待测生理参数传感器的不稳定性,导致有些数据采集时刻传感器可能采集不到待测生理参数的数据值,即有些数据采集时刻待测生理参数的数据值可能为空,进而导致这些数据采集时刻对应的数据观测时段的待测生理参数的数据值缺失,因此,在本申请一优选实施例中,在绘制第一线条和第二线条之前,数据展示方法还可以包括以下步骤:In practical applications, due to the instability of the data collection environment or the physiological parameter sensor to be measured, the sensor may not collect the data value of the physiological parameter to be measured at some data collection moments, that is, the data value of the physiological parameter to be measured at some data collection moments. It may be empty, which may result in missing data values of physiological parameters to be measured in the data observation period corresponding to these data collection moments. Therefore, in a preferred embodiment of the present application, before the first line and the second line are drawn, the data display method It can also include the following steps:
检测各个所述数据观测时段是否存在所述数据值缺失的情况;Detecting whether the data value is missing in each of the data observation periods;
将存在所述数据值缺失的情况的所述数据观测时段标记为数据缺失时段。The data observation period in which the data value is missing is marked as a data missing period.
在本实施例中,终端设备可以通过检测各个数据观测时段中包含的各个数据采集时刻是否有相对应的待测生理参数的数据值,来检测各个数据观测时段是否存在所述数据值缺失的情况。In this embodiment, the terminal device can detect whether the data value is missing in each data observation period by detecting whether there is a corresponding physiological parameter data value at each data collection time included in each data observation period. .
在本实施例一种可能的实现方式中,终端设备可以在检测到某个数据观测时段包含的所有数据采集时刻均没有相对应的待测生理参数的数据值时,认为该数据观测时段存在所述数据值缺失的情况。在本实施另一种可能的实现方式中,终端设备可以在检测到某个数据观测时段中至少有一个数据采集时刻没有相对应的待测生理参数的数据值时,认为该数据观测时段存在所述数据值缺失的情况。In a possible implementation of this embodiment, the terminal device may consider that there is no corresponding physiological parameter data value in a certain data observation period when it detects that all the data collection moments included in a certain data observation period do not have the corresponding physiological parameter data value. Describe the situation where the data value is missing. In another possible implementation manner of this implementation, the terminal device may consider that there is no corresponding physiological parameter data value in a certain data observation period when it detects that at least one data collection time in a certain data observation period does not have the corresponding physiological parameter data value. Describe the situation where the data value is missing.
终端设备在确定了存在所述数据值缺失的情况的数据观测时段后,可以将存在所述数据值缺失的情况的数据观测时段标记为数据缺失时段。After determining the data observation period in which the data value is missing, the terminal device may mark the data observation period in which the data value is missing as a data missing period.
基于此,S432中对所述第一连接线进行平滑处理,得到所述第一线条,具体可以包括:Based on this, performing smoothing processing on the first connecting line in S432 to obtain the first line may specifically include:
对所述第一连接线进行平滑处理,得到第一平滑连接线,并将所述第一平滑连接 线中所述数据缺失时段对应的部分由实线替换为虚线,得到所述第一线条。以及Smoothing is performed on the first connecting line to obtain a first smooth connecting line, and the part of the first smooth connecting line corresponding to the data missing period is replaced by a solid line with a dotted line to obtain the first line. as well as
S433中对所述第二连接线进行平滑处理,得到所述第二线条,具体可以包括:Performing smoothing processing on the second connecting line in S433 to obtain the second line may specifically include:
对所述第二连接线进行平滑处理,得到第二平滑连接线,并将所述第二平滑连接线中所述数据缺失时段对应的部分由实线替换为虚线,得到所述第二线条。Perform smoothing processing on the second connection line to obtain a second smooth connection line, and replace a solid line with a dashed line in the portion of the second smooth connection line corresponding to the data missing period to obtain the second line.
在本实施中,为了使用户能够直观地获知哪些数据观测时段存在待测生理参数的数据值缺失的情况,终端设备在对第一连接线进行平滑处理得到第一平滑线后,可以将第一平滑线中数据缺失时段对应的部分由实线替换为虚线。对应的,终端设备在对第二连接线进行平滑处理得到第二平滑线后,可以将第二平滑线中数据缺失时段对应的部分由实线替换为虚线。In this implementation, in order to enable the user to intuitively know which data observation periods have missing data values of physiological parameters to be measured, the terminal device may perform smoothing processing on the first connecting line to obtain the first smooth line. The part of the smooth line that corresponds to the period of data missing is replaced by a solid line with a dashed line. Correspondingly, after the terminal device performs smoothing processing on the second connection line to obtain the second smooth line, it may replace the portion of the second smooth line corresponding to the data missing period from the solid line to the dashed line.
示例性的,请参阅图8,图8是本申请实施例提供的另一种第一线条和第二线条的绘制过程的示意图。如图8中的(a)所示,当检测到00:34~00:35这一数据观测时段为数据缺失时段时,终端设备可以将第一平滑线中该数据观测时段对应的部分由实线替换为虚线,得到第一线条a1,以及将第二平滑线中该数据观测时段对应的部分由实线替换为虚线,得到第二线条a2。Exemplarily, please refer to FIG. 8, which is a schematic diagram of another drawing process of the first line and the second line provided by an embodiment of the present application. As shown in (a) in Figure 8, when the data observation period from 00:34 to 00:35 is detected as the data missing period, the terminal device can replace the part corresponding to the data observation period in the first smooth line from the actual data observation period. The line is replaced with a dashed line to obtain a first line a1, and the part corresponding to the data observation period in the second smooth line is replaced with a dashed line to obtain a second line a2.
在本实施例中,通过虚线来表示第一线条和第二线条中数据缺失时段对应的部分,从而使用户可以直观地获知哪些数据观测时段的待测生理参数的数据值存在缺失的情况。In this embodiment, dotted lines are used to indicate the parts of the first line and the second line corresponding to the data missing period, so that the user can intuitively know which data observation periods have missing data values of physiological parameters to be measured.
在本申请另一实施例中,为了方面用户能够直观地观测出第一线条与第二线条之间的第一区域的面积的大小,终端设备在绘制出第一线条和第二线条之后,还可以采用预设颜色对第一线条与第二线条之间的第一区域进行填充。其中,预设颜色可以根据实际需求设置。In another embodiment of the present application, in order for the user to intuitively observe the size of the area of the first region between the first line and the second line, after the terminal device draws the first line and the second line, The first area between the first line and the second line may be filled with a preset color. Among them, the preset color can be set according to actual needs.
具体的,在本实施例一具体实现方式中,终端设备可以通过以下步骤对第一线条与第二线条之间的第一区域进行填充:Specifically, in the specific implementation manner of the first embodiment, the terminal device may fill the first area between the first line and the second line through the following steps:
采用第一预设颜色填充所述数据缺失时段对应的,所述第一线条与所述第二线条之间的第二区域。Fill the second area between the first line and the second line corresponding to the data missing period with a first preset color.
采用第二预设颜色填充剩余数据观测时段对应的,所述第一线条与所述第二线条之间的第三区域;其中,所述剩余数据观测时段为除了所述数据缺失时段之外的其余数据观测时段,所述第二区域与所述第三区域构成所述第一区域。Use the second preset color to fill the third area between the first line and the second line corresponding to the remaining data observation period; wherein, the remaining data observation period is excluding the data missing period During the remaining data observation period, the second area and the third area constitute the first area.
在本实施例中,第一预设颜色和第二预设颜色为不同的颜色,第一预设颜色和第二预设颜色也可以根据实际需求设置。In this embodiment, the first preset color and the second preset color are different colors, and the first preset color and the second preset color can also be set according to actual requirements.
示例性的,如图8中的(b)所示,假设00:34~00:35这一数据观测时段为数据缺失时段,则终端设备可以通过第一预设颜色填充00:34~00:35这一数据观测时段对应的,第一线条与第二线条之间的第二区域A2;终端设备还可以通过第二预设颜色填充除了00:34~00:35这一数据观测时段之外的其余数据观测时段对应的,第一线条与第二线条之间的第三区域,具体包括00:30~00:34这一时段对应的,第一线条与第二线条之间的区域A31,以及00:35~07:30这一时段对应的,第一线条与第二线条之间的区域A32。Exemplarily, as shown in Figure 8(b), assuming that the data observation period from 00:34 to 00:35 is the data missing period, the terminal device can fill 00:34 to 00 with the first preset color: 35 This data observation period corresponds to the second area A2 between the first line and the second line; the terminal device can also fill in the second preset color in addition to the data observation period of 00:34~00:35 The remaining data observation period corresponds to the third area between the first line and the second line, specifically including the area A31 between the first line and the second line corresponding to the period from 00:30 to 00:34, And corresponding to the period from 00:35 to 07:30, the area A32 between the first line and the second line.
本实施例分别通过不同的颜色填充数据缺失时段和数据正常时段各自对应的,第一线条与第二线条之间的区域,从而使用户可以直观地获知哪些数据观测时段存在数据缺失的情况。In this embodiment, the areas between the first line and the second line corresponding to the data missing period and the data normal period are respectively filled with different colors, so that the user can intuitively know which data observation periods have data missing.
在实际应用中,当待测生理参数的数据值在预设的待测生理参数的数据值应在的正常范围内时,表示该待测生理参数所反映的人体生理状况是正常的;而当待测生理参数的数据值不在预设的待测生理参数的数据值应在的正常范围内时,说明该待测生理参数所反映的人体生理状况可能出现了异常。其中,正常范围指待测生理参数所反映的人体生理状况正常时,待测生理参数的数据值应在的范围。示例性的,以待测生理参数为人体的血氧饱和度为例,人体在正常情况下,动脉血的血氧饱和度通常大于95%;当人体存在轻度低氧血症时,人体动脉血的血氧饱和度通常小于90%;当人体存在重度低氧血症时,人体动脉血的血氧饱和度通常小于85%;因此,人体动脉血的血氧饱和度的正常范围可以是大于90%。In practical applications, when the data value of the physiological parameter to be measured is within the preset normal range that the data value of the physiological parameter to be measured should be within, it means that the physiological condition of the human body reflected by the physiological parameter to be measured is normal; and when When the data value of the physiological parameter to be measured is not within the preset normal range that the data value of the physiological parameter to be measured should be within the normal range, it indicates that the physiological condition of the human body reflected by the physiological parameter to be measured may be abnormal. Among them, the normal range refers to the range within which the data value of the physiological parameter to be measured should be in when the physiological condition of the human body reflected by the physiological parameter to be measured is normal. Exemplarily, taking the physiological parameter to be measured is the blood oxygen saturation of the human body as an example, the blood oxygen saturation of the arterial blood of the human body is usually greater than 95% under normal conditions; when the human body has mild hypoxemia, the arterial blood oxygen saturation of the human body The blood oxygen saturation of blood is usually less than 90%; when the human body has severe hypoxemia, the blood oxygen saturation of human arterial blood is usually less than 85%; therefore, the normal range of human arterial blood oxygen saturation can be greater than 90%.
基于此,在本申请又一实施例中,为了在待测生理参数所反映的待测生理状况出现异常时,对用户进行告警,本实施例在终端设备采用第二预设颜色填充剩余数据观测时段对应的,第一线条与所述第二线条之间的第三区域之后,还可以包括如图9所示的S91~S93,详述如下:Based on this, in another embodiment of the present application, in order to alert the user when the physiological condition to be measured reflected by the physiological parameter to be measured is abnormal, the terminal device uses the second preset color to fill the remaining data observation in this embodiment. Corresponding to the time period, after the third area between the first line and the second line, it may further include S91 to S93 as shown in FIG. 9, which are described in detail as follows:
S91:获取预设的正常范围包含的边界值;所述正常范围为所述待测生理参数所反映的生理状况处于正常状态时,所述待测生理参数的数据值应在的范围。S91: Obtain the boundary value included in the preset normal range; the normal range is the range within which the data value of the physiological parameter to be measured should be in when the physiological condition reflected by the physiological parameter to be measured is in a normal state.
S92:基于所述边界值,在所述预设坐标系中确定所述正常范围对应的目标区域。S92: Based on the boundary value, determine a target area corresponding to the normal range in the preset coordinate system.
S93:采用第三预设颜色填充所述第三区域与所述目标区域之间的非重叠部分。S93: Fill the non-overlapping part between the third area and the target area with a third preset color.
在实际应用中,待测生理参数的数据值应在的正常范围通常会包含一个边界值或两个边界值。示例性的,假设待测生理参数的数据值应在的正常范围为大于90%,则该正常范围仅包含一个边界值,该边界值为90%;假设待测生理参数的数据值应在的正常范围为大于90%,且小于100%,则该正常范围包含两个边界值,分别为90%和100%。In practical applications, the normal range within which the data value of the physiological parameter to be measured should lie usually contains one boundary value or two boundary values. Exemplarily, assuming that the data value of the physiological parameter to be measured should be greater than 90% of the normal range, then the normal range only contains a boundary value, which is 90%; assuming that the data value of the physiological parameter to be measured should be within The normal range is greater than 90% and less than 100%, then the normal range includes two boundary values, 90% and 100% respectively.
在本实施例一种可能的实现方式中,当待测生理参数的数据值应在的正常范围仅包含一个边界值,且该正常范围要求待测生理参数的数据值大于该边界值时,终端设备可以将预设坐标系中所有纵坐标大于该边界值的点所在的区域确定为待测生理参数的数据值应在的正常范围对应的目标区域。示例性的,如图8中的(b)和(c)所示,假设待测生理参数的数据值应在的正常范围为大于90%,则该正常范围对应的目标区域为虚线82以上的部分,那么第三区域(包括A31和A32)与该正常范围对应的目标区域之间的非重叠部分即为B11。In a possible implementation of this embodiment, when the normal range in which the data value of the physiological parameter to be measured should be within includes only one boundary value, and the normal range requires the data value of the physiological parameter to be measured to be greater than the boundary value, the terminal The device can determine the area where all the points with the ordinate greater than the boundary value in the preset coordinate system are located as the target area corresponding to the normal range in which the data value of the physiological parameter to be measured should be. Exemplarily, as shown in Figure 8 (b) and (c), assuming that the normal range of the physiological parameter to be measured should be greater than 90%, the target area corresponding to the normal range is above the dashed line 82 Part, then the non-overlapping part between the third area (including A31 and A32) and the target area corresponding to the normal range is B11.
在本实施例另一种可能的方式中,当待测生理参数的数据值应在的正常范围仅包含一个边界值,且该正常范围要求待测生理参数的数据值小于该边界值时,终端设备可以将预设坐标系中所有纵坐标小于该边界值的点所在的区域确定为待测生理参数的数据值应在的正常范围对应的目标区域。In another possible manner of this embodiment, when the normal range in which the data value of the physiological parameter to be measured should be within includes only one boundary value, and the normal range requires the data value of the physiological parameter to be measured to be less than the boundary value, the terminal The device can determine the area where all the points with the ordinate less than the boundary value in the preset coordinate system are located as the target area corresponding to the normal range in which the data value of the physiological parameter to be measured should be.
在本实施例又一种可能的方式中,当待测生理参数的数据值应在的正常范围包含两个边界值,且该正常范围要求待测生理参数的数据值小于值较大的第一边界值,且大于值较小的第二边界值时,终端设备可以将预设坐标系中所有纵坐标在第一边界值与第二边界值之间的点在的区域确定为待测生理参数的数据值应在的正常范围对应的目标区域。In yet another possible manner of this embodiment, when the normal range where the physiological parameter to be measured should be in includes two boundary values, and the normal range requires the data value of the physiological parameter to be measured to be smaller than the first larger value. When the boundary value is greater than the second boundary value with a smaller value, the terminal device may determine the area where all the points of the ordinate in the preset coordinate system are between the first boundary value and the second boundary value as the physiological parameter to be measured The data value should be in the target area corresponding to the normal range.
在本实施例又一种可能的方式中,当待测生理参数的数据值应在的正常范围包含 两个边界值,且该正常范围要求待测生理参数的数据值小于值较小的第二边界值,且大于值较大的第一边界值时,终端设备可以将预设坐标系中所有纵坐标小于第二边界值的点在的区域,以及所有纵坐标大于第一边界值的点在的区域,均确定为待测生理参数的数据值应在的正常范围对应的目标区域。In yet another possible manner of this embodiment, when the normal range that the physiological parameter to be measured should be in includes two boundary values, and the normal range requires the data value of the physiological parameter to be measured to be smaller than the second smaller value. When the boundary value is greater than the first boundary value with a larger value, the terminal device can place all points in the preset coordinate system with ordinates less than the second boundary value in the area, and all points with ordinates greater than the first boundary value in the preset coordinate system. The area is determined as the target area corresponding to the normal range in which the data value of the physiological parameter to be measured should be in.
在本实施例中,终端设备确定了待测生理参数的数据值应在的正常范围在预设坐标系中对应的目标区域后,确定第三区域与待测生理参数的数据值应在的正常范围对应的目标区域之间的非重叠部分,并采用第三预设颜色填充第三区域与所述正常范围对应的目标区域之间的非重叠部分。其中,第三预设颜色不同于第一预设颜色和第二预设颜色。In this embodiment, after the terminal device determines the normal range in which the data value of the physiological parameter to be measured should be in the target area corresponding to the preset coordinate system, it determines that the third area and the data value of the physiological parameter to be measured should be in the normal range. The non-overlapping part between the target areas corresponding to the range is filled with a third preset color to fill the non-overlapping part between the third area and the target area corresponding to the normal range. Wherein, the third preset color is different from the first preset color and the second preset color.
本实施例可以通过非重叠部分对应的数据观测时段,来表征存在数据值不在正常范围内的情况的数据观测时段,因此,通过采用第三预设颜色填充非重叠部分,可以使用户直观地或者哪些数据观测时段内可能存在待测生理参数的数据值不在正常范围内的情况。In this embodiment, the data observation period corresponding to the non-overlapping part can be used to characterize the data observation period when the data value is not within the normal range. Therefore, by using the third preset color to fill the non-overlapping part, the user can intuitively or During which data observation period, there may be situations where the data value of the physiological parameter to be measured is not within the normal range.
在本申请又一实施例中,在S43之后,数据展示方法还可以包括以下步骤:In another embodiment of the present application, after S43, the data display method may further include the following steps:
当检测到对所述横轴上的任一所述数据观测时段的操作时,显示所操作的数据观测时段内的所述最大值、所述最小值和/或所述平均值。When an operation on any of the data observation period on the horizontal axis is detected, the maximum value, the minimum value and/or the average value in the operated data observation period are displayed.
在本实施例中,终端设备绘制好第一线条和第二线条后,用户可以通过对横轴上的数据观测时段进行操作,来获知各个数据观测时段内数据值的最大值、最小值和/或平均值。示例性的,在本实施例一种可能的方式中,当终端设备的输入设备包含鼠标时,用户可以通过在横轴上移动鼠标的光标,使鼠标的光标分别停留在横轴上的各个数据观测时段,来获知各个数据观测时段内数据值的最大值、最小值和/或平均值;在本实施例另一种可能的方式中,当终端设备支持触摸输入时,用户还可以直接通过手指触控横轴上的各个数据观测时段,来获知各个数据观测时段内数据值的最大值、最小值和/或平均值。In this embodiment, after the terminal device draws the first line and the second line, the user can obtain the maximum, minimum, and/or data values in each data observation period by operating on the data observation period on the horizontal axis. Or average. Exemplarily, in a possible manner of this embodiment, when the input device of the terminal device includes a mouse, the user can move the cursor of the mouse on the horizontal axis, so that the cursor of the mouse stays on each data on the horizontal axis. Observation period, to know the maximum, minimum, and/or average value of the data value in each data observation period; in another possible way of this embodiment, when the terminal device supports touch input, the user can also directly use a finger Touch each data observation period on the horizontal axis to obtain the maximum, minimum, and/or average value of the data value in each data observation period.
具体的,终端设备在检测到用户对横轴上的某个数据观测时段的操作时,可以在用户所操作的位置显示一与横轴垂直的指示线,并基于用户所操作的数据观测时段内数据值的最大值、最小值及平均值,分别在指示线上的相应位置显示最大值、最小值和/或平均值各自对应的指示点,并对各个指示点所表征的数据值的最大值、最小值和/或平均值进行显示。Specifically, when the terminal device detects the user's operation on a certain data observation period on the horizontal axis, it can display an indicator line perpendicular to the horizontal axis at the position operated by the user, and based on the data observation period operated by the user The maximum value, minimum value and average value of the data value, respectively display the corresponding indication points of the maximum value, minimum value and/or average value at the corresponding position on the indication line, and the maximum value of the data value represented by each indication point , Minimum and/or average value.
示例性的,如图8中的(c)所示,当用户将鼠标的光标81停留在横轴的00:33~00:34这一数据观测时段内时,终端设备可以在光标81的停留处显示一与横轴垂直的指示线82,假设00:33~00:34这一数据观测对应的多个数据值的最大值、最小值及平均值分别为97.5、91及95,则终端设备可以在指示线上纵轴坐标分别为97.5、91及95的位置,分别显示该数据观测时段内数据值的最大值、最小值以及平均值各自对应的指示点821、823及822,同时,终端设备还可以通过显示框83的形式对指示点821、823及822所表征的数据值的最大值、最小值以及平均值进行显示。Exemplarily, as shown in FIG. 8(c), when the user holds the cursor 81 of the mouse in the data observation period of 00:33 to 00:34 on the horizontal axis, the terminal device can hold the cursor 81 An indicator line 82 perpendicular to the horizontal axis is displayed at the position. Assuming that the maximum, minimum, and average values of the multiple data values corresponding to the data observation from 00:33 to 00:34 are 97.5, 91, and 95, respectively, the terminal equipment You can display the indication points 821, 823, and 822 corresponding to the maximum, minimum, and average values of the data value during the observation period of the data on the position of the vertical axis on the indicator line at 97.5, 91, and 95 respectively. At the same time, the terminal The device can also display the maximum, minimum, and average values of the data values represented by the indicator points 821, 823, and 822 in the form of a display frame 83.
本实施例中,用户可以通过对不同的数据观测时段进行操作来使终端设备显示不同的数据观测时段内待测生理参数的数据值的最大值、最小值和/或平均值,这样,用户可以通过对比不同数据观测时段内待测生理参数的数据值的最大值、最小值和/或平 均值,直观地获知待测生理参数的数据值在不同数据观测时段的变化情况,即本申请实施例通过数值显示的方式,能够更加直观地向用户展示出待测生理参数的数据值在不同数据观测时段的变化情况。In this embodiment, the user can make the terminal device display the maximum, minimum, and/or average value of the physiological parameter to be measured in different data observation periods by operating on different data observation periods. In this way, the user can By comparing the maximum value, minimum value and/or average value of the physiological parameter to be measured in different data observation periods, the changes of the data value of the physiological parameter to be measured in different data observation periods can be intuitively obtained, that is, the embodiment of the present application By means of numerical display, it is possible to more intuitively show the user the changes in the data values of the physiological parameters to be measured during different data observation periods.
可以理解的是,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It can be understood that the size of the sequence number of each step in the above embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any implementation process of the embodiments of this application. limited.
对应于上述实施例所述的数据展示方法,图10示出了本申请实施例提供的一种终端设备的结构框图,该终端设备包括的各单元用于执行上述实施例中的各步骤,具体请参阅上述实施例中的相关描述,为了便于说明,仅示出了与本申请实施例相关的部分。在实际应用中,该终端设备可以是可穿戴设备,也可以是手机、平板电脑等移动终端。请参阅图10,该终端设备100包括第一获取单元101、第一确定单元102及第一显示单元103。其中:Corresponding to the data display method described in the foregoing embodiment, FIG. 10 shows a structural block diagram of a terminal device provided by an embodiment of the present application. Each unit included in the terminal device is used to perform each step in the foregoing embodiment. Please refer to the related descriptions in the foregoing embodiments. For ease of description, only the parts related to the embodiments of the present application are shown. In practical applications, the terminal device may be a wearable device, or a mobile terminal such as a mobile phone or a tablet computer. Referring to FIG. 10, the terminal device 100 includes a first obtaining unit 101, a first determining unit 102, and a first display unit 103. in:
第一获取单元101用于获取在预设数据采集时段内采集到的待测生理参数的数据值。The first acquiring unit 101 is configured to acquire the data value of the physiological parameter to be measured collected within the preset data collection period.
第一确定单元102用于将所述预设数据采集时段划分为多个数据观测时段,并确定每个所述数据观测时段内所述数据值的最大值、最小值以及平均值。The first determining unit 102 is configured to divide the preset data collection period into a plurality of data observation periods, and determine the maximum value, the minimum value, and the average value of the data value in each data observation period.
第一显示单元103用于在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条;所述预设坐标系以采集时间为横轴,以所述待测生理参数的数据值为纵轴。The first display unit 103 is configured to draw and display a first line based on all the maximum values in a preset coordinate system, and draw and display a second line based on all the minimum values; the preset coordinate system takes the collection time as The horizontal axis uses the data value of the physiological parameter to be measured as the vertical axis.
进一步的,终端设备100还包括第二显示单元。Further, the terminal device 100 further includes a second display unit.
第二显示单元用于当检测到对所述横轴上的任一所述数据观测时段的操作时,显示所操作的数据观测时段内的所述最大值、所述最小值和/或所述平均值。The second display unit is used to display the maximum, minimum and/or average value.
进一步的,第一显示单元103可以包括坐标点确定单元、第一线条绘制单元及第二线条绘制单元。其中:Further, the first display unit 103 may include a coordinate point determination unit, a first line drawing unit, and a second line drawing unit. in:
坐标点确定单元用于确定各个所述最大值在所述预设坐标系中的第一坐标点,以及确定各个所述最小值在所述预设坐标系中的第二坐标点。The coordinate point determining unit is used to determine the first coordinate point of each of the maximum value in the preset coordinate system, and determine the second coordinate point of each of the minimum value in the preset coordinate system.
第一线条绘制单元用于通过实线按照预设顺序依次连接所有所述第一坐标点,得到第一连接线,并对所述第一连接线进行平滑处理,得到所述第一线条;所述预设顺序为所述采集时间由早到晚的顺序,或所述采集时间由晚到早的顺序。The first line drawing unit is configured to sequentially connect all the first coordinate points in a preset order through a solid line to obtain a first connecting line, and perform smoothing processing on the first connecting line to obtain the first line; The preset sequence is the sequence from early to late for the collection time, or the sequence from late to early for the collection time.
第二线条绘制单元用于通过实线按照所述预设顺序依次连接所有所述第二坐标点,得到第二连接线,并对所述第二连接线进行平滑处理,得到所述第二线条。The second line drawing unit is configured to sequentially connect all the second coordinate points in the preset order through a solid line to obtain a second connecting line, and perform smoothing processing on the second connecting line to obtain the second line .
进一步的,终端设备100还可以包括第一检测单元和第一标记单元。其中:Further, the terminal device 100 may also include a first detection unit and a first marking unit. in:
第一检测单元用于检测各个所述数据观测时段是否存在所述数据值缺失的情况。The first detection unit is used to detect whether the data value is missing in each data observation period.
第一标记单元用于将存在所述数据值缺失的情况的所述数据观测时段标记为数据缺失时段。The first marking unit is used to mark the data observation period in which the data value is missing as a data missing period.
相应的,第一线条绘制单元具体用于对所述第一连接线进行平滑处理,得到第一平滑连接线,并将所述第一平滑连接线中所述数据缺失时段对应的部分由实线替换为虚线,得到所述第一线条。Correspondingly, the first line drawing unit is specifically configured to perform smoothing processing on the first connection line to obtain a first smooth connection line, and divide the portion corresponding to the data missing period in the first smooth connection line by a solid line Replace with a dashed line to obtain the first line.
第二线条绘制单元具体用于对所述第二连接线进行平滑处理,得到第二平滑连接 线,并将所述第二平滑连接线中所述数据缺失时段对应的部分由实线替换为虚线,得到所述第二线条。The second line drawing unit is specifically configured to perform smoothing processing on the second connection line to obtain a second smooth connection line, and replace the portion of the second smooth connection line corresponding to the data missing period from a solid line to a dashed line , To obtain the second line.
进一步的,终端设备100还可以包括颜色填充单元。Further, the terminal device 100 may also include a color filling unit.
颜色填充单元用于采用预设颜色填充所述第一线条与所述第二线条之间的第一区域。The color filling unit is used to fill the first area between the first line and the second line with a preset color.
进一步的,颜色填充单元具体可以包括第一颜色填充单元和第二颜色填充单元。其中:Further, the color filling unit may specifically include a first color filling unit and a second color filling unit. in:
第一颜色填充单元用于采用第一预设颜色填充所述数据缺失时段对应的,所述第一线条与所述第二线条之间的第二区域。The first color filling unit is configured to use a first preset color to fill the second area between the first line and the second line corresponding to the data missing period.
第二颜色填充单元用于采用第二预设颜色填充剩余数据观测时段对应的,所述第一线条与所述第二线条之间的第三区域;其中,所述剩余数据观测时段为除了所述数据缺失时段之外的其余数据观测时段,所述第二区域与所述第三区域构成所述第一区域。The second color filling unit is used to fill the third area between the first line and the second line corresponding to the remaining data observation period with a second preset color; wherein, the remaining data observation period is except for the remaining data observation period. For the remaining data observation period outside the data missing period, the second area and the third area constitute the first area.
进一步的,颜色填充单元还可以包括第二获取单元、第二确定单元及第三颜色填充单元。其中:Further, the color filling unit may also include a second acquiring unit, a second determining unit, and a third color filling unit. in:
第二获取单元用于获取预设的正常范围包含的边界值;所述正常范围为所述待测生理参数所反映的生理状况处于正常状态时,所述待测生理参数的数据值应在的范围。The second acquiring unit is used to acquire the boundary value included in the preset normal range; the normal range is when the physiological condition reflected by the physiological parameter to be measured is in a normal state, the data value of the physiological parameter to be measured should be Scope.
第二确定单元用于基于所述边界值,在所述预设坐标系中确定所述正常范围对应的目标区域。The second determining unit is configured to determine the target area corresponding to the normal range in the preset coordinate system based on the boundary value.
第三颜色填充单元用于采用第三预设颜色填充所述第三区域与所述目标区域之间的非重叠部分。The third color filling unit is configured to use a third preset color to fill the non-overlapping part between the third area and the target area.
进一步的,第一确定单元具体可以包括:第三获取单元和时段划分单元。其中:Further, the first determining unit may specifically include: a third acquiring unit and a time period dividing unit. in:
第三获取单元用于获取用于显示所述数据值的目标终端的屏幕尺寸。The third acquiring unit is used to acquire the screen size of the target terminal for displaying the data value.
时段划分单元用于根据所述屏幕尺寸确定基准观测时长,并基于所述基准观测时长将所述预设数据采集时段划分为多个数据观测时段。The time period division unit is configured to determine a reference observation time period according to the screen size, and divide the preset data collection time period into multiple data observation time periods based on the reference observation time period.
以上可以看出,本申请实施例提供的一种终端设备,通过将预设数据采集时段划分为多个数据观测时段,并确定每个数据观测时段内待测生理参数的数据值的最大值、最小值以及平均值;再在预设坐标系中基于所有最大值绘制并显示第一线条,以及基于所有最小值绘制并显示第二线条,由于每个数据观测时段对应的,第一线条与第二线条之间的第一区域的面积的大小可以直观地体现该数据观测时段内待测生理参数的数据值的整体大小,因此,用户可以通过观测不同数据观测时段对应的第一线条与第二线条之间的第一区域的面积的大小,直观地获知待测生理参数的数据值在不同数据观测时段的变化情况,即本申请实施例能够直观地向用户展示出待测生理参数的数据值在不同数据观测时段的变化情况。It can be seen from the above that the terminal device provided by the embodiment of the present application divides the preset data collection period into multiple data observation periods, and determines the maximum value and the maximum value of the physiological parameter to be measured in each data observation period. Minimum value and average value; then draw and display the first line based on all the maximum values in the preset coordinate system, and draw and display the second line based on all the minimum values. Because each data observation period corresponds to the first line and the first line The area of the first area between the two lines can intuitively reflect the overall size of the data value of the physiological parameter to be measured in the data observation period. Therefore, the user can observe the first line and the second line corresponding to the different data observation period. The size of the area of the first area between the lines can intuitively know the changes of the data value of the physiological parameter to be measured in different data observation periods, that is, the embodiment of the present application can intuitively display the data value of the physiological parameter to be measured to the user Changes in different data observation periods.
请参阅图11,图11是本申请另一实施例提供的终端设备的结构示意图。如图11所示,该实施例的终端设备100包括:至少一个处理器140(图11中仅示出一个)处理器、存储器141以及存储在所述存储器141中并可在所述至少一个处理器140上运行的计算机程序142,所述处理器140执行所述计算机程序142时实现上述任意各个数据展示方法实施例中的步骤。Please refer to FIG. 11, which is a schematic structural diagram of a terminal device according to another embodiment of the present application. As shown in FIG. 11, the terminal device 100 of this embodiment includes: at least one processor 140 (only one is shown in FIG. 11), a processor, a memory 141, and a processor stored in the memory 141 and capable of being processed in the at least one processor. A computer program 142 running on the processor 140, when the processor 140 executes the computer program 142, the steps in any of the foregoing data display method embodiments are implemented.
所述终端设备100可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。该终端设备可包括,但不仅限于,处理器140、存储器141。本领域技术人员可以理解,图11仅仅是终端设备100的举例,并不构成对终端设备100的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。The terminal device 100 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, a processor 140 and a memory 141. Those skilled in the art can understand that FIG. 11 is only an example of the terminal device 100 and does not constitute a limitation on the terminal device 100. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. , For example, can also include input and output devices, network access devices, and so on.
所称处理器140可以是中央处理单元(Central Processing Unit,CPU),该处理器140还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 140 may be a central processing unit (Central Processing Unit, CPU), and the processor 140 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and application specific integrated circuits (Application Specific Integrated Circuits). , ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器141在一些实施例中可以是所述终端设备100的内部存储单元,例如终端设备100的硬盘或内存。所述存储器141在另一些实施例中也可以是所述终端设备100的外部存储设备,例如所述终端设备100上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器141还可以既包括所述终端设备100的内部存储单元也包括外部存储设备。所述存储器141用于存储操作系统、应用程序、引导装载程序(BootLoader)、数据以及其他程序等,例如所述计算机程序的程序代码等。所述存储器141还可以用于暂时地存储已经输出或者将要输出的数据。In some embodiments, the memory 141 may be an internal storage unit of the terminal device 100, for example, a hard disk or a memory of the terminal device 100. In other embodiments, the memory 141 may also be an external storage device of the terminal device 100, such as a plug-in hard disk, a smart media card (SMC), and a secure digital device equipped on the terminal device 100. (Secure Digital, SD) card, Flash Card, etc. Further, the memory 141 may also include both an internal storage unit of the terminal device 100 and an external storage device. The memory 141 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 141 can also be used to temporarily store data that has been output or will be output.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction and execution process between the above-mentioned devices/units are based on the same concept as the method embodiment of this application, and its specific functions and technical effects can be found in the method embodiment section. I won't repeat it here.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of a software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时可实现上述数据展示方法中的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned data display method can be realized.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时可实现上述数据展示方法中的步骤。The embodiments of the present application provide a computer program product. When the computer program product runs on a mobile terminal, the steps in the above data display method can be realized when the mobile terminal is executed.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实 现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。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 implementation of all or part of the processes in the above-mentioned embodiment methods in the present application can be accomplished by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium. For example, U disk, mobile hard disk, floppy disk or CD-ROM, etc. In some jurisdictions, according to legislation and patent practices, computer-readable media cannot be electrical carrier signals and telecommunication signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/network equipment and method may be implemented in other ways. For example, the device/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units. Or components can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分别到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be separately on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (11)

  1. 一种数据展示方法,其特征在于,包括:A data display method, characterized in that it includes:
    获取在预设数据采集时段内采集到的待测生理参数的数据值;Obtain the data value of the physiological parameter to be measured collected during the preset data collection period;
    将所述预设数据采集时段划分为多个数据观测时段,并确定每个所述数据观测时段内所述数据值的最大值、最小值以及平均值;Dividing the preset data collection period into a plurality of data observation periods, and determining the maximum value, the minimum value, and the average value of the data value in each data observation period;
    在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条;所述预设坐标系以采集时间为横轴,以所述待测生理参数的数据值为纵轴。The first line is drawn and displayed based on all the maximum values in the preset coordinate system, and the second line is drawn and displayed based on all the minimum values; The data value of the measured physiological parameter is the vertical axis.
  2. 如权利要求1所述的数据展示方法,其特征在于,在所述在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条之后,还包括:The data display method of claim 1, wherein the first line is drawn and displayed based on all the maximum values in the preset coordinate system, and the second line is drawn and displayed based on all the minimum values After that, it also includes:
    当检测到对所述横轴上的任一所述数据观测时段的操作时,显示所操作的数据观测时段内的所述最大值、所述最小值和/或所述平均值。When an operation on any of the data observation period on the horizontal axis is detected, the maximum value, the minimum value and/or the average value in the operated data observation period are displayed.
  3. 如权利要求1或2所述的数据展示方法,其特征在于,所述在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条,包括:The data display method according to claim 1 or 2, wherein the first line is drawn and displayed based on all the maximum values in a preset coordinate system, and the second line is drawn and displayed based on all the minimum values. Lines, including:
    确定各个所述最大值在所述预设坐标系中的第一坐标点,以及确定各个所述最小值在所述预设坐标系中的第二坐标点;Determining the first coordinate point of each of the maximum value in the preset coordinate system, and determining the second coordinate point of each of the minimum value in the preset coordinate system;
    通过实线按照预设顺序依次连接所有所述第一坐标点,得到第一连接线,并对所述第一连接线进行平滑处理,得到所述第一线条;所述预设顺序为所述采集时间由早到晚的顺序,或所述采集时间由晚到早的顺序;All the first coordinate points are sequentially connected in a preset order through a solid line to obtain a first connecting line, and the first connecting line is smoothed to obtain the first line; the preset order is the The sequence of the collection time from early to late, or the sequence of the collection time from late to early;
    通过实线按照所述预设顺序依次连接所有所述第二坐标点,得到第二连接线,并对所述第二连接线进行平滑处理,得到所述第二线条。All the second coordinate points are sequentially connected by a solid line in the preset order to obtain a second connecting line, and the second connecting line is smoothed to obtain the second line.
  4. 如权利要求3所述的数据展示方法,其特征在于,在所述将所述预设数据采集时段划分为多个数据观测时段之后,在所述在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条之前,还包括:The data display method according to claim 3, wherein after the preset data collection period is divided into a plurality of data observation periods, in the preset coordinate system based on all the maximum values Before drawing and displaying the first line and drawing and displaying the second line based on all the minimum values, it also includes:
    检测各个所述数据观测时段是否存在所述数据值缺失的情况;Detecting whether the data value is missing in each of the data observation periods;
    将存在所述数据值缺失的情况的所述数据观测时段标记为数据缺失时段;Mark the data observation period in which the data value is missing as a data missing period;
    相应的,所述对所述第一连接线进行平滑处理,得到所述第一线条,包括:Correspondingly, the performing smoothing processing on the first connecting line to obtain the first line includes:
    对所述第一连接线进行平滑处理,得到第一平滑连接线,并将所述第一平滑连接线中所述数据缺失时段对应的部分由实线替换为虚线,得到所述第一线条;以及Performing smoothing processing on the first connecting line to obtain a first smooth connecting line, and replacing a portion of the first smooth connecting line corresponding to the data missing period with a dashed line from a solid line to obtain the first line; as well as
    所述对所述第二连接线进行平滑处理,得到所述第二线条,包括:The performing smoothing processing on the second connecting line to obtain the second line includes:
    对所述第二连接线进行平滑处理,得到第二平滑连接线,并将所述第二平滑连接线中所述数据缺失时段对应的部分由实线替换为虚线,得到所述第二线条。Perform smoothing processing on the second connection line to obtain a second smooth connection line, and replace a solid line with a dashed line in the portion of the second smooth connection line corresponding to the data missing period to obtain the second line.
  5. 如权利要求4所述的数据展示方法,其特征在于,在所述在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条之后,还包括:The data display method of claim 4, wherein the first line is drawn and displayed based on all the maximum values in the preset coordinate system, and the second line is drawn and displayed based on all the minimum values After that, it also includes:
    采用预设颜色填充所述第一线条与所述第二线条之间的第一区域。The first area between the first line and the second line is filled with a preset color.
  6. 如权利要求5所述的数据展示方法,其特征在于,所述采用预设颜色填充所述 第一线条与所述第二线条之间的第一区域,包括:The data display method according to claim 5, wherein said filling a first area between said first line and said second line with a preset color comprises:
    采用第一预设颜色填充所述数据缺失时段对应的,所述第一线条与所述第二线条之间的第二区域;Using a first preset color to fill the second area between the first line and the second line corresponding to the data missing period;
    采用第二预设颜色填充剩余数据观测时段对应的,所述第一线条与所述第二线条之间的第三区域;其中,所述剩余数据观测时段为除了所述数据缺失时段之外的其余数据观测时段,所述第二区域与所述第三区域构成所述第一区域。Use the second preset color to fill the third area between the first line and the second line corresponding to the remaining data observation period; wherein, the remaining data observation period is excluding the data missing period During the remaining data observation period, the second area and the third area constitute the first area.
  7. 如权利要求6所述的数据展示方法,其特征在于,在所述采用第二预设颜色填充剩余数据观测时段对应的,第一线条与所述第二线条之间的第三区域之后,还包括:The data display method of claim 6, wherein after the second preset color is used to fill the third area between the first line and the second line corresponding to the remaining data observation period, further include:
    获取预设的正常范围包含的边界值;所述正常范围为所述待测生理参数所反映的生理状况处于正常状态时,所述待测生理参数的数据值应在的范围;Acquiring the boundary value included in the preset normal range; the normal range is the range within which the data value of the physiological parameter to be measured should be in when the physiological condition reflected by the physiological parameter to be measured is in a normal state;
    基于所述边界值,在所述预设坐标系中确定所述正常范围对应的目标区域;Based on the boundary value, determining a target area corresponding to the normal range in the preset coordinate system;
    采用第三预设颜色填充所述第三区域与所述目标区域之间的非重叠部分。A third preset color is used to fill the non-overlapping part between the third area and the target area.
  8. 如权利要求1至7任一项所述的数据展示方法,其特征在于,所述将所述预设数据采集时段划分为多个数据观测时段,包括:The data display method according to any one of claims 1 to 7, wherein the dividing the preset data collection period into a plurality of data observation periods includes:
    获取用于显示所述数据值的目标终端的屏幕尺寸;Acquiring the screen size of the target terminal for displaying the data value;
    根据所述屏幕尺寸确定基准观测时长,并基于所述基准观测时长将所述预设数据采集时段划分为多个数据观测时段。A reference observation time period is determined according to the screen size, and the preset data collection period is divided into multiple data observation periods based on the reference observation time period.
  9. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it comprises:
    第一获取单元,用于获取在预设数据采集时段内采集到的待测生理参数的数据值;The first obtaining unit is configured to obtain the data value of the physiological parameter to be measured collected within the preset data collection period;
    第一确定单元,用于将所述预设数据采集时段划分为多个数据观测时段,并确定每个所述数据观测时段内所述数据值的最大值、最小值以及平均值;A first determining unit, configured to divide the preset data collection period into a plurality of data observation periods, and determine the maximum value, minimum value, and average value of the data value in each data observation period;
    第一显示单元,用于在预设坐标系中基于所有所述最大值绘制并显示第一线条,以及基于所有所述最小值绘制并显示第二线条;所述预设坐标系以采集时间为横轴,以所述待测生理参数的数据值为纵轴。The first display unit is configured to draw and display a first line based on all the maximum values in a preset coordinate system, and draw and display a second line based on all the minimum values; the preset coordinate system takes the collection time as The horizontal axis uses the data value of the physiological parameter to be measured as the vertical axis.
  10. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至8任一项所述的数据展示方法。A terminal device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program as claimed in claims 1 to 8. Any of the data display methods.
  11. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至8任一项所述的数据展示方法。A computer-readable storage medium storing a computer program, wherein the computer program implements the data display method according to any one of claims 1 to 8 when the computer program is executed by a processor.
PCT/CN2020/124153 2020-02-19 2020-10-27 Data presentation method, terminal device and storage medium WO2021164300A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010102583.4A CN113284585A (en) 2020-02-19 2020-02-19 Data display method, terminal device and storage medium
CN202010102583.4 2020-02-19

Publications (1)

Publication Number Publication Date
WO2021164300A1 true WO2021164300A1 (en) 2021-08-26

Family

ID=77275121

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/124153 WO2021164300A1 (en) 2020-02-19 2020-10-27 Data presentation method, terminal device and storage medium

Country Status (2)

Country Link
CN (1) CN113284585A (en)
WO (1) WO2021164300A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662416A (en) * 2022-11-21 2023-08-29 荣耀终端有限公司 Data display method, terminal and storage medium
CN116484179B (en) * 2023-06-20 2023-09-08 厦门精图信息技术有限公司 Interactive data cleaning system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1121798A (en) * 1994-08-16 1996-05-08 北京工业大学 Cardiovascular function dynamic parameter testing analysis method and apparatus
CN1525395A (en) * 2003-02-24 2004-09-01 深圳迈瑞生物医疗电子股份有限公司 Method for detecting extreme point and period of signal time domain
CN105451645A (en) * 2013-08-13 2016-03-30 皇家飞利浦有限公司 Method and display for long term physiological signal quality indication
CN107870753A (en) * 2016-09-28 2018-04-03 北京京东尚科信息技术有限公司 Data presentation method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101701973B (en) * 2009-11-18 2011-05-18 北京普源精电科技有限公司 Measuring data acquisition device and method thereof
CN107106029A (en) * 2014-12-18 2017-08-29 皇家飞利浦有限公司 System from Health & Fitness Tip to person under inspection, equipment, method and computer program for providing
CN108903977A (en) * 2018-05-25 2018-11-30 上海交大临港智能制造创新科技有限公司 A kind of cycle monitoring method and device of basal body temperature

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1121798A (en) * 1994-08-16 1996-05-08 北京工业大学 Cardiovascular function dynamic parameter testing analysis method and apparatus
CN1525395A (en) * 2003-02-24 2004-09-01 深圳迈瑞生物医疗电子股份有限公司 Method for detecting extreme point and period of signal time domain
CN105451645A (en) * 2013-08-13 2016-03-30 皇家飞利浦有限公司 Method and display for long term physiological signal quality indication
CN107870753A (en) * 2016-09-28 2018-04-03 北京京东尚科信息技术有限公司 Data presentation method and device

Also Published As

Publication number Publication date
CN113284585A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
WO2021169337A1 (en) In-screen fingerprint display method and electronic device
CN113827185B (en) Wearing tightness degree detection method and device for wearing equipment and wearing equipment
WO2021258814A1 (en) Video synthesis method and apparatus, electronic device, and storage medium
WO2021218540A1 (en) Antenna power adjustment method, terminal device and storage medium
WO2021052070A1 (en) Frame rate identification method and electronic device
WO2022127787A1 (en) Image display method and electronic device
WO2022001258A1 (en) Multi-screen display method and apparatus, terminal device, and storage medium
CN113704205B (en) Log storage method, chip, electronic device and readable storage medium
EP4231147A1 (en) Drawing command processing method and related device therefor
WO2021218429A1 (en) Method for managing application window, and terminal device and computer-readable storage medium
CN114327127B (en) Method and apparatus for sliding frame loss detection
WO2022042637A1 (en) Bluetooth-based data transmission method and related apparatus
WO2021169370A1 (en) Method for cross-device allocation of service elements, terminal device, and storage medium
WO2022052897A1 (en) Method and device for adjusting memory configuration parameter
WO2023056795A1 (en) Quick photographing method, electronic device, and computer readable storage medium
WO2021164300A1 (en) Data presentation method, terminal device and storage medium
WO2022143180A1 (en) Collaborative display method, terminal device, and computer readable storage medium
WO2021238460A1 (en) Risk pre-warning method, risk behavior information acquisition method, and electronic device
CN115119048A (en) Video stream processing method and electronic equipment
WO2022052786A1 (en) Method and apparatus for displaying skin sensitivity, electronic device, and readable storage medium
CN114828098B (en) Data transmission method and electronic equipment
WO2020233581A1 (en) Height measuring method and electronic device
CN114003241A (en) Interface adaptation display method and system of application program, electronic device and medium
CN116048831B (en) Target signal processing method and electronic equipment
CN114020186B (en) Health data display method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20919914

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20919914

Country of ref document: EP

Kind code of ref document: A1