Abnormality early warning method, device and equipment of sign and computer readable storage medium

CN122997639APending Publication Date: 2026-10-30GUANGDONG JIUZHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611108025.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-24
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

然而,用户的生理数据容易受到活动状态、环境变化或者数据波动等因素影响,导致体征异常预警的准确性较低

Benefits of technology

[0020]在上述技术方案中,可以根据心率数据确定目标用户对应的心率情况,并根据温度数据确定目标用户对应的温度情况。在此基础上,当心率情况表征目标用户处于心率异常状态,且心率异常状态的持续时长达到第一预设时长,同时温度情况表征目标用户处于温度异常状态,且温度异常状态的持续时长达到第二预设时长时,确定目标用户处于体征异常状态,并输出体征异常预警信息。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122997639A_ABST
    Figure CN122997639A_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a vital sign abnormality early warning method, device, equipment and computer readable storage medium. The method comprises: acquiring current heart rate data and temperature data of a target user; determining a heart rate condition corresponding to the target user according to the heart rate data, and determining a temperature condition corresponding to the target user according to the temperature data; if the heart rate condition represents that the target user is in a heart rate abnormality state, and the duration of the heart rate abnormality state is greater than or equal to a first preset duration, and the temperature condition represents that the target user is in a temperature abnormality state, and the duration of the temperature abnormality state is greater than or equal to a second preset duration, it is determined that the target user is in a vital sign abnormality state; in the case that the target user is in the vital sign abnormality state, vital sign abnormality early warning information is output. Through the method, the accuracy of vital sign abnormality early warning can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart wearable technology, specifically to a method, device, equipment, and computer-readable storage medium for early warning of abnormal vital signs. Background Technology

[0002] Wearable devices can be used to detect a user's physical health status. When a user experiences abnormal signs such as fever or palpitations, timely warnings of abnormal signs are needed.

[0003] In related technologies, users are typically given warnings of abnormal vital signs based on physiological data such as heart rate and temperature. However, users' physiological data are easily affected by factors such as activity level, environmental changes, or data fluctuations, resulting in low accuracy of abnormal vital sign warnings.

[0004] Therefore, improving the accuracy of early warning of abnormal vital signs is an urgent problem to be solved. Summary of the Invention

[0005] To address the aforementioned technical problems, embodiments of this application provide a method, apparatus, device, and computer-readable storage medium for early warning of abnormal vital signs.

[0006] The technical solution adopted in this application is a method for early warning of abnormal vital signs, comprising: Obtain the target user's current heart rate and temperature data; The heart rate of the target user is determined based on the heart rate data, and the temperature of the target user is determined based on the temperature data. If the heart rate condition indicates that the target user is in an abnormal heart rate state, and the duration of the abnormal heart rate state is greater than or equal to a first preset duration, and the temperature condition indicates that the target user is in an abnormal temperature state, and the duration of the abnormal temperature state is greater than or equal to a second preset duration, then it is determined that the target user is in a state of abnormal vital signs. If the target user is in an abnormal state of vital signs, output an abnormal vital signs warning message.

[0007] An early warning device for abnormal vital signs, comprising: The acquisition unit is used to acquire the target user's current heart rate and temperature data. The determining unit is configured to determine the heart rate of the target user based on the heart rate data, and to determine the temperature of the target user based on the temperature data. The determining unit is further configured to determine that the target user is in a state of abnormal vital signs if the heart rate condition indicates that the target user is in a state of abnormal heart rate and the duration of the abnormal heart rate condition is greater than or equal to a first preset duration, and the temperature condition indicates that the target user is in a state of abnormal temperature and the duration of the abnormal temperature condition is greater than or equal to a second preset duration. The output unit is used to output abnormal vital signs warning information when the target user is in an abnormal vital signs state.

[0008] In one embodiment of this application, according to the aforementioned scheme, the abnormal vital signs warning information includes dehydration warning information; the acquisition unit is further configured to acquire the illumination data of the environment in which the target user is located; detect the illumination situation of the target user in the environment based on the current illumination intensity contained in the illumination data; and output the dehydration warning information if the illumination situation indicates that the target user is in an abnormal illumination state and the duration of the abnormal illumination state is greater than or equal to a third preset duration when the target user is in an abnormal vital signs state.

[0009] In one embodiment of this application, according to the foregoing scheme, the acquisition unit is further configured to acquire a preset light intensity threshold; if the current light intensity is greater than or equal to the preset light intensity threshold, then determine that the target user is in the abnormal light state; acquire the start time of the abnormal light state, and determine the duration of the abnormal light state based on the start time and the current time; if the current light intensity is less than the preset light intensity threshold, then determine that the target user is in the normal light state, and update the duration of the abnormal light state based on the normal light state.

[0010] In one embodiment of this application, according to the foregoing scheme, the device further includes a processing unit, configured to: if the duration of the normal illumination state is less than a fourth preset duration, keep the start time of the abnormal illumination state unchanged, and update the duration of the abnormal illumination state according to the start time and the current time; if the duration of the normal illumination state is greater than or equal to the fourth preset duration, reset the duration of the abnormal illumination state.

[0011] In one embodiment of this application, according to the foregoing scheme, the processing unit is further configured to stop outputting the dehydration warning information if the illumination condition indicates that the target user is in a normal illumination state and the duration of the normal illumination state is greater than or equal to a fifth preset duration, the heart rate condition indicates that the target user is in a normal heart rate state and the duration of the normal heart rate state is greater than or equal to the fifth preset duration, and the temperature condition indicates that the target user is in a normal temperature state and the duration of the normal temperature state is greater than or equal to the fifth preset duration.

[0012] In one embodiment of this application, according to the foregoing scheme, the acquisition unit is further configured to acquire the heart rate baseline corresponding to the target user, the heart rate baseline being calculated from the target user's historical heart rate data; determine the heart rate abnormality threshold corresponding to the heart rate data based on the heart rate baseline; if the current heart rate corresponding to the heart rate data is greater than or equal to the heart rate abnormality threshold, then determine that the heart rate condition indicates that the target user is in the heart rate abnormality state.

[0013] In one embodiment of this application, according to the foregoing scheme, the acquisition unit is further configured to determine the temperature reference value corresponding to the current time interval based on the historical temperature data of the target user in multiple historical dates corresponding to the time interval to which the current time belongs; calculate the temperature deviation based on the temperature data and the temperature reference value; and if the temperature deviation is greater than or equal to a preset temperature deviation threshold, determine that the temperature condition indicates that the target user is in the abnormal temperature state.

[0014] In one embodiment of this application, according to the foregoing scheme, the output unit is further configured to output heart rate abnormality warning information if the heart rate status indicates that the target user is in a heart rate abnormality state and the duration of the heart rate abnormality state is greater than or equal to the first preset duration; and to output fever warning information if the heart rate status indicates that the target user is in a heart rate abnormality state and the temperature status indicates that the target user is in a temperature abnormality state.

[0015] In one embodiment of this application, according to the foregoing scheme, the processing unit is further configured to, after outputting the abnormal heart rate warning information, if the heart rate condition indicates that the target user is in a normal heart rate state and the duration of the normal heart rate state is greater than a sixth preset duration, then stop outputting the abnormal heart rate warning information; and after outputting the fever warning information, if the heart rate condition indicates that the target user is in a normal heart rate state and the duration of the normal heart rate state is greater than the sixth preset duration, and the temperature condition indicates that the target user is in a normal temperature state and the duration of the normal temperature state is greater than a seventh preset duration, then stop outputting the fever warning information.

[0016] In one embodiment of this application, according to the foregoing scheme, the acquisition unit is further configured to acquire activity data corresponding to the heart rate data; determine a high-activity period based on the activity data, wherein the high-activity period is a period in which the activity data is greater than or equal to a preset activity threshold; exclude the high-activity period from the heart rate data to obtain target heart rate data; and determine the heart rate status of the target user based on the target heart rate data.

[0017] A vital signs abnormality early warning device includes a memory storing computer-readable instructions; and a processor that reads the computer-readable instructions stored in the memory to implement the above-mentioned vital signs abnormality early warning method.

[0018] A computer-readable storage medium storing computer-readable instructions that, when executed by a computer's processor, cause the processor to perform the above-mentioned abnormal vital signs warning method.

[0019] A computer program product includes computer-readable instructions that, when executed by a processor, implement the above-mentioned method for early warning of abnormal vital signs.

[0020] In the above technical solution, the heart rate of the target user can be determined based on heart rate data, and the temperature of the target user can be determined based on temperature data. Furthermore, when the heart rate indicates that the target user is in an abnormal heart rate state, and the duration of this abnormal heart rate state reaches a first preset duration, and simultaneously, when the temperature indicates that the target user is in an abnormal temperature state, and the duration of this abnormal temperature state reaches a second preset duration, it is determined that the target user is in a state of abnormal vital signs, and an abnormal vital signs warning message is output.

[0021] As can be seen, the technical solution of this application, by combining heart rate and temperature data and determining the duration of abnormal heart rate and temperature states respectively, can avoid falsely triggering of abnormal vital signs warnings due to a single abnormal vital sign parameter or short-term data fluctuations, thereby improving the accuracy of abnormal vital signs warnings.

