Drowning early warning method and device based on multi-source data, medium and program product

By integrating multi-dimensional data for comprehensive risk assessment, the problem of poor early warning results caused by traditional drowning monitoring methods relying on a single data source is solved, and the accuracy and timeliness of drowning early warning are achieved.

CN119942726APending Publication Date: 2025-05-06FOSHAN LOKANG PLASTIC PROD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510120228.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-25
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

Traditional drowning monitoring methods rely on a single data source and lack comprehensive analysis capabilities, resulting in unsatisfactory drowning warning effects and missed or false alarms.

Method used

By integrating multi-dimensional data such as heart rate, blood oxygen, body posture and water intake time, a comprehensive risk assessment method is used to achieve accurate real-time drowning warning.

Benefits of technology

Effectively reduce the rate of missed and false alarms, improve the timeliness and accuracy of drowning warnings, ensure that drowning risks are intervened in a timely manner, and ensure the safety of swimmers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119942726A_ABST
    Figure CN119942726A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to a drowning early warning method and device based on multi-source data, a medium and a program product.The method comprises the steps that the real-time heart rate and real-time blood oxygen of a user are obtained, and the blood oxygen acceleration of the user is determined based on the real-time blood oxygen; a heart rate range threshold value and a blood oxygen acceleration range threshold value of the user are obtained, whether the real-time heart rate is within the heart rate range threshold value or not is determined, and whether the blood oxygen acceleration is within the blood oxygen acceleration range threshold value or not is determined; if it is determined that the real-time heart rate is within the heart rate range threshold value and the blood oxygen acceleration is within the blood oxygen acceleration range threshold value, the body posture of the user in water and the water entering duration of the head entering water are obtained, and the risk level is determined based on the real-time heart rate, the blood oxygen acceleration, the body posture and the water entering duration; according to the invention, the timeliness and accuracy of drowning early warning can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a drowning warning method, device, medium and program product based on multi-source data. Background Art

[0002] Drowning accidents occur frequently, and traditional monitoring methods have limitations, making it difficult to accurately judge risks in real time. Existing technologies mostly rely on a single data source, lack comprehensive analysis capabilities, and have unsatisfactory early warning effects, with omissions or false alarms. Therefore, there is an urgent need for an early warning method that integrates multi-source data to improve the accuracy and timeliness of drowning risk identification. Summary of the invention

[0003] In view of this, the purpose of the embodiments of the present invention is to provide a drowning warning method, device, medium and program product based on multi-source data, by integrating multi-dimensional data such as heart rate, blood oxygen, body posture and immersion time, to conduct comprehensive risk assessment, achieve accurate real-time warning, effectively reduce the missed alarm and false alarm rates, improve the timeliness and accuracy of drowning warning, ensure that the risk of drowning is intervened in time, and protect the safety of swimmers.

[0004] On the one hand, an embodiment of the present invention provides a drowning warning method based on multi-source data, the method comprising the following steps:

[0005] S100, obtaining a user's real-time heart rate and real-time blood oxygen, and determining the user's blood oxygen acceleration based on the real-time blood oxygen;

[0006] S200, obtaining a heart rate range threshold and a blood oxygen acceleration range threshold of the user, determining whether the real-time heart rate is within the heart rate range threshold, and determining whether the blood oxygen acceleration is within the blood oxygen acceleration range threshold;

[0007] S300: If it is determined that the real-time heart rate is within the heart rate range threshold and the blood oxygen acceleration is within the blood oxygen acceleration range threshold, the user's body posture in the water and the length of time the head is in the water are obtained, and the risk level is determined based on the real-time heart rate, blood oxygen acceleration, body posture and length of time in the water.

[0008] Further, in S200, the step of obtaining the user's heart rate range threshold and blood oxygen acceleration range threshold includes:

[0009] S210, obtaining the user's resting heart rate, maximum heart rate, and maximum blood oxygen level during the test period; wherein the maximum heart rate refers to the heart rate measured when the user performs extreme exercise during the test period, and the maximum blood oxygen level refers to the blood oxygen level measured when the user performs extreme exercise during the test period;

