A method, device and wearable device for displaying user's psychological stress range
By using different patterns to mark psychological stress intervals in the psychological stress chart of the wearable device, the problem of inconsistent color representation in the existing technology is solved, the convenience of user identification and the interest of the chart are improved, and it is especially suitable for color weakness and color blindness groups.
Patent Information
- Application Number
- CN202110671734.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-17
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-06-17
AI Technical Summary
The colors used to represent psychological stress ranges in existing wearable devices are inconsistent, making it difficult for users to make judgments. They are especially unfriendly to people with color weakness and color blindness, and their universal applicability is not strong.
Use different patterns to mark different psychological pressure intervals, and use stress expression patterns to mark the psychological pressure intervals in each time period in the psychological stress chart to improve the convenience of user identification and the fun and beauty of the chart.
It enables users to identify psychological stress ranges more quickly and accurately, is applicable to a wider range of people, increases the interest and beauty of psychological stress charts, and provides a more friendly user experience especially for color weak and color blind groups.
Smart Images

Figure CN113288149B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wearable devices, and in particular to a method, device and wearable device for displaying a user's psychological stress interval. Background Art
[0002] The psychological stress chart is a graphical representation of a common health data in wearable devices. It can show the user the psychological stress data of the user detected by the wearable device when the user wears the wearable device.
[0003] At present, psychological stress charts in wearable devices usually use bar graphs to describe the magnitude of psychological stress. A cylinder is used to display the psychological stress value for a certain period of time. The height of the cylinder is determined according to the magnitude of the psychological stress value, thereby representing the psychological stress value of each period. This method is used to display the changes in psychological stress of users wearing wearable devices over a period of time. Some wearable devices also mark different colors for cylinders of different heights to represent different psychological stress intervals.
[0004] However, there is no standard classification for psychological stress intervals, and the colors of the cylinders used to represent psychological stress intervals may be inconsistent in different types of wearable devices. Too many colors will make users more insensitive to color judgment, which will be detrimental to users' understanding of their true psychological stress. Moreover, the universality of expressing users' psychological stress status through colors is not strong, and it is not friendly to some special groups, such as those with color weakness and color blindness. Summary of the invention
[0005] In view of this, the purpose of the present application is to provide a method, device and wearable device for displaying the user's psychological stress range, which uses different patterns to mark different psychological stress ranges in the psychological stress chart of the wearable device, so that users can quickly identify the psychological stress ranges. It is suitable for a wider range of people and can increase the interest and aesthetics of the psychological stress chart.
[0006] In a first aspect, an embodiment of the present application provides a method for displaying a user's psychological stress interval, the method comprising: receiving a request for drawing a psychological stress chart; querying a highest psychological stress value in a first time period from a plurality of psychological stress values stored in a wearable device, and determining a psychological stress interval in the first time period based on a threshold interval where the highest psychological stress value is located, the first time period being any time period divided according to a preset duration; drawing a psychological stress chart, and marking the psychological stress interval in the psychological stress chart with a stress expression pattern.
[0007] In a possible implementation, drawing the psychological stress graph includes: determining a stress expression pattern corresponding to the psychological stress interval according to the psychological stress interval; and marking different psychological stress intervals with different stress expression patterns.
[0008] In a possible implementation, the drawing of the psychological stress graph is configured to use stress expression patterns to mark the psychological stress interval of each time period.
[0009] In a possible implementation, before drawing the psychological stress chart, the method further includes: determining whether the stress interval of the first time period has changed relative to the previous time period;
[0010] Drawing the psychological stress graph includes: marking the psychological stress interval of the first time period with a stress expression pattern only when the stress interval of the first time period changes relative to the stress interval of the previous time period.
[0011] In a possible implementation, the psychological stress chart is a bar chart, a line chart, or a histogram.
[0012] In a possible implementation, the psychological stress graph includes a time coordinate axis, a psychological stress value coordinate axis, and the coordinate of the highest psychological stress value in each time period.
[0013] In a possible implementation, a stress expression pattern is used near the time coordinate axis to mark the psychological stress interval.
[0014] In a possible implementation, a stress expression pattern is used to mark the psychological stress interval near the coordinate of the highest psychological stress value.
[0015] In a second aspect, an embodiment of the present application provides a device for displaying a user's psychological stress interval, the device comprising:
[0016] A request receiving module, used for receiving a psychological stress chart drawing request;
[0017] a processing module, configured to query a maximum psychological stress value of a first time period from a plurality of psychological stress values stored in the wearable device, and determine a psychological stress interval of the first time period according to a threshold interval where the maximum psychological stress value is located, wherein the first time period is any time period divided according to a preset duration;
[0018] The chart drawing module is used to mark the psychological stress interval in the psychological stress chart by using stress expression patterns.
[0019] In a third aspect, an embodiment of the present application provides a wearable device, including a display screen, a biometric sensor, a processor and a memory, wherein the processor is communicatively connected to the display screen, the biometric sensor and the memory respectively, wherein:
[0020] The display screen is used to display a graphical interface including a psychological stress icon;
[0021] Biometric sensors are used to detect the user's psychological stress value;
[0022] The memory is used to store the psychological stress value and to store the software instructions;
[0023] The processor is used to execute the instructions in the memory to perform the method in any implementation manner of the first aspect.
[0024] In an embodiment of the present application, the highest psychological stress value of each time period can be queried from multiple psychological stress values stored in the wearable device, the highest psychological stress value of each time period can be displayed in the psychological stress chart, and a pattern can be used to distinguish the psychological stress interval where the highest psychological stress value is located. Therefore, by using different patterns to mark different psychological stress intervals in the psychological stress chart of the wearable device, it is convenient for users to quickly identify the psychological stress intervals, which is applicable to a wider group of people and can increase the interest and aesthetics of the psychological stress chart. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0026] Figure 1 A block diagram of a wearable device provided in an embodiment of the present application;
[0027] Figure 2 A flow chart of a method for displaying a user's psychological stress interval provided in Embodiment 1;
[0028] Figure 3 is a schematic diagram of a psychological stress chart according to Embodiment 1 of the present invention;
[0029] Figure 4 A flow chart of a method for displaying a user's psychological stress interval provided in Embodiment 1;
[0030] Figure 5 is a schematic diagram of a psychological stress chart according to the second embodiment of the present invention;
[0031] Figure 6 A flowchart for drawing a bar graph of psychological stress is provided;
[0032] Figure 7 A block diagram of a device for displaying a user's psychological stress interval provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0034] A wearable device provided in an embodiment of the present application is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. The wearable device may include but is not limited to a smart watch, a smart bracelet, a smart wristband, smart glasses, a ring or a helmet, etc.
[0035] Figure 1 A block diagram of a wearable device according to an embodiment of the present invention is shown.
[0036] refer to Figure 1 The wearable device may include one or more processors 100, memory 102, communication module 103, sensor module 105, display screen 104, interface, audio module 112, speaker 113, microphone 114, camera 108, motor 107, button 106, power management module 110, and battery 111. These components may communicate via one or more communication buses or signal lines.
[0037] The processor 100 is the final execution unit for information processing and program running, and can run an operating system or application program to execute various functional applications and data processing of the wearable device 100. The processor 100 may include one or more processing units, for example: the processor 100 may include a central processing unit 100 (CPU), a graphics processing unit (GPU), an image signal processor 100 (ISP), a sensor hub processor 100 or a communication processor 100 (CP) application processor 100 (AP), etc. In some embodiments, the processor 100110 may include one or more interfaces. The interface is used to couple a peripheral device to the processor 100 to transmit instructions or data between the processor 100 and the peripheral device.
[0038] The memory 102 can be used to store computer executable program codes, and the executable program codes include software instructions. The memory 102 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the wearable device 100, such as the motion parameters of each user's exercise and the user's physiological parameters, such as psychological stress value, number of steps, stride, pace, heart rate, blood oxygen, blood glucose concentration, etc. The memory 102 may include a high-speed random access memory 102, and may also include a non-volatile memory 102, such as at least one disk storage 102, a flash memory device, a universal flash storage 102 (universal flash storage, UFS), etc. The program in the memory 102 may include a kernel, middleware, an application programming interface (Application Programming Interface, API) and / or an application (or "application"). At least some of the kernel, middleware or API may be referred to as an operating system (operation system, OS). The operating system may include but is not limited to an Android operating system, an Apple operating system (ios) or an embedded system. Applications may include contacts, phone, email client, instant messaging, browser, personal sports, camera, image management, audio and video player, calendar, plug-in (e.g., weather, stock, calculator, clock, dictionary), custom plug-in, search, notes, map, etc. In this embodiment, the memory 102 may be used to store software instructions for a method of displaying a user's psychological stress interval.
[0039] The sensor is used to measure physical quantities or detect the operating state of the wearable smart device. The sensor may include an acceleration sensor 105A, a gyroscope sensor 105B, an air pressure sensor 105C, a magnetic sensor 105D, a biometric sensor 105E, a proximity sensor 105F, a touch sensor 105H, etc. The sensor module 105 may also include a control circuit for controlling one or more sensors included in the sensor module 105.
[0040] The biometric sensor 105E is used to measure the physiological parameters of the user, including but not limited to a photoplethysmography (PPG) sensor, an electrocardiogram (ECG) sensor, an electromyogram (EMG) sensor, an electroencephalogram (EEG) sensor, an iris scanning sensor, a fingerprint scanning sensor, and a temperature sensor. For example, the wearable device 100 can obtain the user's PPG signal through a photoplethysmography (PPG) sensor to calculate the user's heart rate or blood oxygen saturation and other information. For example, the wearable device 100 can calculate the heart rate variability (HRV) based on the user's heart rate, and further calculate the user's psychological stress value based on the linear relationship between the heart rate variability and the psychological stress level.
[0041] The display screen 104 is used to display a graphical user interface (UI), which may include graphics, text, icons, videos, and any combination thereof. The display screen 104 may be a liquid crystal display 104 (Liquid Crystal Display, LCD display 104), an organic light-emitting diode (Organic Light-Emitting Diode, OLED) display screen 104, etc. When the display screen 104 is a touch display screen 104, the display screen 104 can collect a touch signal on the surface or above the surface of the display screen 104, and input the touch signal as a control signal to the processor 100. In an embodiment of the present invention, the display screen 104 is used to display a graphical interface including a psychological stress chart.
[0042] It should be understood that in some embodiments, the wearable device 100 may be composed of one or more of the aforementioned components, and the wearable device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0043] Hereinafter, the method for displaying the user's psychological stress interval provided by the embodiment of the present application will be specifically introduced in conjunction with the accompanying drawings.
[0044] First embodiment
[0045] FIG2 is a flow chart showing a user's psychological stress interval provided by an embodiment of the present application. Figure 2 As shown, the method includes:
[0046] S201: Receive a psychological stress chart drawing request.
[0047] S202: Query a highest psychological stress value in the first time period from a plurality of psychological stress values stored in the wearable device, and determine a psychological stress interval in the first time period according to a threshold interval where the highest psychological stress value is located.
[0048] The biometric sensor of the wearable device can obtain the user's heart rate information, and the processor of the wearable device calls the psychological stress algorithm in the memory to calculate the user's psychological stress value in real time, and stores the psychological stress value in the memory. The first time period is any time period divided according to a preset time length, and the length of the first time period can be preset by the user, such as 1 hour, 30 minutes, 10 minutes, 5 minutes, etc.
[0049] The psychological stress interval represents the user's psychological state, and can be divided into high stress, medium stress, normal, and relaxation according to the psychological stress value. Different psychological stress threshold intervals are preset for each psychological stress interval. For example, the psychological stress threshold interval of the relaxation interval is [0, 25], the psychological stress threshold interval of the normal interval is [25, 50], the psychological stress threshold interval of the medium stress interval is [50, 75], and the psychological stress threshold interval of the high stress interval is [75, 100]. The threshold of the psychological stress interval is only an example, and other thresholds can also be used as the dividing point of the interval, which is not limited here. The psychological stress interval of a certain time period can be determined by the psychological stress threshold interval within which the highest psychological stress value of the time period falls.
[0050] S203: Draw a psychological stress chart, and use stress expression patterns to mark the psychological stress interval of the first time period in the psychological stress chart.
[0051] The drawing of the psychological stress chart includes: determining the stress expression pattern corresponding to the psychological stress interval according to the psychological stress interval; and marking different psychological stress intervals with different stress expression patterns.
[0052] Among them, the processor of the wearable device calls the corresponding graphics software to draw a psychological stress chart. Each psychological stress interval can correspond to a stress expression pattern. And the stress expression pattern corresponding to each psychological stress interval can be customized by the user. For example, the stress expression pattern customized by the user can be a picture taken by the user himself, an emoticon package picture, or a picture downloaded from the Internet. In this way, the stress expression pattern corresponding to each psychological stress interval can be customized by the user, which can enhance the user's experience and improve playability. In particular, when the user uses the pattern taken by himself as the stress expression pattern, the user's customization effect can also be improved during the psychological stress display process, thereby improving the user experience.
[0053] like Figure 3 As shown, in one embodiment, the stress expression pattern corresponding to the relaxation psychological stress interval can be a "laughing" expression pattern. The stress expression pattern corresponding to the normal psychological stress interval can be a "smiling" expression pattern. The stress expression pattern corresponding to the medium psychological stress interval can be a "silent" expression pattern. The stress expression pattern corresponding to the high psychological stress interval can be a "pouting" expression pattern. The stress expression pattern corresponding to the psychological stress interval can be customized by the user, which can improve the fun and playability.
[0054] Figure 3 is a schematic diagram of a psychological stress chart according to Embodiment 1 of the present invention. Figure 3 In the figure, the psychological stress chart is a bar chart, which is divided into time periods according to 1 hour. The highest psychological stress value per hour is displayed in the stress chart, that is, the stress chart is configured to display the highest psychological stress value in each time period. The psychological stress chart includes a time coordinate axis, a psychological stress value coordinate axis, and the coordinates of the highest psychological stress value in each time period. The highest psychological stress value in each time period is represented by a cylinder. The psychological stress threshold interval of the relaxation interval is [0, 25], the psychological stress threshold interval of the normal interval is [25, 50], the psychological stress threshold interval of the medium stress interval is [50, 75], and the psychological stress threshold interval of the high stress interval is [75, 100].
[0055] For example, in Figure 3 In the psychological stress icon shown, during the time period from 0 o'clock to 1 o'clock, the corresponding highest psychological stress value is 35, the corresponding psychological stress interval is normal, and the "smiling" expression pattern is used; during the time period from 4 o'clock to 5 o'clock, the corresponding highest psychological stress value is 60, the corresponding psychological stress interval is medium, and the "silent" expression pattern is used; during the time period from 5 o'clock to 6 o'clock, the corresponding highest psychological stress value is 20, the corresponding psychological stress interval is relaxed, and the "laughing" expression pattern is used; during the time period from 8 o'clock to 9 o'clock, the corresponding highest psychological stress value is 95, the corresponding psychological stress interval is high pressure, and the "pursed lips" expression pattern is used.
[0056] In one embodiment of the present invention, a stress expression pattern may be used to mark the psychological stress interval near the coordinates of the highest psychological stress value. Figure 3 As shown, a stress expression pattern is set above each column representing the highest stress value in the bar chart, which is convenient for understanding the stress value and stress interval corresponding to a certain time period. Therefore, the position of the stress expression pattern in the psychological stress chart is determined according to the coordinates of the highest psychological stress value, so that the stress expression pattern can be displayed together with the highest psychological stress value in the psychological stress chart. By synergistically displaying the user's psychological stress situation, the user can have a better user experience.
[0057] In other embodiments of the present invention, a stress expression pattern may be used near the time axis to mark the psychological stress interval. The psychological stress chart may include but is not limited to a bar chart, a line chart, a histogram or other graphics.
[0058] Therefore, the present invention can query the highest psychological stress value of each time period from multiple psychological stress values stored in the wearable device, display the highest psychological stress value of each time period in the psychological stress chart, and use patterns to distinguish the psychological stress intervals where the highest psychological stress value is located. Therefore, by using different patterns to mark different psychological stress intervals in the psychological stress chart of the wearable device, it is convenient for users to quickly identify the psychological stress intervals, which is applicable to a wider group of people and can increase the interest and aesthetics of the psychological stress chart.
[0059] Second embodiment
[0060] Figure 4 This is a flow chart showing the user's psychological stress interval provided by another embodiment of the present application. Figure 4 As shown, the method includes:
[0061] S401: Receive a psychological stress chart drawing request.
[0062] S402: Query the highest psychological stress value in the first time period from the multiple psychological stress values stored in the wearable device, and determine the psychological stress interval of the first time period according to the threshold interval where the highest psychological stress value is located. Please refer to step S202 for understanding, which will not be repeated here.
[0063] S403: Determine whether the pressure interval of the first time period has changed relative to the previous time period. Specifically, the pressure interval of the first time period may be compared with the pressure interval of the previous time period.
[0064] S404: Only when the stress interval in the first time period changes relative to the stress interval in the previous time period, mark the psychological stress interval in the first time period with a stress expression pattern.
[0065] Specifically, according to the judgment in step S403, if the stress interval of the first time period is the same as the stress interval of the previous time period, no stress expression pattern is used for marking, and if they are different, stress expression pattern is used for marking. Thus, the user can quickly understand the psychological stress interval of each time period and the change of psychological stress, and the number of psychological stress patterns displayed on the screen is reduced, avoiding the problem of placing too many graphic elements on a small screen and failing to display effectively.
[0066] Figure 5 is a schematic diagram of a psychological stress chart according to Embodiment 2 of the present invention. Figure 5 The bar graph is also used to represent the user's stress situation, where the duration of the preset time period, stress interval, stress interval threshold, etc. are the same as Figure 3 The same as in the example above, only the stress emoticons are marked differently. Figure 5 In the , only when the stress interval of a certain time period changes relative to the stress interval of the previous time period, the stress expression pattern is used for marking. For example: the stress value at 0 o'clock is 20, and the corresponding psychological stress interval is relaxation, and the "laughing" expression pattern is used; during the time period from 0 o'clock to 1 o'clock, the stress interval is normal, and the "smile" expression pattern is used to mark the "column" representing 0 o'clock to 1 o'clock; during the time period from 1 o'clock to 2 o'clock, during the time period from 2 o'clock to 3 o'clock, and during the time period from 3 o'clock to 4 o'clock, the stress interval of the highest stress value is the same as the previous time period, and the stress expression pattern is not used for marking; during the time period from 4 o'clock to 5 o'clock, the stress interval changes to medium, and the "silent" expression pattern is used to mark the "column" representing 4 o'clock to 5 o'clock; during the time period from 5 o'clock to 6 o'clock, the stress interval changes to relaxation, and the "laughing" expression pattern is used to mark the "column" representing 5 o'clock to 6 o'clock.
[0067] exist Figure 3 and Figure 5 In the embodiment shown, the psychological stress chart is a bar chart, which can display the psychological stress of the user in the form of a cylinder plus a psychological stress pattern. Figure 6 , drawing a psychological stress bar chart includes the following steps:
[0068] S601, draw a psychological pressure bar chart base map. The icon base map includes a time axis and a pressure value axis of the chart, the time axis has a scale, and the pressure value axis has a pressure value scale.
[0069] S602: Obtain the highest pressure value in each time period.
[0070] S603: Determine the psychological stress interval according to the highest stress value in each time period. Determine the psychological stress interval in each time period according to a preset stress interval threshold and the highest stress value in each time period.
[0071] S604, calculating the drawing area of the cylinder for all time periods, selecting a color corresponding to the psychological stress interval to draw the cylinder, and drawing a stress expression pattern corresponding to the stress interval at the starting point of the cylinder. Specifically, calculating the drawing area of the cylinder for all time periods includes: determining the horizontal starting point and the vertical starting point of the cylinder according to the preset total width and height of the chart, the total number of time periods, and the highest stress value of each time period, and determining the drawing area of the cylinder from the horizontal starting point and the vertical starting point of the cylinder, the height of the cylinder, and the width of the cylinder.
[0072] In one embodiment, the cylindrical area may be determined by:
[0073] In the wearable device, it is known that the total width of the psychological stress chart is W, the total height of the psychological stress chart is H, the width of each cylinder is n, and the total number of cylinders is c. The psychological stress value of the current preset time period is k, and the upper limit of psychological stress is m. The index of the cylinder is i (the index starts from 0 and increases to c-1). Among them, the total number of cylinders c is the number of times the psychological stress situation is displayed in a day. If the psychological stress situation is displayed once every hour in 24 hours a day, the total number of cylinders is 24. Generally, the upper limit of psychological stress is 100. The width of each cylinder is the same and fixed.
[0074] Assume that the gap between every two cylinders in the psychological stress chart is s, the value of the horizontal starting point of the cylinder is x1, the value of the vertical starting point of the cylinder is y1, and the height of the cylinder is h, then the area of each cylinder is determined by x1, y1, h and n. Among them, the horizontal starting point of the cylinder is the lower left corner vertex of the cylinder. The vertical starting point of the cylinder is the upper left corner vertex of the cylinder. The gap between every two cylinders in the psychological stress chart is the same. Furthermore, the numerical value of the horizontal starting point of the cylinder can be the distance of the lower left corner vertex of the cylinder relative to the zero point of the time scale. The numerical value of the vertical starting point of the cylinder can be the distance of the upper left corner vertex of the cylinder relative to the horizontal axis.
[0075] The total width W of the psychological pressure chart, the total number of cylinders c, and the width n of each cylinder are determined, and then the gap between every two cylinders can be determined first: s = (W-(n×c)) ÷ (c-1).
[0076] After determining the gap between each two cylinders, the horizontal starting point of each cylinder can be determined in turn: x1 = (n + s) × i. Further, the vertical starting point of each cylinder can be determined in turn: y1 = H × k ÷ m; and then the height of the cylinder can be determined. h = H-y1. It should be noted that the height of the cylinder is the distance from the upper left corner vertex of the psychological pressure chart to the upper left corner vertex of the cylinder.
[0077] In the wearable device, the drawing interface is provided by the underlying graphics software, and the underlying graphics software may include a picture drawing interface and a color block filling interface. The drawing of the chart base map and the psychological pressure pattern calls the picture drawing interface, and the drawing of the cylinder calls the color block filling interface.
[0078] After determining the cylindrical area as described above, the color of the cylinder can also be determined according to the psychological pressure value interval. For example, when the psychological pressure value interval is [0, 30), the color of the cylinder is light blue; when the psychological pressure value interval is [30, 60), the color of the cylinder is yellow; when the psychological pressure value interval is [60, 80), the color of the cylinder is orange; when the psychological pressure value interval is [80, 100), the color of the cylinder is red. After determining the cylindrical area and the color of the cylinder, the color block filling interface can be called to draw the cylinder.
[0079] Specifically, the process of determining the position of the psychological pressure pattern according to the cylindrical area includes:
[0080] It is known that the width of the psychological pressure pattern is a and the height is b, and the cylindrical area has been determined in the above step S203. Assume that the value of the horizontal starting point of the psychological pressure pattern is x2, and the value of the vertical starting point is y2. Among them, y2=y1, and y2 is less than or equal to Hb. It should be pointed out that the horizontal starting point of the psychological pressure pattern is the lower left corner vertex of the psychological pressure pattern, and the vertical starting point of the psychological pressure pattern is the upper left corner vertex of the psychological pressure pattern. The value of the horizontal starting point of the psychological pressure pattern is the horizontal distance of the lower left corner vertex of the psychological pressure pattern relative to the zero point of the time scale. The value of the vertical starting point of the psychological pressure pattern is the distance of the upper left corner vertex of the psychological pressure pattern relative to the horizontal axis. If the value of the vertical starting point of the psychological pressure pattern is the same as the value of the vertical starting point of the cylinder, the psychological pressure pattern can be made to not exceed the display range of the wearable device at its highest, which can improve the display effect.
[0081] See also Figure 7 , which shows a structural block diagram of a device for displaying a user's psychological stress interval provided in an embodiment of the present application. The device 700 may include: a request receiving module 701, a processing module 702 and a chart drawing module 703.
[0082] The request receiving module 701 is used to receive a psychological stress chart drawing request.
[0083] The processing module 702 is used to query the highest psychological stress value of the first time period from the multiple psychological stress values stored in the wearable device, and determine the psychological stress interval of the first time period according to the threshold interval where the highest psychological stress value is located. The first time period is any time period divided according to a preset time length.
[0084] The chart drawing module 703 is used to draw a psychological stress chart, in which a stress expression pattern is used to mark the psychological stress interval of the first time period.
[0085] Furthermore, the chart drawing module 703 is further used to determine the stress expression pattern corresponding to the psychological stress interval according to the psychological stress interval; and mark different psychological stress intervals with different stress expression patterns.
[0086] Furthermore, the psychological stress graph is configured to use stress expression patterns to mark the psychological stress interval of each time period.
[0087] Furthermore, the processing module 702 is also used to determine whether the stress interval of the first time period has changed relative to the previous time period, and the chart drawing module 703 is also used to mark the psychological stress interval of the first time period with a stress expression pattern only when the stress interval of the first time period has changed relative to the stress interval of the previous time period.
[0088] Furthermore, the psychological stress chart is a bar chart, a line chart or a histogram.
[0089] Furthermore, the psychological stress chart includes a time coordinate axis, a psychological stress value coordinate axis, and the coordinates of the highest psychological stress value in each time period. The chart drawing module 703 is also used to mark the psychological stress interval with a stress expression pattern near the time coordinate axis. The chart drawing module 703 is also used to mark the psychological stress interval with a stress expression pattern near the coordinates of the highest psychological stress value.
[0090] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0091] In the embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0092] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0093] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0094] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for displaying a user's psychological stress interval, for use in a wearable device, characterized in that: The method comprises: Receive requests for psychological stress charting; Querying a highest psychological stress value in a first time period from a plurality of psychological stress values stored in the wearable device, and determining a psychological stress interval in the first time period according to a threshold interval in which the highest psychological stress value is located, wherein the first time period is any time period divided according to a preset duration; Draw a psychological stress chart, and mark the psychological stress intervals in the psychological stress chart with stress expression patterns; The psychological pressure chart includes a bar chart, and drawing the psychological pressure bar chart includes: drawing a base map of the psychological pressure bar chart; the base map of the chart includes a time axis and a pressure value axis of the chart; obtaining the highest pressure value of each time period; determining the psychological pressure interval according to the highest pressure value of each time period; calculating the drawing area of the cylinder of all time periods, selecting the color corresponding to the psychological pressure interval to draw the cylinder, and drawing the pressure expression pattern corresponding to the pressure interval at the starting point of the cylinder; Before drawing the psychological stress chart, it also includes: judging whether the stress interval of the first time period has changed relative to the previous time period; drawing the psychological stress chart includes: marking the psychological stress interval of the first time period with a stress expression pattern only when the stress interval of the first time period has changed relative to the stress interval of the previous time period.
2. The method for displaying a user's psychological stress interval according to claim 1, characterized in that: The drawing of the psychological stress chart comprises: Determining a stress facial expression pattern corresponding to the psychological stress interval according to the psychological stress interval; Different psychological stress intervals are marked with different stress expression patterns.
3. The method for displaying a user's psychological stress interval according to claim 1 or 2, characterized in that: The psychological stress graph drawing is configured to use stress expression patterns to mark the psychological stress interval of each time period.
4. The method for displaying a user's psychological stress interval according to claim 1 or 2, characterized in that: The psychological stress chart is a bar chart, a line chart or a histogram.
5. The method for displaying a user's psychological stress interval according to claim 1 or 2, characterized in that: The psychological stress graph includes a time coordinate axis, a psychological stress value coordinate axis, and the coordinate of the highest psychological stress value in each time period.
6. The method for displaying a user's psychological stress interval according to claim 5, characterized in that: The psychological stress interval is marked with the stress expression pattern near the time coordinate axis.
7. The method for displaying a user's psychological stress interval according to claim 5, characterized in that: The psychological stress interval is marked with the stress expression pattern near the coordinates of the highest psychological stress value.
8. A device for displaying a user's psychological stress interval, characterized in that: The device comprises: A request receiving module, used for receiving a psychological stress chart drawing request; a processing module, configured to query a maximum psychological stress value of a first time period from a plurality of psychological stress values stored in the wearable device, and determine a psychological stress interval of the first time period according to a threshold interval where the maximum psychological stress value is located, wherein the first time period is any time period divided according to a preset duration; A chart drawing module, used for marking the psychological stress interval in the psychological stress chart with a stress expression pattern; The psychological stress chart includes a bar chart, and the chart drawing module is further used to: draw a psychological stress bar chart base map; the chart base map includes a time axis and a pressure value axis of the chart; obtain the highest pressure value of each time period; determine the psychological stress interval according to the highest pressure value of each time period; calculate the drawing area of the cylinder of all time periods, select the color corresponding to the psychological stress interval to draw the cylinder, and draw the pressure expression pattern corresponding to the pressure interval at the starting point of the cylinder; The processing module is also used to: determine whether the stress interval of the first time period has changed relative to the previous time period; and draw a psychological stress chart including: marking the psychological stress interval of the first time period with a stress expression pattern only when the stress interval of the first time period has changed relative to the stress interval of the previous time period.
9. A wearable device, characterized in that: The device comprises a display screen, a biometric sensor, a processor and a memory, wherein the processor is communicatively connected with the display screen, the biometric sensor and the memory respectively, wherein: The display screen is used to display a graphical interface including a psychological stress chart; The biometric sensor is used to detect the psychological stress value of the user; The memory is used to store the psychological stress value and to store software instructions; The processor is used to execute the instructions in the memory and perform the method according to any one of claims 1-7.