[0022] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

[0023] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings…

[0024] Figure 1 This is a schematic diagram of one implementation scenario involved in this application.

[0025] Figure 2 This is a flowchart illustrating an abnormal vital signs early warning method according to an exemplary embodiment.

[0026] Figure 3 This is a flowchart illustrating an abnormal vital signs early warning method according to another exemplary embodiment.

[0027] Figure 4 This is a schematic diagram of the process for obtaining a heart rate abnormality threshold involved in this application.

[0028] Figure 5 This is a flowchart illustrating an abnormal vital signs early warning method according to another exemplary embodiment.

[0029] Figure 6 This is a flowchart illustrating an abnormal vital signs early warning method according to another exemplary embodiment.

[0030] Figure 7 This is a flowchart illustrating an abnormal vital signs early warning method according to another exemplary embodiment.

[0031] Figure 8 This is a schematic diagram of a dehydration early warning process according to an embodiment of this application.

[0032] Figure 9 This is a block diagram illustrating an abnormal vital signs early warning device according to an exemplary embodiment.

[0033] Figure 10 This is a schematic diagram of the structure of a computer system for an abnormal vital signs early warning device, according to an exemplary embodiment. Detailed Implementation

[0034] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments identical to those described in this application. Rather, they are merely examples of apparatuses and methods identical to some aspects of this application as detailed in the appended claims.

[0035] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in at least one hardware module or integrated circuit, or in different network and / or processor devices and / or microcontroller devices.

[0036] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily need to be performed in the described order. For example, some operations / steps can be broken down, while others can be integrated or partially integrated; therefore, the actual execution order may change depending on the specific circumstances.

[0037] It should be noted that "multiple" as mentioned in this application refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0038] In related technologies, users are typically given warnings of abnormal vital signs based on physiological data such as heart rate and temperature. However, users' physiological data are easily affected by factors such as activity level, environmental changes, or data fluctuations, resulting in low accuracy of abnormal vital sign warnings.

[0039] Accordingly, embodiments of this application propose a method, a device, an equipment, a computer-readable storage medium, and a computer program product for early warning of abnormal vital signs. In these embodiments, the heart rate of a target user can be determined based on heart rate data, and the temperature of the target user can be determined based on temperature data. Based on this, when the heart rate indicates that the target user is in an abnormal heart rate state, and the duration of the abnormal heart rate state reaches a first preset duration, and simultaneously the temperature indicates that the target user is in an abnormal temperature state, and the duration of the abnormal temperature state reaches a second preset duration, it is determined that the target user is in a state of abnormal vital signs, and an early warning message for abnormal vital signs is output. It is evident that the technical solution of this application, by combining heart rate and temperature data and separately determining the duration of the abnormal heart rate and abnormal temperature states, can avoid false triggering of early warnings for abnormal vital signs due to a single abnormal vital sign parameter or short-term data fluctuations, thereby improving the accuracy of early warnings for abnormal vital signs.

[0040] Please see Figure 1 , Figure 1 This is a schematic diagram of one implementation scenario involved in this application.

[0041] exist Figure 1 The implementation scenario shown includes a wearable device 110, a terminal device 120, and a server 130. The wearable device 110 can establish a communication connection with the terminal device 120, and optionally, the wearable device 110 can also establish a communication connection with the server 130 through a communication network.

[0042] The wearable device 110 is used to collect the target user's current heart rate data, temperature data, and ambient light data. The wearable device 110 can continuously collect the target user's heart rate data, temperature data, and ambient light data, and send the collected data to the terminal device 120. Accordingly, the terminal device 120 can determine whether the target user's vital signs are abnormal based on the heart rate and temperature data.

[0043] Wearable device 110 can be a smart ring or other wearable devices capable of collecting physiological or environmental parameters, such as smart bracelets or smartwatches. To facilitate continuous wear by the target user in outdoor, sun-exposed, or daily activity scenarios, wearable device 110 can be designed to be small in size, close to the human body, and able to work continuously, thereby providing more accurate heart rate, temperature, and light data.

[0044] The wearable device 110 may include a sensor unit, a control unit, a communication unit, and a storage unit. The sensor unit is used to collect the target user's current heart rate data, temperature data, and ambient light data. For example, the sensor unit may include a heart rate sensor, a temperature sensor, and a light sensor. The control unit is used to control the data collection process and organize the collected data, such as recording heart rate data, temperature data, and light data in chronological order. The communication unit is used to send the collected data to the terminal device 120, or directly to the server 130 when specific communication conditions are met. The storage unit can be used to store data that has not yet been sent, so that when the wearable device 110 and the terminal device 120 are temporarily disconnected, the collected data can still be retained and sent again after the connection is re-established.

[0045] Terminal device 120 is used to receive detection data such as heart rate data, temperature data, and light intensity data sent by wearable device 110, and to further process the aforementioned data. Terminal device 120 can establish a connection with wearable device 110 via Bluetooth, wireless LAN, or other short-range communication methods, and after receiving the detection data sent by wearable device 110, it stores, displays, and analyzes the detection data.

[0046] Optionally, the terminal device 120 may run an application for abnormal vital signs warning, which determines the corresponding vital signs of the target user based on heart rate data and temperature data, and outputs warning information when necessary.

[0047] Furthermore, the application can output abnormal vital signs warning information when the heart rate condition indicates that the target user is in an abnormal heart rate state and the duration of the abnormal heart rate state is greater than or equal to a first preset duration, and when the temperature condition indicates that the target user is in an abnormal temperature state and the duration of the abnormal temperature state is greater than or equal to a second preset duration.

[0048] In some implementations, the terminal device 120 can serve as the primary data processing device. That is, the wearable device 110 is mainly responsible for collecting and transmitting heart rate data, temperature data, and light intensity data, while the determination of light intensity conditions, vital signs conditions, duration of abnormal light intensity, duration of abnormal heart rate and temperature conditions, and early warning information for abnormal vital signs can be completed in the terminal device 120.

[0049] Optionally, the terminal device 120 can also upload the detection data received from the wearable device 110 to the server 130, whereby the server 130 stores, analyzes, and processes the detection data. For example, the server 130 can determine the target user's heart rate baseline based on historical heart rate data collected by the wearable device 110, or determine the target user's temperature baseline based on historical temperature data, and send the processing results to the terminal device 120 so that the terminal device 120 can issue a dehydration warning based on the processing results.

[0050] It should be noted that, Figure 1 The example shown is merely one illustrative implementation scenario. In practical applications, Figure 1 The number of devices and their connections can be adjusted according to specific circumstances. For example, terminal device 120 may not communicate with server 130 and may independently complete data storage and dehydration warning processing; or, wearable device 110 may directly upload the collected heart rate data, temperature data, and light data to server 130 when network connectivity is available, and then server 130 may send the processing results to terminal device 120 for display.

[0051] It should be noted that the abnormal vital signs warning method of this application can be applied to an abnormal vital signs warning device, and the target user can interact with the abnormal vital signs warning device. The abnormal vital signs warning device can be a terminal device 120 or a wearable device 110. That is, when the wearable device 110 itself does not have sufficient data processing capabilities, the abnormal vital signs warning device can be the terminal device 120, in which case the wearable device 110 collects heart rate data, temperature data, and light intensity data and sends them to the terminal device 120 for processing. When the wearable device 110 itself has sufficient data processing capabilities, the abnormal vital signs warning device can be the wearable device 110 itself. In this case, the wearable device 110 can collect heart rate data, temperature data, and light intensity data itself and execute the abnormal vital signs warning method itself.

[0052] For ease of understanding, this application uses the abnormal vital signs early warning device as the terminal device 120 as an example for illustration, and the wearable device 110 in this embodiment of the application serves as a data acquisition device for detection.

[0053] In the embodiments of this application, the terminal device includes, but is not limited to, extended reality devices (virtual reality devices, augmented reality devices, mixed reality devices, etc.), mobile phones, computers (tablet computers, laptops, desktop computers, etc.).

[0054] In the embodiments of this application, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. The server cluster or distributed system includes cloud servers for providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0055] It is understood that a communication connection is established between the terminal device and the server via a wired or wireless network. Exemplarily, the wireless or wired network uses standard communication technologies and / or protocols. The network is typically the Internet, but can also be any other network, including but not limited to a Local Area Network (LAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), mobile, wired or wireless networks, private networks, or any combination of virtual private networks.

[0056] In specific embodiments of this application, data related to the target user is involved, such as the pinyin sequence, target text, and input process data input by the target user. When the embodiments of this application are applied to specific products or technologies, permission or consent from the target user is required, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions.

[0057] Please see Figure 2 , Figure 2 This is a flowchart illustrating a method for early warning of abnormal vital signs according to an exemplary embodiment. This method can be applied to early warning devices for abnormal vital signs (using...). Figure 1 (Taking the terminal device in the example). Of course, this method can also be applied to other implementation environments, and there are no restrictions on the subject executing this method.

[0058] like Figure 2As shown, in an exemplary embodiment, the method includes at least the following steps.

[0059] S210: Obtain the target user's current heart rate and temperature data.