[0010] S220, determining the minimum and maximum values ​​of the user's resting heart rate during the test period, adjusting the minimum value of the user's resting heart rate during the test period downward to obtain a lower limit value of the heart rate range threshold, and adjusting the maximum value of the user's extreme heart rate during the test period upward to obtain an upper limit value of the heart rate range threshold;

[0011] S230, calculate the acceleration of the user's extreme blood oxygen during the test period, determine the minimum and maximum values ​​of the acceleration, adjust the minimum value of the acceleration downward to obtain the lower limit value of the blood oxygen acceleration range threshold, and adjust the maximum value of the acceleration upward to obtain the upper limit value of the blood oxygen acceleration range threshold; wherein the acceleration has a changing direction.

[0012] Further, in S300, the acquiring of the user's body posture in the water and the duration of the head being in the water, and determining the risk level based on the real-time heart rate, blood oxygen acceleration, body posture and duration of the head being in the water, include:

[0013] Detecting whether the user's head is immersed in water, and if the user's head is immersed in water, obtaining the immersion time of the head in water, and determining whether the immersion time exceeds a first time threshold;

[0014] If it is determined that the water entry duration exceeds the first duration threshold, the risk level is set to the lowest level.

[0015] Further, in S300, the acquiring of the user's body posture in the water and the duration of the head being in the water, and determining the risk level based on the real-time heart rate, blood oxygen acceleration, body posture and duration of the head being in the water, include:

[0016] Acquire the body posture of the user in the water, and match the body posture with the reference posture data of various swimming postures in the posture database respectively, if the match is successful, determine that the body posture is a swimming posture; if the match fails, determine that the body posture is an invalid posture;

[0017] If it is determined that the user's gesture is an invalid gesture, obtaining the duration of the invalid gesture, and determining whether the duration of the invalid gesture exceeds a second duration threshold;

[0018] If it is determined whether the duration of the invalid gesture exceeds a second duration threshold, the risk level is set to the lowest level.

[0019] Further, in S300, the acquiring of the user's body posture in the water and the duration of the head being in the water, and determining the risk level based on the real-time heart rate, blood oxygen acceleration, body posture and duration of the head being in the water, include:

[0020] A heart rate index is determined based on the real-time heart rate and the heart rate weight, a blood oxygen index is determined based on the blood oxygen acceleration and the blood oxygen weight, a posture index is determined based on the duration of the invalid posture and the posture weight, and a water entry index is determined based on the water entry duration and the water entry weight; wherein the heart rate weight has the largest value; and the blood oxygen index is positively correlated with the blood oxygen acceleration;

[0021] The risk level is determined based on the heart rate index, the blood oxygen index, the posture index and the water entry index.

[0022] Furthermore, the method further comprises:

[0023] If it is determined that the water entry duration exceeds a first duration threshold, or the duration of the invalid posture exceeds a second duration threshold, the heart rate weight is adjusted based on the water entry duration and / or the duration of the invalid posture; wherein the heart rate weight is positively correlated with the water entry duration, and the heart rate weight is positively correlated with the duration of the invalid posture.

[0024] Furthermore, after S200, the method further includes:

[0025] If it is determined that the blood oxygen acceleration exceeds the blood oxygen acceleration range threshold, the risk level is set to the highest level.

[0026] In another aspect, an embodiment of the present invention provides an electronic device, including:

[0027] at least one processor;

[0028] at least one memory for storing at least one program;

[0029] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.

[0030] On the other hand, an embodiment of the present invention provides a computer-readable storage medium, in which a program executable by a processor is stored. When the program executable by the processor is executed by the processor, it is used to perform the above method.

[0031] On the other hand, an embodiment of the present invention provides a computer program product, including computer instructions or computer codes, which, when at least part of the computer instructions or the computer codes are executed by a processor, can implement the method described in any one of claim 110.

