Data display method, electronic device, and readable storage medium
By developing a data display method in a wearable device, detecting and adjusting the number of times the data state appears and smoothing the data, the problem of data display distortion on small screen devices is solved, and the user experience is improved.
Patent Information
- Application Number
- PCT/CN2024/137245
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-20
- Filing Date
- 2024-12-05
- Publication Date
- 2025-06-26
AI Technical Summary
Due to the small screen size of existing wearable devices, they cannot accurately display data on the terminal on the device, resulting in distortion in the data display and poor user experience.
By developing a data display method in an electronic device, after obtaining the initial data, it detects whether the state of the continuous data is the same, adjusts the number of times the state occurs to avoid unclear display problems, and smooths the data to remove jump data.
It effectively avoids data display distortion on small screen devices, improves the effect of data display and user experience, and allows users to clearly see the data in each state.
Smart Images

Figure CN2024137245_26062025_PF_FP_ABST
Abstract
Description
Data display method, electronic device and readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 20, 2023, with application number 202311767368.6 and application name “Data Display Method, Electronic Device and Readable Storage Medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of terminal technology, and in particular to a data display method, an electronic device, and a readable storage medium. Background Art
[0003] As wearable devices become increasingly versatile, most now include data monitoring capabilities, such as exercise and sleep data. Currently, wearable devices transmit data to connected terminals, which then display the data. However, users often want to see the data directly on their wearable devices. Wearable screens are small, so displaying data directly from the terminal on the wearable device can result in distortion and a poor user experience. Summary of the Invention
[0004] The embodiments of the present application provide a data display method, an electronic device, and a readable storage medium, which can avoid data distortion on a small-screen wearable device, improve data display effects, and enhance user experience.
[0005] In a first aspect, embodiments of the present application provide a data display method, which is applied to an electronic device having a screen size smaller than a preset size. For example, the electronic device may be a wearable device. It should be understood that the execution entity of the data display method may be an electronic device or a chip in the electronic device. The following description will take an electronic device as an example. In this method, the electronic device may obtain initial data, where the initial data includes N data, where N is a positive integer.
[0006] The initial data includes N data, each of which can represent a different state. Exemplarily, taking the data as sleep data as an example, the initial data may include N data, each of which can represent a sleep state. In some embodiments, each sleep state may also correspond to a time (or time period), which may be regarded as the duration of the sleep state, and the duration of the sleep state may include the time when the sleep state starts and the time when the sleep state ends. The embodiment of the present application does not limit the type of data. For example, the data may also be motion data, physiological data, and environmental data, etc. The following description will be made using the data as sleep data as an example.
[0007] In an embodiment of the present application, the data is sleep data, and the state of the data includes at least two of the following: light sleep, deep sleep, eye movement, and wakefulness.
[0008] The electronic device detects whether states of X consecutive data among the N data are the same, where X is an integer less than or equal to N. When the states of the X data are different and the number of consecutive occurrences of data in a first state is less than a first threshold, the data in a second state is modified to the first state, where the second state is different from the first state, and the first state is the state of the first data among the X data.
[0009] In addition, when the states of the X data are the same, or when the states of the X data are different and the number of consecutive occurrences of data in the first state is greater than or equal to the first threshold, the electronic device can detect whether the states of other consecutive X data in the N data are the same.
[0010] In a possible implementation, because the awake state of the sleep data is accurately determined, the state of the X data is not awake.
[0011] The electronic device can display the processed data. The purpose of the configuration of the embodiment of the present application is to enable the number of times each state appears to reach a first threshold, that is, each state lasts longer, so as to avoid the problem of too few states appearing. When the number of times a state appears is too few, the state data occupies fewer pixels when displayed on the electronic device, and the display may be unclear. Therefore, the configuration of the embodiment of the present application can ensure that the data of each state occupies more pixels when displayed on the electronic device, which can ensure the effect of data display, ensure that the user can clearly see each state in the data, and improve the user experience.
[0012] In an embodiment of the present application, N data can be traversed, and the data can be smoothed in combination with the states of the previous and next data in the N data, and the jump data can be merged into the adjacent state. This can avoid the impact of abnormal data (jump data) on the effect of data display, avoid data distortion, and improve user experience.
[0013] The processing of the initial data in the above example can be considered as the first smoothing process. To further improve the data display effect, in some embodiments, the electronic device can also perform a second smoothing process on the data. In this case, among the N data, Y consecutive data are detected to determine whether there is a state where the number of consecutive occurrences is less than a second threshold, where Y is an integer less than or equal to N.
[0014] Wherein, when there is a state whose number of consecutive occurrences is less than a second threshold value, and the number of data in the first preset state in the Y data is greater than or equal to the number of data in the second preset state, the data in the second preset state is modified to the first preset state. Wherein, when there is a state whose number of consecutive occurrences is less than a second threshold value, and the number of data in the first preset state in the Y data is less than the number of data in the second preset state, the data in the first preset state is modified to the second preset state.
[0015] When the data is sleep data, in a possible implementation, the first preset state is light sleep, and the second preset state is deep sleep.
[0016] In the embodiments of the present application, this configuration is designed to address the fact that deep sleep data is often highly fragmented and contains a large number of abnormal data. The second smoothing step can either reduce the amount of abnormal deep sleep data or extend the duration of deep sleep, thereby addressing the fragmentation issue in deep sleep data. Furthermore, smoothing both deep and light sleep data is performed because light sleep data is predominant throughout the user's sleep process. Even if light sleep is modified to deep sleep, this does not affect the proportion of light sleep in the overall sleep process, thus preventing distortion of the sleep Gantt chart.
[0017] In an embodiment of the present application, after the electronic device performs the first smoothing on the initial data, there may still be jump data. In an embodiment of the present application, the electronic device can perform a second smoothing on the data after the first smoothing to further reduce the jump data and improve the display effect of the data.
[0018] In an embodiment of the present application, an electronic device can display data in the form of a state diagram, wherein the electronic device can convert the time of each data segment into corresponding pixels to display the state of the data segment on the corresponding pixel. However, the time of each data segment is different, and when converted to pixels, some pixels may not be integers, which is not convenient for electronic device display. Therefore, in an embodiment of the present application, a pixel processing method for data segments can be provided to maximize the guarantee that the pixels of the data segments are integers, which is convenient for electronic device display.
[0019] In one possible implementation, the electronic device may obtain a conversion relationship between pixels and duration based on the number of pixels adapted to the screen of the electronic device and the duration of the N data. Based on the conversion relationship, the electronic device may convert the duration of each data segment in the N data into pixels for each data segment, so that the data in a data segment has the same state.
[0020] In a data segment, a data segment with a pixel count greater than a third threshold may be referred to as a first data segment, and a data segment with a pixel count less than the third threshold may be referred to as a second data segment. In an embodiment of the present application, the third threshold may be the minimum pixel count required for the electronic device to clearly display the state of the data segment. To enable the electronic device to clearly display the state of each data segment, the electronic device may supplement the non-integer pixels of the first data segment with the second data segment so that the pixels of the second data segment are equal to the third threshold, the pixels of the first data segment are greater than the third threshold, and the pixels of the second data segment are less than the third threshold.
[0021] First, the electronic device can supplement the non-integer pixels of the first data segment to the second data segment in order from large to small pixels; or, the electronic device can supplement the non-integer pixels of the first data segment to the second data segment according to state priority.
[0022] Secondly, the electronic device may sort the data segments in descending order of pixel size to obtain a first sorting, and sort the first sorting by state priority to obtain a second sorting. The electronic device may supplement the non-integer pixels of the first data segment with the second data segment according to the second sorting.
[0023] In one possible implementation, after the non-integer pixels of the first data segment are supplemented to the second data segment, the pixels of the second data segment are all equal to the third threshold. In this example, the electronic device can process the pixels of M data segments to be processed, and can refer to the relevant description below.
[0024] In one possible implementation, after the non-integer pixels of the first data segment are added to the second data segment, if there are still pixels in the second data segment that are smaller than the third threshold, the integer pixels of the first data segment are added to the second data segment so that the pixels in the second data segment are equal to the third threshold.
[0025] When the pixels of the second data segment are equal to the third threshold, in order to facilitate display on the wearable device, in embodiments of the present application, the data segment of non-integer pixels can be further processed. In one possible implementation, the data segment includes M data segments to be processed, and the pixels of the M data segments to be processed are non-integer pixels, where M is an integer greater than or equal to 2 and less than or equal to N.
[0026] The electronic device may process pixels in the M data segments to be processed using a rounding method and detect whether the sum of pixel changes in the first i data segments processed is greater than a fourth threshold. When the sum of pixel changes is greater than the fourth threshold, non-integer pixels in the (i+1)th data segment are discarded; when the sum of pixel changes is less than or equal to the fourth threshold, pixels in the (i+1)th data segment are processed using a rounding method.
[0027] In an embodiment of the present application, in order to facilitate the display of data by an electronic device, the pixels of M data segments to be processed can be processed so that the pixels of the M data segments to be processed become integers, or after pixel processing, there is a data segment with non-integer pixels, and the pixels of the other M-1 data segments to be processed become integers, ensuring that the display error of the data is within 0.5 pixels.
[0028] In the above embodiments, the initial data can be considered as processed data after being smoothed once, or the initial data can be considered as processed data after being smoothed twice, or the initial data can be considered as processed data after being smoothed once and the pixels of the data segment are processed. The following describes how the electronic device displays the processed data:
[0029] In a possible implementation, the electronic device may obtain the maximum number of data segments that the screen supports displaying based on the number of pixels and the third threshold.
[0030] Among them, when the number of data segments in the processed data is greater than the maximum number, the electronic device cannot fully display the processed data due to its small screen size, so the electronic device can display a first prompt message, the first prompt message is used to instruct the user to view the processed data on a target device, the target device is a device connected to the electronic device, and the size of the screen of the target device is larger than the size of the screen of the electronic device. In this example, because the electronic device can prompt the user to view the processed data on the target device with a larger screen and connected to the electronic device, the electronic device can send the processed data to the target device so that the target device can display the processed data.
[0031] In this example, when the number of data segments in the processed data is greater than the maximum number, the electronic device cannot fully display the processed data due to its small screen size. Therefore, the electronic device can send the processed data to the target device so that the target device can display the processed data. Because the screen size of the target device is larger than the screen size of the electronic device, the target device can fully display the processed data, making it easier for the user to see the complete data and improving the user experience.
[0032] When the number of data segments in the processed data is less than or equal to the maximum number, the electronic device may display the processed data.
[0033] In one possible implementation, the electronic device may display the processed data in the form of a state diagram. It should be understood that the state diagram may represent continuous state changes associated with time. For example, the state diagram may be a Gantt chart, a box plot, etc. The following embodiments use a Gantt chart as an example for description.
[0034] The electronic device may display the processed data in the form of a Gantt chart.
[0035] In one possible implementation, when the screen of the electronic device is a rectangular screen and the electronic device is in portrait mode, because the screen size of the electronic device is smaller than a preset size, the electronic device cannot fully display the processed data in portrait mode, so the electronic device can display a second prompt message, and the second prompt message is used to indicate that the processed data should be viewed in landscape mode.
[0036] In this example, in response to a user operation, the processed data is displayed when the electronic device is in landscape orientation.
[0037] In one possible implementation, when the duration of the N data is less than a fifth threshold, the electronic device may display the processed data in the center; or, when the duration of the N data is greater than or equal to the fifth threshold, the width of the screen may be adapted to display the processed data.
[0038] In the embodiment of the present application, a method for displaying processed data appropriately can be provided for different numbers of data segments and screens of different shapes, thereby ensuring the display effect of the data and improving the user experience.
[0039] In a second aspect, an embodiment of the present application provides a data display method, which is applied to an electronic device, wherein the screen size of the electronic device is smaller than a preset size, and the electronic device may be a wearable device. In some embodiments, the electronic device may be referred to as a first device. The screen size of the second device is larger than the screen size of the first device, for example, the second device may be a device connected to the first device. Exemplarily, the first device is a wearable device (such as a watch), and the second device may be a terminal (such as a mobile phone, etc.) connected to the wearable device (such as a watch).
[0040] A first device may display first data, wherein, within a target time period, the number of states of the first data is less than the number of states of second data, the second data is data displayed by the second device, and the first data and the second data correspond to initial data. In this embodiment of the present application, the first data may be the processed data described in the first aspect, and the second data may be the initial data.
[0041] In a possible implementation, the first data is displayed as integer pixels, and the second data is displayed as non-integer pixels.
[0042] In a possible implementation, the first data and the second data are sleep data, and the states of the sleep data include at least two of the following: light sleep, deep sleep, eye movement, and wakefulness.
[0043] In a third aspect, embodiments of the present application provide an electronic device, which may include a processor and a memory. The memory is configured to store computer-executable program code, the program code including instructions; when the processor executes the instructions, the instructions cause the electronic device to perform the methods described in the first and second aspects.
[0044] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include a unit, module or circuit for executing the method provided in the first and second aspects above.
[0045] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods in the first and second aspects above.
[0046] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enables the computer to execute the methods in the first and second aspects above.
[0047] The beneficial effects of the possible implementation methods of the second to sixth aspects mentioned above can be referred to the beneficial effects brought about by the first aspect mentioned above, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] FIG1 is a schematic diagram showing sleep data;
[0049] FIG2 is a schematic diagram showing terminal data displayed on a wearable device;
[0050] FIG3A is a schematic structural diagram of a wearable device provided in an embodiment of the present application;
[0051] FIG3B is a diagram of a system architecture applicable to the data display method provided in an embodiment of the present application;
[0052] FIG4A is a flow chart of an embodiment of a data display method provided in an embodiment of the present application;
[0053] FIG4B is a schematic diagram of data processing according to an embodiment of the present application;
[0054] FIG5 is a comparative diagram of data before and after processing according to an embodiment of the present application;
[0055] FIG6A is a schematic diagram of display data of a wearable device provided in an embodiment of the present application;
[0056] FIG6B is another schematic diagram of displaying data on a wearable device according to an embodiment of the present application;
[0057] FIG7A is a flow chart of another embodiment of a data display method provided in an embodiment of the present application;
[0058] FIG7B is another schematic diagram of data processing provided in an embodiment of the present application;
[0059] FIG7C is another schematic diagram of data processing provided in an embodiment of the present application;
[0060] FIG8 is another comparative diagram before and after data processing provided in an embodiment of the present application;
[0061] FIG9A is a schematic diagram of processing pixels of a data segment according to an embodiment of the present application;
[0062] FIG9B is another schematic diagram of processing pixels of a data segment according to an embodiment of the present application;
[0063] FIG10 is a schematic diagram of an ordering of pixels of a data segment provided by an embodiment of the present application;
[0064] FIG11 is a schematic diagram showing data displayed in an embodiment of the present application;
[0065] FIG12 is another schematic diagram showing data provided in an embodiment of the present application;
[0066] FIG13 is another schematic diagram showing data provided in an embodiment of the present application;
[0067] FIG14 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0068] Currently, wearable devices have data monitoring functions, and the data may include, but are not limited to, motion data, sleep data, physiological data, and environmental data. Taking running as an example, motion data may include, for example, pace, cadence, distance, etc. Sleep data may include, for example, sleep duration, sleep state, etc. Sleep state may include at least one of the following: light sleep, deep sleep, eye movement, and wakefulness. Physiological data may include, but are not limited to, heart rate, respiration, body temperature, etc. Environmental data may include, but are not limited to, ambient brightness, ambient temperature, ambient altitude (height), and ambient pressure (such as air pressure, water pressure), etc.
[0069] In order to enable users to intuitively see the data collected by the wearable device, the wearable device can currently send the collected data to the terminal connected to the wearable device, and the terminal displays the data. The terminal can be called user equipment (UE). For example, the terminal can be a mobile phone, a portable Android device (PAD), a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device, an in-vehicle device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in a smart home (smart home), etc. In the embodiments of the present application, there is no specific limitation on the form of the terminal. In the following embodiments, the terminal is described as a mobile phone.
[0070] In some embodiments, the wearable device and the terminal can be connected via a communication network to achieve data transmission. The communication network can be, but is not limited to, a short-range communication network such as a Wi-Fi hotspot network, a Wi-Fi peer-to-peer (P2P) network, a Bluetooth network, a ZigBee network, or a near field communication (NFC) network.
[0071] Taking sleep data as an example, currently wearable devices can display sleep duration, and more detailed sleep data needs to be viewed on the terminal. Referring to a in Figure 1, taking the wearable device as a watch as an example, the watch can display information such as "sleep duration is 8 hours and 21 minutes", as well as information prompting the user to view more detailed sleep data on the terminal (such as a mobile phone). For example, the user can operate on the terminal to trigger the terminal to display more detailed sleep data. Referring to b in Figure 1, the terminal can display, for example, the sleep time "xx year x month x day", the sleep duration "8 hours and 21 minutes", and a sleep status diagram.
[0072] It should be understood that in b of Figure 1, the terminal displays a sleep state diagram in the form of a Gantt chart. The sleep state diagram can be understood as: a continuous sleep state that changes over time during the user's sleep process.
[0073] Currently, users have a need to view sleep status charts directly on wearable devices. For example, as soon as a user wakes up, they can directly view the sleep status chart by operating the watch they are wearing, without having to search for the sleep status chart on their phone.
[0074] Currently, if the sleep state diagram displayed on the terminal is directly displayed on a wearable device, distortion will occur, resulting in a poor user experience. The reason is that: the screen size of the wearable device is smaller than the screen size of the terminal, and the number of pixels contained in the wearable device screen is smaller than the number of pixels contained in the terminal screen. For example, the terminal screen contains 2000 pixels, and the wearable device screen contains 400 pixels. If the sleep state diagram displayed on the terminal is directly displayed on the wearable device, the content displayed in the sleep state diagram on the terminal needs to be compressed into 1 pixel. This will cause the state blocks in the Gantt chart (such as the black, gray, and white rectangular blocks in a in Figure 2) to be compressed into 1 point display, as shown in b in Figure 2. Currently, if the sleep state diagram displayed on the terminal is directly displayed on a wearable device, the sleep state diagram will be distorted, and it will not be able to accurately and detailedly represent the sleep state, resulting in a poor user experience.
[0075] In addition, during the data collection process, wearable devices will also collect some abnormal data (also called outlier data) due to reasons such as collection stability. This abnormal data will also affect the display effect of the overall data when displayed on small-screen wearable devices.
[0076] In summary, the embodiments of the present application are intended to solve the problem of "how to accurately and in detail display data on a small-screen wearable device" in order to avoid display distortion, improve data display effects, and enhance user experience. Based on the above analysis, because the screen size of the wearable device is smaller than the screen size of the terminal, for the same data, because the screen size of the terminal is large and contains more pixels, even if the state of the data occupies one or a small number of pixels, the terminal device can still display it accurately and in detail. However, the screen size of the wearable device is small and contains fewer pixels. When the data occupies one pixel or a small number of pixels on the terminal, the state will occupy even smaller pixels on the wearable device, and the user will not be able to see the data clearly, resulting in a poor display effect.
[0077] In order to enable wearable devices to display data accurately and in detail, after the wearable devices collect data, they can smooth the data and remove abnormal (or sudden) data, so that the state of each data can be maintained for a period of time. In this way, the data of each state can occupy enough pixels, and the wearable device can use more pixels to display the state. The user can also see the data displayed by the wearable device clearly, which can improve the data display effect.
[0078] It should be understood that the data display method provided in the embodiments of the present application can be applied to wearable devices with smaller screens. In other words, the screen size of the wearable device in the embodiments of the present application can be smaller than the preset size. In some embodiments, wearable devices may include but are not limited to: watches, bracelets, smart glasses, smart rings, head-mounted devices, etc., and the embodiments of the present application are not limited to this.
[0079] It should be understood that in the embodiments of the present application, the wearable device can display data in the form of a state diagram, which can represent the continuous state changes associated with time. For example, the state diagram can be a Gantt chart, a box plot, etc. The following embodiments use a Gantt chart as an example for description.
[0080] Exemplarily, taking the data as sleep data as an example, the states of the sleep data may include: light sleep, deep sleep, eye movement, and wakefulness. Exemplarily, taking the motion data as running data as an example, the states of the motion data may include: starting, constant speed, and sprinting, etc. Exemplarily, taking the physiological data including heart rate as an example, the states of the physiological data may include: severe bradycardia, bradycardia, overspeed, etc. Exemplarily, taking the environmental data including the environmental pressure during swimming as an example, the states of the environmental data may include: shallow water (low pressure), deep water area (medium pressure), extra deep area (high pressure), etc. It should be understood that the types of data are different and the states of the data are different. The embodiments of the present application do not exhaustively list the data and the states of the data.
[0081] The following embodiments take sleep data as an example to introduce the data display method provided in the embodiments of the present application.
[0082] Before introducing the data display method provided in the embodiments of the present application, the structure of the wearable device and the system architecture to which the data display method is applicable are first introduced:
[0083] FIG3A is a schematic diagram of the structure of a wearable device provided in an embodiment of the present application. Referring to FIG3A , taking sleep data as an example, the wearable device may include: a sleep data acquisition module, a sleep state calculation module, a sleep staging result acquisition module, a display module, a communication module, and a sensor module. It should be understood that FIG3A shows the sensors used to collect sleep data, and the sensors may include, for example, an accelerometer and a photoplethysmography (PPG) sensor.
[0084] It should be understood that when the data is other types of data, the wearable device may, for example, include: a data acquisition module, a state calculation module, a staging result acquisition module, a display module, a communication module, and a sensor module. For details, please refer to the relevant descriptions of the sleep data acquisition module, the sleep state calculation module, the sleep staging result acquisition module, the display module, the communication module, and the sensor module.
[0085] The sleep data acquisition module is used to collect sleep data. The sleep data acquisition module can obtain acceleration data from the acceleration sensor and PPG data from the PPG sensor.
[0086] In some embodiments, the sleep data acquisition module can determine the user's posture (or user's body movement) based on acceleration data. The sleep data acquisition module can obtain the user's heart rate, respiration, etc. based on PPG data. In embodiments of the present application, sleep data may include user posture, heart rate, respiration, etc. Embodiments of the present application do not limit the sleep data used to calculate sleep state.
[0087] The sleep state calculation module can calculate the sleep state based on the sleep data from the sleep data acquisition module. Sleep states may include, but are not limited to, light sleep, deep sleep, eye movement, and wakefulness. In some embodiments, sleep states may include more or fewer states, and this embodiment of the application is not limited to this. In this embodiment of the application, the sleep state includes four states: light sleep, deep sleep, eye movement, and wakefulness. This embodiment of the application does not elaborate on how to obtain the sleep state based on the sleep data. For details, please refer to the existing relevant solutions.
[0088] The sleep staging result acquisition module can match the sleep state with the duration of the state to obtain a sleep staging result. In some embodiments, the sleep staging result may include: at least one sleep state and the time corresponding to each sleep state. Exemplary sleep staging results may include: light sleep (22:00-23:30), deep sleep (23:30-24:00), eye movement (24:00-00:20), deep sleep (00:20-02:00), light sleep (02:00-04:00), etc.
[0089] The display module is used to display the sleep staging results. In other words, the display module is used to display data (sleep staging results) in the form of a state diagram.
[0090] In the embodiments of the present application, to enable a small-screen wearable device to accurately and clearly display sleep staging results, the sleep staging result acquisition module can further process the initial data (such as the sleep staging results calculated above) (e.g., smoothing) to obtain processed data, as described in the following embodiments. Correspondingly, the display module can display the processed data.
[0091] The communication module is used to enable communication between the wearable device and other devices. For example, the communication module is used to enable communication between the wearable device and a terminal (such as a mobile phone).
[0092] In some embodiments, for wearable devices that are not configured with a sleep state calculation module and a sleep staging result acquisition module (such as wearable devices that have been sold or launched), the wearable devices can be configured with a sleep state calculation module and a sleep staging result acquisition module through software updates to implement the data display method provided in the embodiments of the present application.
[0093] In some embodiments, for a wearable device that is not equipped with a sleep state calculation module and a sleep stage result acquisition module, the wearable device can display data with the help of the functions of the terminal.
[0094] In this example, referring to FIG3B , the wearable device may include a sleep data acquisition module, a display module, a first communication module, and a sensor module, and the terminal may include a second communication module, a sleep state calculation module, and a sleep stage result acquisition module.
[0095] The sleep data collection module is used to collect sleep data, and the description in FIG3A can be referred to. In this example, after the sleep data collection module collects the sleep data, it can send the sleep data to the terminal through the first communication module and the second communication module.
[0096] The sleep state calculation module in the terminal can calculate the sleep state based on the sleep data, as described in FIG. 3A .
[0097] The sleep staging result acquisition module in the terminal can match the sleep state with the duration of the state to obtain a sleep staging result, as described in Figure 3A. After the sleep staging result acquisition module obtains the sleep state staging result, it can send the sleep staging result to the wearable device via the second communication module and the first communication module.
[0098] The display module in the wearable device can display the sleep stage results.
[0099] In some embodiments, the sleep staging result acquisition module in the terminal can further process the initial data (such as the sleep staging result calculated above) (e.g., by smoothing) to obtain processed data, as described in the following embodiments. The sleep staging result acquisition module can also transmit the processed data to the wearable device via the second communication module and the first communication module. Correspondingly, the display module can display the processed data.
[0100] The data display method provided by the embodiments of the present application is described below in conjunction with specific embodiments. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0101] Figure 4A is a flow chart of an embodiment of the data display method provided in an embodiment of the present application. It should be understood that the execution subject of the data display method provided in an embodiment of the present application can be a wearable device or a terminal. When the execution subject is a terminal, after the terminal obtains the processed data, the terminal can send the processed data to the wearable device, and the wearable device displays the processed data. The following embodiments are explained using the execution subject being a wearable device as an example. When the execution subject is a terminal, the steps executed by the terminal can refer to the description of the steps executed by the wearable device in the following embodiments.
[0102] 4A , the data display method provided in the embodiment of the present application may include:
[0103] S401, obtaining initial data, the initial data including N data, where N is a positive integer.
[0104] The initial data includes N data, each of which can represent a different state. For example, taking sleep data as an example, the initial data may include N data, each of which can represent a sleep state. In some embodiments, each sleep state may also correspond to a time (or time period), which can be regarded as the duration of the sleep state. The duration of the sleep state may include the time when the sleep state starts and the time when the sleep state ends.
[0105] For example, the sleep state includes light sleep, deep sleep, eye movement and wakefulness. For example, the numbers 1, 2, 3, and 4 can be used to represent the four states of light sleep, deep sleep, eye movement and wakefulness respectively. Among them, 1 represents light sleep, 2 represents deep sleep, 3 represents eye movement, and 4 represents wakefulness. It should be understood that a numerical range can also be used to represent the four states of light sleep, deep sleep, eye movement and wakefulness respectively. For example, the numerical range of 1-10 represents light sleep, the numerical range of 11-20 represents deep sleep, the numerical range of 21-30 represents eye movement, and the numerical range of 31-40 represents wakefulness. For example, the number 15 is within the numerical range of 11-20, and the number 15 can represent deep sleep. The embodiment of the present application does not limit the data representing the sleep state. For example, other characters, pictures, etc. can also be used to represent the sleep state. In the following embodiment, "the numbers 1, 2, 3, and 4 represent the four states of light sleep, deep sleep, eye movement and wakefulness respectively" is used as an example for explanation.
[0106] Exemplarily, the initial data may include: 1(a1:a2), 1(a3:a4), 2(a5:a6), 2(a7:a8), 2(a9:a10), 2(a11:a12), 3(a13:a14), 3(a15:a16), 3(a17:a18), 3(a19:a20), 4(a21:a22), 4(a23:a24), 3(a25:a26), 3(a27:a28), 3(a29:a30). Each data may represent a sleep state, and each sleep state may correspond to a time (or time period). The time (or time period) following each data is the time (or time period) corresponding to the sleep state of the data. Taking (a1:a2) as an example, a1 may represent hours, and a2 may represent minutes or seconds.
[0107] S402 , detecting whether states of X consecutive data among N data are the same, where X is an integer less than or equal to N.
[0108] In the embodiment of the present application, the state represented by the data can be understood as the state of the data. For example, data 1 represents light sleep, that is, the state of data 1 can be said to be light sleep.
[0109] In some embodiments, the wearable device may traverse N data and sequentially detect whether the states of X consecutive data in the N data are the same, where X is an integer less than or equal to N.
[0110] In some embodiments, taking sleep data as an example, because the wearable device can accurately determine the awake state based on the user's posture, heart rate, and breathing data, and due to noise and other reasons in the user's posture, heart rate, and breathing data, there is a certain error when determining the light sleep, deep sleep, and eye movement states based on the user's posture, heart rate, and breathing data. Compared with wakefulness, the accuracy of light sleep, deep sleep, and eye movement is lower.
[0111] Therefore, in the embodiment of the present application, the wearable device can perform smoothing, merging, and other processing on data with large errors, such as light sleep, deep sleep, and eye movement data, without processing the data of accurate awake state, so as to avoid distortion of sleep data. Exemplarily, the wearable device can filter out or skip the data of awake (state), and process the data of the three states of light sleep, deep sleep, and eye movement. It is conceivable that for other types of data (such as motion data, etc.), the wearable device can also filter out or skip the data of accurate state. Alternatively, for other types of data, the wearable device can also use different methods to pre-process the data, and the embodiment of the present application is not limited to this.
[0112] For example, taking sleep data as an example, referring to a in FIG4B , the initial data includes: 1(a1:a2), 1(a3:a4), 2(a5:a6), 2(a7:a8), 2(a9:a10), 2(a11:a12), 3(a13:a14), 3(a15:a16), 3(a17:a18), 3(a19:a20), 4(a21:a22), 4(a23:a24), 3(a25:a26), 3(a27:a28), 3(a29:a30). : a30), the wearable device can filter out the awake state data 4, and the filtered data is: 1 (a1: a2), 1 (a3: a4), 2 (a5: a6), 2 (a7: a8), 2 (a9: a10), 2 (a11: a12), 3 (a13: a14), 3 (a15: a16), 3 (a17: a18), 3 (a19: a20), 3 (a25: a26), 3 (a27: a28), 3 (a29: a30), as shown in b of Figure 4B. It should be understood that Figure 4B does not show the time (or time period) corresponding to the data.
[0113] In some embodiments, the wearable device may start from the first data, traverse N data, and sequentially detect whether the states of X consecutive data in the N data are the same. Alternatively, the wearable device may not follow the order of the data, as long as it can traverse N data and sequentially detect whether the states of X consecutive data in the N data are the same.
[0114] For example, in FIG4B , starting from the first data, assuming X is 3, the wearable device can detect whether the states of the first three data in the N data are the same. Referring to c in FIG4B , the data in the dotted box are the first three data in the N data, and the states of the first three data are respectively light sleep, light sleep, and deep sleep, and the states of the first three data are different.
[0115] In some embodiments, the process of the wearable device detecting whether the states of X consecutive data among N data are the same can be understood as: the wearable device uses a first sliding window to slide among the N data to detect whether the states of the X consecutive data are the same. The dotted box in FIG4B can represent the first sliding window, and the first sliding window includes X data.
[0116] S403: When the states of the X data are different and the number of consecutive occurrences of the data in the first state is less than a first threshold, the data in the second state is modified to the first state, where the second state is different from the first state, and the first state is the state of the first data among the X data.
[0117] The first state is the state of the first data among X data. For example, for the first three data, the first data is the first data 1 among the three data. The first state can be the state of the first data, such as light sleep. The second state is different from the first state. The data of the second state can be understood as: data in the X data that has a different state than the first data. For example, for the first three data, the state of the third data is deep sleep. Different from the state of the first data among the three data (such as light sleep), the second state can be deep sleep, and the data of the second state is 2.
[0118] In an embodiment of the present application, when the states of X data are different, and the number of consecutive appearances of the data of the first state is less than a first threshold, the wearable device can modify the data of the second state to the first state. The purpose of such a setting in the embodiment of the present application is to enable the number of appearances of each state to reach the first threshold, that is, each state lasts longer, so as to avoid the problem of too few appearances of the state. When the number of appearances of a state is too few, the data of the state occupies fewer pixels when displayed on the wearable device, and the problem of unclear display will occur. Therefore, such a setting in the embodiment of the present application can ensure that the data of each state occupies more pixels when displayed on the wearable device, which can ensure the effect of data display, ensure that the user can clearly see each state in the data, and improve the user experience.
[0119] For example, taking the first threshold value of 3 as an example, referring to c in Figure 4B, the three data in the dotted box represent X data, and the states of the three data are different. The first data in the X data is 1, and the state of the first data (i.e., the first state) is light sleep. The number of consecutive occurrences of the data indicating light sleep is 2, which is less than the first threshold value (3). The wearable device can modify the second state (deep sleep) data (2) in the X data to the first state.
[0120] In some embodiments, the wearable device modifying the data of the second state to the first state can be understood as: the wearable device modifies the data of the second state to the data of the first state, and the data represents the first state. For example, referring to d in Figure 4B, the wearable device can modify the last data of the three data to 1 (data of the first state), and 1 represents light sleep.
[0121] In some embodiments, the wearable device modifies the data of the second state to the first state, which can be understood as: the wearable device modifies the data of the second state to data representing the first state. Exemplarily, when the state is represented by a digital range, the wearable device can modify the last data of the three data to any number from 1 to 10, which can be the same as or different from the first two data. For example, the first two data are 1 and 2, both of which are between 1 and 10, and both can represent light sleep. In the embodiment of the present application, the wearable device can modify the third data to 8, which represents light sleep, and the third data is different from the first two data.
[0122] It should be understood that the data used to represent the state is different, and the method of modifying the data of the second state to the first state may be different and may be set according to the method of the data representing the state. The embodiment of the present application does not limit this.
[0123] In some embodiments, when the states of X data items are the same, it indicates that the number of states of these X data items is sufficient, and the wearable device can clearly and accurately display these X data items without incorporating other data items into this state. The wearable device can continue to detect whether the states of the other X data items are the same among the N data items. Alternatively, it can be understood that when the states of the X data items are the same, the wearable device can slide the first sliding window and continue to detect whether the states of the X data items in the first sliding window after sliding are the same.
[0124] In some embodiments, when the states of X data are different, but the number of consecutive occurrences of the data in the first state is greater than or equal to a first threshold, it indicates that the amount of data in the first state is sufficient, and the wearable device can clearly and accurately display the data in the first state. Therefore, the wearable device can continue to detect whether the states of the other X data are the same among the N data. Alternatively, it can also be understood that when the states of X data are different, but the number of consecutive occurrences of the data in the first state is greater than or equal to the first threshold, the wearable device can slide the first sliding window and continue to detect whether the states of the X data in the first sliding window after sliding are the same.
[0125] For example, referring to d in FIG4B , when the X data include the second, third, and fourth data in N data, the three data are 1, 1, and 2, respectively. The states of the data in the X data are different. The first data in the X data is 1 (first state), and 1 appears three times consecutively, reaching the first threshold. Therefore, the wearable device does not modify the data in the second state (such as the fourth data 2) to the first state, and the X data remains 1, 1, and 2. The wearable device can continue to detect whether the states of the next X data are the same. The next X data are the third, fourth, and fifth data, as shown in e in FIG4B . In other words, the wearable device can slide the first sliding window and continue to detect whether the states of the X data in the first sliding window after sliding are the same.
[0126] S404: Display the processed data.
[0127] In embodiments of the present application, after obtaining processed data, the wearable device may display the processed data. In some embodiments, the wearable device may display the processed data in the form of a state diagram. For example, the state diagram in the accompanying drawings of embodiments of the present application is illustrated as a Gantt chart.
[0128] Figure 5 (a) shows the initial data in the form of a Gantt chart, and Figure 5 (b) shows the processed data in the form of a Gantt chart. It should be understood that each black line segment in Figure 5 can represent a period of data. The data of each black line segment can be called a data segment, and each data segment can correspond to a state. The longer the black line is, the longer the data state lasts.
[0129] Taking the black line segment in the dotted box in Figure 5 as an example, referring to a in Figure 5, the duration of a state in the initial data is relatively short, that is, the number of times the data of this state appears in the initial data is less than the first threshold value, and the data is jump data or abnormal data. Referring to b in Figure 5, the wearable device can modify the data to the adjacent state before the state of the data (such as deep sleep 2), that is, merge the data into the data of the previous adjacent state, increase the number of times the data of the previous adjacent state appears, and avoid the occurrence of jumps and anomalies, so that the state of the data becomes smooth. Referring to b in Figure 5, in the dotted box, the processed data are all modified to the deep sleep state (such as the number 2).
[0130] Figures 6A and 6B take a watch as an example to illustrate schematic diagrams of watch display data. Referring to Figure 6A, the watch can display the sleep duration and the sleep status diagram on the same interface. In order to avoid the problem that the watch screen is small and cannot fully display the sleep status diagram, referring to a in Figure 6B, the watch can display the sleep duration and prompt information. The prompt information is used to instruct the user to perform the corresponding operation and trigger the watch to display the sleep status diagram. For example, the prompt information may include "Swipe up to see more details". When the user swipes up, the watch can display the sleep status diagram, as shown in b in Figure 6B.
[0131] FIG6A and FIG6B are example diagrams of displaying data on a wearable device, and do not impose any restrictions on the interface of the wearable device displaying data.
[0132] In an embodiment of the present application, the wearable device can further smooth the initial data to ensure that the wearable device can accurately and clearly display each state. Because the sleep state is unlikely to jump in a short period of time during the user's sleep, each state will last for a period of time, that is, the number of times the data of each state appears will reach a first threshold. Therefore, in an embodiment of the present application, N data can be traversed, and the data can be smoothed by combining the states of the previous and next data in the N data. The data that has jumped can be merged into the adjacent state. This can avoid the influence of abnormal data (jump data) on the effect of data display, avoid data distortion, and improve the user experience.
[0133] In the embodiment shown in FIG4A , the processing of the initial data can be regarded as the first smoothing process. In order to further improve the data display effect, in some embodiments, the wearable device can also perform a second smoothing process on the data, which can be described with reference to FIG7A . It should be understood that S704-S706 in FIG7A can be executed after S402-S403 or before S402-S403. When S704-S706 are executed after S402-S403, the processed data can be the data obtained after the wearable device executes S703. When S704-S706 are executed before S402-S403, the processed data can be the data obtained after the wearable device executes S403.
[0134] It should be understood that FIG7A is illustrated by taking S704-S706 being executed after S402-S403 as an example. Referring to FIG7A , the data display method provided in the embodiment of the present application may include:
[0135] S701, obtaining initial data, the initial data including N data, where N is a positive integer.
[0136] S702 , detecting whether states of X consecutive data among N data are the same, where X is an integer less than or equal to N.
[0137] S703: When the states of the X data are different and the number of consecutive occurrences of the data in the first state is less than a first threshold, modify the data in the second state to the first state, where the second state is different from the first state, and the first state is the state of the first data among the X data.
[0138] S701-S703 may refer to the description in S401-S403.
[0139] S704 , detecting whether there is a state in which the number of consecutive Y data in the N data is less than a second threshold, where Y is an integer less than or equal to N.
[0140] In some embodiments, the wearable device may traverse N data and sequentially detect whether a state occurs for a number of consecutive times less than a second threshold value in Y consecutive data of the N data, where Y is an integer less than or equal to N. The second threshold value may be pre-set.
[0141] In some embodiments, Y may be greater than X, which is not limited in this embodiment of the present application.
[0142] In some embodiments, the wearable device may start with the first data, traverse N data, and detect whether a state occurs continuously less than a second threshold value in Y consecutive data among the N data. Alternatively, the wearable device may not follow the order of the data, as long as it can traverse N data and detect whether a state occurs continuously less than the second threshold value in Y consecutive data among the N data.
[0143] In some embodiments, the process of the wearable device detecting whether a state has occurred continuously less than a second threshold value in Y consecutive data among N data can be understood as: the wearable device uses a second sliding window to slide through the N data to detect whether a state has occurred continuously less than the second threshold value in the Y consecutive data. The dotted box in Figures 7B and 7C can represent the second sliding window, which includes Y data.
[0144] S705 , when there is a state whose number of consecutive occurrences is less than the second threshold, and the number of data in the first preset state in the Y data is greater than or equal to the number of data in the second preset state, modify the data in the second preset state to the first preset state.
[0145] Taking sleep data as an example, the first preset state may be light sleep, and the second preset state may be deep sleep. It should be understood that the settings of the first preset state and the second preset state may be different depending on the type of data.
[0146] For example, in a of FIG7B , starting from the first data, taking Y as 7 as an example, the second threshold value can be 6. Referring to a of FIG7B , the number of consecutive occurrences of light sleep in the 7 data is 3 times, the number of consecutive occurrences of deep sleep is 2 times, and the number of consecutive occurrences of eye movement is 2 times. There are states where the number of consecutive occurrences is less than 6, such as light sleep, deep sleep, and eye movement. In addition, among the 7 data, the number of light sleep data (3) is greater than the number of deep sleep data (2). The wearable device can modify the deep sleep data to light sleep. Referring to b of FIG7B , the wearable device can modify the deep sleep data 2 to 1, where 1 represents light sleep.
[0147] S706 , when there is a state whose number of consecutive occurrences is less than the second threshold, and the number of data in the first preset state in the Y data is less than the number of data in the second preset state, modify the data in the first preset state to the second preset state.
[0148] It should be understood that S705 and S706 are steps that are executed one by one and are not executed at the same time.
[0149] The third preset state is deep sleep. For example, in a of FIG7C , starting from the first data, taking Y as 8 as an example, the second threshold value can be 6. Referring to a of FIG7C , among the 8 data, the number of consecutive occurrences of light sleep is 1, the number of consecutive occurrences of deep sleep is 5, and the number of consecutive occurrences of eye movement is 2. There are states in which the number of consecutive occurrences is less than 6, such as light sleep, deep sleep, and eye movement. In addition, among the 8 data, the number of light sleep data (1) is less than the number of deep sleep data (5), and the wearable device can modify the light sleep data to deep sleep. Referring to b of FIG7C , the wearable device can change the light sleep data 1 to 2, where 2 represents deep sleep.
[0150] During the second smoothing process in steps S705 and S706, the wearable device can smooth both light sleep and deep sleep data. This is done because deep sleep data is often highly fragmented and contains many abnormalities. The second smoothing process can either reduce abnormal deep sleep data or extend the duration of deep sleep, thereby addressing the fragmentation issue in deep sleep data. Furthermore, smoothing both deep and light sleep data is performed because light sleep data is predominant throughout the user's sleep process. Even if light sleep is modified to deep sleep, this does not affect the proportion of light sleep in the overall sleep process, thus preventing distortion of the sleep Gantt chart.
[0151] S707, display the processed data.
[0152] The way in which the wearable device displays the processed data in S707 can refer to the description in S404. The difference from S404 is that the processed data in S707 is data that has been smoothed twice, and the display effect is better.
[0153] Figure 8 (a) shows the data after the first smoothing process in the form of a Gantt chart, and Figure 8 (b) shows the processed data in the form of a Gantt chart. It should be understood that each black line segment in Figure 8 can represent a period of data. The data of each black line segment can be called a data segment, and each data segment can correspond to a state. The longer the black line is, the longer the data state lasts.
[0154] Taking the black line segment in the solid box in Figure 8 as an example, referring to a in Figure 8, in the data after the first smoothing process, the black line segment of the deep sleep data is shorter than the black line segment of the light sleep data, indicating that the number of deep sleep data is less than the number of light sleep data. The wearable device can modify the data 2 of the second preset state to the data 1 of the first preset state to further smooth the data.
[0155] After the wearable device performs the first smoothing on the initial data, there may still be jumpy data. In the embodiment of the present application, the wearable device can perform a second smoothing process on the data after the first smoothing process to further reduce the jumpy data and improve the data display effect. It should be understood that the embodiment of the present application does not limit the order of the two smoothing processes.
[0156] After the initial data is smoothed as in the embodiments shown in FIG. 4A and FIG. 7A above, smoothed data can be obtained. In some embodiments, the smoothed data can be used as processed data, and the wearable device can display the processed data.
[0157] In some embodiments, referring to b in Figure 8, the data after two smoothing processes may include multiple black line segments, and the black line segments may be reflected in the data as data segments. The length of the black line segment indicates the duration of the state of the data segment. In an embodiment of the present application, in the data after smoothing, the wearable device can correspond the duration of a state with the data of the state to obtain multiple data segments, and the state of the data in a data segment is the same. For example, the data segments may include: 1 (22:00-23:30), 2 (23:30-24:00), 3 (24:00-00:20), 1 (00:20-02:00), 2 (02:00-04:00), etc.
[0158] When a wearable device displays data in the form of a state diagram, it can convert the time of each data segment into corresponding pixels to display the state of the data segment on the corresponding pixel (such as the black line segment in Figure 8). However, the time of each data segment is different, and when converted into pixels, the pixels may not be integers, which is not convenient for wearable devices to display. Accordingly, in an embodiment of the present application, a pixel processing method for data segments can be provided, which can ensure that the pixels of the data segments are integers to the greatest extent, which is convenient for wearable devices to display.
[0159] In an embodiment of the present application, the wearable device can obtain a conversion relationship between pixels and duration based on the number of pixels of the screen adapted for the wearable device and the duration of N data. The number of pixels of the screen adapted for the wearable device is pre-configured based on the number of pixels of the screen. For example, the number of pixels of the screen of a round watch is 400. A rectangular area can be selected in the middle of the screen of the round watch. The number of pixels included in the rectangular area can be understood as the number of pixels of the screen adapted for the wearable device. For example, the number of pixels of the screen adapted for the wearable device is L, and L can be less than or equal to the total number of pixels of the screen of the wearable device.
[0160] The duration of N data can be understood as the duration of the entire acquisition process, that is, the sum of the durations of all states. For example, taking sleep data as an example, the duration of N data can be the duration of the sleep process. The wearable device can obtain the conversion relationship between pixels and duration based on the number of pixels of the screen adapted to the wearable device and the duration of N data. For example, if the duration of N data is n, the pixels per unit time is L / n, and L / n can be regarded as the conversion relationship between pixels and duration.
[0161] After the wearable device obtains the conversion relationship between pixels and duration, it can convert the duration of each data segment in the N data into pixels for each data segment based on this conversion relationship. In other words, the wearable device can multiply the duration of each data segment in the N data by L / n to obtain the pixels for each data segment. The pixels for each data segment can reflect the duration of the state of each data segment.
[0162] After the wearable device obtains the pixels of each data segment, the pixels in the data segment may be non-integer. In this embodiment of the present application, the wearable device can supplement the non-integer pixels of the first data segment with the second data segment so that the pixels of the second data segment are equal to the third threshold. The pixels of the first data segment are greater than the third threshold, and the pixels of the second data segment are less than the third threshold. In other words, the first data segment is a data segment with pixels greater than the third threshold, and the second data segment is a data segment with pixels less than the third threshold. It should be noted that the third threshold can be the minimum pixel at which the wearable device can clearly display the status of the data segment.
[0163] The non-integer pixel of the first data segment can be understood as: the pixels in the first data segment that are less than 1, also called fractional pixels. For example, if the number of pixels in the first data segment is 8.6, the non-integer pixel of the first data segment is 0.6.
[0164] In some embodiments, the wearable device may supplement the non-integer pixels of the first data segment to the second data segment in descending order of pixels. In this example, the wearable device may sort the pixels of the data segment in descending order of pixels and supplement the non-integer pixels of the first data segment to the second data segment in descending order of pixels.
[0165] It should be noted that when the data is sleep data, because the awake state can be accurately determined, the awake data segment is not included in the first data segment to avoid pixel fluctuations in the awake data segment and data distortion. However, because the accuracy of light sleep, deep sleep, and eye movement is lower than that of awake data, processing the pixels of the light sleep, deep sleep, and eye movement data segments does not cause data distortion. It is understood that when performing pixel processing on other types of data, the data segment with accurately determined states can also be excluded from the first data segment.
[0166] For example, referring to a in FIG9A , the wearable device sorts the pixels of the data segment from largest to smallest, and the sorted pixels are 8.6, 7.3, 7, 6.8, 4.2, 3.5, 2.1, 2.6, and 1.5. It should be understood that the pixels listed in a in FIG9A do not include pixels of awake data. Taking the third threshold of 3 as an example, 2.1, 2.6, and 1.5 are all less than 3. These three pixels are less than the third threshold, and the data segment of these three pixels can be called the second data segment. 8.6, 7.3, 7, 6.8, 4.2, and 3.5 are all greater than 3. These pixel data segments can be called the first data segment.
[0167] The wearable device can supplement the non-integer pixels of the first data segment to the second data segment in descending order of pixels. Referring to a in Figure 9A, the wearable device can first supplement the non-integer pixel 0.6 in pixel 8.6 to pixel 1.5. However, for pixel 1.5 to reach the third threshold 3, a total of 1.5 pixels need to be supplemented. Therefore, the wearable device continues to supplement the non-integer pixel 0.3 in pixel 7.3 to pixel 1.5. At this time, pixel 1.5 is supplemented by 0.9 pixels, but pixel 1.5 still does not reach the third threshold and is still 0.6 pixels short. Because there are no non-integer pixels in pixel 7, the wearable device can skip pixel 7 first and supplement 0.6 pixels of the non-integer pixel 0.8 in pixel 6.8 to pixel 1.5. At this time, pixel 1.5 reaches the third threshold.
[0168] Next, the wearable device can continue to add pixels to pixel 2.1. Similarly, the wearable device can add the remaining 0.2 pixels of the non-integer pixel 0.8 in pixel 6.8 to pixel 2.1, add the non-integer pixel 0.2 in pixel 4.2 to pixel 2.1, and add the non-integer pixel 0.5 in pixel 3.5 to pixel 2.1, until pixel 2.1 reaches the third threshold.
[0169] At this time, the wearable device adds all non-integer pixels of the first data segment to the second data segment, but there are still pixels in the second data segment (such as pixel 2.6) that are smaller than the third threshold. The wearable device can continue to add the integer pixels of the first data segment to the second data segment in order from large to small pixels so that the pixels of the second data segment are equal to the third threshold.
[0170] For example, pixel 2.6 is 0.4 pixels short of reaching the third threshold. Pixel 8.6 adds 0.6 pixels to pixel 1.5 to become pixel 8. At this point, the wearable device can add 0.4 of the integer pixel 1 of pixel 8 to pixel 2.6, causing pixel 2.6 to reach the third threshold. When all pixels in the second data segment have been added to the third threshold, the pixels in the data segment may be as shown in FIG9A b.
[0171] In an embodiment of the present application, the wearable device adds integer pixels of the first data segment to the second data segment in order of pixels from large to small. The purpose of this setting is: because the larger the pixel, the longer the duration of the state representing the data segment, and the larger the pixels occupied by the display on the screen, the user can clearly see the state. The integer pixels of the first data segment are added to the second data segment in order of pixels from large to small. Because the pixels at the front of the sort are large in themselves, adding a small number of pixels to the second data segment will not affect the display of the pixel, nor will it affect the display effect of the overall data.
[0172] In addition, the principle of setting pixels to complement each other in the embodiment of the present application is that the increase in pixels of a data segment is borrowed from pixels of other data segments, which can ensure that the pixels occupied by the entire data remain unchanged.
[0173] In some embodiments, the wearable device can supplement the non-integer pixels of the first data segment to the second data segment according to the state priority. In this example, taking sleep data as an example, the state priority is from high to low: light sleep, deep sleep, eye movement, and the data segment of the awake state is not used as the first data segment. The purpose of such setting of the embodiment of the present application is that: during the sleep process, the duration of light sleep, deep sleep, and eye movement decreases in sequence, and the proportion of light sleep and deep sleep is large, so the data segment of light sleep and the data segment of deep sleep have more pixels. Therefore, such setting is similar to the above-mentioned setting purpose of "according to the order of pixels from large to small", and a small number of pixels of the first data segment (the data segment with more pixels) can be supplemented to the second data segment, which will not affect the display of the pixel, nor will it affect the display effect of the overall data.
[0174] In this example, the process of adding non-integer pixels of the first data segment to the second data segment according to the state priority is not described in detail, and reference may be made to the description in FIG. 9A .
[0175] In some embodiments, the wearable device may sort the data segments in descending order of pixels to obtain a first sort, and sort the first sort by state priority to obtain a second sort. The wearable device may supplement the non-integer pixels of the first data segment with the second data segment according to the second sort.
[0176] Referring to Figure 10, the pixels of the data segments are 7.3, 6.8, 3.5, 4.2, 8.6, and 7, respectively. The wearable devices are arranged in descending order of pixels to obtain a first ranking of 8.6, 7.3, 7, 6.8, 4.2, and 3.5. The wearable devices can be sorted according to priority in the first ranking to obtain a second ranking.
[0177] In some embodiments, the wearable device can sort the first ranking in the order of light sleep, deep sleep, and eye movement from high to low. For example, the wearable device can put the pixels of light sleep (1) in front, followed by the pixels of deep sleep (2), and then the pixels of eye movement (3), and obtain the second ranking as: 7.3, 7, 6.8, 4.2, 8.6, 3.5, 7.
[0178] In order to avoid borrowing too many pixels from the light sleep and deep sleep data segments, which affects the overall display effect of the data, in some embodiments, the pixel conversion ratio can be pre-set for different states, and then sorted based on the state priority. For example, the conversion ratio of light sleep pixels is 1, the conversion ratio of deep sleep pixels is 0.8, and the conversion ratio of eye movement pixels is 0.6. After the wearable device obtains the first sorting, it can multiply the state of the data segment corresponding to each pixel by the corresponding conversion ratio to obtain the converted pixels. For example, the converted pixels are: 6.88, 7.3, 4.2, 6.8, 4.2, 2.8. The wearable device then sorts the converted pixels in order from large to small to obtain the second sorting. The second sorting is: 7.3, 6.88, 6.8, 4.2(1), 4.2(3), 2.8.
[0179] In some embodiments, if there are pixels of the same size among the converted pixels, they can be sorted in descending order of priority. For example, if there are two pixels with a value of 4.2 among the converted pixels, the second sorting can place the pixel 4.2 indicating light sleep before the pixel 4.2 indicating eye movement.
[0180] After the pixels in the second data segment are supplemented, all the pixels in the second data segment can be equal to the third threshold. However, since the pixels in the first data segment are borrowed from the second data segment, there may be data segments in the first data segment containing non-integer pixels. To facilitate display on the wearable device, the data segments with non-integer pixels can be further processed in embodiments of the present application. In some embodiments, when all the pixels in the second data segment are equal to the third threshold, the data segment can include M data segments to be processed, and the pixels in the M data segments to be processed are non-integer pixels, where M is an integer greater than or equal to 2 and less than or equal to N. The M data segments to be processed can be regarded as data segments in the first data segment containing non-integer pixels.
[0181] In an embodiment of the present application, in order to facilitate the display of data on the wearable device, the pixels of M data segments to be processed can be processed so that the pixels of the M data segments to be processed become integers, or after pixel processing, the pixels of one data segment are non-integer, and the pixels of the other M-1 data segments to be processed become integers, ensuring that the display error of the data is within 0.5 pixels.
[0182] The wearable device may process pixels in the M data segments to be processed using a rounded-up method and detect whether the sum of pixel changes in the first i data segments processed is greater than a fourth threshold. If the sum of pixel changes in the first i data segments is greater than the fourth threshold, the wearable device may discard non-integer pixels in the i+1th data segment. If the sum of pixel changes in the first i data segments is less than or equal to the fourth threshold, the wearable device may process pixels in the i+1th data segment using a rounded-up method. By traversing the M data segments to be processed in this manner, processed data can be obtained.
[0183] For example, referring to a in FIG9B , the pixels of the data segments to be processed are 7.6, 7.6, 7.6, and 4.5, respectively. The wearable device may start from the pixels of the first data segment to be processed and process the pixels of the first data segment to be processed by rounding up. For example, if the pixel of the first data segment to be processed is 7.6, according to the rounding method, 0.4 pixels need to be added to the pixel to reach an integer pixel. Therefore, the wearable device may process the pixel of the first data segment to be processed as 8 and record the pixel change of the first data segment to be processed as "+0.4".
[0184] In some embodiments, the fourth threshold value may be 1. The pixel change in the first data segment to be processed is 0.4, which is less than the fourth threshold value of 1. Therefore, the wearable device may round the pixels in the second data segment to 7.6. Referring to b in FIG9B , the pixel in the second data segment to be processed is 7.6, which requires adding 0.4 pixels to reach an integer pixel. Therefore, the wearable device may round the pixels in the second data segment to be processed to 8 and record the pixel change in the second data segment to be processed as "+0.4."
[0185] At this point, the sum of the pixel changes in the first two data segments to be processed is "0.4 + 0.4 = 0.8", which is less than the fourth threshold of 1. Therefore, the wearable device can process the pixels of the third data segment by rounding up. Referring to c in Figure 9B, the pixel of the third data segment to be processed is 7.6, which requires adding 0.4 pixels to reach an integer pixel. Therefore, the wearable device can process the pixel of the third data segment to be processed as 8 and record the pixel change of the third data segment to be processed as "+0.4".
[0186] At this time, the sum of the pixel changes of the first three data segments to be processed is "0.4+0.4+0.4=1.2", which is greater than the fourth threshold value 1. Therefore, the wearable device can discard the non-integer pixels of the fourth pixel segment. Referring to d in Figure 9B, the pixel of the fourth data segment to be processed is 4.5. If rounded up, the sum of the pixel changes of the first four data segments to be processed becomes "0.4+0.4+0.4+0.5=1.7", resulting in the total number of pixels exceeding 1.7 pixels. To avoid this situation, the wearable device can discard the non-integer pixel 0.5 in the pixels of the fourth data segment to be processed. The wearable device can process the fourth data segment to be processed into 4 and record the pixel change of the fourth data segment to be processed as "-0.5". In this way, the sum of the pixel changes of the first four data segments to be processed becomes "0.4+0.4+0.4-0.5=0.7", which is less than the fourth threshold value 1.
[0187] In an embodiment of the present application, the wearable device can traverse M data segments to be processed and process the pixels of the M data segments to be processed according to the above processing method, and can ensure that the pixels of the M data segments to be processed are all integers, or at least can ensure that the pixels of the M-1 data segments to be processed are all integers, and can ensure that after the M data segments to be processed are processed, the overall pixel error is within 0.5 pixels.
[0188] As in the above embodiment, after the wearable device processes the pixels of M data segments to be processed, it can obtain processed data, and the wearable device can display the processed data. The following describes how the wearable device displays the processed data:
[0189] In some embodiments, the wearable device can display the processed data in the form of a Gantt chart.
[0190] In an embodiment of the present application, the wearable device can obtain the maximum number of data segments that the screen supports displaying based on the number of pixels of the screen adapted for the wearable device and the third threshold. Hereinafter, the maximum number of data segments that the screen supports displaying is referred to as the maximum number. For example, if the third threshold is 3 and the number of pixels of the screen adapted for the wearable device is N, then the maximum number of data segments that the screen supports displaying is N / 3.
[0191] In some embodiments, when the number of data segments in the processed data exceeds a maximum number, the wearable device may display a first prompt message, wherein the first prompt message is used to instruct the user to view the processed data on a target device, where the target device is a device connected to the wearable device and the screen size of the target device is larger than the screen size of the wearable device.
[0192] Among them, when the number of data segments in the processed data is greater than the maximum number, the wearable device cannot fully display the status of all data segments. In order to facilitate user viewing and improve the user's viewing experience, the wearable device can display the sleep duration and the first prompt information. Referring to a in Figure 11, for example, the first prompt information can be "Please go to the mobile phone APP for more details" to prompt the user to view the data on the terminal (such as a mobile phone) connected to the wearable device. The user can view the data on the terminal (such as a mobile phone), as shown in b in Figure 11. Among them, the terminal (mobile phone) connected to the wearable device can be regarded as the target device.
[0193] In this example, because the target device needs to display the processed data, the wearable device may transmit the processed data to the target device so that the target device may display the processed data.
[0194] In an embodiment of the present application, because the screen size of the target device is larger than the screen size of the wearable device, when the number of data segments in the processed data is greater than the maximum number, the wearable device cannot fully display the status of all data segments. The wearable device can prompt the user to view detailed data on the target device with a larger screen to improve the user experience.
[0195] In some embodiments, when the number of data segments in the processed data is less than or equal to the maximum number, the wearable device may display the processed data in the form of a Gantt chart.
[0196] In one scenario, when the duration of the N data is greater than or equal to a fifth threshold, the wearable device can adapt the width of the screen to display the processed data. For example, the fifth threshold can be 8 hours. For example, if the data is sleep data, the duration of the N data can be considered as the duration of the entire sleep process. When the duration of the N data is greater than or equal to 8 hours, the wearable device can adapt the width of the screen to display the processed data, as shown in a in Figure 13. For example, the wearable device can adapt the width of the screen according to the specific duration of the N data, and adaptively reduce or enlarge the Gantt chart.
[0197] When the duration of N data is less than the fifth threshold, the pixels occupied by the Gantt chart are small. If the wearable device shrinks or enlarges the Gantt chart, it will cause the Gantt chart to be deformed. In order to make it easier for the user to truly see each state in the data, the wearable device can display the processed data in the center, as shown in b in Figure 13.
[0198] In some embodiments, the wearable device can display the processed data based on the shape of the screen.
[0199] For example, when the screen of the wearable device is circular, the width of the screen in each direction is equal, so the wearable device can display the processed data in the form of a Gantt chart, and specifically refer to the display method in Figure 13.
[0200] For example, because the wearable device's screen size is smaller than a preset size, when the wearable device's screen is rectangular and the wearable device is in portrait orientation, the width of the wearable device is small and the processed data cannot be fully displayed. In this example, when the wearable device's screen is rectangular and the wearable device is in portrait orientation, the wearable device may output a second prompt indicating that the processed data should be viewed in landscape orientation, as shown in Figure 12(a). In response to a user operation, when the wearable device is in landscape orientation, the wearable device may display the processed data in the form of a Gantt chart, as shown in Figure 12(b).
[0201] In the embodiment of the present application, a method for displaying processed data appropriately can be provided for different numbers of data segments and screens of different shapes, thereby ensuring the display effect of the data and improving the user experience.
[0202] In summary, the data display methods in the above embodiments are compared below with the current terminal (such as a mobile phone) display method and the wearable device display method provided in the embodiments of the present application. In some embodiments, the wearable device can be referred to as the first device, and the terminal (such as a mobile phone) can be referred to as the second device. The size of the screen of the first device is smaller than the size of the screen of the second device.
[0203] It should be noted that because the current terminal (such as a mobile phone) is not configured with the smoothing and pixel processing methods in the above-mentioned embodiments, the terminal (such as a mobile phone) can display the initial data. Because the wearable device can perform the smoothing and pixel processing methods in the above-mentioned embodiments on the initial data, the wearable device can display the processed data.
[0204] In other words, the first device can display the first data, and the second device can display the second data, and the first data and the second data correspond to the initial data. The first data can be obtained by processing the initial data, and the second data can be the initial data.
[0205] The following first describes the difference between the first data and the second data in conjunction with FIG5 :
[0206] Figure 5 a shows the initial data, and the second data displayed by the second device can be shown as Figure 5 a. Figure 5 b shows the processed data (data after the first smoothing process), and the first data displayed by the first device can be shown as Figure 5 b.
[0207] Comparing Figure 5a and Figure 5b, within the target time period, the number of states of the first data is less than the number of states of the second data. Referring to the portion within the dotted box, the target time period may be the time period within the dotted box, in which the number of states of the second data is multiple (1, light sleep and 2, deep sleep), but the number of states of the first data is only one (2, deep sleep).
[0208] It should be noted that, compared with a in FIG. 5 and b in FIG. 5 , the target time period may also include other time periods, such as a time period of 210-280, and the number of states of the first data is less than the number of states of the second data.
[0209] The reason for this phenomenon is that in the embodiment of the present application, the jump data is smoothed and the jump data is merged into the state adjacent to the previous jump data.
[0210] In addition, because in the embodiment of the present application, the wearable device can also process the pixels of the data segment, refer to Figures 9A-9B, and the relevant description in Figure 10, so the first data can be displayed as integer pixels, and because the initial data currently displayed by the second device has not processed the pixels of the data segment, the second data is displayed as non-integer pixels.
[0211] Alternatively, in some embodiments, the first data may contain a data segment with non-integer pixels, while the second data may contain data segments with integer pixels. Therefore, it can be said that the number of integer pixels in the first data is greater than the number of integer pixels in the second data. Alternatively, it can be said that the number of non-integer pixels in the first data is 1, while the number of non-integer pixels in the second data is greater than 1.
[0212] It should be understood that the specific values of the thresholds (the first threshold, the second threshold, the third threshold, the fourth threshold, and the fifth threshold) in the above examples are for illustration only, and the thresholds are configurable.
[0213] It should be understood that the first device in the above example may be a wearable device. In some embodiments, the wearable device and the first device may both be referred to as electronic devices.
[0214] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0215] In one embodiment, the embodiment of the present application further provides an electronic device, which may be the wearable device or the first device described in the above embodiment. Referring to Figure 14, the electronic device may include: a processor 1401 (e.g., a CPU) and a memory 1402. The memory 1402 may include a high-speed random-access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage. Various instructions may be stored in the memory 1402 to perform various processing functions and implement the method steps of the present application.
[0216] Optionally, the electronic device involved in this application may further include: a power supply 1403, a communication bus 1404, and a communication port 1405. The communication port 1405 is used to enable communication between the electronic device and other peripheral devices. In the embodiment of the present application, the memory 1402 is used to store computer-executable program code, which includes instructions; when the processor 1401 executes the instructions, the instructions cause the processor 1401 of the electronic device to perform the actions in the above-mentioned method embodiment. The implementation principles and technical effects are similar and will not be repeated here.
[0217] Optionally, the electronic device involved in this application may further include: a display screen 1406. The display screen 1406 is used to display the interface of the electronic device. Exemplarily, the display screen 1406 may be used to display processed data.
[0218] It should be noted that the modules or components described in the above embodiments may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented by scheduling program code through a processing element, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code, such as a controller. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0219] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0220] The term "plurality" in this article refers to two or more. The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0221] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended to limit the scope of the embodiments of the present application.
[0222] It can be understood that in the embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Claims
1. A data display method, characterized in that: Applied to electronic equipment, the method comprises: Acquire initial data, where the initial data includes N data, where N is a positive integer; Detecting whether states of X consecutive data among the N data are the same, where X is an integer less than or equal to N; When the states of the X data are different and the number of consecutive appearances of the data in the first state is less than the first threshold, the data in the second state is modified to the first state, the second state is different from the first state, and the first state is the state of the first data among the X data; Display the processed data.
2. The method according to claim 1, characterized in that The method further comprises: Among the N data, detecting whether there is a state in which the number of consecutive occurrences is less than a second threshold, where Y is an integer less than or equal to N; When there is a state whose number of consecutive occurrences is less than the second threshold, and the number of data in the first preset state among the Y data is greater than or equal to the number of data in the second preset state, modify the data in the second preset state to the first preset state; When there is a state whose number of consecutive occurrences is less than the second threshold, and the number of data in the first preset state among the Y data is less than the number of data in the second preset state, the data in the first preset state is modified to the second preset state.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Obtaining a conversion relationship between pixels and duration according to the number of pixels adapted to the screen of the electronic device and the duration of the N data; According to the conversion relationship, the duration of each data segment in the N data is converted into pixels of each data segment, and the states of the data in one data segment are the same; The non-integer pixels of the first data segment are supplemented to the second data segment so that the pixels of the second data segment are equal to a third threshold, the pixels of the first data segment are greater than the third threshold, and the pixels of the second data segment are less than the third threshold.
4. The method according to claim 3, characterized in that The step of supplementing the non-integer pixels of the first data segment to the second data segment includes: In descending order of pixels, the non-integer pixels of the first data segment are supplemented to the second data segment; or, According to the state priority, the non-integer pixels of the first data segment are supplemented to the second data segment.
5. The method according to claim 3, characterized in that: The step of supplementing the non-integer pixels of the first data segment to the second data segment includes: Sorting the data segments in descending order of pixels to obtain a first sorting; Sort by state priority, sort the first sorting to obtain a second sorting; According to the second sorting, the non-integer pixels of the first data segment are supplemented to the second data segment.
6. The method according to any one of claims 3 to 5, characterized in that: The method further comprises: When the non-integer pixels of the first data segment are supplemented to the second data segment, there are still pixels of the second data segment that are smaller than the third threshold, the integer pixels of the first data segment are supplemented to the second data segment to make the pixels of the second data segment equal to the third threshold.
7. The method according to any one of claims 3 to 6, characterized in that: In the case where the pixel of the second data segment is equal to the third threshold, the data segment includes M data segments to be processed, the pixels of the M data segments to be processed are non-integer pixels, and M is an integer greater than or equal to 2 and less than or equal to N; The method further comprises: Processing pixels in the M data segments to be processed in a rounded manner, and detecting whether the sum of pixel changes of the first i data segments that have been processed is greater than a fourth threshold; When the sum of the pixel changes is greater than a fourth threshold, discarding the non-integer pixels of the (i+1)th data segment; When the sum of the pixel changes is less than or equal to the fourth threshold, the pixels of the (i+1)th data segment are processed in a rounded manner.
8. The method according to any one of claims 3 to 7, characterized in that: The method further comprises: According to the number of pixels and the third threshold, obtaining a maximum number of data segments supported for display by the screen; When the number of data segments in the processed data is greater than the maximum number, a first prompt message is displayed, wherein the first prompt message is used to indicate that the processed data is to be viewed on a target device, wherein the target device is a device connected to the electronic device, and the size of the screen of the target device is greater than the size of the screen of the electronic device.
9. The method according to claim 8, characterized in that The method further comprises: The processed data is sent to the target device.
10. The method according to any one of claims 1 to 9, characterized in that The displayed processed data includes: The processed data is displayed in the form of a Gantt chart.
11. The method according to claim 10, characterized in that The size of the screen of the electronic device is smaller than or equal to a preset size.
12. The method according to claim 11, characterized in that When the screen of the electronic device is a rectangular screen, displaying the processed data includes: When the electronic device is in portrait mode, displaying a second prompt message, wherein the second prompt message is used to instruct the user to view the processed data in landscape mode; In response to a user operation, when the electronic device is in landscape orientation, the processed data is displayed.
13. The method according to claim 11, characterized in that The displaying of the processed data comprises: When the duration of the N data is less than a fifth threshold, displaying the processed data in the center; or, When the duration of the N data is greater than or equal to the fifth threshold, the width of the screen is adapted to display the processed data.
14. The method according to any one of claims 1 to 13, characterized in that The data is sleep data, and the states of the data include at least two of the following: light sleep, deep sleep, eye movement, and wakefulness.
15. The method according to claim 13, characterized in that The status of the X data is not awake.
16. The method according to claim 14, characterized in that The first preset state is light sleep, the second preset state is eye movement, and the third preset state is deep sleep.
17. A data display method, characterized in that: Applied to a first device, the method includes: display first data; Among them, within the target time period, the number of states of the first data is less than the number of states of the second data, the second data is data displayed by the second device, and the first data and the second data correspond to initial data.
18. The method according to claim 17, characterized in that The size of the screen of the first device is smaller than the size of the screen of the second device.
19. The method according to claim 17 or 18, characterized in that The first data is displayed as integer pixels, and the second data is displayed as non-integer pixels.
20. The method according to any one of claims 17 to 19, characterized in that The first data and the second data are sleep data, and the states of the sleep data include at least two of the following: light sleep, deep sleep, eye movement, and wakefulness.
21. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 20.
22. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or instruction, and when the computer program or instruction is executed, the method according to any one of claims 1 to 20 is implemented.
Citation Information
Patent Citations
Electronic wristband and computer readable storage medium
CN108030467A
A sleep monitoring method and device
CN109199325A
Data display method and electronic equipment
CN110623652A
Data display method, terminal equipment and storage medium
CN113284585A
Data display method and device, terminal equipment and storage medium
CN113571147A