[0060] Heart rate data can be used to represent the target user's current heart rate level and can help determine whether the target user is experiencing dehydration, heat stress, exercise load, or circulatory system compensatory responses. Increased heart rate is an indirect but sensitive manifestation of the body's stress regulation.

[0061] Temperature data can be used to represent the current temperature level of a target user and to determine whether the target user has accumulated heat load. Increased temperature is a direct manifestation of the effects of heat on the body.

[0062] S220. Determine the target user's heart rate based on heart rate data, and determine the target user's temperature based on temperature data.

[0063] Heart rate status can include abnormal heart rate states and normal heart rate states. If the heart rate data indicates that the target user's current heart rate level is high, then the heart rate status indicates that the target user is in an abnormal heart rate state; if the heart rate data indicates that the target user's current heart rate level is not abnormal, then the heart rate status indicates that the target user is in a normal heart rate state.

[0064] In sun-exposed environments, an elevated heart rate can reflect potential dehydration, heat stress, exercise load, or compensatory responses in the circulatory system, indicating the body's stress regulation. Therefore, when determining the target user's vital signs, heart rate data can be used first, followed by a determination of temperature to assess whether the user is experiencing any abnormalities.

[0065] Specifically, the "determine the target user's heart rate based on heart rate data" in S220 can be described as follows: Figure 3 S310 to S330 are shown in detail below.

[0066] S310. Obtain the target user's heart rate baseline, which is calculated from the target user's historical heart rate data.

[0067] In this embodiment, the terminal device can acquire historical heart rate data of the target user within a first historical time range and calculate the target user's corresponding heart rate baseline based on the historical heart rate data. The first historical time range can be set according to actual needs; for example, it can acquire the target user's historical heart rate data for the past 30 days.

[0068] Specifically, please refer to, for example Figure 4This diagram illustrates a process for obtaining abnormal heart rate thresholds. Figure 4 In this process, the terminal device can divide the period from 0:00 to 24:00 of a day into multiple time windows according to a first preset time interval. For example, if the first preset time interval is 10 minutes, then a day can be divided into 144 10-minute time windows. Then, the terminal device can allocate historical heart rate data into the corresponding time windows based on their collection time. Figure 4 Heart rate is expressed as HR (Heart Rate).

[0069] For each time window, the terminal device can calculate the average heart rate value based on the heart rate data corresponding to that time window within the historical time range, and use this average heart rate value as the initial heart rate baseline value for that time window. Optionally, historical heart rate data can be filtered before calculating the initial heart rate baseline value. For example, if a historical heart rate data point is greater than a preset heart rate rejection threshold, it can be considered that the historical heart rate data point may correspond to strenuous exercise or measurement abnormalities, and therefore should not be included in the heart rate baseline calculation. This preset heart rate rejection threshold can be set by technical personnel, for example, it can be 135 bpm.

[0070] After obtaining the initial heart rate baseline values ​​for each time window, the terminal device can also detect whether there is missing heart rate data. For example, if there is not enough historical heart rate data within a certain time window, it can be considered that there is missing heart rate data in that time window, as shown by NULL in the figure. If the proportion of missing heart rate data to total data is greater than a preset missing proportion, the historical heart rate data of the target user can continue to be accumulated, and the heart rate abnormality interval corresponding to the current data output will not be used temporarily. This preset missing proportion can be set by technical personnel, for example, it can be 10%.

[0071] If the proportion of missing heart rate data to the total data is less than or equal to a preset missing proportion, the mean heart rate for the time window corresponding to the missing heart rate data can be supplemented. For example, the estimated heart rate value for the time window corresponding to the missing heart rate data can be obtained based on the mean heart rate of adjacent time windows or the mean heart rate of other time windows with heart rate data.

[0072] After missing data is filled in, the terminal device can use the average or estimated heart rate value corresponding to each time window as its corresponding heart rate baseline value to obtain the heart rate baseline. In this way, the heart rate baseline can reflect the target user's usual heart rate level at different times of the day, avoiding the inability to adapt to the differences in heart rate among different users and at different times when using a fixed heart rate threshold directly.

[0073] S320. Determine the abnormal heart rate threshold corresponding to the heart rate data based on the heart rate baseline.

[0074] Among them, the abnormal heart rate threshold can be used to determine whether the target user's current heart rate level has reached an abnormal heart rate state.

[0075] Optionally, the terminal device can smooth the heart rate baseline before determining the heart rate abnormality threshold.

[0076] Specifically, the terminal device can first determine the target time window corresponding to the current heart rate and obtain the baseline heart rate value corresponding to that target time window. Then, it can calculate the heart rate abnormality threshold based on the baseline heart rate value. For example, a preset multiple of the baseline heart rate value can be used as the initial heart rate abnormality threshold. For instance, this preset multiple can be 1.5 times.

[0077] Optionally, to prevent the abnormal heart rate threshold from deviating too much from the baseline heart rate value, the maximum difference between the abnormal heart rate threshold and the baseline heart rate value can be limited. For example, the maximum difference between the abnormal heart rate threshold and the baseline heart rate value can be limited to 30 bpm. If the difference between the initial abnormal heart rate threshold calculated according to a preset multiple and the baseline heart rate value is greater than 30 bpm, the initial abnormal heart rate threshold can be corrected based on this maximum difference to obtain the abnormal heart rate threshold.

[0078] Optionally, a lower limit and an upper limit can be set for the abnormal heart rate threshold. For example, the lower limit of the abnormal heart rate threshold can be 80 bpm, and the upper limit can be 120 bpm. If the calculated abnormal heart rate threshold is less than the lower limit, the lower limit can be used as the abnormal heart rate threshold; if the calculated abnormal heart rate threshold is greater than the upper limit, the upper limit can be used as the abnormal heart rate threshold.

[0079] In this way, the abnormal heart rate threshold can change with the target user's own heart rate baseline, and will not be too high or too low due to baseline fluctuations or abnormal historical data. This allows for a more stable determination of whether the target user is currently in an abnormal heart rate state, which helps to improve the accuracy of subsequent dehydration warnings.

[0080] S330. If the current heart rate corresponding to the heart rate data is greater than or equal to the heart rate abnormality threshold, then the heart rate status indicates that the target user is in a heart rate abnormality state.

[0081] If the current heart rate is greater than or equal to the abnormal heart rate threshold, it means that the target user's current heart rate level has increased significantly compared to their usual heart rate level in the corresponding time window. At this time, it can be determined that the heart rate situation indicates that the target user is in an abnormal heart rate state.

[0082] For example, suppose the current time falls within the time window of 10:00 to 10:10 AM, and the heart rate abnormality threshold for this time window is 95 bpm. If the current heart rate is 102 bpm, it can be determined that the current heart rate is greater than the heart rate abnormality threshold, and thus the target user is in a heart rate abnormality state.

[0083] Optionally, if the current heart rate is less than the abnormal heart rate threshold, it can be determined that the heart rate status indicates that the target user is in a normal heart rate state.

[0084] Through the optional embodiments described in S310 to S320, the terminal device can determine the heart rate abnormality threshold based on the target user's historical heart rate data, and by combining data removal, missing data supplementation and smoothing, reduce misjudgments caused by fixed thresholds and historical data fluctuations, improve the accuracy of heart rate abnormality judgment, and thus help improve the accuracy of dehydration early warning.

[0085] Optionally, the "determine the heart rate of the target user based on the heart rate data" in S220 can also be achieved in the following ways, as detailed below.

[0086] Obtain activity data corresponding to heart rate data; High-activity periods are determined based on activity data; these high-activity periods are those when the activity data is greater than or equal to a preset activity threshold. The target heart rate data is obtained by excluding periods of high activity from the heart rate data; Determine the target user's heart rate based on the target heart rate data.

[0087] The activity data corresponding to the heart rate data can be used to represent the activity level of the target user during the time period in which the heart rate data was collected. For example, if the heart rate data is collected between 10:00 and 11:00, then the corresponding activity data can be the activity data collected between 10:00 and 11:00. Therefore, the corresponding high-activity periods can be determined based on the activity data, and heart rate data corresponding to these high-activity periods can be excluded from the heart rate data.

[0088] Specifically, the terminal device can determine the activity level based on acceleration data, step count data, or motion status data collected by the wearable device. The terminal device can also determine periods of high activity and heart rate recovery based on activity level data.

[0089] If the activity level data within a certain time period is greater than or equal to a preset activity threshold, that time period can be identified as a high-activity period. For example, a high-activity period could be the time period corresponding to the target user engaging in exercise, brisk walking, climbing stairs, or other high-activity activities. During a high-activity period, the target user's increased heart rate may be a normal physiological change caused by activity, and the activity process may also affect the wearing stability of the wearable device and the quality of heart rate data collection. Therefore, heart rate data corresponding to high-activity periods can be excluded from the heart rate data used to determine heart rate status.

[0090] Furthermore, after a target user ceases high-activity activity, their heart rate typically requires some time to return to normal. Therefore, the terminal device can define the period within an eighth preset duration after the end of the high-activity period as the heart rate recovery period, and exclude the heart rate data corresponding to this recovery period. The eighth preset duration can be set according to the target user's physical condition, activity type, or actual application needs; for example, it can be set to 10 minutes.