[0032] The embodiments of the present invention include the following beneficial effects: this embodiment obtains the user's real-time heart rate and real-time blood oxygen, and determines the user's blood oxygen acceleration based on the real-time blood oxygen; obtains the user's heart rate range threshold and blood oxygen acceleration range threshold, determines whether the real-time heart rate is within the heart rate range threshold, determines whether the blood oxygen acceleration is within the blood oxygen acceleration range threshold, and preliminarily judges whether the user is at risk of drowning; if it is determined that the real-time heart rate is within the heart rate range threshold, and the blood oxygen acceleration is within the blood oxygen acceleration range threshold, then the user's body posture in the water and the length of time the head is in the water are obtained, and the risk level is determined based on the real-time heart rate, blood oxygen acceleration, body posture and length of time in the water; by comprehensively analyzing multi-dimensional data such as heart rate, blood oxygen, body posture and length of time in the water, the drowning risk is accurately assessed, and the sensitivity and accuracy of drowning warning are effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0034] Figure 1 is a flowchart of a drowning warning method based on multi-source data provided by an embodiment of the present invention;

[0035] Figure 2 It is a structural block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0037] It should be noted that although the functional charging modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described can be performed in a different order than the charging module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0039] like Figure 1 As shown, Figure 1 A drowning warning method based on multi-source data is provided in an embodiment of the present invention, and the method comprises the following steps:

[0040] S100, obtaining a user's real-time heart rate and real-time blood oxygen, and determining the user's blood oxygen acceleration based on the real-time blood oxygen;

[0041] S200, obtaining a heart rate range threshold and a blood oxygen acceleration range threshold of the user, determining whether the real-time heart rate is within the heart rate range threshold, and determining whether the blood oxygen acceleration is within the blood oxygen acceleration range threshold;

[0042] S300: If it is determined that the real-time heart rate is within the heart rate range threshold and the blood oxygen acceleration is within the blood oxygen acceleration range threshold, the user's body posture in the water and the length of time the head is in the water are obtained, and the risk level is determined based on the real-time heart rate, blood oxygen acceleration, body posture and length of time in the water.

[0043] Specifically, a swimming cap is worn on the user's head, and a heart rate blood oxygen sensor, a posture sensor, and a pressure sensor are arranged on the swimming cap. The pressure sensor is used to detect whether the user has entered the water, and the heart rate blood oxygen sensor is used to collect the user's real-time heart rate and real-time blood oxygen. The real-time blood oxygen is accelerated every detection cycle to obtain the user's blood oxygen acceleration. Alternatively, a communication module is arranged on the swimming cap, and the communication module communicates with a communication device arranged on land. When the user's head is in the water, the communication signal will become weak, and when the user's head is outside the water, the communication signal will be strong; by the signal strength of the communication module, it is judged whether the user has entered the water and the time of entering the water.

[0044] The principle of obtaining the user's body posture is: the posture of the forehead is collected through the posture sensor set on the swimming cap. The posture of the forehead is specific: first, various standard and non-standard safe swimming postures reflect regular head movements and can be mathematically modeled. For example, freestyle, breaststroke, butterfly stroke, backstroke, etc. in standard swimming postures, as well as non-standard swimming postures such as dog paddling or treading water can all be described by mathematical models, so as to identify various swimming postures through the posture of the forehead; second, the forehead and the respiratory organs, the final entrance of drowning risk, are on the same motion trajectory. The movement state of the mouth and nose directly affects breathing. The forehead movement is monitored in real time by the posture sensor, combined with heart rate and blood oxygen data, to accurately assess the risk of drowning and issue early warnings in time.

[0045] The system starts with the user putting on the swimming cap and provides a full-process risk warning. It can be applied to various stages before the user enters the water, in the water, and after exiting the water. For example, if the swimming cap is fitted before entering the water, some swimmers' heart rate and blood oxygen status can provide a warning of whether they are suitable for entering the water. For example, people with cardiovascular disease, heart disease, myocardial infarction or asthma will trigger a warning based on their physiological condition before entering the water. After exiting the water after exercise, the system will also provide a warning by monitoring the body's physiological condition, allowing full-process health management to be achieved by wearing a swimming cap.

