Anti-drowning judgment method based on swimming pool dynamic behavior detection
Through the method based on the dynamic behavior detection of the swimming pool, the object detection algorithm and drowning judgment model are used to generate drowning judgment result information, which solves the problem that manual inspections are difficult to improve swimmer safety, and realizes real-time monitoring of drowning situations and data-assisted judgment.
Patent Information
- Application Number
- CN202410804604.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-11-01
AI Technical Summary
In the prior art, the safety supervision of swimming pools relies on manual inspections, and the lack of data-assisted judgments makes it difficult to improve swimmer safety.
The anti-drowning judgment method based on the dynamic behavior detection of the swimming pool is adopted. By obtaining real-time image information, the preset object detection algorithm is used to generate target object information, and the division process is performed, and input it to the trained drowning judgment model to generate drowning judgment result information, and Send to the rescuer terminal.
Data provided to assist in judging swimmer safety issues, improve swimmer safety, and enhance real-time monitoring and response capabilities for drowning situations.
Smart Images

Figure CN118887440A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent rescue, and in particular to a drowning prevention determination method based on dynamic behavior detection in a swimming pool. Background Art
[0002] With the continuous development of society, swimming has become one of people's favorite leisure sports. During the swimming process, due to various factors, such as insufficient swimming skills or poor physical condition, drowning accidents occur from time to time, posing a serious threat to people's life safety. Therefore, the safety management of swimming pools has received more and more attention.
[0003] At present, lifeguards usually use manual patrols to supervise the safety of swimming pools. Although the manual patrol method is more intuitive and easy to operate, it is limited by the personal energy and attention of lifeguards, and lacks data to assist in determining whether swimmers have safety problems. This is not conducive to improving the safety of swimmers and needs further improvement. Summary of the invention
[0004] Based on this, an embodiment of the present application provides a drowning prevention determination method based on dynamic behavior detection in a swimming pool to solve the problem in the prior art that is not conducive to improving the safety of swimmers.
[0005] In a first aspect, an embodiment of the present application provides a drowning prevention determination method based on dynamic behavior detection in a swimming pool, the method comprising:
[0006] Obtain real-shot image information of the target swimming pool;
[0007] Based on a preset object detection algorithm, at least one target object information is generated according to the real-shot image information;
[0008] According to the target object information, the real-shot image information is divided and processed to generate at least one object image information;
[0009] Inputting the object image information into a trained drowning judgment model to generate drowning judgment result information;
[0010] The drowning judgment result information is sent to a designated terminal of a rescuer.
[0011] Compared with the prior art, the beneficial effect is as follows: the anti-drowning judgment method based on swimming pool dynamic behavior detection provided by the embodiment of the present application, the terminal device can first obtain the real-shot image information of the target swimming pool, and then use the preset object detection algorithm to accurately generate at least one target object information based on the real-shot image information, and then divide and process the real-shot image information according to the target object information, quickly generate at least one object image information, and then input the object image information into the trained drowning judgment model to effectively generate drowning judgment result information, and finally send the drowning judgment result information to the designated terminal of the rescue personnel, so as to provide lifeguards with data to assist in judging whether there are safety problems with swimmers, which is conducive to improving the safety of swimmers and to a certain extent solves the current problem that is not conducive to improving the safety of swimmers.
[0012] In a second aspect, an embodiment of the present application provides a drowning prevention determination system based on dynamic behavior detection in a swimming pool, the system comprising:
[0013] Real-shot image information acquisition module: used to obtain real-shot image information of the target swimming pool;
[0014] A target object information generation module: used to generate at least one target object information according to the real-shot image information based on a preset object detection algorithm;
[0015] An object image information generating module is used to divide and process the real-shot image information according to the target object information to generate at least one object image information;
[0016] A drowning judgment result information generating module: used for inputting the object image information into a trained drowning judgment model to generate drowning judgment result information;
[0017] Drowning judgment result information sending module: used to send the drowning judgment result information to the designated terminal of the rescue personnel.
[0018] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect described above when executing the computer program.
[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect described above are implemented.
[0020] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0022] Figure 1 It is a flowchart of a drowning prevention determination method provided in an embodiment of the present application;
[0023] Figure 2 is a schematic diagram of real-shot image information provided by an embodiment of the present application, wherein: Figure 2 (a) is a schematic diagram of a swimmer not drowning. Figure 2 (b) is a schematic diagram of a swimmer drowning;
[0024] Figure 3 It is a flowchart before step S400 in the drowning prevention determination method provided in one embodiment of the present application;
[0025] Figure 4 It is a flowchart after step S200 in the drowning prevention determination method provided in one embodiment of the present application;
[0026] Figure 5 is a flow chart of step S202 in the drowning prevention determination method provided in one embodiment of the present application;
[0027] Figure 6 It is a flowchart after step S2028 in the drowning prevention determination method provided in one embodiment of the present application;
[0028] Figure 7 It is a module block diagram of a drowning prevention determination system provided by an embodiment of the present application;
[0029] Figure 8 It is a schematic diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0030] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0031] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0032] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0033] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.
[0034] See also Figure 1 , Figure 1 : is a flow chart of the drowning prevention determination method based on swimming pool dynamic behavior detection provided by the embodiment of the present application. In the present embodiment, the execution subject of the drowning prevention determination method is a terminal device. It is understandable that the types of terminal devices include but are not limited to mobile phones, tablet computers, laptop computers, ultra-mobile personal computers (Ultra-Mobile Personal Computer, UMPC), netbooks, personal digital assistants (Personal Digital Assistant, PDA), etc., and the embodiment of the present application does not impose any restrictions on the specific types of terminal devices.
[0035] See also Figure 1 The drowning prevention determination method provided in the embodiment of the present application includes but is not limited to the following steps:
[0036] In S100, real-shot image information of a target swimming pool is obtained.
[0037] Without loss of generality, the target swimming pool is used to describe a swimming pool that requires safety supervision; a camera may be pre-installed above the target swimming pool.
[0038] Specifically, the terminal device may first use a preset camera to obtain real-shot image information of the target swimming pool, wherein the real-shot image information is used to describe an image captured in real time by the camera of the swimming pool.
[0039] In S200, at least one target object information is generated according to the real-shot image information based on a preset object detection algorithm.
[0040] Specifically, the terminal device can first detect all swimmers in the real-shot image information based on a preset object detection algorithm, and generate at least one target object information, wherein the object detection algorithm can be an object detection algorithm based on SSD (Single Shot MultiBox Detector) or an object detection algorithm based on YOLO (You Only Look Once) V5.
[0041] For example, see Figure 2 (a) and (b) in Figure 2 The rectangular box in (a) and Figure 2 The rectangular boxes in (b) all represent target object information; when there is only one swimmer in the swimming pool, the number of target object information finally generated may be one; when there are eight swimmers in the swimming pool, the number of target object information finally generated may be eight.
[0042] In S300, the real-shot image information is divided and processed according to the target object information to generate at least one object image information.
[0043] Specifically, the terminal device can divide and process the real-shot image information according to the target object information, eliminate the area other than the target object information in the real-shot image information, retain only the target object information in the real-shot image information, and generate at least one object image information, wherein the object image information is used to describe the target object information retained in the real-shot image information.
[0044] In S400 , the object image information is input into the trained drowning judgment model to generate drowning judgment result information.
[0045] Specifically, the terminal device can input object image information into a trained drowning judgment model to generate drowning judgment result information, which is conducive to continuous safety monitoring of swimmers in the short, medium and long term of their swimming. The drowning judgment result information is used to describe the data results output by the drowning judgment model and used to determine whether the swimmer is drowning.
[0046] In S500, the drowning judgment result information is sent to the designated terminal of the rescuer.
[0047] Specifically, the designated terminal may be a smart watch worn by the rescuer; after the terminal device generates drowning judgment result information, the terminal device may immediately send the drowning judgment result information to the designated terminal of the rescuer, so that the rescuer may be informed of the dangerous situation of the swimmer in a timely manner.
[0048] In some possible implementations, in order to generate accurate drowning judgment result information, please refer to Figure 3Before step S400, the method further includes but is not limited to the following steps:
[0049] In S401, an initial drowning judgment model is obtained, and sample image set information is obtained.
[0050] Specifically, the terminal device can first obtain an initial drowning judgment model and simultaneously obtain sample image set information, wherein the sample image set information includes multiple sample image information, and the sample image information can be images related to the swimmer's behavior, such as images of the swimmer swimming normally and images of the swimmer drowning.
[0051] In S402, the sample image set information is divided and processed to generate training image set information and verification image set information.
[0052] Specifically, the terminal device can divide and process the sample image set information, classify a part of the sample image information into training image set information, and classify another part of the sample image information into verification image set information, to generate training image set information and verification image set information, wherein the training image set information includes multiple training image information, and the verification image set information includes multiple verification image information.
[0053] In S403, the initial drowning judgment model is trained based on the training image set information, and the trained drowning judgment model is evaluated through the verification image set information to obtain an evaluation index.
[0054] Specifically, after the terminal device generates training image set information and verification image set information, the terminal device can use the training image set information to train the initial drowning judgment model. After training the initial drowning judgment model, the terminal device can use the verification image set information to evaluate the trained drowning judgment model to obtain an evaluation index. If the evaluation index does not meet the optimal requirements, the hyperparameters of the drowning judgment model are adjusted, and the drowning judgment model is trained and evaluated again until the evaluation index of the drowning judgment model meets the optimal requirements.
[0055] In S404, when the evaluation index meets the optimal requirement, the trained drowning judgment model is determined as the trained drowning judgment model.
[0056] Specifically, when the evaluation indicators meet the optimal requirements, the terminal device can determine the trained drowning judgment model as the trained drowning judgment model, that is, determine the final drowning judgment model as the trained drowning judgment model, wherein the trained drowning judgment model is used to determine whether the swimmer is drowning.
[0057] In a possible implementation, the drowning judgment model may be a target detection model based on the YOLO V5 algorithm, and the drowning judgment model may also be a prediction model based on a decision tree learning algorithm;
[0058] Exemplarily, when the drowning judgment model is a prediction model based on a decision tree learning algorithm, the prediction process of the drowning judgment model can be expanded in a top-down recursive manner; at the internal nodes of the decision tree, the drowning judgment model will compare the attribute values, and select the corresponding branch to traverse downward according to the comparison results, and finally, a conclusion is obtained at the leaf node of the decision tree. Therefore, a complete path from the root node to the leaf node actually corresponds to a conjunction rule. Overall, the entire decision tree can be regarded as a logical system composed of a set of disjunctive expression rules. When constructing the drowning judgment model, it can usually be divided into two main steps. The first step is the generation of the tree, that is, starting with placing all data at the root node, and then recursively slicing the data to gradually construct nodes and branches at all levels of the decision tree. The second step is tree pruning, that is, removing unnecessary branches that may be caused by noise or abnormal data, thereby improving the generalization ability and accuracy of the drowning judgment model. The condition for the decision tree to stop segmenting can usually be that the data on a node all belong to the same category, and no attributes can be used to segment the data.
[0059] In a possible implementation, the decision tree learning algorithm may be an ID3 algorithm, a C4.5 algorithm, a CART (Classification and Regression Trees) algorithm, or a SLIQ algorithm.
[0060] In some possible implementations, in order to carry out targeted safety monitoring when the number of swimmers is large, please refer to Figure 4 After step S200, the method further includes but is not limited to the following steps:
[0061] In S201 , for each target object information, real-time motion record set information of the target object information is obtained in turn.
[0062] Specifically, the terminal device can perform this processing for each target object information in turn: obtain real-time motion record set information of the target object information, wherein the real-time motion record set information includes cumulative swimming distance information and initial swimming time information, the cumulative swimming distance information is used to describe the cumulative swimming distance of the swimmer corresponding to the target object information, and the initial swimming time information is used to describe the initial moment of the swimmer corresponding to the target object information in this swimming.
[0063] In S202, object tag information of target object information is generated according to the real-time motion record set information.
[0064] Specifically, the terminal device can effectively generate object label information of the target object information based on the real-time motion record set information, wherein the object label information is used as a label to distinguish whether the swimmer corresponding to the target object information has a high probability of drowning, and the object label information includes high-risk label information or low-risk label information. The high-risk label information is used to describe that the swimmer corresponding to the target object information has a higher probability of drowning, and the low-risk label information is used to describe that the swimmer corresponding to the target object information has a lower probability of drowning.
[0065] Accordingly, the above step S300 includes but is not limited to the following steps:
[0066] In S310, the real-shot image information is divided and processed according to the high-risk object information to generate at least one high-risk object image information.
[0067] Specifically, the terminal device can divide and process the real-shot image information according to the high-risk object information, retain only the high-risk object information in the real-shot image information, and generate at least one high-risk object image information, wherein the high-risk object information is used to describe the target object information whose object label information is the high-risk label information. The specific generation process of the high-risk object image information can refer to the similar content in the above step S200.
[0068] In some possible implementations, in order to determine accurate object label information, please refer to Figure 5 Step S202 includes but is not limited to the following steps:
[0069] In S2021, current time information is obtained.
[0070] Specifically, the terminal device can first obtain the current time information, where the current time information is used to describe the execution time of the current
[0071] In S2022, continuous swimming duration information is generated according to the current time information and the initial swimming time information.
[0072] Specifically, after the terminal device obtains the current time information, the terminal device can quickly generate continuous swimming duration information based on the current time information and the initial swimming time information, wherein the starting time of the continuous swimming duration information can be the initial swimming time information, and the ending time of the continuous swimming duration information can be the current time information.
[0073] In S2023, first swimming duration information and second swimming duration information are generated according to the continuous swimming duration information.
[0074] Specifically, after the terminal device generates the continuous swimming duration information, the terminal device can generate the first swimming duration information and the second swimming duration information based on the continuous swimming duration information, wherein the value of the first swimming duration information is equal to the value of the second swimming duration information; exemplarily, the terminal device can take the first one-fifth of the continuous swimming duration information starting from the start time as the first swimming duration information, and at the same time, the terminal device can take the last one-fifth of the continuous swimming duration information starting from the end time as the first swimming duration information.
[0075] In S2024, the accumulated swimming distance information is divided and processed according to the first swimming duration information to generate the first swimming distance information, and the accumulated swimming distance information is divided and processed according to the second swimming duration information to generate the second swimming distance information.
[0076] Specifically, after the terminal device generates the first swimming duration information and the second swimming duration information, the terminal device can divide and process the cumulative swimming distance information according to the first swimming duration information to generate the first swimming distance information, and at the same time divide and process the cumulative swimming distance information according to the second swimming duration information to generate the second swimming distance information, wherein the first swimming distance information is used to describe the swimming distance of the swimmer corresponding to the target object information in the first swimming duration information, and the second swimming distance information is used to describe the swimming distance of the swimmer corresponding to the target object information in the second swimming duration information.
[0077] In S2025, second swimming speed information is generated according to the second swimming distance information and the second swimming duration information, and first swimming speed information is generated according to the first swimming distance information and the first swimming duration information.
[0078] Specifically, after the terminal device generates the first swimming distance information and the second swimming distance information, the terminal device can determine the second swimming speed information by the quotient of the second swimming distance information divided by the second swimming duration information. At the same time, the terminal device can determine the first swimming speed information by the quotient of the first swimming distance information divided by the first swimming duration information.
[0079] In S2026, swimming speed difference information is generated based on the first swimming speed information and the second swimming speed information.
[0080] Specifically, the terminal device may determine the difference between the first swimming speed information and the second swimming speed information as the swimming speed difference information.
[0081] In S2027, the swimming speed difference information is compared with the preset speed difference threshold information.
[0082] Specifically, the terminal device may compare the swimming speed difference information with preset speed difference threshold information, wherein the speed difference threshold information may be a preset fixed value.
[0083] In S2028, if the swimming speed difference information is less than the speed difference threshold information, the object label information of the target object information is determined to be low-risk label information.
[0084] Specifically, if the swimming speed difference information is less than the speed difference threshold information, the terminal device may determine that the object tag information of the target object information is low-risk tag information.
[0085] In S2029, if the swimming speed difference information is greater than or equal to the speed difference threshold information, the object label information of the target object information is determined to be high-risk label information.
[0086] Specifically, if the swimming speed difference information is greater than or equal to the speed difference threshold information, the terminal device may determine that the object tag information of the target object information is high-risk tag information.
[0087] In some possible implementations, to further improve security, see Figure 6 After step S2028, the method further includes but is not limited to the following steps:
[0088] In S20281, the longest swimming duration information of the target object information is obtained.
[0089] Specifically, the terminal device may obtain the longest swimming time information of the target object information, wherein the longest swimming time information is used to describe the longest continuous swimming time of the swimmer corresponding to the target object information in the historical records.
[0090] In S20282, the longest swimming duration information and the continuous swimming duration information are compared.
[0091] Specifically, the terminal device may compare the longest swimming time information with the continuous swimming time information.
[0092] In S20283, if the longest swimming duration information is less than the continuous swimming duration information, the low-risk label information is changed to high-risk label information.
[0093] Specifically, if the longest swimming time information is less than the continuous swimming time information, the terminal device can change the low-risk label information to high-risk label information; if the longest swimming time information is greater than or equal to the continuous swimming time information, the terminal device may not change the low-risk label information.
[0094] The implementation principle of the drowning prevention judgment method based on swimming pool dynamic behavior detection in the embodiment of the present application is as follows: the terminal device can first obtain the real-shot image information of the target swimming pool, and then use the preset object detection algorithm to accurately generate at least one target object information based on the real-shot image information, and then divide and process the real-shot image information based on the target object information to quickly generate at least one object image information, and then input the object image information into the trained drowning judgment model to effectively generate drowning judgment result information, and finally send the drowning judgment result information to the designated terminal of the rescue personnel, so as to provide the lifeguard with data to assist in judging whether there are safety problems with the swimmer, which is conducive to improving the safety of the swimmer.
[0095] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0096] The embodiment of the present application also provides a drowning prevention determination system based on swimming pool dynamic behavior detection. For ease of description, only the parts related to the present application are shown, such as Figure 7 As shown, the system 70 includes:
[0097] The real-shot image information acquisition module 71 is used to acquire the real-shot image information of the target swimming pool;
[0098] The target object information generating module 72 is used to generate at least one target object information according to the real-shot image information based on a preset object detection algorithm;
[0099] The object image information generating module 73 is used to divide and process the real-shot image information according to the target object information to generate at least one object image information;
[0100] A drowning judgment result information generating module 74 is used to input the object image information into the trained drowning judgment model to generate drowning judgment result information;
[0101] The drowning judgment result information sending module 75 is used to send the drowning judgment result information to the designated terminal of the rescuer.
[0102] Optionally, the system 70 further includes:
[0103] A drowning judgment model acquisition module is used to acquire an initial drowning judgment model and obtain sample image set information, wherein the sample image set information includes a plurality of sample image information;
[0104] Sample image set information division module: used to divide the sample image set information and generate training image set information and verification image set information;
[0105] Drowning judgment model training module: used to train the initial drowning judgment model based on the training image set information, and evaluate the trained drowning judgment model through the verification image set information to obtain evaluation indicators;
[0106] Drowning judgment model determination module: used to determine the trained drowning judgment model as the trained drowning judgment model when the evaluation index meets the optimal requirements.
[0107] Optionally, the system 70 further includes:
[0108] The real-time motion record set information acquisition submodule is used to sequentially acquire the real-time motion record set information of each target object information;
[0109] The object label information generation submodule is used to generate object label information of the target object information according to the real-time motion record set information, wherein the object label information includes high-risk label information or low-risk label information;
[0110] Accordingly, the object image information generating module 73 includes:
[0111] High-risk object image information generation submodule: used to divide and process the real-shot image information according to the high-risk object information to generate at least one high-risk object image information, wherein the high-risk object information is used to describe the target object information whose object label information is the high-risk label information.
[0112] Optionally, the real-time sports record set information includes cumulative swimming distance information and initial swimming time information; the above-mentioned object tag information generation submodule includes:
[0113] Current time information acquisition unit: used to acquire current time information;
[0114] A continuous swimming time information generating unit: used for generating continuous swimming time information according to current time information and initial swimming time information;
[0115] A swimming duration information generating unit: used for generating first swimming duration information and second swimming duration information according to the continuous swimming duration information, wherein the value of the first swimming duration information is equal to the value of the second swimming duration information;
[0116] A swimming distance information generating unit: used to divide the accumulated swimming distance information according to the first swimming duration information to generate the first swimming distance information, and divide the accumulated swimming distance information according to the second swimming duration information to generate the second swimming distance information, wherein the first swimming distance information is used to describe the swimming distance of the target object information in the first swimming duration information, and the second swimming distance information is used to describe the swimming distance of the target object information in the second swimming duration information;
[0117] A swimming speed information generating unit: used to generate second swimming speed information according to the second swimming distance information and the second swimming duration information, and to generate first swimming speed information according to the first swimming distance information and the first swimming duration information;
[0118] A swimming speed difference information generating unit: used for generating swimming speed difference information according to the first swimming speed information and the second swimming speed information;
[0119] A swimming speed difference information comparison unit: used for comparing the swimming speed difference information with the preset speed difference threshold information;
[0120] A low-risk label information determining unit: configured to determine that the object label information of the target object information is low-risk label information if the swimming speed difference information is less than the speed difference threshold information;
[0121] A high-risk label information determining unit is used to determine that the object label information of the target object information is high-risk label information if the swimming speed difference information is greater than or equal to the speed difference threshold information.
[0122] Optionally, the system 70 further includes:
[0123] The longest swimming time information acquisition module is used to obtain the longest swimming time information of the target object;
[0124] The longest swimming time information comparison module is used to compare the longest swimming time information and the continuous swimming time information;
[0125] Low-risk label information change module: used to change the low-risk label information to high-risk label information if the longest swimming time information is less than the continuous swimming time information.
[0126] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0127] The present application also provides a terminal device, such as Figure 8As shown, the terminal device 80 of this embodiment includes: a processor 81, a memory 82, and a computer program 83 stored in the memory 82 and executable on the processor 81. When the processor 81 executes the computer program 83, the steps in the above-mentioned drowning prevention determination method embodiment are implemented, such as Figure 1 Steps S100 to S500 shown; or, when the processor 81 executes the computer program 83, the functions of each module in the above device are realized, for example Figure 7 The functions of modules 71 to 72 are shown.
[0128] The terminal device 80 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server, and the terminal device 80 includes but is not limited to a processor 81 and a memory 82. Those skilled in the art will appreciate that Figure 8 It is only an example of the terminal device 80 and does not constitute a limitation of the terminal device 80. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device 80 may also include input and output devices, network access devices, buses, etc.
[0129] Among them, the processor 81 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.; the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0130] The memory 82 may be an internal storage unit of the terminal device 80, such as a hard disk or memory of the terminal device 80, or the memory 82 may be an external storage device of the terminal device 80, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device 80; further, the memory 82 may also include both an internal storage unit and an external storage device of the terminal device 80, and the memory 82 may also store a computer program 83 and other programs and data required by the terminal device 80, and the memory 82 may also be used to temporarily store data that has been output or is to be output.
[0131] One embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of each of the above method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.; the computer-readable medium may include: any entity or device that can carry computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0132] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, all equivalent changes made according to the methods, principles, and structures of the present application should be included in the protection scope of the present application.
Claims
1. A drowning prevention determination method based on swimming pool dynamic behavior detection, characterized in that: The method comprises: Obtain real-shot image information of the target swimming pool; Based on a preset object detection algorithm, at least one target object information is generated according to the real-shot image information; According to the target object information, the real-shot image information is divided and processed to generate at least one object image information; Inputting the object image information into a trained drowning judgment model to generate drowning judgment result information; The drowning judgment result information is sent to a designated terminal of a rescuer.
2. The method according to claim 1, characterized in that Before inputting the object image information into the trained drowning judgment model to generate drowning judgment result information, the method further includes: Acquire an initial drowning judgment model and acquire sample image set information, wherein the sample image set information includes a plurality of sample image information; Dividing the sample image set information to generate training image set information and verification image set information; Training an initial drowning judgment model based on the training image set information, and evaluating the trained drowning judgment model through the verification image set information to obtain an evaluation index; When the evaluation index meets the optimal requirement, the trained drowning judgment model is determined as the trained drowning judgment model.
3. The method according to claim 1, characterized in that After generating at least one target object information according to the real-shot image information based on the preset object detection algorithm, the method further includes: For each of the target object information in turn: obtaining real-time motion record set information of the target object information; Generating object label information of the target object information according to the real-time motion record set information, wherein the object label information includes high-risk label information or low-risk label information; Accordingly, the segmenting and processing of the real-shot image information according to the target object information to generate at least one object image information includes: According to the high-risk object information, the real-shot image information is divided and processed to generate at least one high-risk object image information, wherein the high-risk object information is used to describe the target object information whose object label information is the high-risk label information.
4. The method according to claim 3, characterized in that The real-time sports record set information includes accumulated swimming distance information and initial swimming time information; the object tag information of the target object information is generated according to the real-time sports record set information, including: Get current time information; Generate continuous swimming duration information according to the current time information and the initial swimming time information; Generate first swimming duration information and second swimming duration information according to the continuous swimming duration information, wherein the value of the first swimming duration information is equal to the value of the second swimming duration information; According to the first swimming duration information, the accumulated swimming distance information is divided and processed to generate first swimming distance information, and according to the second swimming duration information, the accumulated swimming distance information is divided and processed to generate second swimming distance information, wherein the first swimming distance information is used to describe the swimming distance of the target object information in the first swimming duration information, and the second swimming distance information is used to describe the swimming distance of the target object information in the second swimming duration information; generating second swimming speed information according to the second swimming distance information and the second swimming duration information, and generating first swimming speed information according to the first swimming distance information and the first swimming duration information; generating swimming speed difference information according to the first swimming speed information and the second swimming speed information; comparing the swimming speed difference information with preset speed difference threshold information; If the swimming speed difference information is less than the speed difference threshold information, determining that the object label information of the target object information is the low-risk label information; If the swimming speed difference information is greater than or equal to the speed difference threshold information, it is determined that the object label information of the target object information is the high-risk label information.
5. The method according to claim 4, characterized in that After determining that the object label information of the target object information is the low-risk label information if the swimming speed difference information is less than the speed difference threshold information, the method further includes: Obtaining the longest swimming time information of the target object information; Comparing the longest swimming duration information with the continuous swimming duration information; If the longest swimming duration information is less than the continuous swimming duration information, the low-risk label information is changed to the high-risk label information.
6. A drowning prevention judgment system based on swimming pool dynamic behavior detection, characterized in that: The system comprises: Real-shot image information acquisition module: used to obtain real-shot image information of the target swimming pool; A target object information generation module: used to generate at least one target object information according to the real-shot image information based on a preset object detection algorithm; An object image information generating module is used to divide and process the real-shot image information according to the target object information to generate at least one object image information; A drowning judgment result information generating module: used for inputting the object image information into a trained drowning judgment model to generate drowning judgment result information; Drowning judgment result information sending module: used to send the drowning judgment result information to the designated terminal of the rescue personnel.
7. The system according to claim 6, characterized in that The system further comprises: A drowning judgment model acquisition module is used to acquire an initial drowning judgment model and acquire sample image set information, wherein the sample image set information includes a plurality of sample image information; The sample image set information division module is used to divide the sample image set information to generate training image set information and verification image set information; A drowning judgment model training module is used to train the initial drowning judgment model based on the training image set information, and evaluate the trained drowning judgment model through the verification image set information to obtain an evaluation index; A drowning judgment model determination module is used to determine the trained drowning judgment model as the trained drowning judgment model when the evaluation index meets the optimal requirement.
8. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