[0091] After identifying the high-activity period and the heart rate recovery period, the terminal device can exclude the heart rate data corresponding to the high-activity period and the heart rate recovery period from the heart rate data to obtain the target heart rate data. Based on the target heart rate data, it can then determine the heart rate status of the target user. For example, the current heart rate in the target heart rate data can be compared with a heart rate abnormality threshold to determine whether the target user is in an abnormal heart rate state or a normal heart rate state.

[0092] For example, if the target user's activity level data between 10:00 and 10:30 is greater than or equal to a preset activity level threshold, then 10:00 to 10:30 can be identified as a high-activity period. If the eighth preset duration is 10 minutes, then 10:30 to 10:40 can also be identified as a heart rate recovery period. The terminal device can exclude heart rate data collected between 10:00 and 10:40 and determine the target user's heart rate status based on target heart rate data corresponding to other time periods.

[0093] Through this optional embodiment, the terminal device can exclude heart rate data corresponding to the heart rate recovery period during high activity and after high activity, reducing the possibility of misjudging the increase in heart rate caused by activities such as exercise, brisk walking, and climbing stairs as abnormal heart rate, thereby improving the accuracy of heart rate judgment and abnormal sign warning.

[0094] In one embodiment of this application, the step of "determining the temperature of the target user based on the temperature data" in S220 can specifically be as follows: Figure 5 S510 to S530 are shown in detail below.

[0095] S510. Based on the historical temperature data of the target user in multiple historical dates and the time interval to which the current moment belongs, determine the temperature baseline value corresponding to the current time interval.

[0096] Temperature conditions can include abnormal and normal temperature states. If the temperature data indicates that the target user's current temperature level is significantly higher than their usual temperature level, then the temperature condition indicates that the target user is in an abnormal temperature state. Otherwise, the temperature condition indicates that the target user is in a normal temperature state.

[0097] The terminal device can obtain the temperature baseline corresponding to the target user, which is calculated from the target user's historical temperature data.

[0098] In this embodiment, the terminal device can acquire historical temperature data from multiple historical dates belonging to the target user, corresponding to the time interval of the current moment. These multiple historical dates can be a second historical time range. This second historical time range can be set according to actual needs; for example, it can acquire the target user's historical temperature data for the past 7 days. The terminal device can calculate the temperature baseline corresponding to the target user based on the historical temperature data.

[0099] Optionally, the terminal device can divide a day into multiple time periods based on a second preset time window and calculate the temperature baseline for each time window. This second preset time window can be set by a technician, for example, it can be 6 hours. This divides the day into four equal time windows, each corresponding to 6 hours, and uses the average temperature over the same time period within the past seven days as the temperature baseline for that time period. In this way, the temperature baseline can reflect the typical temperature level of the target user in different time periods.

[0100] The terminal device can determine the current time interval to which the temperature data belongs based on the acquisition time, then determine the time window of the current time interval in the temperature baseline, and obtain the temperature reference value corresponding to the time window from the temperature baseline.

[0101] For example, if the current time falls within the time window from 12:00 to 18:00, the temperature baseline value corresponding to this time window in the temperature baseline can be used as the temperature reference value for the temperature data.

[0102] S520. Calculate the temperature deviation based on the temperature data and the temperature reference value.

[0103] Temperature deviation can be used to represent the degree to which the target user's current temperature deviates from its usual temperature level in the current time window.

[0104] For example, if the current temperature is 36.8℃ and the temperature baseline value corresponding to the current time window is 36.4℃, then the temperature deviation can be calculated to be 0.4℃.

[0105] S530. If the temperature deviation is greater than or equal to the preset temperature deviation threshold, then the temperature condition indicates that the target user is in an abnormal temperature state.

[0106] In this embodiment, the terminal device can compare the temperature deviation with a preset temperature deviation threshold. If the temperature deviation is greater than or equal to the preset temperature deviation threshold, it indicates that the target user's current temperature is significantly higher than its usual temperature level in the current time period. In this case, it can be determined that the temperature situation indicates that the target user is in an abnormal temperature state.

[0107] For example, the preset temperature deviation threshold can be 0.3℃. If the calculated temperature deviation is 0.4℃, it can be determined that the temperature deviation is greater than the preset temperature deviation threshold, and thus the target user is in an abnormal temperature state. If the temperature deviation is less than the preset temperature deviation threshold, it can be determined that the temperature condition indicates the target user is in a normal temperature state.

[0108] Through the optional embodiments described in S510 to S530, the terminal device can determine a temperature reference value based on the target user's historical temperature level at the current time, and judge an abnormal temperature state based on the temperature deviation between the current temperature and the temperature reference value. This reduces the impact of normal temperature fluctuations at different times on the judgment result, making the temperature abnormality judgment more consistent with the target user's own temperature changes, and helping to improve the accuracy of dehydration warnings.

[0109] Alternatively, in addition to the methods described in S510 to S530, the temperature information can also be obtained using the following methods: The terminal device can first obtain the temperature baseline corresponding to the target user. The temperature baseline can be calculated from the target user's historical temperature data. For example, a day can be divided into multiple time windows, each corresponding to 6 hours, and the average temperature within the same time window over the past 7 days can be used as the temperature baseline value for that time window.

[0110] After determining the temperature baseline, the terminal device can calculate the average temperature of the target user over the actual hour and determine the difference between this average temperature and the temperature baseline corresponding to the current time window. This difference can be used to represent the degree of increase in the target user's temperature level near the current time relative to its historical temperature levels for the same period.

[0111] For example, if the current time falls within the time window of 12:00 to 18:00, and the temperature baseline value for this time window is 36.4℃, while the average temperature of the target user in the last hour is 37.1℃, then the temperature difference for this hour can be determined to be 0.7℃.

[0112] Furthermore, the terminal device can smooth multiple temperature differences according to a preset smoothing window to obtain a smoothed temperature difference sequence. For example, the preset smoothing window can be 4 hours, and the step size can be 1 hour. That is, the terminal device can calculate the difference between the 1-hour temperature average and the corresponding temperature reference value every 1 hour, and perform smoothing based on the temperature differences corresponding to 4 consecutive hours.

[0113] If the smoothed temperature difference is greater than a preset heating threshold, the temperature condition indicates that the target user is in a state of overheating. This overheating state can be considered a type of abnormal temperature state. For example, the preset heating threshold can be 0.6℃. If the smoothed temperature difference is greater than 0.6℃, the target user can be determined to be in a state of overheating.

[0114] In this way, the terminal device does not determine whether the target user is overheating based solely on a single instantaneous temperature value. Instead, it first combines the target user's historical temperature baseline value within the current time window, calculates the difference between the actual average temperature over one hour and the temperature baseline value, and then smooths out multiple differences. This reduces misjudgments caused by fluctuations in a single temperature sampling or short-term temperature changes, making the temperature situation more accurately reflect whether the target user is experiencing a sustained temperature rise.

[0115] S230. If the heart rate condition indicates that the target user is in an abnormal heart rate state, and the duration of the abnormal heart rate state is greater than or equal to the first preset duration, and the temperature condition indicates that the target user is in an abnormal temperature state, and the duration of the abnormal temperature state is greater than or equal to the second preset duration, then it is determined that the target user is in an abnormal vital signs state.

[0116] If the heart rate reading indicates that the target user is in an abnormal heart rate state and this condition persists for a first preset duration, and the temperature reading indicates that the target user is in an abnormal temperature state and this condition persists for a second preset duration, it means that the target user currently has both an elevated heart rate and an elevated temperature. At this point, it can be determined that the target user is in an abnormal vital sign state.

[0117] Optionally, if the heart rate indicates that the target user is in a normal state, or the temperature indicates that the target user is in a normal state, then it can be determined that the target user is not in a state of abnormal vital signs. This avoids directly judging the target user as having an abnormal state of vital signs simply because the target user has an elevated heart rate or elevated temperature.

[0118] Through the optional embodiments described in S510 to S530, the terminal device can determine the target user's temperature reference value within the same historical time interval based on the target user's historical temperature data, thereby calculating the temperature deviation between the current temperature data and the temperature reference value, and determining whether the target user has an abnormal temperature. This can improve the accuracy of temperature abnormality determination and help improve the accuracy of abnormal vital sign warnings.

[0119] S240. When the target user is in an abnormal state of vital signs, output an abnormal vital signs warning message.

[0120] The terminal device can output an abnormal vital signs warning message when the target user is in an abnormal vital signs state.

[0121] Optionally, the terminal device may output abnormal vital signs warning information through methods such as display interface, pop-up messages, sound prompts, vibration prompts, or application messages to alert the target user to the current risk of abnormal vital signs. These prompting methods can be used individually or in combination.

[0122] In one embodiment of this application, the terminal device may also output corresponding warning information in the following situations: if the heart rate status indicates that the target user is in an abnormal heart rate state, and the duration of the abnormal heart rate state is greater than or equal to a first preset duration, then output an abnormal heart rate warning information; if the heart rate status indicates that the target user is in an abnormal heart rate state, and the temperature status indicates that the target user is in a temperature abnormal state, and the temperature abnormal state is greater than or equal to a second preset duration, then output a fever warning information.

[0123] Among them, abnormal heart rate warning information can be used to alert a target user to the risk of an abnormal heart rate. Fever warning information can be used to alert a target user to the risk of an abnormal temperature.