[0046] The user's heart rate range threshold and blood oxygen acceleration range threshold are used to preliminarily determine whether the user is at a high risk of drowning. Then, through logical processing of multi-source data such as real-time heart rate, blood oxygen acceleration, body posture and duration of immersion in water, a comprehensive judgment is made based on the user's internal physiological condition (real-time heart rate and blood oxygen acceleration) and external behavioral posture (body posture and duration of immersion in water), thereby improving the recognition rate and accuracy of drowning warnings.

[0047] In some embodiments, in S200, obtaining the user's heart rate range threshold and blood oxygen acceleration range threshold includes:

[0048] S210, obtaining the user's resting heart rate, maximum heart rate, and maximum blood oxygen level during the test period; wherein the maximum heart rate refers to the heart rate measured when the user performs extreme exercise during the test period, and the maximum blood oxygen level refers to the blood oxygen level measured when the user performs extreme exercise during the test period;

[0049] S220, determining the minimum and maximum values ​​of the user's resting heart rate during the test period, adjusting the minimum value of the user's resting heart rate during the test period downward to obtain a lower limit value of the heart rate range threshold, and adjusting the maximum value of the user's extreme heart rate during the test period upward to obtain an upper limit value of the heart rate range threshold;

[0050] S230, calculate the acceleration of the user's extreme blood oxygen during the test period, determine the minimum and maximum values ​​of the acceleration, adjust the minimum value of the acceleration downward to obtain the lower limit value of the blood oxygen acceleration range threshold, and adjust the maximum value of the acceleration upward to obtain the upper limit value of the blood oxygen acceleration range threshold; wherein the acceleration has a changing direction.

[0051] It should be noted that heart rate refers to the number of times the heart beats per minute, and is an important physiological indicator for measuring heart function and physical condition.

[0052] Blood oxygen saturation refers to the percentage of oxygenated hemoglobin bound to oxygen molecules in the blood to the total amount of hemoglobin that can be bound. It is a key indicator for assessing the oxygen supply status of the human body. The normal range of these indicators may vary depending on factors such as age, gender, exercise status, and physical condition.

[0053] The changing patterns of human heart rate and blood oxygen are as follows:

[0054] Normal range of heart rate: The heart rate of a normal adult at rest is 60-100 beats / minute. Athletes and other people with good physical function may have a resting heart rate as low as 40-60 beats / minute. Abnormal heart rate acceleration, such as a rapid increase or decrease in heart rate in a short period of time, may indicate problems such as arrhythmia.

[0055] Normal range of blood oxygen: The blood oxygen saturation of healthy adults is mostly between 95% and 100%. If the blood oxygen saturation drops rapidly in a short period of time, it may indicate a critical situation such as acute respiratory distress.

[0056] In this embodiment, during the initial setting, the initial heart rate range threshold and the initial blood oxygen range value are set in a general range, for example, the initial heart rate range threshold is set to 60-120, and the initial blood oxygen range value is set to 93-100;

[0057] After the user purchases, the user's test heart rate is tested to obtain the user's test heart rate, and then secondary settings are performed according to the user's test heart rate to obtain the heart rate range threshold;

[0058] Exemplarily, by obtaining the user's resting heart rate, the user's resting heart rate is adjusted downward to obtain the lower limit of the heart rate range threshold; for example, the lower limit of the heart rate range threshold is set to 90% of the user's resting heart rate; by obtaining the user's heart rate of swimming 50 meters at maximum speed or running 50 meters at maximum speed, the user's maximum heart rate is obtained; by increasing the user's maximum heart rate, the upper limit of the heart rate range threshold is obtained; for example, the upper limit of the heart rate range threshold is set to 110% of the user's maximum heart rate;

