Data display method, electronic equipment and readable storage medium
By smoothing the initial data on wearable devices and merging, the problem of data display distortion on small-screen devices is solved, achieving clearer data display and better user experience.
Patent Information
- Application Number
- CN202311767368.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-20
- Publication Date
- 2025-06-20
AI Technical Summary
Due to the small screen size of existing wearable devices, they cannot effectively display complex data on the terminal, such as sleep state diagrams, resulting in distortion in the data display and poor user experience.
By developing a data display method in an electronic device, including smoothing the initial data and merging the jump data, ensuring that each sleep state lasts long enough to clearly display the data on a small screen.
It effectively avoids data display distortion on small screen devices, improves the data display effect and user experience, and allows users to clearly see each sleep state.
Smart Images

Figure CN120167893A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the technical field of terminals, and in particular, to a data display method, an electronic device, and a readable storage medium. Background Art
[0002] With the increasingly rich functions of wearable devices, most wearable devices have data monitoring functions. For example, the data can be sports data, sleep data, etc. Currently, wearable devices send data to a terminal connected to the wearable device, and the terminal displays the data. However, users have a need to view data on the wearable device. The screen of the wearable device is small, and directly displaying the data on the terminal on the wearable device will cause distortion and poor user experience. Summary of the Invention
[0003] Embodiments of the present application provide a data display method, an electronic device, and a readable storage medium, which can avoid data display distortion on small-screen wearable devices, improve the data display effect, and improve the user experience.
[0004] In a first aspect, embodiments of the present application provide a data display method, which is applied to an electronic device whose screen size is smaller than a preset size. Exemplarily, the electronic device can be a wearable device. It should be understood that the execution subject of the data display method can be the electronic device or a chip in the electronic device. Hereinafter, the electronic device will be taken as an example for description. In this method, the electronic device can obtain initial data, and the initial data includes N data, where N is a positive integer.
[0005] The initial data includes N data, and each data can represent a different state. Exemplarily, taking the data as sleep data, the initial data can include N data, and each data can represent a sleep state. In some embodiments, each sleep state can also correspond to a time (or time period), and this time (or time period) can be regarded as the duration of the sleep state. The duration of the sleep state can include the start time and the end time of the sleep state. Embodiments of the present application do not limit the type of data. For example, the data can also be sports data, physiological data, environmental data, etc. Hereinafter, the data will be taken as sleep data for description.
[0006] In embodiments of the present application, 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.
[0007] The electronic device detects whether the states of X consecutive data among the N data are the same, where X is an integer less than or equal to N. Among them, 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 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.
[0008] 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 the 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 among the N data are the same.
[0009] In a possible implementation manner, since the awake state of the sleep data is accurately determined, the state of the X data is not awake.
[0010] The electronic device can display the processed data. The purpose of setting like this in the embodiments of the present application is to enable the number of occurrences of each state to reach the first threshold, that is, the duration of each state is longer, so as to avoid the problem that the number of occurrences of the state is too small. When the number of occurrences of the state is too small, the data of the state occupies fewer pixels when displayed on the electronic device, and there will be a problem of unclear display. Therefore, setting like this in the embodiments of the present application can ensure that the data of each state occupies more pixels when displayed on the electronic device, can ensure the display effect of the data, ensure that the user can see each state in the data clearly, and improve the user experience.
[0011] In the embodiments of the present application, the N data can be traversed, and the data can be smoothed by combining the states of the front and back data among the N data. The data with jumps can be merged into the adjacent states, which can avoid the influence of abnormal data (jumping data) on the display effect of the data, can avoid data display distortion, and improve the user experience.
[0012] The processing of the initial data in the above example can be regarded as the first smoothing process. In order to further improve the data display effect, in some embodiments, the electronic device can also perform a second smoothing process on the data. Among them, among the Y consecutive data among the N data, it is detected whether there is a state with the number of consecutive occurrences less than the second threshold, where Y is an integer less than or equal to N.
[0013] Among them, when there is a state with a consecutive occurrence count 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, the data in the second preset state is modified to the first preset state. Among them, when there is a state with a consecutive occurrence count 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.
[0014] 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.
[0015] In the embodiments of the present application, the purpose of such setting is as follows: The deep sleep data is usually severely fragmented and has many abnormal data. The second smoothing can either reduce the abnormal deep sleep data or extend the duration of deep sleep, both of which can solve the fragmentation problem in deep sleep data. In addition, the reason for smoothing the deep sleep data and light sleep data is that: during the entire sleep process of the user, the amount of light sleep data is relatively large. Even if the light sleep is modified to deep sleep, it will not affect the proportion of light sleep in the entire sleep process, and the distortion of the sleep Gantt chart can be avoided.
[0016] In the embodiments of the present application, after the electronic device performs the first smoothing on the initial data, there may still be jump data. In the embodiments of the present application, the electronic device can perform a second smoothing process on the data after the first smoothing process to further reduce the jump data and improve the display effect of the data.
[0017] In the embodiments of the present application, the electronic device can display the data in the form of a state diagram. Among them, 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 pixels. However, since the time of each data segment is different, the pixels may not be integers when converted, which is not convenient for the electronic device to display. Therefore, in the embodiments of the present application, a pixel processing method for data segments can be provided to ensure that the pixels of the data segments are integers to the greatest extent, which is convenient for the electronic device to display.
[0018] In a possible implementation, the electronic device can obtain the conversion relationship between pixels and duration according to the number of pixels of the screen adapted to the electronic device and the duration of the N data. The electronic device can convert the duration of each data segment in the N data into the pixels of each data segment according to the conversion relationship, and the state of the data in one data segment is the same.
[0019] In the data segment, there is a data segment with pixels greater than the third threshold, which can be called the first data segment, and there is a data segment with pixels less than the third threshold, which can be called the second data segment. In the embodiments of the present application, the third threshold can be the minimum number of pixels for the electronic device to clearly display the state of the data segment. In order for the electronic device to clearly display the state of each data segment, the electronic device can supplement the non-integer pixels of the first data segment to the second data segment so that the number of pixels of the second data segment is equal to the third threshold, the number of pixels of the first data segment is greater than the third threshold, and the number of pixels of the second data segment is less than the third threshold.
[0020] First, the electronic device can supplement the non-integer pixels of the first data segment to the second data segment in descending order of the number of pixels; or, the electronic device can supplement the non-integer pixels of the first data segment to the second data segment according to the state priority.
[0021] Second, the electronic device can sort the data segments in descending order of the number of pixels to obtain a first sorting, and sort the first sorting according to the state priority to obtain a second sorting. The electronic device can supplement the non-integer pixels of the first data segment to the second data segment according to the second sorting.
[0022] In a possible implementation, after the non-integer pixels of the first data segment are supplemented to the second data segment, the number of pixels of the second data segment is equal to the third threshold. In this example, the electronic device can process the number of pixels of M data segments to be processed, and can refer to the following related descriptions.
[0023] In a possible implementation, after 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 less than the third threshold. The integer pixels of the first data segment are supplemented to the second data segment so that the number of pixels of the second data segment is equal to the third threshold.
[0024] In the case where the number of pixels of the second data segment is equal to the third threshold, for the convenience of display of the wearable device, in the embodiments of the present application, the data segment with non-integer pixels can be further processed. In a possible implementation, the data segment includes M data segments to be processed, and the number of pixels of the M data segments to be processed is non-integer, and M is an integer greater than or equal to 2 and less than or equal to N.
[0025] Among them, the electronic device can process the pixels in the M data segments to be processed in a rounding manner, and detect whether the sum of the pixel changes in the first i processed data segments is greater than a fourth threshold. Among them, when the sum of the pixel changes is greater than the fourth threshold, the non-integer pixels in the (i + 1)-th data segment are discarded; when the sum of the pixel changes is less than or equal to the fourth threshold, the pixels in the (i + 1)-th data segment are processed in a rounding manner.
[0026] In the embodiments of the present application, in order to facilitate the electronic device to display data, the pixels in the M data segments to be processed can be processed so that the pixels in all the M data segments to be processed become integers, or there is one data segment with non-integer pixels after pixel processing, and the pixels in the other M - 1 data segments to be processed all become integers, ensuring that the display error of the data is within 0.5 pixels.
[0027] In the above embodiments, the initial data can be regarded as the processed data after one smoothing process, or the initial data can be regarded as the processed data after two smoothing processes, or the initial data after any smoothing process and the pixels in the data segments after processing can be regarded as the processed data. The following describes the manner in which the electronic device displays the processed data:
[0028] In a possible implementation manner, the electronic device can obtain the maximum number of data segments that the screen supports for display according to the number of pixels and the third threshold.
[0029] Among them, when the number of data segments in the processed data is greater than the maximum number, since the screen size of the electronic device is small, it cannot completely display the processed data. Therefore, the electronic device can display a first prompt message, and the first prompt message is used to indicate to view the processed data on a target device, where the target device is a device connected to the electronic device, and the screen size of the target device is greater than the screen size of the electronic device. In this example, since the electronic device can prompt the user to view the processed data on a 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.
[0030] In this example, when the number of data segments in the processed data is greater than the maximum number, since the screen size of the electronic device is small, it cannot completely display the processed data. Therefore, the electronic device can send the processed data to the target device so that the target device can display the processed data. Since the screen size of the target device is greater than the screen size of the electronic device, the target device can completely display the processed data, facilitating the user to view the complete data and improving the user experience.
[0031] Wherein, 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.
[0032] In a 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 the change of continuous states associated with time. Exemplarily, for example, the state diagram may be a Gantt chart, a box plot, etc. In the following embodiments, the Gantt chart is taken as an example for illustration.
[0033] Wherein, the electronic device may display the processed data in the form of a Gantt chart.
[0034] In a possible implementation, when the screen of the electronic device is a rectangular screen and the electronic device is in the portrait orientation, because the screen size of the electronic device is less than the preset size and the electronic device in the portrait orientation cannot fully display the processed data, the electronic device may display a second prompt message for instructing to view the processed data in the landscape orientation.
[0035] In this example, in response to a user operation, when the electronic device is in the landscape orientation, the processed data is displayed.
[0036] In a possible implementation, when the duration of the N data is less than a fifth threshold, the electronic device may center-display the processed data; or, when the duration of the N data is greater than or equal to the fifth threshold, the processed data is displayed by adapting to the width of the screen.
[0037] In the embodiments of the present application, for different numbers of data segments and different-shaped screens, appropriate methods for displaying the processed data may be provided, which can ensure the display effect of the data and improve the user experience.
[0038] In a second aspect, the embodiments of the present application provide a data display method applied to an electronic device, the screen size of which is less 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 a second device is greater than that 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).
[0039] The first device can display first data, where, within a target time period, the number of states of the first data is less than the number of states of second data, and the second data is the data displayed by a second device, and the first data and the second data correspond to initial data. In the embodiments of the present application, the first data may be the processed data in the first aspect, and the second data may be the initial data.
[0040] In a possible implementation, the first data is displayed as integer pixels, and the second data is displayed as non-integer pixels.
[0041] 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.
[0042] In a third aspect, embodiments of the present application provide an electronic device, which may include: a processor and a memory. The memory is used to store computer-executable program code, and the program code includes instructions; when the processor executes the instructions, the instructions cause the electronic device to execute the methods in the first aspect and the second aspect.
[0043] In a fourth aspect, embodiments of the present application provide an electronic device, which may include units, modules, or circuits for executing the methods provided in the above first aspect and second aspect.
[0044] In a fifth aspect, embodiments of the present application provide a computer program product containing instructions, which, when running on a computer, causes the computer to execute the methods in the above first aspect and second aspect.
[0045] In a sixth aspect, embodiments of the present application provide a computer-readable storage medium, in which instructions are stored, which, when running on a computer, causes the computer to execute the methods in the above first aspect and second aspect.
[0046] For the possible implementation manners of the second aspect to the sixth aspect above, the beneficial effects can refer to the beneficial effects brought by the first aspect above, and will not be elaborated here. Description of the Drawings
[0047] Figure 1 A schematic diagram for displaying sleep data;
[0048] Figure 2 A schematic diagram for displaying the data of a terminal on a wearable device;
[0049] Figure 3A A schematic structural diagram of a wearable device provided by an embodiment of the present application;
[0050] Figure 3BA system architecture diagram applicable to the data display method provided by the embodiments of the present application;
[0051] Figure 4A A schematic flowchart of an embodiment of the data display method provided by the embodiments of the present application;
[0052] Figure 4B A schematic diagram of data processing provided by the embodiments of the present application;
[0053] Figure 5 A comparative schematic diagram before and after data processing provided by the embodiments of the present application;
[0054] Figure 6A A schematic diagram of a wearable device displaying data provided by the embodiments of the present application;
[0055] Figure 6B Another schematic diagram of a wearable device displaying data provided by the embodiments of the present application;
[0056] Figure 7A A schematic flowchart of another embodiment of the data display method provided by the embodiments of the present application;
[0057] Figure 7B Another schematic diagram of data processing provided by the embodiments of the present application;
[0058] Figure 7C Another schematic diagram of data processing provided by the embodiments of the present application;
[0059] Figure 8 Another comparative schematic diagram before and after data processing provided by the embodiments of the present application;
[0060] Figure 9A A schematic diagram of processing pixels of a data segment provided by the embodiments of the present application;
[0061] Figure 9B Another schematic diagram of processing pixels of a data segment provided by the embodiments of the present application;
[0062] Figure 10 A sorting schematic diagram of pixels of a data segment provided by the embodiments of the present application;
[0063] Figure 11 A schematic diagram of data display provided by the embodiments of the present application;
[0064] Figure 12 Another schematic diagram of data display provided by the embodiments of the present application;
[0065] Figure 13 Another schematic diagram of data display provided by the embodiments of the present application;
[0066] Figure 14 This is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0067] Currently, wearable devices have a data monitoring function. The data may include, but is not limited to: exercise data, sleep data, physiological data, and environmental data, etc. Taking running as an example, the exercise data may include, for example: pace, cadence, distance, etc. The sleep data may include, for example: sleep duration, sleep state, etc. The sleep state may include at least one of the following: light sleep, deep sleep, eye movement, and wakefulness. The physiological data may include, but is not limited to: heart rate, respiration, body temperature, etc. The environmental data may include, but is not limited to: environmental brightness, environmental temperature, environmental altitude (height), and environmental pressure (such as air pressure, water pressure), etc.
[0068] In order to enable users to intuitively view the data collected by the wearable device, currently, the wearable device can send the collected data to the terminal connected to the wearable device, and the terminal displays the data. The terminal can be referred to as a user equipment (UE). For example, the terminal can be a mobile phone, a tablet computer (PAD), a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device, a vehicle-mounted device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in a smart home, etc. In the embodiments of the present application, the form of the terminal is not specifically limited. In the following embodiments, the terminal is taken as a mobile phone for illustration.
[0069] In some embodiments, the wearable device and the terminal can be connected through a communication network to achieve data transmission. The communication network can be, but is not limited to: 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 and other short-range communication networks.
[0070] Taking the sleep data as an example, currently, the wearable device can display the sleep duration, and more detailed sleep data needs to be viewed on the terminal. Refer to Figure 1For a in [the example of the wearable device being a watch], the watch can display information such as "Sleep duration is 8 hours and 21 minutes", and information to prompt the user to view more detailed sleep data on a 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. Refer to Figure 1 For b in [the above], 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 graph, etc.
[0071] It should be understood that in Figure 1 For b in [the above], the terminal displays the sleep status graph in the form of a Gantt chart. The sleep status graph can be understood as: during the user's sleep process, the continuous sleep status changing with time.
[0072] Currently, users have a need to directly view the sleep status graph on the wearable device. For example, as soon as the user wakes up, they can directly view the sleep status graph by operating the worn watch, without having to rummage through the mobile phone to find the sleep status graph on the mobile phone.
[0073] Currently, if the sleep status graph displayed on the terminal is directly displayed on the wearable device, distortion will occur and the user experience will be poor. The reason is that: the screen size of the wearable device is smaller than that of the terminal, and the number of pixels included in the screen of the wearable device is less than the number of pixels included in the screen of the terminal. For example, the terminal's screen contains 2000 pixels, and the wearable device's screen contains 400 pixels. If the sleep status graph displayed on the terminal is directly displayed on the wearable device, the content displayed by every 5 pixels in the sleep status graph displayed on the terminal needs to be compressed into 1 pixel for display. This will cause the status blocks (such as Figure 2 the black, gray, white and other rectangular blocks in a in [the above]) to be compressed into 1 point for display, as shown in Figure 2 b in [the above]. Currently, when the sleep status graph displayed on the terminal is directly displayed on the wearable device, the sleep status graph will be distorted and cannot accurately and detailedly represent the sleep status, and the user experience is poor.
[0074] In addition, during the data collection process, due to reasons such as collection stability, the wearable device will also collect some abnormal data (which can also be called outlier data). The display of this abnormal data on the small-screen wearable device will also affect the overall data display effect.
[0075] In summary, the embodiments of the present application aim to solve the problem of "how to accurately and detailedly display data on a wearable device with a small screen", so as to avoid display distortion, improve the data display effect, and enhance the user experience. Based on the above analysis, since the screen size of the wearable device is smaller than that of the terminal, for the same data, because the terminal has a larger screen size and more pixels, even if the state of the data occupies one or a small number of pixels, the terminal device can accurately and detailedly display it. However, for the wearable device with a small screen size and fewer pixels, when the data occupies one pixel or a small number of pixels on the terminal, this state will occupy even fewer pixels on the wearable device, and the user cannot clearly see the data, resulting in a poor display effect.
[0076] In order to enable the wearable device to accurately and detailedly display data, after the wearable device collects the data, it can perform smoothing processing on the data to remove abnormal (or mutated) data, so that the state of each data can be maintained for a period of time. In this way, each state of the data can occupy enough pixels, and the wearable device can use more pixels to display this state, and the user can also clearly see the data displayed on the wearable device, thereby improving the data display effect.
[0077] It should be understood that the data display method provided by the embodiments of the present application can be applied to wearable devices with a small screen. In other words, the screen size of the wearable device in the embodiments of the present application can be smaller than a preset size. In some embodiments, the wearable device may include, but is not limited to: watches, bracelets, smart glasses, smart rings, head-mounted devices, etc., and the embodiments of the present application do not limit this.
[0078] 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, and the state diagram can represent the change of continuous states associated with time. Exemplarily, for example, the state diagram can be a Gantt chart, a box plot, etc. In the following embodiments, the Gantt chart is taken as an example for illustration.
[0079] Exemplarily, taking the sleep data as an example, the states of the sleep data may include: light sleep, deep sleep, eye movement, and wakefulness. Exemplarily, taking the exercise data as running data as an example, the states of the exercise data may include: start, uniform speed, and sprint, etc. Exemplarily, taking the physiological data including heart rate as an example, the states of the physiological data may include: severely bradycardic, bradycardic, tachycardic, 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 different types of data have different states, and the embodiments of the present application do not exhaust all data and their states.
[0080] In the following embodiments, taking the sleep data as an example, the data display method provided by the embodiments of the present application is introduced.
[0081] Before introducing the data display method provided by the embodiments of the present application, the structure of the wearable device and the system architecture applicable to the data display method are first introduced:
[0082] Figure 3A It is a schematic structural diagram of a wearable device provided by an embodiment of the present application. Referring to Figure 3A , taking sleep data as an example, the wearable device may include: a sleep data acquisition module, a sleep state calculation module, a sleep stage result acquisition module, a display module, a communication module, and a sensor module. It should be understood that Figure 3A shows the sensors used to collect sleep data. The sensors may include, for example, an acceleration sensor and a photoplethysmography (PPG) sensor.
[0083] It should be understood that when the data is of other types, the wearable device may include, for example, a data acquisition module, a state calculation module, a stage result acquisition module, a display module, a communication module, and a sensor module. Specifically, reference may be made to the relevant descriptions of the sleep data acquisition module, the sleep state calculation module, the sleep stage result acquisition module, the display module, the communication module, and the sensor module.
[0084] The sleep data acquisition module is used to acquire sleep data. Among them, the sleep data acquisition module may obtain acceleration data from the acceleration sensor and PPG data from the PPG sensor.
[0085] In some embodiments, the sleep data acquisition module may determine the user's posture (or body movement) according to the acceleration data. The sleep data acquisition module may obtain the user's heart rate, respiration, etc. according to the PPG data. In the embodiments of the present application, the sleep data may include the user's posture, heart rate, respiration, etc. The embodiments of the present application do not limit the sleep data used to calculate the sleep state.
[0086] The sleep state calculation module may calculate the sleep state according to the sleep data of the sleep data acquisition module. The sleep state may include but is not limited to: light sleep, deep sleep, eye movement, and wakefulness. In some embodiments, the sleep state may also include more or fewer states. The embodiments of the present application do not limit this. In the embodiments of the present application, the sleep state including light sleep, deep sleep, eye movement, and wakefulness is taken as an example for illustration. The embodiments of the present application do not elaborate on the method of obtaining the sleep state according to the sleep data. Specifically, reference may be made to the existing relevant solutions.
[0087] The sleep stage result acquisition module can correspond the sleep state with the duration of the state to obtain the sleep stage result. In some embodiments, the sleep stage result may include: at least one sleep state and the time corresponding to each sleep state. Exemplarily, the sleep stage result may include: light sleep (22:00 - 23:30), deep sleep (23:30 - 24:00), REM (24:00 - 00:20), deep sleep (00:20 - 02:00), light sleep (02:00 - 04:00), etc.
[0088] The display module is used to display the sleep stage result. In other words, the display module is used to display the data (sleep stage result) in the form of a state diagram.
[0089] In the embodiments of the present application, in order to enable a small - screen wearable device to accurately and clearly display the sleep stage result, the sleep stage result acquisition module may further process the initial data (such as smoothing, etc.) according to the initial data (such as the sleep stage result calculated as above) to obtain the processed data, which can be referred to the description in the following embodiments. Correspondingly, the display module can display the processed data.
[0090] The communication module is used to implement the communication between the wearable device and other devices. Exemplarily, the communication module is used to implement the communication between the wearable device and a terminal (such as a mobile phone).
[0091] In some embodiments, for a wearable device that does not configure a sleep state calculation module and a sleep stage result acquisition module (such as a wearable device that has been sold or launched), the wearable device can configure the sleep state calculation module and the sleep stage result acquisition module by means of software update so as to implement the data display method provided by the embodiments of the present application.
[0092] In some embodiments, for a wearable device that does not configure a sleep state calculation module and a sleep stage result acquisition module, the wearable device can rely on the functions of the terminal to implement data display.
[0093] In this example, referring to Figure 3B , the wearable device may include: a sleep data acquisition module, a display module, a first communication module, and a sensor module. The terminal may include: a second communication module, a sleep state calculation module, and a sleep stage result acquisition module.
[0094] Among them, the sleep data acquisition module is used to acquire sleep data, which can be referred to the description in Figure 3A . In this example, after the sleep data acquisition module acquires the sleep data, it can send the sleep data to the terminal through the first communication module and the second communication module.
[0095] The sleep state calculation module in the terminal can calculate the sleep state based on sleep data, and can refer to Figure 3A the description in
[0096] The sleep stage result acquisition module in the terminal can correspond the sleep state with the duration of the state to obtain the sleep stage result, and can refer to Figure 3A the description in. After the sleep stage result acquisition module obtains the sleep stage result, the sleep stage result acquisition module can send the sleep stage result to the wearable device through the second communication module and the first communication module.
[0097] The display module in the wearable device can display the sleep stage result.
[0098] In some embodiments, the sleep stage result acquisition module in the terminal can further process the initial data (such as smoothing, etc.) according to the initial data (such as the sleep stage result calculated above) to obtain the processed data, and can refer to the description in the following embodiments. The sleep stage result acquisition module can also send the processed data to the wearable device through the second communication module and the first communication module. Correspondingly, the display module can display the processed data.
[0099] The data display method provided by the embodiments of the present application will be described below in conjunction with specific embodiments. These several embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0100] Figure 4A It is a schematic flowchart of an embodiment of the data display method provided by the embodiments of the present application. It should be understood that the execution subject of the data display method provided by the embodiments 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 described by taking the execution subject as 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.
[0101] Refer to Figure 4A , the data display method provided by the embodiments of the present application may include:
[0102] S401, obtain initial data, where the initial data includes N data, and N is a positive integer.
[0103] The initial data includes N data, and each data can represent different states. Exemplarily, taking the data as sleep data, the initial data can include N data, and each data can represent a sleep state. In some embodiments, each sleep state can also correspond to a time (or time period), and this time (or time period) can be regarded as the duration of the sleep state. The duration of the sleep state can include the start time and the end time of the sleep state.
[0104] Exemplarily, taking the sleep state including four states of light sleep, deep sleep, rapid eye movement (REM), and wakefulness as an example, for example, the numbers 1, 2, 3, and 4 can be used to represent the four states of light sleep, deep sleep, REM, and wakefulness respectively. Among them, 1 represents light sleep, 2 represents deep sleep, 3 represents REM, and 4 represents wakefulness. It should be understood that the four states of light sleep, deep sleep, REM, and wakefulness can also be represented by a range of numbers. Exemplarily, the range of numbers from 1 to 10 represents light sleep, the range of numbers from 11 to 20 represents deep sleep, the range of numbers from 21 to 30 represents REM, and the range of numbers from 31 to 40 represents wakefulness. For example, the number 15 is within the range of numbers from 11 to 20, and the number 15 can represent deep sleep. In the embodiments of the present application, there is no limitation on the data representing the sleep state. For example, other characters, pictures, etc. can also be used to represent the sleep state. In the following embodiments, the example of "using the numbers 1, 2, 3, and 4 to represent the four states of light sleep, deep sleep, REM, and wakefulness respectively" is used for illustration.
[0105] Exemplarily, the initial data can 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). Among them, each data can represent a sleep state, and each sleep state can correspond to a time (or time period). Among them, the time (or time period) after each data is the time (or time period) corresponding to the sleep state of this data. Taking (a1:a2) as an example, a1 can represent hours, and a2 can represent minutes and seconds.
[0106] S402, detect whether the states of X consecutive data among the N data are the same, where X is an integer less than or equal to N.
[0107] In the embodiments of the present application, the state represented by the data can be understood as the state of the data. For example, if the data 1 represents light sleep, it can be said that the state of the data 1 is light sleep.
[0108] In some embodiments, the wearable device may traverse N pieces of data and sequentially detect whether the states of consecutive X pieces of data among the N pieces of data are the same. Here, X is an integer less than or equal to N.
[0109] In some embodiments, taking sleep data as an example, since the wearable device can accurately determine the awake state based on data such as the user's posture, heart rate, and respiration, and due to noise in data such as the user's posture, heart rate, and respiration, there is a certain error when determining states such as light sleep, deep sleep, and eye movement based on data such as the user's posture, heart rate, and respiration. Compared with being awake, the accuracy of light sleep, deep sleep, and eye movement is lower.
[0110] Therefore, in the embodiments of the present application, the wearable device can perform processing such as smoothing and merging on data with relatively large errors, such as data in the light sleep, deep sleep, and eye movement states, without processing data in the accurately determined awake state, which can avoid distortion of sleep data. Exemplarily, the wearable device can filter out or skip data in the awake (state), and process data in the three states of light sleep, deep sleep, and eye movement. It can be envisioned that for other types of data (such as motion data, etc.), the wearable device can also filter out or skip data in the accurate state. Or, for other types of data, the wearable device can also preprocess the data using different methods, and the embodiments of the present application do not limit this.
[0111] Exemplarily, taking sleep data as an example, referring to Figure 4B a, 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). The wearable device can filter out data in the awake state 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 Figure 4B b. It should be understood that Figure 4B does not show the time (or time period) corresponding to the data.
[0112] In some embodiments, the wearable device may start from the first data, traverse N data, and sequentially detect whether the states of consecutive X data among the N data are the same. Alternatively, the wearable device may not follow the order of the data, as long as it can traverse the N data and sequentially detect whether the states of consecutive X data among the N data are the same.
[0113] Exemplarily, Figure 4B taking the start from the first data as an example and X equal to 3 as an example, the wearable device may detect whether the states of the first 3 data among the N data are the same. Referring to Figure 4B c in, the data in the dashed box are the first 3 data among the N data, and the states of the first 3 data are light sleep, light sleep, and deep sleep respectively, and the states of the first 3 data are different.
[0114] In some embodiments, the process of the wearable device detecting whether the states of consecutive X data among the N data are the same can be understood as: the wearable device slides a first sliding window among the N data to detect whether the states of consecutive X data are the same. Among them, Figure 4B the dashed box in can represent the first sliding window, and the first sliding window includes X data.
[0115] 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 the 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.
[0116] The first state is the state of the first data among the X data. For example, for the first 3 data, the first data is the first data 1 among the 3 data, and the first state may be the state of the first data. For example, the first state may be light sleep. The second state is different from the first state, and the data in the second state can be understood as: the data among the X data whose state is different from the state of the first data. For example, for the first 3 data, the state of the third data is deep sleep, which is different from the state of the first data among the 3 data (such as light sleep), and this second state may be deep sleep, and the data in the second state is 2.
[0117] In the embodiments of the present application, when the states of X data are different and the number of consecutive occurrences of the data in the first state is less than the first threshold, the wearable device may modify the data in the second state to the first state. The purpose of such a setting in the embodiments of the present application is to enable the number of occurrences of each state to reach the first threshold, that is, the duration of each state is longer, so as to avoid the problem of too few occurrences of the state. When the number of occurrences of the state is too small, the data of the state occupies fewer pixels when displayed on the wearable device, and there will be a problem of unclear display. Therefore, such a setting in the embodiments of the present application can ensure that the data of each state occupies more pixels when displayed on the wearable device, can ensure the display effect of the data, ensure that the user can see each state in the data, and improve the user experience.
[0118] Exemplarily, taking the first threshold as 3 as an example, referring to Figure 4B c in, the 3 data in the dashed box represent X data. The states of the 3 data are different, and the first data in the X data is 1. The state of the first data (i.e., the first state) is light sleep. The number of consecutive occurrences of the data representing light sleep is 2 times, which is less than the first threshold (3). The wearable device may modify the data (2) in the second state (deep sleep) in the X data to the first state.
[0119] In some embodiments, the wearable device modifying the data in the second state to the first state may be understood as: the wearable device modifies the data in the second state to the data in the first state, and this data represents the first state. Exemplarily, referring to Figure 4B d in, the wearable device may modify the last data in the 3 data to 1 (the data in the first state), and 1 represents light sleep.
[0120] In some embodiments, the wearable device modifying the data in the second state to the first state may be understood as: the wearable device modifies the data in the second state to the data characterizing the first state. Exemplarily, when the state is represented by a numerical range, the wearable device may modify the last data in the 3 data to any number in the range of 1-10. This number may be the same as or different from the first 2 data. For example, the first 2 data are 1 and 2 respectively, both within the range of 1-10, and both can represent light sleep. In the embodiments of the present application, the wearable device may modify the 3rd data to 8, and 8 represents light sleep. The 3rd data is different from the first two data.
[0121] It should be understood that since the data used to characterize the state is different, the manner of modifying the data in the second state to the first state may be different, and it may be set according to the manner of the data characterizing the state. The embodiments of the present application do not limit this.
[0122] In some embodiments, when the states of X data are the same, it indicates that the quantity of the states of these X data is sufficient. The wearable device can clearly and accurately display the X data, and there is no need to incorporate other data into this state. The wearable device can continue to detect whether the states of other X data among the N data are the same. Alternatively, it can also be understood that when the states of X data are the same, the wearable device can slide the first sliding window and continue to detect whether the states of the X data in the slid first sliding window are the same.
[0123] 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 the first threshold, it indicates that the quantity of the data in the first state is sufficient. 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 other X data among the N data are the same. 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 slid first sliding window are the same.
[0124] Exemplarily, referring to Figure 4B d in, when X data includes the 2nd data, the 3rd data, and the 4th data among the N data, these 3 data are 1, 1, and 2 respectively. Among them, the states of the data in the X data are different. The first data in the X data is 1 (the first state), and the number of consecutive occurrences of 1 is 3 times, reaching the first threshold. Therefore, the wearable device does not modify the data in the second state (such as the 4th data 2) to the first state, and the X data remains 1, 1, 2. The wearable device can continue to detect whether the states of the next X data are the same. The next X data is, for example, the 3rd data, the 4th data, and the 5th data, as Figure 4B shown in e in. It can also be said that the wearable device can slide the first sliding window and continue to detect whether the states of the X data in the slid first sliding window are the same.
[0125] S404, display the processed data.
[0126] In the embodiments of the present application, after obtaining the processed data, the wearable device can display the processed data. In some embodiments, the wearable device can display the processed data in the form of a state diagram. Exemplarily, in the accompanying drawings of the embodiments of the present application, a Gantt chart is taken as an example of the state diagram for illustration.
[0127] Figure 5 a in shows the initial data in the form of a Gantt chart, Figure 5 b in shows the processed data in the form of a Gantt chart. It should be understood that Figure 5Each black line segment in it can represent the data for a period of time. 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 segment, the longer the duration of the state represented by the data.
[0128] Taking Figure 5 the black line segment in the dotted box in it as an example, referring to Figure 5 a in it, the duration of a state in the initial data is relatively small, that is, the number of occurrences of the data in this state in the initial data is less than the first threshold, and this data is jump data or abnormal data. Referring to Figure 5 b in it, the wearable device can modify this data to the adjacent state before the state of this data (such as deep sleep 2), that is, merge this data into the data of the adjacent state before it, increasing the number of occurrences of the data in the adjacent state before it, and avoiding the occurrence of jumps and abnormalities, making the state of the data smoother. Referring to Figure 5 b in it, in the dotted box, the processed data is all modified to the deep sleep state (such as the number 2).
[0129] Figure 6A And Figure 6B taking the watch as an example, it exemplarily shows a schematic diagram of the watch displaying data. Referring to Figure 6A , the watch can display the sleep duration and the sleep state diagram on the same interface. To avoid the problem that the screen size of the watch is small and the sleep state diagram cannot be fully displayed, referring to Figure 6B a in it, the watch can display the sleep duration and a prompt message, and this prompt message is used to instruct the user to perform a corresponding operation to trigger the watch to display the sleep state diagram. Exemplarily, the prompt message can include "swipe up to view more details", and when the user performs a swipe up operation, the watch can display the sleep state diagram, as shown in Figure 6B b in it.
[0130] Figure 6A And Figure 6B are example diagrams of the wearable device displaying data, without limiting the interface of the wearable device displaying data.
[0131] In the embodiments of the present application, the wearable device can further perform smoothing processing on the initial data to ensure that the wearable device can accurately and clearly display each state. Because during the user's sleep process, the sleep state cannot have jumps in a short period of time, and each state will last for a period of time, that is, the number of occurrences of the data in each state will reach the first threshold. Therefore, in the embodiments of the present application, N data can be traversed, and the data can be smoothed by combining the states of the front and back data in the N data, and the jump data can be merged into the adjacent states, which can avoid the influence of abnormal data (jump data) on the data display effect, can avoid data display distortion, and improve the user experience.
[0132] Figure 4A In the illustrated embodiment, the processing of the initial data can be regarded as the first smoothing process. 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 referred to Figure 7A for the description in. It should be understood that Figure 7A S704 - S706 in can be executed after S402 - S403, or can be executed before S402 - S403. Among them, when S704 - S706 is executed after S402 - S403, the processed data can be the data obtained after the wearable device executes S703. Among them, when S704 - S706 is executed before S402 - S403, the processed data can be the data obtained after the wearable device executes S403.
[0133] It should be understood that Figure 7A in, the case where S704 - S706 is executed after S402 - S403 is taken as an example for illustration. Refer to Figure 7A , the data display method provided by the embodiments of the present application may include:
[0134] S701, obtain initial data, where the initial data includes N data, and N is a positive integer.
[0135] S702, detect whether the states of consecutive X data among the N data are the same, where X is an integer less than or equal to N.
[0136] 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 the 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.
[0137] S701 - S703 can be referred to the description in S401 - S403.
[0138] S704, among consecutive Y data in the N data, detect whether there is a state with the number of consecutive occurrences less than the second threshold, where Y is an integer less than or equal to N.
[0139] In some embodiments, the wearable device can traverse the N data, and sequentially detect whether there is a state with the number of consecutive occurrences less than the second threshold among consecutive Y data in the N data. Among them, Y is an integer less than or equal to N. Among them, the second threshold can be preset.
[0140] In some embodiments, Y can be greater than X, and the embodiments of the present application do not limit this.
[0141] In some embodiments, the wearable device may start from the first data and traverse N data. Among the consecutive Y data in the N data, it detects whether there is a state where the number of consecutive occurrences is less than a second threshold. Alternatively, the wearable device may not follow the order of the data. As long as it can traverse the N data, it only needs to detect whether there is a state where the number of consecutive occurrences is less than the second threshold among the consecutive Y data in the N data.
[0142] In some embodiments, the process of the wearable device detecting whether there is a state where the number of consecutive occurrences is less than the second threshold among the consecutive Y data in the N data can be understood as: the wearable device slides a second sliding window over the N data to detect whether there is a state where the number of consecutive occurrences is less than the second threshold among the consecutive Y data. Among them, Figure 7B and Figure 7C the dashed box in can represent the second sliding window, and the second sliding window includes Y data.
[0143] S705, when there is a state where the 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.
[0144] Taking the data as 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 for different types of data, the settings of the first preset state and the second preset state may be different.
[0145] Exemplarily, Figure 7B in a, taking starting from the first data as an example and taking Y as 7, the second threshold may be 6. Referring to Figure 7B in a, among the 7 data, the number of consecutive occurrences of light sleep 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 is a state 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), and the wearable device may modify the deep sleep data to light sleep. Referring to Figure 7B in b, the wearable device may modify the deep sleep data 2 to 1, and 1 represents light sleep.
[0146] S706, when there is a state where the 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, modify the data in the first preset state to the second preset state.
[0147] It should be understood that S705 and S706 are alternative execution steps and are not executed simultaneously.
[0148] The third preset state is deep sleep. Exemplarily, Figure 7C in a of [[0000369]], taking the first data as an example and Y as 8, the second threshold can be 6. Refer to Figure 7C in a of [[0000370]], 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 where 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. Refer to Figure 7C in b of [[0000371]], the wearable device can change the light sleep data 1 to 2, and 2 represents deep sleep.
[0149] In S705 and S706, during the second smoothing process, the wearable device can smooth the light sleep data and the deep sleep data. The purpose of this setting is that: the deep sleep data is usually severely fragmented and has many abnormal data. The second smoothing can either reduce the abnormal deep sleep data or extend the duration of deep sleep, both of which can solve the fragmentation problem in the deep sleep data. In addition, the reason for smoothing the deep sleep data and the light sleep data is that: during the user's entire sleep process, the amount of light sleep data is relatively large. Even if the light sleep is modified to deep sleep, it will not affect the proportion of light sleep in the entire sleep process and can avoid the distortion of the sleep Gantt chart.
[0150] S707, display the processed data.
[0151] In S707, the way the wearable device displays the processed data can refer to the description in S404. Different from S404, the processed data in S707 is the data after two smoothing processes, and the display effect is better.
[0152] Figure 8 in a of [[0000380]], the data after the first smoothing process is displayed in the form of a Gantt chart, Figure 8 in b of [[0000381]], the processed data is displayed in the form of a Gantt chart. It should be understood that Figure 8 each black line segment in [[0000382]] can represent the data for a period of time. 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 segment, the longer the duration of the data state it represents.
[0153] Taking Figure 8 the black line segment in the solid line box in [[0000385]] as an example, refer to Figure 8 in a of [[0000386]], 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.
[0154] After the wearable device performs the first smoothing on the initial data, there may still be jump data. In the embodiments 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 jump data and improve the display effect of the data. It should be understood that the embodiments of the present application do not limit the order of the two smoothing processes.
[0155] After the initial data undergoes the smoothing process in the embodiments as described above Figure 4A 、 Figure 7A the smoothed data can be obtained. In some embodiments, the smoothed data can be used as the processed data, and the wearable device can display the processed data.
[0156] In some embodiments, referring to Figure 8 b, among the data after two smoothing processes, there can be multiple black line segments, and the black line segments can be data segments in the data. The length of the black line segment represents the duration of the state of the data segment. In the embodiments of the present application, in the smoothed data, the wearable device can correspond the duration of a state to the data of the state to obtain multiple data segments, and the data in one data segment has the same state. Exemplarily, such as the data segments can 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.
[0157] When the 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 (such as Figure 8 the black line segment in). However, the time of each data segment is different, and the pixels may not be integers when converted into pixels, which is not convenient for the wearable device to display. Accordingly, in the embodiments 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 and is convenient for the wearable device to display.
[0158] In the embodiments of the present application, the wearable device can obtain the conversion relationship between pixels and duration according to the number of pixels of the screen adapted to the wearable device and the duration of N data. The number of pixels of the screen adapted to the wearable device is pre-configured based on the number of pixels of the screen. Exemplarily, for example, the number of pixels of the screen of a circular watch is 400, and a rectangular area can be selected in the middle of the screen of the circular watch, and the number of pixels included in the rectangular area can be understood as the number of pixels of the screen adapted to the wearable device. For example, the number of pixels of the screen adapted to 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.
[0159] 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. Exemplarily, 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, then the number of pixels per unit time is L / n, and L / n can be regarded as the conversion relationship between pixels and duration.
[0160] After obtaining the conversion relationship between pixels and duration, the wearable device can convert the duration of each data segment in the N data into the number of pixels of each data segment according to 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 number of pixels of each data segment. Among them, the number of pixels of each data segment can reflect the duration of the state of each data segment.
[0161] After the wearable device obtains the number of pixels of each data segment, the number of pixels of the data segment may be non-integer. In the embodiments of the present application, the wearable device can supplement the non-integer pixels of the first data segment to the second data segment so that the number of pixels of the second data segment is equal to the third threshold. Among them, the number of pixels of the first data segment is greater than the third threshold, and the number of pixels of the second data segment is less than the third threshold. That is to say, the first data segment is the data segment with the number of pixels greater than the third threshold, and the second data segment is the data segment with the number of pixels less than the third threshold. It should be noted that the third threshold can be the minimum number of pixels that the wearable device can clearly display the state of the data segment.
[0162] The non-integer pixels of the first data segment can be understood as: the pixels less than 1 in the pixels of the first data segment, also called decimal pixels. Exemplarily, if the number of pixels of the first data segment is 8.6, then the non-integer pixels of the first data segment are 0.6.
[0163] In some embodiments, the wearable device can supplement the non-integer pixels of the first data segment to the second data segment in the order of the number of pixels from large to small. In this example, the wearable device can sort the number of pixels of the data segments in the order of the number of pixels from large to small, and supplement the non-integer pixels of the first data segment to the second data segment in the order of the number of pixels from large to small.
[0164] It should be noted that when the data is sleep data, since the awake state can be accurately determined, the data segments of awake are not included in the first data segment to avoid pixel fluctuations in the data segments of awake and cause data distortion. However, since the accuracy of light sleep, deep sleep, and eye movement is lower than that of awake, processing the number of pixels of the data segments of light sleep, deep sleep, and eye movement will not cause data distortion. It can be understood that when processing the number of pixels of other types of data, the data segments of the accurately determined states can also be not included in the first data segment.
[0165] For example, refer to Figure 9A In a, the wearable device sorts the pixels of the data segment from large to small, 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 Figure 9A The pixels listed in a do not include pixels of awake data. Taking the third threshold value of 3 as an example, 2.1, 2.6, and 1.5 are all less than 3, and the three pixels are less than the third threshold value. The data segments of the 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, and the data segments of these pixels can be called the first data segment.
[0166] The wearable device can supplement the non-integer pixels of the first data segment to the second data segment in a descending order of pixels. Figure 9A In a, the wearable device can first add 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 added. Therefore, the wearable device continues to add the non-integer pixel 0.3 in pixel 7.3 to pixel 1.5. At this time, pixel 1.5 is added by 0.9 pixels, but pixel 1.5 still does not reach the third threshold, and there is still a shortfall of 0.6 pixels. Because there is no non-integer pixel in pixel 7, the wearable device can first skip pixel 7 and add 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.
[0167] 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, and pixel 2.1 reaches the third threshold.
[0168] 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 so that the pixels of the second data segment are equal to the third threshold.
[0169] For example, pixel 2.6 is 0.4 pixels short of reaching the third threshold, and pixel 8.6 adds 0.6 pixels to pixel 1.5 to become pixel 8. At this time, the wearable device can add 0.4 of the integer pixel 1 of pixel 8 to pixel 2.6, so that pixel 2.6 reaches the third threshold. When all the pixels of the second data segment are added to the third threshold, the pixels of the data segment can be as follows: Figure 9A As shown in b.
[0170] 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 such setting is: because the larger the pixel, the longer the duration of the state representing the data segment, the larger the pixels occupied by the display on the screen, and 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 in the front order 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.
[0171] In addition, the principle of setting pixels to complement each other in the embodiment of the present application is that the increase of pixels in one data segment is borrowed from the pixels of other data segments, which can ensure that the pixels occupied by the overall data remain unchanged.
[0172] 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 priorities are 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 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 a setting is similar to the above-mentioned setting purpose of "in order of pixels from large to small". 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.
[0173] In this example, the process of adding the non-integer pixels of the first data segment to the second data segment according to the state priority is not described in detail. Figure 9A Description in .
[0174] In some embodiments, the wearable device may sort the data segments in order of pixels from large to small to obtain a first sorting, and sort the first sorting according to the state priority to obtain a second sorting. The wearable device may supplement the non-integer pixels of the first data segment to the second data segment according to the second sorting.
[0175] ReferenceFigure 10 , the pixels of the data segment are 7.3, 6.8, 3.5, 4.2, 8.6, and 7 respectively. The wearable device can be arranged in descending order of pixels to obtain the first sorting: 8.6, 7.3, 7, 6.8, 4.2, 3.5. The wearable device can sort according to the priority in the first sorting to obtain the second sorting.
[0176] In some embodiments, the wearable device can sort the first sorting in the order from high to low of light sleep, deep sleep, and eye movement. For example, the wearable device can arrange the pixels of light sleep (1) in the front, then arrange the pixels of deep sleep (2), and then arrange the pixels of eye movement (3) to obtain the second sorting: 7.3, 7, 6.8, 4.2, 8.6, 3.5, 7.
[0177] To avoid excessive borrowing of pixels from the data segments of light sleep and deep sleep, which may affect the overall display effect of the data. In some embodiments, the conversion ratio of pixels can be preset for different states, and then sorted based on the state priority. For example, the conversion ratio of pixels in light sleep is 1, the conversion ratio of pixels in deep sleep is 0.8, and the conversion ratio of pixels in eye movement is 0.6. After the wearable device obtains the first sorting, it can multiply the corresponding conversion ratio according to the state of the data segment corresponding to each pixel 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 descending order to obtain the second sorting. The second sorting is: 7.3, 6.88, 6.8, 4.2(1), 4.2(3), 2.8.
[0178] In some embodiments, among the converted pixels, if there are pixels with the same size, they can be sorted in descending order of priority. For example, there are two 4.2 in the converted pixels, and the pixel 4.2 in light sleep can be arranged before the pixel 4.2 in eye movement in the second sorting.
[0179] After the pixels of the second data segment are supplemented with pixels, all the pixels of the second data segment can be equal to the third threshold. However, since the pixels of the first data segment lend pixels to the second data segment, there may be data segments containing non-integer pixels in the first data segment. For the convenience of display by the wearable device, in the embodiments of the present application, the data segments with non-integer pixels can be further processed. In some embodiments, when all the pixels of the second data segment are equal to the third threshold, the data segment can include 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 M data segments to be processed can be regarded as the data segments containing non-integer pixels in the first data segment.
[0180] In the embodiments of the present application, in order to facilitate the display of data by the wearable device, the pixels of M data segments to be processed can be processed so that the pixels of all M data segments to be processed become integers, or there is a data segment with non-integer pixels after pixel processing, and the pixels of the other M-1 data segments to be processed all become integers, ensuring that the display error of the data is within 0.5 pixels.
[0181] Among them, the wearable device can process the pixels in M data segments to be processed in a rounding manner, and detect whether the sum of the pixel changes in the first i processed data segments is greater than the fourth threshold. When the sum of the pixel changes in the first i data segments is greater than the fourth threshold, the wearable device can discard the non-integer pixels in the (i + 1)-th data segment. When the sum of the pixel changes in the first i data segments is less than or equal to the fourth threshold, the wearable device can process the pixels in the (i + 1)-th data segment in a rounding manner. Traversing M data segments to be processed in this way, the processed data can be obtained.
[0182] Exemplarily, referring to Figure 9B a in, the pixels of the data segments to be processed are 7.6, 7.6, 7.6, and 4.5 respectively. The wearable device can start from the pixels of the first data segment to be processed and process the pixels of the first data segment to be processed in a rounding manner. For example, if the pixel of the first data segment to be processed is 7.6, in a rounding manner, this pixel needs to be added with 0.4 pixels to reach an integer pixel. Therefore, the wearable device can process the pixel of the first data segment to be processed into 8, and record the pixel change of the first data segment to be processed as "+0.4".
[0183] In some embodiments, the fourth threshold can be 1. Among them, the pixel change of the first data segment to be processed is 0.4, which is less than the fourth threshold 1. Therefore, the wearable device can process the pixels of the second data segment in a rounding manner. Referring to Figure 9B b in, the pixel of the second data segment to be processed is 7.6, and this pixel needs to be added with 0.4 pixels to reach an integer pixel. Therefore, the wearable device can process the pixel of the second data segment to be processed into 8, and record the pixel change of the second data segment to be processed as "+0.4".
[0184] At this time, 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 1. Therefore, the wearable device can process the pixels of the third data segment in a rounding manner. Referring to Figure 9B c in, the pixel of the third data segment to be processed is 7.6, and this pixel needs to be added with 0.4 pixels to reach an integer pixel. Therefore, the wearable device can process the pixel of the third data segment to be processed into 8, and record the pixel change of the third data segment to be processed as "+0.4".
[0185] 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 of 1. Therefore, the wearable device can discard the non-integer pixels of the fourth pixel segment. Referring to Figure 9B d in, the pixel of the fourth data segment to be processed is 4.5. If rounded, the sum of the pixel changes of the first 4 data segments to be processed becomes "0.4 + 0.4 + 0.4 + 0.5 = 1.7", causing the overall pixels to exceed 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 4 data segments to be processed becomes "0.4 + 0.4 + 0.4 - 0.5 = 0.7", which is less than the fourth threshold of 1.
[0186] In the embodiments of the present application, the wearable device can traverse the M data segments to be processed according to the above processing method, process the pixels of the M data segments to be processed, 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 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 error of the pixels is within 0.5 pixels.
[0187] In the above embodiments, after the wearable device processes the pixels of the M data segments to be processed, it can obtain the processed data, and the wearable device can display the processed data. The following describes the manner in which the wearable device displays the processed data:
[0188] In some embodiments, the wearable device can display the processed data in the form of a Gantt chart.
[0189] In the embodiments of the present application, the wearable device can obtain the maximum number of data segments that the screen supports for display according to the number of pixels of the screen adapted to the wearable device and the third threshold. Hereinafter, the maximum number of data segments that the screen supports for display is simply referred to as the maximum number. Exemplarily, for example, if the third threshold is 3 and the number of pixels of the screen adapted to the wearable device is N, then the maximum number of data segments that the screen supports for display is N / 3.
[0190] In some embodiments, when the number of data segments in the processed data is greater than the maximum number, the wearable device can display a first prompt message. The first prompt message is used to indicate to view the processed data on the target device, and 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.
[0191] 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. To facilitate the user's viewing and improve the user's viewing experience, the wearable device can display the sleep duration and the first prompt message. Refer to Figure 11 a in Figure 11 For example, the first prompt message can be "For more details, please view in the mobile APP" 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
[0192] shown in b in
[0193] In the embodiments of the present application, since 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 the detailed data on the target device with a larger screen to improve the user experience.
[0194] 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 can display the processed data in the form of a Gantt chart.
[0195] In one scenario, when the duration of N data is greater than or equal to the fifth threshold, the wearable device can adapt to the width of the screen and display the processed data. Exemplarily, the fifth threshold can be 8h. For example, if the data is sleep data, the duration of N data can be regarded as the duration of the entire sleep process. When the duration of N data is greater than or equal to 8h, the wearable device can adapt to the width of the screen and display the processed data, as Figure 13 shown in a in
[0196] For example, the wearable device can adapt to the width of the screen according to the specific duration of N data and adaptively shrink or enlarge the Gantt chart. When the duration of N data is less than the fifth threshold, the Gantt chart occupies fewer pixels. Shrinking or enlarging the Gantt chart by the wearable device will cause the Gantt chart to deform. To facilitate the user to truly see each state in the data, the wearable device can center the display of the processed data, as Figure 13 shown in b in
[0197] In some embodiments, the wearable device can display the processed data based on the shape of the screen.
[0198] Exemplarily, when the screen of the wearable device is circular, the width of the screen is equal in each direction. Therefore, the wearable device can display the processed data in the form of a Gantt chart, specifically referring to Figure 13 the display method in
[0199] Exemplarily, since the screen size of the wearable device is smaller than the preset size, when the screen of the wearable device is rectangular and the wearable device is in portrait orientation, the width of the wearable device is small and cannot fully display the processed data. In this example, when the screen of the wearable device is rectangular and the wearable device is in portrait orientation, the wearable device can output a second prompt message for instructing to view the processed data in landscape orientation, as shown in Figure 12 a in Figure 12 . In response to the user's operation, when the wearable device is in landscape orientation, the wearable device can display the processed data in the form of a Gantt chart, as shown in
[0200] b in
[0201] In the embodiments of the present application, for different numbers of data segments and different-shaped screens, appropriate methods for displaying the processed data can be provided, which can ensure the display effect of the data and improve the user experience.
[0202] It should be noted that since the current terminal (such as a mobile phone) is not configured with the smoothing and pixel processing methods in the above embodiments, the terminal (such as a mobile phone) can display the initial data. Since the wearable device can perform the smoothing and pixel processing methods in the above embodiments on the initial data, the wearable device can display the processed data.
[0203] In other words, the first device can display the first data, and the second device can display the second data. The first data and the second data correspond to the initial data. Among them, the first data can be obtained by processing the initial data, and the second data can be the initial data.
[0204] Next, first in combination with Figure 5 , illustrate the differences between the first data and the second data:
[0205] Figure 5 a shown in Figure 5 is the initial data, and the second data displayed by the second device can be as shown in Figure 5The data shown in b (the data after the first smoothing process) can be the first data displayed by the first device as shown in Figure 5 b.
[0206] Comparing Figure 5 a in Figure 5 and b in , 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 part within the dashed box, the target time period can be the time period within the dashed box. In the dashed box, 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 1 (2, deep sleep).
[0207] It should be noted that when comparing Figure 5 a in Figure 5 and b in , the target time period can also include other time periods, such as the time period from 210 to 280, etc. The number of states of the first data is less than the number of states of the second data.
[0208] The reason for this phenomenon is that in the embodiments of the present application, the jump data is smoothed, and the jump data is merged into the adjacent state before the jump data.
[0209] In addition, because in the embodiments of the present application, the wearable device can also process the pixels of the data segment, reference can be made to Figure 9A - Figure 9B , and Figure 10 the relevant descriptions in . Therefore, the first data can be displayed as integer pixels, while because the initial data currently displayed by the second device does not process the pixels of the data segment, the second data is displayed as non-integer pixels.
[0210] Alternatively, in some embodiments, there may be a data segment in the first data with non-integer pixels, while there may be data segments in the second data with integer pixels. Therefore, it can also be said that the number of integer pixels in the first data is greater than the number of integer pixels in the second data. Or, it can also be said that the number of non-integer pixels in the first data is 1, and the number of non-integer pixels in the second data is greater than 1.
[0211] 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 illustrative purposes, and the thresholds can be configured.
[0212] It should be understood that the first device in the above examples can be a wearable device. In some embodiments, both the wearable device and the first device can be referred to as electronic devices.
[0213] It should be noted that the data involved in this application (including but not limited to the data for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties. Moreover, the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions, and corresponding operation entrances are provided for users to choose to authorize or reject.
[0214] 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 embodiments. Referring to Figure 14 , the electronic device may include: a processor 1401 (such as 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 memory. Various instructions may be stored in the memory 1402 to complete various processing functions and implement the method steps of the present application.
[0215] Optionally, the electronic device involved in the present application may further include: a power supply 1403, a communication bus 1404, and a communication port 1405. The above communication port 1405 is used to implement connection and communication between the electronic device and other peripherals. In the embodiment of the present application, the memory 1402 is used to store computer-executable program code, and the program code 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 method embodiment, and its implementation principle and technical effects are similar and will not be elaborated here.
[0216] Optionally, the electronic device involved in the present 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 the processed data.
[0217] 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. For example: one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs), etc. Again, when a certain module above is implemented in the form of a processing element dispatching program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code, such as a controller. Again, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0218] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, 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 processes or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that the computer can access or a data storage device such as a server or data center that includes one or more integrated available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
[0219] The term "a plurality of" in this document refers to two or more. The term "and / or" in this document is merely a description of the associated relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally represents an "or" relationship between the associated objects before and after; in a formula, the character " / " represents a "division" relationship between the associated objects before and after. In addition, it should be understood that in the description of this application, terms such as "first" and "second" are only used for the purpose of distinguishing descriptions, and should not be construed as indicating or implying relative importance, nor as indicating or implying order.
[0220] It can be understood that the various numerical numbers involved in the embodiments of this application are only for the convenience of description and do not limit the scope of the embodiments of this application.
[0221] It can be understood that in the embodiments of this application, the magnitudes of the sequence numbers of the above processes do not mean the sequence of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this application.
Claims
1. A data display method, characterized in that, Applied to an electronic device, the method includes: Obtain initial data, where the initial data includes N data, and N is a positive integer; Detect whether the states of consecutive X 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 the data in the first state is less than the 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; Display the processed data.
2. The method according to claim 1, characterized in that, The method further includes: Among consecutive Y data in the N data, detect whether there is a state with the number of consecutive occurrences less than the second threshold, where Y is an integer less than or equal to N; When there is a state with the number of consecutive occurrences 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 with the number of consecutive occurrences 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, modify the data in the first preset state to the second preset state.
3. The method according to claim 1 or 2, characterized in that, The method further includes: Obtain the conversion relationship between pixels and duration according to the number of pixels of the screen adapted to the electronic device and the duration of the N data; According to the conversion relationship, convert the duration of each data segment among the N data into the pixels of each data segment, and the data in one data segment have the same state; Supplement the non-integer pixels of the first data segment to the second data segment so that the pixels of the second data segment are equal to the third threshold, where 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 supplementing the non-integer pixels of the first data segment to the second data segment includes: Supplement the non-integer pixels of the first data segment to the second data segment in the order of pixels from large to small; or, Supplement the non-integer pixels of the first data segment to the second data segment according to the state priority.
5. The method according to claim 3, characterized in that, The supplementing the non-integer pixels of the first data segment to the second data segment includes: Sort the data segments in the order of pixels from large to small to obtain the first sorting; Sort the first sorting according to the state priority to obtain the second sorting; Supplement the non-integer pixels of the first data segment to the second data segment according to the second sorting.
6. The method according to any one of claims 3-5, characterized in that, The method further includes: When there are still pixels of the second data segment less than the third threshold after the non-integer pixels of the first data segment are supplemented to the second data segment, supplement the integer pixels of the first data segment to the second data segment so that the pixels of the second data segment are equal to the third threshold.
7. The method according to any one of claims 3-6, characterized in that, In the case where the pixels of the second data segment are equal to the third threshold, 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; The method further includes: Processing the pixels in the M data segments to be processed in a round - off manner, and detecting whether the sum of the pixel changes in the first i processed data segments is greater than a fourth threshold; When the sum of the pixel changes is greater than the fourth threshold, discarding the non - integer pixels in the (i + 1)-th data segment; When the sum of the pixel changes is less than or equal to the fourth threshold, processing the pixels in the (i + 1)-th data segment in a round - off manner.
8. The method according to any one of claims 3-7, characterized in that, The method further includes: Obtaining the maximum number of data segments that the screen supports for display according to the number of pixels and the third threshold; When the number of data segments in the processed data is greater than the maximum number, displaying a first prompt message, where the first prompt message is used to indicate viewing the processed data on a target device, the target device is a device connected to the electronic device, and the screen size of the target device is larger than the screen size of the electronic device.
9. The method according to claim 8, characterized in that, The method further includes: Sending the processed data to the target device.
10. The method according to any one of claims 1 - 9, characterized in that, Displaying the processed data includes: Displaying the processed data in the form of a Gantt chart.
11. The method according to claim 10, characterized in that, The screen size of the electronic device is less 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 the portrait orientation, displaying a second prompt message, where the second prompt message is used to indicate viewing the processed data in the landscape orientation; In response to a user operation, when the electronic device is in the landscape orientation, displaying the processed data.
13. The method according to claim 11, characterized in that, Displaying the processed data includes: When the duration of the N data is less than a fifth threshold, centrally displaying the processed data; or, When the duration of the N data is greater than or equal to the fifth threshold, adapting to the width of the screen and displaying the processed data.
14. The method according to any one of claims 1 - 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 states of the X data are not wakefulness.
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: Displaying first data; Wherein, within a 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 the data displayed by a 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 screen size of the first device is less than the screen size 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 - 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, It includes: A processor and a memory; The memory stores computer - executable instructions; The processor executes the computer - executable instructions stored in the memory, so that the processor executes the method according to any one of claims 1 - 20.
22. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program or instructions, and when the computer program or instructions are run, the method according to any one of claims 1-20 is implemented.