[0124] Optionally, the above-mentioned abnormal heart rate warning information and fever warning information can be determined under conditions of non-strong sun exposure.

[0125] Optionally, the terminal device can output a heart rate abnormality warning message only after the duration of the target user's abnormal heart rate state has reached a preset first preset duration. For example, if the duration of the target user's abnormal heart rate state reaches 5 minutes, a heart rate abnormality warning message can be output. This can avoid the frequent triggering of the heart rate abnormality warning message due to short-term heart rate fluctuations, instantaneous sampling abnormalities, etc.

[0126] For example, if the target user is not currently in a strong sun exposure environment, but the heart rate status continuously indicates that the target user is in an abnormal heart rate state, the terminal device can output heart rate abnormality warning information through pop-up windows, sound, vibration or application messages to prompt the target user to pay attention to the current heart rate status.

[0127] After outputting the abnormal heart rate warning message, the terminal device can continue to monitor the target user's heart rate. If the heart rate indicates that the target user is in a normal heart rate state, and the duration of the normal heart rate state is greater than the sixth preset duration, it means that the target user's heart rate has continuously recovered to the normal range, and at this time, the output of the abnormal heart rate warning message can be stopped. The sixth preset duration can be set according to actual needs, for example, it can be set to 24 hours.

[0128] Since abnormal heart rate may be related to palpitations, poor fatigue recovery, or other persistent abnormal vital signs, stopping the alert immediately after the target user's heart rate returns to normal within a short period may cause them to overlook subsequent repeated fluctuations. Therefore, stopping the output of abnormal heart rate alerts after the heart rate has remained normal for five preset durations can reduce the risk of misunderstanding caused by repeated fluctuations in heart rate.

[0129] In one embodiment of this application, if the heart rate indicates that the target user is in an abnormal heart rate state, and the temperature indicates that the target user is in an abnormal temperature state, and the abnormal temperature state lasts for a duration greater than or equal to a second preset duration, it indicates that the target user not only has an elevated heart rate but also an elevated temperature. In this case, the terminal device can output a fever warning to alert the target user to the potential risk of fever-related abnormal vital signs.

[0130] It should be noted that in this embodiment, the decision to output a fever warning can be made after an abnormal heart rate warning has already been output. In other words, the fever warning is not triggered solely based on temperature. If the target user only exhibits an abnormal temperature but their heart rate does not indicate an abnormal heart rate, then a fever warning may not be output. This avoids false triggering of the fever warning due to short-term temperature fluctuations, changes in ambient temperature, or fluctuations in wear detection.

[0131] Optionally, after outputting the fever warning information, the terminal device can also record the abnormal interval corresponding to the fever warning. For example, the terminal device can record the start time, end time, and duration of the simultaneous occurrence of abnormal heart rate and abnormal temperature states, so as to monitor the recovery of the target user's vital signs based on the abnormal interval.

[0132] In one embodiment of this application, after outputting the fever warning information, the terminal device may further perform the following steps: if the heart rate condition indicates that the target user is in a normal heart rate state and the duration of the normal heart rate state is greater than a sixth preset duration, and the temperature condition indicates that the target user is in a normal temperature state and the duration of the normal temperature state is greater than a seventh preset duration, then the output of the fever warning information shall be stopped.

[0133] After issuing a fever warning, the terminal device can continue to monitor the target user's heart rate and temperature. If the heart rate indicates that the target user is in a normal state, and the duration of this normal state is greater than the sixth preset duration, and the temperature indicates that the target user is in a normal state, and the duration of this normal state is greater than the seventh preset duration, it means that the target user's heart rate and temperature have both returned to normal, and the fever warning can be stopped at this point. The sixth and seventh preset durations can be set by technicians; they can be the same or different, for example, both can be 24 hours.

[0134] Because abnormal vital signs such as fever, infection, palpitations, inflammatory responses, or poor recovery from fatigue may fluctuate, stopping the fever warning message immediately after the target user returns to normal within a short period could prematurely deactivate the alert. Therefore, stopping the fever warning message only after the heart rate has remained normal for six preset durations and the temperature has remained normal for seven preset durations can reduce the risk of misinterpretation caused by repeated fluctuations in vital signs.

[0135] Optionally, if both heart rate and temperature data are missing for a certain period of time, such as 24 hours, the abnormal heart rate warning and fever warning information can be interrupted.

[0136] Optionally, target users can also choose to manually disable the abnormal heart rate warning and fever warning information.

[0137] In one embodiment of this application, the abnormal vital signs warning information may further include dehydration warning information. Therefore, S240 may specifically include, for example: Figure 6 The steps S610 to S630 shown are as follows.

[0138] S610: Obtain the lighting data of the target user's environment.

[0139] Among them, light data can be used to represent the light intensity of the target user's current environment, and can be used to determine whether the target user is in a strong sun exposure environment, which is an external cause of dehydration risk.

[0140] In sun exposure scenarios, whether target users are at risk of dehydration due to sun exposure involves multiple factors.

[0141] If only light intensity data is obtained, it can usually only determine whether the target user is in a strong light environment, but it cannot determine whether the target user's vital signs have undergone abnormal changes. For example, although the target user is in a strong light environment, if their heart rate and temperature are at normal levels, directly issuing a dehydration warning in this case is likely to cause false alarms.

[0142] If only heart rate data is collected, ordinary exercise and emotional fluctuations can easily be misjudged as a risk of dehydration. Collecting only temperature data is also unreasonable, because changes in temperature can be caused by a variety of reasons. For example, when the target user is in a high-temperature indoor environment, their body temperature may rise, but the risk of sun exposure is low, and it is not necessarily caused by sun exposure-induced dehydration.

[0143] Therefore, by obtaining the target user's current heart rate data, temperature data, and ambient light data, this application can combine the ambient light conditions of the target user's environment with the target user's corresponding vital signs to provide a dehydration warning, thereby more accurately identifying the potential dehydration risk of the target user under sun exposure.

[0144] S620. Based on the current light intensity contained in the light data, detect the light conditions of the target user in the environment.

[0145] In this embodiment, the terminal device can obtain the current light intensity from the light data and detect the light conditions of the target user in the environment based on the current light intensity. The light conditions can be used to characterize whether the target user is in an abnormal light state; an abnormal light state can indicate that the target user is currently in a strong sunlight exposure environment, while a normal light state can indicate that the target user is not currently in a strong sunlight exposure environment.

[0146] During dehydration alerts, sunlight conditions are primarily used to determine whether the target user's environment presents external factors that could lead to sun exposure and dehydration. In other words, higher sunlight intensity generally indicates that the target user is more likely to be in a strong sun exposure environment.

[0147] In one embodiment of this application, S620 may specifically include, as follows: Figure 7 S710 to S740 are shown in detail below.

[0148] S710, Obtain the preset light intensity threshold.

[0149] In this embodiment, the terminal device can obtain a preset light intensity threshold. The preset light intensity threshold can be used to distinguish whether the target user is currently in an abnormal lighting state. This preset light intensity threshold can be configured according to actual needs, and is not limited here.

[0150] Optionally, different target users can set preset light intensity thresholds as needed. For example, users who need earlier dehydration warnings can set a relatively low preset light intensity threshold. Users who want to reduce reminders in low-light conditions can set a relatively high preset light intensity threshold. This allows for personalized dehydration warnings for different target users, improving the flexibility of dehydration alerts.

[0151] S720. If the current light intensity is greater than or equal to the preset light intensity threshold, then the target user is determined to be in an abnormal light state.

[0152] If the current light intensity is greater than or equal to the preset light intensity threshold, it indicates that the target user is currently in an environment with high light intensity and may be exposed to strong sunlight. In this case, it can be determined that the target user is in an abnormal lighting state. Otherwise, if the current light intensity is less than the preset light intensity threshold, it can be determined that the target user is in a normal lighting state and is not exposed to strong sunlight.

[0153] For example, assuming the preset light intensity threshold is 200, and the current light intensity is 210, it can be determined that the current target user is in an abnormal lighting state.

[0154] S730. Obtain the start time of the abnormal lighting state, and determine the duration of the abnormal lighting state based on the start time and the current time.

[0155] After determining that the target user is in an abnormal lighting condition, the terminal device can obtain the start time of the abnormal lighting condition. The start time of the abnormal lighting condition can be the moment when the duration of the current abnormal lighting condition is first determined to be in an abnormal lighting condition.

[0156] Optionally, if the terminal device first determines that the target user is in an abnormal lighting state and has not yet recorded the corresponding start time, the current time can be recorded as the start time of the abnormal lighting state. When the target user is subsequently detected to be in an abnormal lighting state again, the terminal device can obtain the recorded start time and determine the time interval between that start time and the current time, defining this time interval as the duration of the abnormal lighting state.

[0157] For example, if the terminal device first detects that the current light intensity is greater than or equal to a preset light intensity threshold at 10:00, then 10:00 can be recorded as the start time of the abnormal lighting state. If the target user is still in the abnormal lighting state when detected at 10:20, then the duration of the abnormal lighting state can be determined to be 20 minutes based on 10:00 and 10:20; if the target user is still in the abnormal lighting state when detected at 10:40, then the duration can be determined to be 40 minutes, and so on.