[0059] After obtaining the user's extreme blood oxygen level during the test period, the acceleration of the extreme blood oxygen level during the test period is calculated to obtain the speed of change of the extreme blood oxygen level. The value of the acceleration can be positive or negative. When the acceleration is positive, it indicates that the extreme blood oxygen level rises sharply; when the acceleration is negative, it indicates that the extreme blood oxygen level drops sharply; when the user's extreme blood oxygen level rises sharply, if it exceeds the upper limit of the blood oxygen acceleration range threshold, an alarm will be issued; similarly, when the user's extreme blood oxygen level drops sharply, if it exceeds the lower limit of the blood oxygen acceleration range threshold, an alarm will also be issued.

[0060] Since each user's resting heart rate, maximum heart rate and maximum blood oxygen are different, the heart rate range threshold and blood oxygen acceleration range threshold will also be different. By testing the user's resting heart rate and maximum heart rate during the test period, the heart rate range threshold is determined, and by testing the user's maximum blood oxygen during the test period, the blood oxygen acceleration range threshold is determined. This can more personally adapt to the user's body function and improve the accuracy of subsequent drowning warnings.

[0061] As an improvement of the above embodiment, in S300, the obtaining of the user's body posture in the water and the duration of the head entering the water, and determining the risk level based on the real-time heart rate, blood oxygen acceleration, body posture and duration of the head entering the water, include:

[0062] Detecting whether the user's head is immersed in water, and if the user's head is immersed in water, obtaining the immersion time of the head in water, and determining whether the immersion time exceeds a first time threshold;

[0063] If it is determined that the water entry duration exceeds the first duration threshold, the risk level is set to the lowest level.

[0064] Specifically, a pressure sensor is worn on the user's head to detect whether the user is in water. After the user is detected to be in water, if the user's head is in water for too long, it indicates that there may be a safety risk.

[0065] As an improvement of the above embodiment, in S300, the obtaining of the user's body posture in the water and the duration of the head entering the water, and determining the risk level based on the real-time heart rate, blood oxygen acceleration, body posture and duration of the head entering the water, include:

[0066] Acquire the body posture of the user in the water, and match the body posture with the reference posture data of various swimming postures in the posture database respectively, if the match is successful, determine that the body posture is a swimming posture; if the match fails, determine that the body posture is an invalid posture;

[0067] If it is determined that the user's gesture is an invalid gesture, obtaining the duration of the invalid gesture, and determining whether the duration of the invalid gesture exceeds a second duration threshold;

[0068] If it is determined whether the duration of the invalid gesture exceeds a second duration threshold, the risk level is set to the lowest level.

[0069] Specifically, the user wears a posture sensor on his head, which detects the user's body posture. If the user's posture is confused, it means that the body posture is invalid; if the invalid posture lasts too long, it means that the user may save himself, and it is determined that there is a certain safety risk.

[0070] During the initial warning judgment, if the heart rate is within the heart rate range threshold, the blood oxygen acceleration is within the blood oxygen acceleration range threshold, but the immersion in the water is too long or the posture is too chaotic, the duration of the long immersion in the water and the invalid posture will be used as the basis for the initial judgment, and the risk level will be set to Level 1.

[0071] As an improvement of the above embodiment, in S300, the obtaining of the user's body posture in the water and the duration of the head entering the water, and determining the risk level based on the real-time heart rate, blood oxygen acceleration, body posture and duration of the head entering the water, include:

[0072] A heart rate index is determined based on the real-time heart rate and the heart rate weight, a blood oxygen index is determined based on the blood oxygen acceleration and the blood oxygen weight, a posture index is determined based on the duration of the invalid posture and the posture weight, and a water entry index is determined based on the water entry duration and the water entry weight; wherein the heart rate weight has the largest value; and the blood oxygen index is positively correlated with the blood oxygen acceleration;

[0073] Specifically, the value of the heart rate weight is greater than the value of the blood oxygen weight, the value of the posture weight, and the value of the water entry weight;

[0074] The risk level is determined based on the heart rate index, the blood oxygen index, the posture index and the water entry index.