[0158] It should be noted that if the duration of the abnormal lighting condition has not been reset, the terminal device can continue to use the recorded start time and update the duration of the abnormal lighting condition based on that start time and the current time. In this way, it is not necessary to accumulate the time length corresponding to each detection time, and the duration of the target user's exposure to strong sunlight can be accurately determined.

[0159] S740. If the current light intensity is less than the preset light intensity threshold, the target user is determined to be in a normal lighting state, and the duration of the abnormal lighting state is updated according to the normal lighting state.

[0160] If the current light intensity is less than the preset light intensity threshold, it means that the light intensity of the target user's current environment is low, and it can be determined that the target user is in a normal lighting state.

[0161] Optionally, the preset light intensity threshold can also include multiple thresholds, such as a light intensity threshold for a sleep scene and a light intensity threshold for an outdoor scene. For example, the light intensity threshold for an outdoor scene can be set to 172 illuminance, and the light intensity threshold for a sleep scene can be set to 42 illuminance. This allows it to determine the specific light scene in which the target user is located.

[0162] After determining that the target user is in a normal lighting condition, the terminal device can update the duration of the abnormal lighting condition based on the normal lighting condition.

[0163] This application does not immediately reset the duration of abnormal lighting conditions after detecting a normal lighting condition. This is because, during actual use, wearable devices may be affected by factors such as hand obstruction, clothing obstruction, changes in wearing angle, or short-term sampling fluctuations, causing the current light intensity to drop below the preset light intensity threshold for a short period of time, while the target user may still be in a strong sunlight exposure environment.

[0164] Therefore, after detecting a normal lighting condition, the duration of an abnormal lighting condition can be updated by combining the duration of the normal lighting condition. For example, if the normal lighting condition only occurs for a short time, it can be assumed that the normal lighting condition may be caused by short-term shading or sampling fluctuations, and the duration of the abnormal lighting condition can be accumulated. If the normal lighting condition lasts for a long time, it can be assumed that the target user has left the strong sunlight exposure environment, and the duration of the abnormal lighting condition can be reset.

[0165] Specifically, the "updating the duration of the abnormal illumination state according to the normal illumination state" in S740 can include S741 to S742, as follows.

[0166] S741. If the duration of the normal illumination state is less than the fourth preset duration, the start time of the abnormal illumination state remains unchanged, and the duration of the abnormal illumination state is updated according to the start time and the current time.

[0167] The fourth preset duration can be set by technicians, for example, it could be 2 minutes. If the duration of the normal lighting state is less than the fourth preset duration, it means that although the current light intensity is temporarily lower than the preset light intensity threshold, the duration of this normal lighting state is short. In this case, the target user may not have actually left the strong sunlight exposure environment, but rather the current light intensity has temporarily decreased due to reasons such as hand covering, clothing covering, changes in wearing angle, short-term entry into a shaded area, or fluctuations in light sensor sampling. In this situation, the terminal device can keep the start time of the abnormal lighting state unchanged and update the duration of the abnormal lighting state based on the start time and the current time.

[0168] For example, the terminal device first determines that the target user is in an abnormal lighting state at 10:00 and records 10:00 as the start time. If the target user briefly enters a shadow area at 10:20 and returns to an abnormal lighting state at 10:21, and the fourth preset duration is 2 minutes, then since the normal lighting state only lasts for 1 minute, the start time of 10:00 can be kept unchanged. At 10:21, the duration of the abnormal lighting state can be updated to 21 minutes based on 10:00 and 10:21.

[0169] S742. If the duration of the normal illumination state is greater than or equal to the fourth preset duration, then the duration of the abnormal illumination state is reset.

[0170] If the duration of normal lighting conditions is greater than or equal to the fourth preset duration, it indicates that the current light intensity has been below the preset light intensity threshold for a considerable period of time. At this point, the target user has likely left the environment of strong sunlight exposure, such as by entering indoors or a shady area.

[0171] In this situation, the terminal device can reset the duration of the abnormal lighting condition. That is, the duration corresponding to the previous abnormal lighting condition will no longer be accumulated. Afterwards, if the current light intensity is detected to be greater than or equal to a preset light intensity threshold again, the duration of a new abnormal lighting condition can be counted again.

[0172] For example, if a target user enters an indoor environment after spending time in strong outdoor sunlight, and the current light intensity remains below a preset light intensity threshold, and the duration of this normal lighting condition has reached the third preset duration, then it can be assumed that the target user has left the strong sunlight exposure environment. Therefore, the previously accumulated duration of abnormal lighting conditions can be reset.

[0173] Through the optional embodiments described in S741 to S742, when the current light intensity is briefly lower than a preset light intensity threshold, the duration of the abnormal light state is not immediately reset. This reduces the impact of hand obstruction, clothing obstruction, changes in wearing angle, or short-term sampling fluctuations on the statistical results of the abnormal light state. Conversely, when the normal light state persists for a longer period, the duration of the abnormal light state can be reset promptly, preventing the continuation of completed strong sunlight exposure into the current judgment. This improves the reliability of the statistical analysis of the duration of abnormal light states, making the dehydration warning more consistent with the actual sun exposure scenario of the target user, and thus contributing to improved accuracy of the dehydration warning.

[0174] Through the optional embodiments described in S710 to S740, the terminal device can first obtain a preset light intensity threshold, and then determine whether the target user is in an abnormal light condition or a normal light condition based on the comparison result between the current light intensity and the preset light intensity threshold, and accumulate or update the duration of the abnormal light condition. This allows for the initial determination of whether the target user is in a strong sunlight exposure environment, and further statistical analysis of the duration of the abnormal light condition. Therefore, the impact of instantaneous strong light, short-term shading, or sampling fluctuations on the light condition determination results can be reduced, making the light condition more accurately reflect the actual sunlight environment of the target user, helping to improve the accuracy of dehydration warnings, and thus improving the accuracy of abnormal vital signs warnings.

[0175] It should be noted that a single detection of high light intensity does not necessarily indicate that the target user is at risk of sunburn and dehydration. Further assessment is needed by considering the duration of the abnormal light conditions, the target user's heart rate, and temperature.

[0176] That is, if the lighting conditions indicate that the target user is in an abnormal lighting state, and the duration of the abnormal lighting state is greater than or equal to the third preset duration, and the target user is in an abnormal heart rate state, and the duration of the abnormal heart rate state is greater than or equal to the first preset duration, and the target user is in an abnormal temperature state, and the duration of the abnormal temperature state is greater than or equal to the second preset duration, then a dehydration warning message can be output. This dehydration warning message is used to remind the target user that there is a risk of dehydration caused by sun exposure in the environment.

[0177] For example, if the target user has been in an abnormal light exposure state for 1 hour, and the target user has been in an abnormal heart rate state and an abnormal temperature state for 15 minutes each, the terminal device can output a dehydration warning message. This dehydration warning message can be output through the terminal device's display interface, sound, vibration, pop-up window, or wearable device reminder, to alert the target user that there is a risk of dehydration caused by sun exposure in the current environment.

[0178] Optionally, after outputting the dehydration warning information, the terminal device can also continuously record abnormal segments. These abnormal segments may include time information corresponding to at least one of the following states: abnormal light exposure, abnormal heart rate, and abnormal temperature. For example, when the abnormal light exposure lasts for the duration of an abnormal segment (e.g., 20 minutes), and the abnormal heart rate and abnormal temperature also last for their corresponding durations (e.g., 10 minutes), the abnormal segment can be recorded. This eliminates sporadic anomalies and facilitates subsequent review of any abnormal changes in the target user during the dehydration warning period.

[0179] In one embodiment of this application, after S240, the terminal device may further perform the following steps: if the illumination condition indicates that the target user is in a normal illumination state, and the duration of the normal illumination state is greater than or equal to a fifth preset duration, the heart rate condition indicates that the target user is in a normal heart rate state, and the duration of the normal heart rate state is greater than or equal to a fifth preset duration, and the temperature condition indicates that the target user is in a normal temperature state, and the duration of the normal temperature state is greater than or equal to a fifth preset duration, then the output of dehydration warning information shall be stopped.

[0180] After issuing a dehydration warning, the terminal device can continue to monitor the target user's light exposure, heart rate, and temperature. If the light exposure indicates that the target user is in a normal light condition, and the duration of this normal light condition is greater than or equal to the fifth preset duration, it means that the target user has been continuously removed from the strong sunlight exposure environment. If the heart rate indicates that the target user is in a normal heart rate condition, and the duration of this normal heart rate condition is greater than or equal to the fifth preset duration, and the temperature indicates that the target user is in a normal temperature condition, and the duration of this normal temperature condition is greater than or equal to the fifth preset duration, it means that the target user's heart rate and temperature have also continuously returned to normal.

[0181] If light exposure, heart rate, and temperature all return to normal, it can be assumed that the external triggers and abnormal physical symptoms corresponding to the risk of sunburn dehydration have subsided, and the terminal device can stop outputting dehydration warning information. For example, the fifth preset duration can be set to 15 minutes. When the target user enters a shady area, indoor environment, or completes hydration and rest, if light exposure, heart rate, and temperature all remain normal for 15 minutes, the output of dehydration warning information can be stopped.

[0182] This optional embodiment avoids prematurely canceling the alert when the target user briefly blocks the light sensor, experiences a short-term drop in heart rate, or a brief decrease in temperature. Furthermore, it allows for timely discontinuation of the alert once the target user has indeed returned to normal, reducing the interference caused by prolonged, ineffective alerts.

[0183] Optionally, if the terminal device fails to acquire heart rate, temperature, or light intensity data within a preset data loss period, the dehydration alert can be interrupted. This preset data loss period can be configured according to actual needs, for example, it can be 24 hours. This avoids continuing to maintain the dehydration alert based on incomplete data in the event of a prolonged data loss.

[0184] Optionally, after the dehydration warning message is output, the target user can manually cancel the dehydration warning. For example, the target user can trigger the cancellation operation through the application interface of the terminal device, or through a wearable device. In response to the cancellation operation, the terminal device can stop outputting the dehydration warning message.

[0185] For easier understanding, please refer to Figure 8 , Figure 8 This is a schematic diagram of a dehydration early warning process according to an embodiment of this application. Figure 8 As shown, the terminal device can first determine whether the duration of the abnormal lighting condition is greater than or equal to a first preset duration. If the duration of the abnormal lighting condition is less than the first preset duration, it can be assumed that the target user has not been continuously exposed to strong sunlight, and no dehydration warning information will be output in this case.

[0186] If the duration of the abnormal light exposure is greater than or equal to a third preset duration, the terminal device can further acquire the duration of the abnormal light exposure, the duration of the abnormal temperature, and the duration of the abnormal heart rate, and determine whether the duration of each of these abnormal states is greater than or equal to the corresponding preset duration. In other words, a dehydration warning is only issued if the target user is continuously exposed to strong sunlight, and the abnormal temperature and abnormal heart rate conditions also persist for the corresponding durations.

[0187] After issuing a dehydration warning, the terminal device can continue to monitor the target user's lighting and vital signs. If the duration of both normal lighting and normal vital signs is greater than or equal to a fifth preset duration, the dehydration warning can be stopped. If the duration of normal vital signs has not yet reached the fifth preset duration, the dehydration warning can continue to be issued. This avoids premature cancellation of the warning due to short-term changes in lighting, short-term drop in heart rate, or short-term drop in temperature, making the dehydration warning cancellation process more stable.

[0188] The method described in this application can detect the lighting conditions of a target user in their environment based on the current light intensity in the lighting data, and determine the target user's corresponding vital signs based on heart rate and temperature data. Based on this, when the lighting conditions indicate that the target user is in an abnormal lighting state, and the duration of this abnormal lighting state reaches a third preset duration; simultaneously, the heart rate conditions indicate that the target user is in an abnormal heart rate state, and the duration of this abnormal vital signs state reaches a first preset duration; and the temperature conditions indicate that the target user is in an abnormal temperature state, and the duration of this abnormal temperature state reaches a second preset duration, a dehydration warning message is output.

[0189] Using the method described in this application, the terminal device can provide alerts for the risks of sun-induced dehydration and abnormal vital signs based on heart rate, temperature, activity, and light exposure data collected by the wearable device. On one hand, when the target user is exposed to strong sunlight, the terminal device can output dehydration warning information based on light exposure, heart rate, and temperature, thereby identifying the potential dehydration risk in the target user under sunlight. On the other hand, when the target user is under normal light exposure, the terminal device can still output abnormal heart rate or fever warning information based on heart rate and temperature, thus providing alerts for persistently high heart rate, suspected fever, and other abnormal vital signs in non-strong sunlight exposure environments. In this way, the wearable device is no longer limited to health monitoring in a single scenario, but can proactively warn of both sun-induced dehydration and abnormal vital signs risks, expanding the applicability of health alerts.

[0190] In addition, after outputting dehydration, abnormal heart rate, or fever warnings, this application can continue to monitor the target user's light exposure, heart rate, and temperature, and stop outputting the corresponding warning information once the corresponding status has returned to normal. Optionally, abnormal segments can be recorded during the warning period, and the warning can be interrupted when data is missing for a certain duration, or the warning can be lifted in response to the target user's manual operation. In this way, the target user's status can be continuously monitored during the period of abnormality, and the reminder can be stopped in a timely manner after the target user returns to normal, reducing long-term invalid reminders and improving the reliability of the warning process and the user experience.

[0191] As can be seen, the technical solution of this application, by combining heart rate and temperature data and determining the duration of abnormal heart rate and temperature states respectively, can avoid falsely triggering of abnormal vital signs warnings due to a single abnormal vital sign parameter or short-term data fluctuations, thereby improving the accuracy of abnormal vital signs warnings.

[0192] Therefore, this application can more accurately identify the risk of dehydration that target users may experience under sun exposure, and improve the accuracy of dehydration warnings.

[0193] Figure 9 This is a block diagram illustrating an abnormal vital signs early warning device according to one embodiment of this application. Figure 8 The image shows an early warning device for abnormal vital signs, which includes: The acquisition unit 910 is used to acquire the target user's current heart rate and temperature data; The determining unit 920 is used to determine the heart rate of the target user based on the heart rate data, and to determine the temperature of the target user based on the temperature data. The determining unit 920 is further configured to determine that the target user is in an abnormal vital signs state if the heart rate condition indicates that the target user is in an abnormal heart rate state and the duration of the abnormal heart rate state is greater than or equal to a first preset duration, and the temperature condition indicates that the target user is in an abnormal temperature state and the duration of the abnormal temperature state is greater than or equal to a second preset duration. Output unit 930 is used to output abnormal vital signs warning information when the target user is in an abnormal vital signs state.

[0194] In one embodiment of this application, according to the aforementioned scheme, the abnormal vital signs warning information includes dehydration warning information; the acquisition unit 910 is further configured to acquire the illumination data of the environment in which the target user is located; detect the illumination situation of the target user in the environment based on the current illumination intensity contained in the illumination data; if the illumination situation indicates that the target user is in an abnormal illumination state and the duration of the abnormal illumination state is greater than or equal to a third preset duration, then dehydration warning information is output.

[0195] In one embodiment of this application, according to the aforementioned scheme, the acquisition unit 910 is further configured to acquire a preset light intensity threshold; if the current light intensity is greater than or equal to the preset light intensity threshold, then it is determined that the target user is in an abnormal light state; acquire the start time of the abnormal light state, and determine the duration of the abnormal light state based on the start time and the current time; if the current light intensity is less than the preset light intensity threshold, then it is determined that the target user is in a normal light state, and the duration of the abnormal light state is updated based on the normal light state.

[0196] In one embodiment of this application, according to the aforementioned scheme, the device further includes a processing unit 940, configured to: if the duration of the normal illumination state is less than a fourth preset duration, keep the start time of the abnormal illumination state unchanged, and update the duration of the abnormal illumination state according to the start time and the current time; if the duration of the normal illumination state is greater than or equal to the fourth preset duration, reset the duration of the abnormal illumination state.

[0197] In one embodiment of this application, according to the aforementioned scheme, the processing unit 940 is further configured to stop outputting dehydration warning information if the illumination condition indicates that the target user is in a normal illumination state and the duration of the normal illumination state is greater than or equal to a fifth preset duration, the heart rate condition indicates that the target user is in a normal heart rate state and the duration of the normal heart rate state is greater than or equal to a fifth preset duration, and the temperature condition indicates that the target user is in a normal temperature state and the duration of the normal temperature state is greater than or equal to a fifth preset duration.

[0198] In one embodiment of this application, according to the aforementioned scheme, the acquisition unit 910 is further configured to acquire the heart rate baseline corresponding to the target user, the heart rate baseline being calculated from the target user's historical heart rate data; determine the heart rate abnormality threshold corresponding to the heart rate data based on the heart rate baseline; if the current heart rate corresponding to the heart rate data is greater than or equal to the heart rate abnormality threshold, then determine that the heart rate condition indicates that the target user is in a heart rate abnormality state.

[0199] In one embodiment of this application, according to the aforementioned scheme, the acquisition unit 910 is further configured to determine the temperature reference value corresponding to the current time interval based on the historical temperature data of the target user in multiple historical dates corresponding to the time interval to which the current time belongs; calculate the temperature deviation based on the temperature data and the temperature reference value; and determine that the temperature condition indicates that the target user is in an abnormal temperature state if the temperature deviation is greater than or equal to a preset temperature deviation threshold.

[0200] In one embodiment of this application, according to the aforementioned scheme, the output unit 930 is further configured to output heart rate abnormality warning information if the heart rate condition indicates that the target user is in an abnormal heart rate state and the duration of the abnormal heart rate state is greater than or equal to a first preset duration; and to output fever warning information if the heart rate condition indicates that the target user is in an abnormal heart rate state and the temperature condition indicates that the target user is in an abnormal temperature state.

[0201] In one embodiment of this application, according to the aforementioned scheme, the processing unit 940 is further configured to, after outputting the abnormal heart rate warning information, if the heart rate condition indicates that the target user is in a normal heart rate state and the duration of the normal heart rate state is greater than a sixth preset duration, then stop outputting the abnormal heart rate warning information; after outputting the fever warning information, if the heart rate condition indicates that the target user is in a normal heart rate state and the duration of the normal heart rate state is greater than a sixth preset duration, and the temperature condition indicates that the target user is in a normal temperature state and the duration of the normal temperature state is greater than a seventh preset duration, then stop outputting the fever warning information.