[0075] Exemplarily, the product of the normalized real-time heart rate and the heart rate weight is used as the heart rate index, the product of the normalized blood oxygen acceleration and the blood oxygen weight is used as the blood oxygen index, the product of the normalized duration of the invalid posture and the posture weight is used as the posture index, and the product of the normalized water entry time and the water entry weight is used as the water entry index; the heart rate index, blood oxygen index, posture index and water entry index are added to obtain a risk index, and the risk level is determined based on the size of the risk index. Specifically, the value interval of the risk index is divided into multiple adjacent sub-intervals, each of which corresponds to a risk level, the lowest risk level can be set to white, the intermediate risk levels of 2 to 4 are set to yellow, orange, and red respectively, and the highest risk level is set to black. After the risk index is normalized, the sub-interval where the normalized risk index is located is determined, so as to obtain the corresponding risk level.

[0076] As an improvement of the above embodiment, the method further includes:

[0077] If it is determined that the water entry duration exceeds a first duration threshold, or the duration of the invalid posture exceeds a second duration threshold, the heart rate weight is adjusted based on the water entry duration and / or the duration of the invalid posture; wherein the heart rate weight is positively correlated with the water entry duration, and the heart rate weight is positively correlated with the duration of the invalid posture.

[0078] It should be noted that when calculating the heart rate index, the duration of entry into the water and the duration of the invalid posture are determined in real time, the heart rate weight is adjusted, and the heart rate index is updated, so that the risk of drowning can be discovered more quickly through the heart rate index.

[0079] As an improvement of the above embodiment, after S200, the method further includes:

[0080] The user's blood oxygen range threshold is obtained, and if it is determined that the real-time blood oxygen exceeds the blood oxygen range threshold and / or the blood oxygen acceleration exceeds the blood oxygen acceleration range threshold, the risk level is set to the highest level.

[0081] It should be noted that real-time blood oxygen and blood oxygen acceleration are the final deterministic indicators for confirming the risk of drowning. If the real-time blood oxygen exceeds the blood oxygen range threshold and / or the blood oxygen acceleration exceeds the blood oxygen acceleration range threshold, it is confirmed that there is a great risk of drowning and the risk level is set to the highest level.

[0082] In the embodiment provided by the present invention, the risk index is determined by multi-source data, and real-time heart rate is used as a guide, which can reduce the missed alarm rate and improve the sensitivity of risk identification; body posture and water immersion time are used as auxiliary indicators, and blood oxygen acceleration is used to determine the substantial risk, which can reduce the false alarm rate and improve the accuracy of risk identification.

[0083] See also Figure 2 , an embodiment of the present invention provides an electronic device, including:

[0084] at least one processor;

[0085] at least one memory for storing at least one program;

[0086] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.

[0087] It can be seen that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0088] In addition, the embodiment of the present application also discloses a computer program product or a computer program, and the computer program product or the computer program is stored in a computer-readable storage medium. The processor of the computer device can read the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device performs the above method. Similarly, the contents in the above method embodiment are all applicable to the storage medium embodiment, and the functions specifically implemented by the storage medium embodiment are the same as those in the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method embodiment.

[0089] In addition, the embodiment of the present application also provides a computer program product, including computer instructions or computer codes, which can implement the above method when at least part of the computer instructions or computer codes are executed by a processor. In some embodiments, the computer program product may only involve computer instructions or computer codes, which may be carried by a storage medium or a processing device. In other embodiments, the computer program product may also be a storage medium or a processing device containing the aforementioned computer instructions or computer codes. The processing device may include one or more processors, and a storage medium.

[0090] It will be appreciated by those skilled in the art that all or some of the systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As is well known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0091] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A drowning warning method based on multi-source data, characterized in that: The method comprises the following steps: S100, obtaining a user's real-time heart rate and real-time blood oxygen, and determining the user's blood oxygen acceleration based on the real-time blood oxygen; S200, obtaining a heart rate range threshold and a blood oxygen acceleration range threshold of the user, determining whether the real-time heart rate is within the heart rate range threshold, and determining whether the blood oxygen acceleration is within the blood oxygen acceleration range threshold; S300: If it is determined that the real-time heart rate is within the heart rate range threshold and the blood oxygen acceleration is within the blood oxygen acceleration range threshold, the user's body posture in the water and the length of time the head is in the water are obtained, and the risk level is determined based on the real-time heart rate, blood oxygen acceleration, body posture and length of time in the water.