[0202] In one embodiment of this application, according to the aforementioned scheme, the acquisition unit 910 is further configured to acquire activity data corresponding to heart rate data; determine high activity periods based on activity data, wherein the high activity periods are periods in which activity data is greater than or equal to a preset activity threshold; exclude high activity periods from heart rate data to obtain target heart rate data; and determine the heart rate status of the target user based on the target heart rate data.

[0203] It should be noted that the apparatus provided in the foregoing embodiments and the method provided in the foregoing embodiments belong to the same concept, and the specific way in which each module and unit performs operations has been described in detail in the method embodiments.

[0204] Embodiments of this application also provide a vital signs abnormality early warning device, including: a memory storing computer-readable instructions; and a processor reading the computer-readable instructions stored in the memory to execute the aforementioned vital signs abnormality early warning method.

[0205] Figure 10 This is a schematic diagram of the structure of a computer system suitable for implementing the abnormal vital signs early warning device of the present application embodiments.

[0206] It should be noted that, Figure 10 The computer system 1000 of the abnormal vital signs early warning device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0207] like Figure 10As shown, the computer system 1000 includes a Central Processing Unit (CPU) 1001, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, based on programs stored in Read-Only Memory (ROM) 1002 or programs loaded from storage portion 1008 into Random Access Memory (RAM) 1003. The RAM 1003 also stores various programs and data required for system operation. The CPU 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An Input / Output (I / O) interface 1005 is also connected to the bus 1004.

[0208] The following components are connected to I / O interface 1005: an input section 1006 including a keyboard, mouse, etc.; an output section 1007 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to I / O interface 1005 as needed. Removable media 1011, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1010 as needed so that computer programs read from them can be installed into storage section 1008 as needed.

[0209] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising computer-readable instructions that, when executed by a processor, implement the aforementioned abnormal vital signs warning method. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1009, and / or installed from removable media 1011. When the computer program is executed by central processing unit (CPU) 1001, it performs various functions defined in the system of this application.

[0210] It should be noted that the computer-readable storage medium shown in the embodiments of this application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable medium may include, but are not limited to: an electrical connection having at least one wire, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

[0211] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains at least one executable instruction for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer-readable instructions.

[0212] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.

[0213] Another aspect of this application provides a computer-readable storage medium storing computer-readable instructions thereon, which, when executed by a processor, cause the processor to implement the aforementioned abnormal vital signs warning method. This computer-readable medium may be included in the abnormal vital signs warning device described in the above embodiments, or it may exist independently and not incorporated into the abnormal vital signs warning device.

[0214] Another aspect of this application provides a computer program product including computer-readable instructions stored in a computer-readable medium. A processor of a computer device reads the computer-readable instructions from the computer-readable medium and executes the computer-readable instructions, causing the computer device to perform the abnormal vital signs early warning method provided in the various embodiments described above.

[0215] The above description is merely a preferred exemplary embodiment of this application and is not intended to limit the implementation of this application. Those skilled in the art can easily make corresponding modifications or alterations based on the main concept and spirit of this application. Therefore, the scope of protection of this application should be determined by the scope of protection claimed in the claims.

Claims

1. A method for early warning of abnormal vital signs, characterized in that, include: Obtain the target user's current heart rate and temperature data; The heart rate of the target user is determined based on the heart rate data, and the temperature of the target user is determined based on the temperature data. If the heart rate condition indicates that the target user is in an abnormal heart rate state, and the duration of the abnormal heart rate state is greater than or equal to a first preset duration, and the temperature condition indicates that the target user is in an abnormal temperature state, and the duration of the abnormal temperature state is greater than or equal to a second preset duration, then it is determined that the target user is in a state of abnormal vital signs. If the target user is in an abnormal state of vital signs, output an abnormal vital signs warning message.

2. The method according to claim 1, characterized in that, The abnormal vital signs warning information includes dehydration warning information; the step of outputting abnormal vital signs warning information when the target user is in an abnormal vital signs state includes: Obtain the illumination data of the environment in which the target user is located; Based on the current light intensity contained in the light data, detect the light conditions of the target user in their environment; If the target user is in an abnormal state of vital signs, and the lighting conditions indicate that the target user is in an abnormal lighting state, and the duration of the abnormal lighting state is greater than or equal to a third preset duration, then the dehydration warning information is output.

3. The method according to claim 2, characterized in that, The step of detecting the lighting conditions of the target user in their environment based on the current light intensity contained in the lighting data includes: Obtain the preset light intensity threshold; If the current light intensity is greater than or equal to the preset light intensity threshold, then the target user is determined to be in the abnormal light state. Obtain the start time of the abnormal lighting state, and determine the duration of the abnormal lighting state based on the start time and the current time. If the current light intensity is less than the preset light intensity threshold, the target user is determined to be in a normal lighting state, and the duration of the abnormal lighting state is updated according to the normal lighting state.

4. The method according to claim 3, characterized in that, The step of updating the duration of the abnormal lighting state based on the normal lighting state includes: If the duration of the normal illumination state is less than the fourth preset duration, the start time of the abnormal illumination state remains unchanged, and the duration of the abnormal illumination state is updated according to the start time and the current time. If the duration of the normal illumination state is greater than or equal to the fourth preset duration, then the duration of the abnormal illumination state is reset.

5. The method according to claim 2, characterized in that, After outputting the dehydration warning information, the method further includes: If the lighting condition indicates that the target user is in a normal lighting state, and the duration of the normal lighting state is greater than or equal to a fifth preset duration; the heart rate condition indicates that the target user is in a normal heart rate state, and the duration of the normal heart rate state is greater than or equal to the fifth preset duration; and the temperature condition indicates that the target user is in a normal temperature state, and the duration of the normal temperature state is greater than or equal to the fifth preset duration, then the dehydration warning information will be stopped.

6. The method according to claim 1, characterized in that, Determining the heart rate of the target user based on the heart rate data includes: Obtain the heart rate baseline corresponding to the target user, which is calculated from the target user's historical heart rate data; Determine the abnormal heart rate threshold corresponding to the heart rate data based on the heart rate baseline; If the current heart rate corresponding to the heart rate data is greater than or equal to the abnormal heart rate threshold, then the heart rate condition indicates that the target user is in the abnormal heart rate state.

7. The method according to claim 1, characterized in that, Determining the temperature of the target user based on the temperature data includes: Based on the historical temperature data of the target user in multiple historical dates and the time interval to which the current moment belongs, determine the temperature baseline value corresponding to the current time interval; Calculate the temperature deviation based on the temperature data and the temperature reference value; If the temperature deviation is greater than or equal to a preset temperature deviation threshold, then the temperature condition indicates that the target user is in an abnormal temperature state.

8. The method according to claim 1, characterized in that, The method further includes: If the heart rate condition indicates that the target user is in an abnormal heart rate state, and the duration of the abnormal heart rate state is greater than or equal to the first preset duration, then output an abnormal heart rate warning message. If the heart rate status indicates that the target user is in an abnormal heart rate state, and the temperature status indicates that the target user is in an abnormal temperature state, and the abnormal temperature state is greater than or equal to the second preset duration, then a fever warning message is output.

9. The method according to claim 8, characterized in that, After outputting the abnormal heart rate warning information, the method further includes: If the heart rate status indicates that the target user is in a normal heart rate state, and the duration of the normal heart rate state is greater than the sixth preset duration, then the output of the abnormal heart rate warning information will be stopped. After outputting the overheating warning information, the method further includes: If the heart rate status indicates that the target user is in a normal heart rate state, and the duration of the normal heart rate state is greater than the sixth preset duration, and the temperature status indicates that the target user is in a normal temperature state, and the duration of the normal temperature state is greater than the seventh preset duration, then the output of the fever warning information will be stopped.

10. The method according to claim 1, characterized in that, Determining the heart rate of the target user based on the heart rate data includes: Obtain the activity data corresponding to the heart rate data; High activity periods are determined based on the activity data, where the high activity periods are those where the activity data is greater than or equal to a preset activity threshold. The target heart rate data is obtained by excluding the high-activity periods from the heart rate data; The heart rate of the target user is determined based on the target heart rate data.

11. A device for early warning of abnormal vital signs, characterized in that, include: The acquisition unit is used to acquire the target user's current heart rate and temperature data. The determining unit is configured to determine the heart rate of the target user based on the heart rate data, and to determine the temperature of the target user based on the temperature data. The determining unit is further configured to determine that the target user is in a state of abnormal vital signs if the heart rate condition indicates that the target user is in a state of abnormal heart rate and the duration of the abnormal heart rate condition is greater than or equal to a first preset duration, and the temperature condition indicates that the target user is in a state of abnormal temperature and the duration of the abnormal temperature condition is greater than or equal to a second preset duration. The output unit is used to output abnormal vital signs warning information when the target user is in an abnormal vital signs state.

12. A computer-readable storage medium, characterized in that, It stores computer-readable instructions that, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 10.