2. The method according to claim 1, characterized in that In S200, obtaining the user's heart rate range threshold and blood oxygen acceleration range threshold includes: S210, obtaining the user's resting heart rate, maximum heart rate, and maximum blood oxygen level during the test period; wherein the maximum heart rate refers to the heart rate measured when the user performs extreme exercise during the test period, and the maximum blood oxygen level refers to the blood oxygen level measured when the user performs extreme exercise during the test period; S220, determining the minimum and maximum values ​​of the user's resting heart rate during the test period, adjusting the minimum value of the user's resting heart rate during the test period downward to obtain a lower limit value of the heart rate range threshold, and adjusting the maximum value of the user's extreme heart rate during the test period upward to obtain an upper limit value of the heart rate range threshold; S230, calculate the acceleration of the user's extreme blood oxygen during the test period, determine the minimum and maximum values ​​of the acceleration, adjust the minimum value of the acceleration downward to obtain the lower limit value of the blood oxygen acceleration range threshold, and adjust the maximum value of the acceleration upward to obtain the upper limit value of the blood oxygen acceleration range threshold; wherein the acceleration has a changing direction.

3. The method according to claim 1, characterized in that In S300, the acquiring of the user's body posture and the duration of the head being in the water, and determining the risk level based on the real-time heart rate, blood oxygen acceleration, body posture and duration of the head being in the water, includes: Detecting whether the user's head is immersed in water, and if the user's head is immersed in water, obtaining the immersion time of the head in water, and determining whether the immersion time exceeds a first time threshold; If it is determined that the water entry duration exceeds the first duration threshold, the risk level is set to the lowest level.

4. The method according to claim 3, characterized in that In S300, the acquiring of the user's body posture and the duration of the head being in the water, and determining the risk level based on the real-time heart rate, blood oxygen acceleration, body posture and duration of the head being in the water, includes: Acquire the body posture of the user in the water, and match the body posture with the reference posture data of various swimming postures in the posture database respectively, if the match is successful, determine that the body posture is a swimming posture; if the match fails, determine that the body posture is an invalid posture; If it is determined that the user's gesture is an invalid gesture, obtaining the duration of the invalid gesture, and determining whether the duration of the invalid gesture exceeds a second duration threshold; If it is determined whether the duration of the invalid gesture exceeds a second duration threshold, the risk level is set to the lowest level.

5. The method according to claim 4, characterized in that In S300, the acquiring of the user's body posture and the duration of the head being in the water, and determining the risk level based on the real-time heart rate, blood oxygen acceleration, body posture and duration of the head being in the water, includes: A heart rate index is determined based on the real-time heart rate and the heart rate weight, a blood oxygen index is determined based on the blood oxygen acceleration and the blood oxygen weight, a posture index is determined based on the duration of the invalid posture and the posture weight, and a water entry index is determined based on the water entry duration and the water entry weight; wherein the heart rate weight has the largest value; and the blood oxygen index is positively correlated with the blood oxygen acceleration; The risk level is determined based on the heart rate index, the blood oxygen index, the posture index and the water entry index.

6. The method according to claim 5, characterized in that The method further comprises: If it is determined that the water entry duration exceeds a first duration threshold, or the duration of the invalid posture exceeds a second duration threshold, the heart rate weight is adjusted based on the water entry duration and / or the duration of the invalid posture; wherein the heart rate weight is positively correlated with the water entry duration, and the heart rate weight is positively correlated with the duration of the invalid posture.

7. The method according to claim 1, characterized in that After S200, the method further includes: If it is determined that the blood oxygen acceleration exceeds the blood oxygen acceleration range threshold, the risk level is set to the highest level.

8. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.

9. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to perform the method according to any one of claims 1 to 7 when executed by the processor.

10. A computer program product, characterized in that The method comprises computer instructions or computer codes, and when at least part of the computer instructions or the computer codes are executed by a processor, the method according to any one of claims 1 to 7 can be implemented.