Dangerous area early warning method and device, smart watch, storage medium and product
Acceleration and motion direction information is obtained through smart watches, and the child's path is judged in combination with spatial positioning model, which solves the problem that the existing technology cannot effectively warn children to approach indoor dangerous areas, and achieves effective monitoring and early warning of children's safety.
Patent Information
- Application Number
- CN202411593212.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-03-07
Smart Images

Figure CN119580424A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of spatial positioning technology, and in particular to a dangerous area early warning method, device, smart watch, storage medium and product. Background Art
[0002] In today's society, children's safety has become the focus of family and social attention. With the continuous advancement of smart device technology, smart watches have become an important auxiliary tool for children's daily activities. In family life, due to the negligence of guardians, children often approach dangerous areas such as open windows, kitchens with fire sources, and low sockets, leading to serious consequences. Therefore, how to effectively prevent children from entering dangerous areas has become a research direction for smart watch technology in child safety monitoring.
[0003] In the prior art, the basic location of children is often determined through the GPS function of smart watches, without effective monitoring and alarming of potential danger areas in indoor environments, resulting in the inability to prevent children from approaching danger areas.
[0004] Therefore, how to protect children from dangerous areas indoors is an urgent problem to be solved.
[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of this application is to provide a dangerous area warning method, device, smart watch, storage medium and product, aiming to solve the technical problem of not being warned when children approach dangerous areas indoors.
[0007] To achieve the above objectives, the present application proposes a dangerous area early warning method, the method comprising:
[0008] Obtain acceleration information and movement direction information to determine the child's path information;
[0009] According to a preset spatial positioning model, the child path information and the preset initial starting point coordinates are spatially positioned to determine the target child coordinates, wherein the spatial positioning model is obtained by training a preset model to be trained using starting point coordinate samples, path information samples, and end point coordinate labels;
[0010] If the target child coordinates are within the preset indoor danger warning area, the preset warning plan is executed.
[0011] In one embodiment, before the step of obtaining acceleration information and movement direction information and determining the child path information, the step further includes:
[0012] Get the starting point coordinate sample, path information sample and end point coordinate label;
[0013] Inputting the starting point coordinate sample and the path information sample into a preset model to be trained;
[0014] Analyzing the displacement corresponding to the path information sample according to the model to be trained to obtain target displacement information;
[0015] Determine the end point coordinate sample according to the starting point coordinate sample and the target displacement information;
[0016] Determine the difference between the endpoint coordinate sample and the endpoint coordinate label to obtain a positioning loss value;
[0017] If the positioning loss value does not meet the preset loss standard, return to the step of analyzing the displacement corresponding to the path information sample according to the model to be trained to obtain the target displacement information, and stop training until the positioning loss value meets the loss standard to obtain a spatial positioning model that meets the loss standard.
[0018] In one embodiment, if the target child coordinates are within a preset indoor danger warning area, the step of executing a preset warning scheme includes:
[0019] Analyze the target child coordinates to obtain the child's horizontal coordinates and the child's height;
[0020] Determining whether the horizontal coordinates of the child are within a preset indoor danger warning area;
[0021] If the horizontal coordinates of the child are within the indoor danger warning area, a vibration reminder is performed and a warning message is sent to a preset communication device;
[0022] Determining whether the height of the child is within a preset indoor safety height range;
[0023] If the height of the child is not within the indoor safe height range, an early warning message is sent to a preset communication device.
[0024] In one embodiment, the step of obtaining acceleration information and movement direction information and determining the child's path information includes:
[0025] Obtain acceleration information and movement direction information, determine and record the child's path information;
[0026] When the child path information passes through the preset initial starting point coordinates, the child path information is re-recorded.
[0027] In one embodiment, if the target child coordinates are within a preset indoor danger warning area, the step of executing a preset warning scheme includes:
[0028] Analyzing the child's path information to obtain horizontal motion path information;
[0029] According to the horizontal motion path information, a heat map of children's indoor motion and data on children's step count are obtained;
[0030] A children's indoor activity report is obtained based on the children's indoor exercise heat map and the children's step count data, and the children's indoor activity report is sent to a preset communication device.
[0031] In one embodiment, before the step of obtaining acceleration information and movement direction information and determining the child path information, the step further includes:
[0032] Calibrate the initial starting point coordinates;
[0033] Obtain indoor danger warning coordinates and calibrate indoor danger warning areas;
[0034] Obtain children's height reference value and calibrate indoor safe height range.
[0035] In addition, to achieve the above purpose, the present application also proposes a dangerous area warning device, the dangerous area warning device comprising:
[0036] An acquisition module is used to obtain acceleration information and movement direction information to determine the child's path information;
[0037] A positioning module, used to perform spatial positioning on the child path information and the preset initial starting point coordinates according to a preset spatial positioning model to determine the target child coordinates, wherein the spatial positioning model is obtained by training a preset model to be trained using starting point coordinate samples, path information samples and end point coordinate labels;
[0038] The early warning module is used to execute a preset early warning plan if the target child coordinates are within a preset indoor danger early warning area.
[0039] In addition, to achieve the above-mentioned purpose, the present application also proposes a smart watch, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the dangerous area warning method as described above.
[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the dangerous area warning method described above are implemented.
[0041] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the dangerous area warning method described above are implemented.
[0042] One or more technical solutions proposed in this application have at least the following technical effects:
[0043] Compared with the related art, in which the basic position of the child is determined by the GPS function of the smart watch, but there is no effective monitoring and alarm for the potential danger zone in the indoor environment, which makes it impossible to prevent the child from approaching the danger zone, the present application determines the child's path information by obtaining acceleration information and movement direction information; according to a preset spatial positioning model, the child's path information and the preset initial starting point coordinates are spatially positioned to determine the target child's coordinates, wherein the spatial positioning model is obtained by training a preset model to be trained with starting point coordinate samples, path information samples and end point coordinate labels; if the target child's coordinates are within the preset indoor danger warning area, the preset warning plan is executed. It can be understood that the present application uses starting point coordinate samples, path information samples and end point coordinate labels to train the preset model to be trained to obtain a spatial positioning model. When the acceleration information and movement direction information are obtained to determine the child's path information, the target child coordinates are obtained through the spatial positioning model based on the child's path information and the preset initial starting point coordinates. When the target child coordinates are within the preset indoor danger warning area, the preset warning plan is executed, thereby realizing the function of issuing an early warning when the child approaches a potential danger area in the indoor environment, thereby achieving the beneficial effect of protecting children from danger areas indoors. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0046] Figure 1 A flowchart of the first embodiment of the method for early warning of dangerous areas provided in this application;
[0047] Figure 2 This is a schematic diagram of the module structure of the dangerous area warning device according to an embodiment of the present application;
[0048] Figure 3Schematic diagram of the device structure of the hardware operating environment involved in the dangerous area warning method in the embodiment of the present application.
[0049] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0051] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0052] The main solution of the embodiment of the present application is: obtaining acceleration information and movement direction information to determine the child's path information;
[0053] According to a preset spatial positioning model, the child path information and the preset initial starting point coordinates are spatially positioned to determine the target child coordinates, wherein the spatial positioning model is obtained by training a preset model to be trained using starting point coordinate samples, path information samples, and end point coordinate labels;
[0054] If the target child coordinates are within the preset indoor danger warning area, the preset warning plan is executed.
[0055] In this embodiment, the application uses the dangerous area warning device as the execution subject. For the convenience of description, it is specifically described below as "device".
[0056] Because the existing technology determines the basic location of children through the GPS function of smart watches, it does not effectively monitor and alarm potential danger areas in indoor environments, resulting in the inability to prevent children from approaching dangerous areas.
[0057] The present application provides a solution, which uses starting point coordinate samples, path information samples and end point coordinate labels to train a preset model to be trained to obtain a spatial positioning model. When obtaining acceleration information and movement direction information and determining the child's path information, the target child's coordinates are obtained through positioning the spatial positioning model based on the child's path information and the preset initial starting point coordinates. When the target child's coordinates are within a preset indoor danger warning area or the child's height is not within the indoor safety height range, the preset warning plan is executed, thereby realizing the function of issuing an early warning when the child approaches a potential danger area in the indoor environment, thereby achieving the beneficial effect of protecting children from danger areas indoors.
[0058] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a dangerous area warning device, etc. The following takes the dangerous area warning device as an example to illustrate this embodiment and the following embodiments.
[0059] Based on this, the embodiment of the present application provides a dangerous area early warning method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the dangerous area warning method of the present application.
[0060] In this embodiment, the dangerous area early warning method includes steps S10 to S30:
[0061] Step S10, acquiring acceleration information and movement direction information, and determining child path information;
[0062] It should be noted that the acceleration information is provided by an accelerometer sensor, reflecting the change of the child's movement speed. The movement direction is provided by a gyroscope or magnetometer sensor, reflecting the change of the child's movement direction.
[0063] It can be understood that by analyzing the acceleration and movement direction data, the movement path of the child over a certain period of time can be constructed.
[0064] In a feasible implementation, step S10 may include:
[0065] Obtain acceleration information and movement direction information, determine and record the child's path information;
[0066] When the child path information passes through the preset initial starting point coordinates, the child path information is re-recorded.
[0067] It is understandable that when the child's moving path passes through the preset initial starting point coordinates, the device will restart recording the child's path information to ensure that the child's location can be updated and tracked in a timely manner.
[0068] Step S20, spatially locating the child path information and the preset initial starting point coordinates according to a preset spatial positioning model to determine the target child coordinates, wherein the spatial positioning model is obtained by training a preset model to be trained using starting point coordinate samples, path information samples and end point coordinate labels;
[0069] It should be noted that the preset spatial positioning model is a mathematical model for converting path information into specific spatial coordinates. This model is based on a machine learning algorithm and learns how to accurately predict the position through a large amount of training data (such as starting point coordinate samples, path information samples and end point coordinate labels). The initial starting point coordinates are the position coordinates when the child starts to move, and are the reference points for spatial positioning. The spatial positioning is to convert the child's path information into specific spatial coordinates by applying the spatial positioning model, thereby determining the child's current position. The target child coordinates are the child's current position coordinates obtained by spatial positioning. The starting point coordinate samples are the known starting position coordinates used when training the model, which help the model learn how to track the path from the starting point. The path information samples are the known moving path data used when training the model, which help the model learn how to parse and understand the path information. The end point coordinate label is the known end point position coordinate corresponding to the path information sample, which is used to train the model so that it can accurately predict the end point of the path.
[0070] It can be understood that by applying the spatial positioning model, the device can calculate the child’s current spatial position based on the child’s movement path and starting point coordinates, thereby achieving real-time tracking and positioning of the child’s position.
[0071] Step S30: If the target child coordinates are within the preset indoor danger warning area, a preset warning plan is executed.
[0072] It should be noted that the preset indoor danger warning areas are some predefined areas in the indoor environment, such as kitchens, balconies, etc. where there may be dangers. The preset warning scheme is that when the system detects that a child has entered the danger warning area, it will trigger the preset warning measures.
[0073] It is understandable that the device can issue a timely warning when a child is in potential danger, alert the guardian, and take appropriate protective measures to ensure the safety of the child.
[0074] In a feasible implementation, step S30 may include:
[0075] Analyze the target child coordinates to obtain the child's horizontal coordinates and the child's height;
[0076] Determining whether the horizontal coordinates of the child are within a preset indoor danger warning area;
[0077] If the horizontal coordinates of the child are within the indoor danger warning area, a vibration reminder is performed and a warning message is sent to a preset communication device;
[0078] Determining whether the height of the child is within a preset indoor safety height range;
[0079] If the height of the child is not within the indoor safe height range, an early warning message is sent to a preset communication device.
[0080] It should be noted that the target child coordinates are the coordinates of the child's current location calculated by the spatial positioning model. The child's horizontal coordinates are the projection coordinates of the target child coordinates on the horizontal plane, which are used to determine whether the child is in a dangerous area. The child's height is the position information of the target child coordinates in the vertical direction, which is used to determine whether the child is in a safe height range. The preset indoor danger warning area is some areas that may have safety hazards set in advance in the indoor environment, such as places near fire sources, water sources, stairs, etc. The preset indoor safety height range is a height range set according to the indoor environment to ensure that the child is at a safe height. The vibration reminder is a vibration generated by a smart device (such as a watch, a mobile phone, etc.) to remind children to pay attention to safety. The warning information is information containing the child's current location and danger prompts, which is sent to the guardian. The preset communication device is a guardian's device that is set in advance to receive the warning information, such as a mobile phone, a tablet computer, etc.
[0081] It is understandable that the device first analyzes the coordinates of the target child and decomposes them into horizontal coordinates and height information. Then, the device checks whether the horizontal coordinates of the child are within the preset indoor danger warning area. If within the area, the device will alert the child by vibration and send a warning message to a preset communication device. Next, the device checks whether the height of the child is within the preset indoor safety height range. If the height of the child is not within the indoor safety height range, the device will send a warning message to the preset communication device.
[0082] The present embodiment provides a dangerous area warning method, which uses starting point coordinate samples, path information samples and end point coordinate labels to train a preset model to be trained to obtain a spatial positioning model. When the acceleration information and movement direction information are obtained to determine the child's path information, the target child's coordinates are obtained through positioning the spatial positioning model based on the child's path information and the preset initial starting point coordinates. When the target child's coordinates are within the preset indoor dangerous warning area, the preset warning plan is executed, thereby realizing the function of warning when the child approaches a potential dangerous area in the indoor environment, thereby achieving the beneficial effect of protecting children from dangerous areas indoors.
[0083] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated later. On this basis, before step S10, the dangerous area warning method further includes:
[0084] Get the starting point coordinate sample, path information sample and end point coordinate label;
[0085] Inputting the starting point coordinate sample and the path information sample into a preset model to be trained;
[0086] Analyzing the displacement corresponding to the path information sample according to the model to be trained to obtain target displacement information;
[0087] Determine the end point coordinate sample according to the starting point coordinate sample and the target displacement information;
[0088] Determine the difference between the endpoint coordinate sample and the endpoint coordinate label to obtain a positioning loss value;
[0089] If the positioning loss value does not meet the preset loss standard, return to the step of analyzing the displacement corresponding to the path information sample according to the model to be trained to obtain the target displacement information, and stop training until the positioning loss value meets the loss standard to obtain a spatial positioning model that meets the loss standard.
[0090] It should be noted that the starting point coordinate sample is the known starting position coordinate used when training the model, which helps the model learn how to track the path from the starting point. The path information sample is the known moving path data used when training the model, which helps the model learn how to parse and understand the path information. The end point coordinate label is the known end point position coordinate corresponding to the path information sample, which is used to train the model so that it can accurately predict the end point of the path. The model to be trained is an untrained model that needs to be trained with input data to achieve the expected performance. The target displacement information is the moving distance and direction information calculated based on the path information sample, which is used to train the model. The positioning loss value is a numerical value that measures the difference between the end point coordinates predicted by the model and the actual end point coordinate label, which is used to evaluate the accuracy of the model. The loss standard is a preset threshold. When the positioning loss value is less than this threshold, it is considered that the model training has achieved the expected effect.
[0091] It is understandable that in order to train a spatial positioning model, it is necessary to first collect starting point coordinate samples, path information samples, and end point coordinate labels. Then, the starting point coordinate samples and path information samples are input into a preset model to be trained. The model will analyze the displacement corresponding to the path information sample to obtain the target displacement information. Next, based on the starting point coordinate sample and the target displacement information, the end point coordinate sample can be determined. After that, the difference between the end point coordinate sample and the end point coordinate label is compared to calculate the positioning loss value. If this positioning loss value does not meet the preset loss standard, it is necessary to repeatedly adjust the model parameters and re-analyze the displacement corresponding to the path information sample until the positioning loss value meets the loss standard, and finally obtain a spatial positioning model that meets the requirements.
[0092] The dangerous area early warning method also includes:
[0093] Analyzing the child's path information to obtain horizontal motion path information;
[0094] According to the horizontal motion path information, a heat map of children's indoor motion and data on children's step count are obtained;
[0095] A children's indoor activity report is obtained based on the children's indoor exercise heat map and the children's step count data, and the children's indoor activity report is sent to a preset communication device.
[0096] It should be noted that the child path information is the movement trajectory data of the child within a certain time period calculated by the spatial positioning model. The horizontal motion path information is the projection of the child path information on the horizontal plane, reflecting the movement of the child in the horizontal direction. The child indoor motion heat map is a graph generated based on the horizontal motion path information, which indicates the frequency of children's activities in different indoor areas by color depth. The child step data is the statistical information of the number of children's walking steps calculated based on the horizontal motion path information, reflecting the intensity of children's activities. The child indoor activity report is a report that integrates the motion heat map and step data, which comprehensively reflects the children's indoor activities. The preset communication device is a device of the guardian who receives the activity report set in advance, such as a mobile phone, tablet computer, etc.
[0097] It is understandable that by analyzing the path information of the child, the movement path information of the child in the horizontal direction can be extracted. Then, based on this horizontal movement path information, the movement heat map and step count data of the child indoors can be generated. Finally, these heat maps and step count data are summarized into a child indoor activity report, and the report is sent to a preset communication device.
[0098] The dangerous area early warning method also includes:
[0099] Calibrate the initial starting point coordinates;
[0100] Obtain indoor danger warning coordinates and calibrate indoor danger warning areas;
[0101] Obtain children's height reference value and calibrate indoor safe height range.
[0102] It should be noted that the calibration of the initial starting point coordinates is to select a point in the indoor environment as the starting point, record its coordinate information, and use it as a reference for subsequent positioning and path tracking. The indoor danger warning coordinates are the coordinate information of some points in the indoor environment that may have safety hazards, such as coordinates near fire sources, water sources, stairs, etc. The calibration of the indoor danger warning area is to connect the collected indoor danger warning coordinates and delineate an area as a danger warning area to remind children and guardians to pay attention to safety. The child height reference value is a value measured based on the child's actual height, which is used to assess the safe height of the child in the indoor environment. The calibration of the indoor safety height range is to delineate a height range based on the child height reference value and the specific conditions of the indoor environment to ensure that children will not be in danger due to height issues when they are indoors.
[0103] It is understandable that the coordinates of an initial starting point are first determined as a reference, and then the coordinate information of potential safety hazards in the indoor environment is collected, and these coordinates are connected to mark a danger warning area. At the same time, it is also necessary to obtain the height reference value of the child and calibrate an indoor safe height range based on this value to ensure the safety of children when they are indoors.
[0104] For example, in order to help understand the implementation process of the dangerous area warning method obtained by combining this embodiment with the above-mentioned embodiment 1, the following embodiments are provided herein:
[0105] The child’s movement data, including acceleration and movement direction, is obtained through the built-in sensors of the smart watch (such as accelerometers and gyroscopes).
[0106] Based on these data, the movement path information of the child within a certain period of time is determined.
[0107] Use the preset spatial positioning model, combined with the initial starting point coordinates and the child's path information, to perform spatial positioning and determine the child's current coordinate position.
[0108] This spatial positioning model is obtained through training. The training process includes inputting starting point coordinate samples, path information samples and end point coordinate labels, analyzing the displacement corresponding to the path information samples, calculating the positioning loss value, and continuously adjusting the model parameters until the positioning loss value meets the preset standards.
[0109] Determine whether the child’s current coordinates are within the preset indoor danger warning area.
[0110] If the child's horizontal coordinates are within the danger warning area, the smart watch will vibrate to remind the child and send a warning message to the preset communication device (such as the parent's mobile phone).
[0111] At the same time, the smart watch will also determine whether the child’s height is within the preset safety height range. If it is not within this range, it will also send an early warning message.
[0112] If the child's horizontal coordinates are within the danger warning area, or the child's height is not within the safe height range, the smart watch will execute the preset warning plan, including vibration reminders and sending warning messages.
[0113] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the dangerous area warning method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0114] This application also provides a dangerous area warning device, please refer to Figure 2 , the dangerous area early warning device comprises:
[0115] An acquisition module 10 is used to acquire acceleration information and movement direction information to determine the child's path information;
[0116] A positioning module 20 is used to perform spatial positioning on the child path information and the preset initial starting point coordinates according to a preset spatial positioning model to determine the target child coordinates, wherein the spatial positioning model is obtained by training a preset model to be trained using starting point coordinate samples, path information samples and end point coordinate labels;
[0117] The early warning module 30 is used to execute a preset early warning plan if the target child coordinates are within a preset indoor danger early warning area.
[0118] And / or, the dangerous area warning device includes:
[0119] The first acquisition module is used to acquire the starting point coordinate sample, the path information sample and the end point coordinate label;
[0120] A first input module, used to input the starting point coordinate sample and the path information sample into a preset model to be trained;
[0121] A first analysis module, configured to analyze the displacement corresponding to the path information sample according to the model to be trained, and obtain target displacement information;
[0122] A first determination module, used to determine an end point coordinate sample according to the start point coordinate sample and the target displacement information;
[0123] A first judgment module is used to judge the difference between the endpoint coordinate sample and the endpoint coordinate label to obtain a positioning loss value;
[0124] The first loop module is used to return to the step of analyzing the displacement corresponding to the path information sample according to the model to be trained to obtain the target displacement information if the positioning loss value does not meet the preset loss standard, and stop training after the positioning loss value meets the loss standard to obtain a spatial positioning model that meets the loss standard.
[0125] And / or, the early warning module 30 includes:
[0126] The second analysis module is used to analyze the target child coordinates to obtain the child's horizontal coordinates and the child's height;
[0127] A second judgment module is used to judge whether the horizontal coordinates of the child are within a preset indoor danger warning area;
[0128] A first reminder module, configured to perform a vibration reminder and send a warning message to a preset communication device if the horizontal coordinates of the child are within the indoor danger warning area;
[0129] A third judgment module is used to judge whether the height of the child is within a preset indoor safety height range;
[0130] The second reminder module is used to send an early warning message to a preset communication device if the height of the child is not within the indoor safe height range.
[0131] And / or, the acquisition module 10 includes:
[0132] The second acquisition module is used to obtain acceleration information and movement direction information, determine and record the child's path information;
[0133] The first recording module is used to re-record the child path information when the child path information passes through the preset initial starting point coordinates.
[0134] And / or, the dangerous area warning device includes:
[0135] A third analysis module is used to analyze the child path information to obtain horizontal motion path information;
[0136] A third acquisition module is used to obtain a children's indoor exercise heat map and children's step count data according to the horizontal movement path information;
[0137] The first summary module is used to summarize the children's indoor activity report based on the children's indoor exercise heat map and the children's step data, and send the children's indoor activity report to a preset communication device.
[0138] And / or, the dangerous area warning device includes:
[0139] A first calibration module, used for calibrating the initial starting point coordinates;
[0140] The second calibration module is used to obtain indoor danger warning coordinates and calibrate indoor danger warning areas;
[0141] The third calibration module is used to obtain the reference value of the child's height and calibrate the indoor safe height range.
[0142] The dangerous area warning device provided by the present application adopts the dangerous area warning method in the above embodiment, which can solve the technical problem of failing to warn children when they approach dangerous areas indoors. Compared with the prior art, the beneficial effects of the dangerous area warning device provided by the present application are the same as the beneficial effects of the dangerous area warning method provided by the above embodiment, and other technical features in the dangerous area warning device are the same as the features disclosed in the above embodiment method, which will not be described in detail here.
[0143] The present application provides a smart watch, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the dangerous area warning method in the above-mentioned embodiment one.
[0144] Reference below Figure 3 , which shows a schematic diagram of the structure of a smart watch suitable for implementing the embodiment of the present application. The smart watch in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, tablet computers, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PMPs (Portable Media Players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The smart watch shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0145] like Figure 3As shown, the smart watch may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the smart watch are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the smart watch to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a smart watch with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0146] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0147] The smartwatch provided by the present application adopts the dangerous area warning method in the above embodiment, which can solve the technical problem of failing to warn children when they approach dangerous areas indoors. Compared with the prior art, the beneficial effects of the smartwatch provided by the present application are the same as those of the dangerous area warning method provided by the above embodiment, and the other technical features of the smartwatch are the same as those disclosed in the method of the previous embodiment, which will not be described in detail here.
[0148] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0149] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0150] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the dangerous area early warning method in the above-mentioned embodiment.
[0151] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0152] The computer-readable storage medium may be included in the smart watch, or may exist independently without being assembled in the smart watch.
[0153] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the smart watch, the smart watch: obtains acceleration information and movement direction information, and determines the child's path information;
[0154] According to a preset spatial positioning model, the child path information and the preset initial starting point coordinates are spatially positioned to determine the target child coordinates, wherein the spatial positioning model is obtained by training a preset model to be trained using starting point coordinate samples, path information samples, and end point coordinate labels;
[0155] If the target child coordinates are within the preset indoor danger warning area, the preset warning plan is executed.
[0156] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0157] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0158] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0159] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned dangerous area warning method, and can solve the technical problem of failing to provide warning when children approach dangerous areas indoors. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as those of the dangerous area warning method provided by the above-mentioned embodiment, and will not be described in detail here.
[0160] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned dangerous area early warning method when executed by a processor.
[0161] The computer program product provided by the present application can solve the technical problem of failing to provide early warning when children approach dangerous areas indoors. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as those of the dangerous area early warning method provided by the above embodiment, and will not be described in detail here.
[0162] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A dangerous area early warning method, characterized in that: The method includes: Obtain acceleration information and movement direction information to determine the child's path information; According to a preset spatial positioning model, the child path information and the preset initial starting point coordinates are spatially positioned to determine the target child coordinates, wherein the spatial positioning model is obtained by training a preset model to be trained using starting point coordinate samples, path information samples, and end point coordinate labels; If the target child coordinates are within the preset indoor danger warning area, the preset warning plan is executed.
2. The method according to claim 1, characterized in that Before the step of obtaining acceleration information and movement direction information and determining the child's path information, the step further includes: Get the starting point coordinate sample, path information sample and end point coordinate label; Inputting the starting point coordinate sample and the path information sample into a preset model to be trained; Analyzing the displacement corresponding to the path information sample according to the model to be trained to obtain target displacement information; Determine an end point coordinate sample according to the start point coordinate sample and the target displacement information; Determine the difference between the endpoint coordinate sample and the endpoint coordinate label to obtain a positioning loss value; If the positioning loss value does not meet the preset loss standard, return to the step of analyzing the displacement corresponding to the path information sample according to the model to be trained to obtain the target displacement information, and stop training until the positioning loss value meets the loss standard to obtain a spatial positioning model that meets the loss standard.
3. The method according to claim 1, characterized in that If the target child coordinates are within the preset indoor danger warning area, the step of executing the preset warning plan includes: Analyze the target child coordinates to obtain the child's horizontal coordinates and the child's height; Determining whether the horizontal coordinates of the child are within a preset indoor danger warning area; If the horizontal coordinates of the child are within the indoor danger warning area, a vibration reminder is performed and a warning message is sent to a preset communication device; Determining whether the height of the child is within a preset indoor safety height range; If the height of the child is not within the indoor safe height range, an early warning message is sent to a preset communication device.
4. The method according to claim 1, characterized in that The step of obtaining acceleration information and movement direction information and determining the child's path information comprises: Obtain acceleration information and movement direction information, determine and record the child's path information; When the child path information passes through the preset initial starting point coordinates, the child path information is re-recorded.
5. The method according to claim 1, characterized in that If the target child coordinates are within the preset indoor danger warning area, the step of executing the preset warning scheme includes: Analyzing the child's path information to obtain horizontal motion path information; According to the horizontal motion path information, a heat map of children's indoor motion and data on the number of children's steps are obtained; A children's indoor activity report is obtained based on the children's indoor exercise heat map and the children's step count data, and the children's indoor activity report is sent to a preset communication device.
6. The method according to claim 1, characterized in that Before the step of obtaining acceleration information and movement direction information and determining the child's path information, the step further includes: Calibrate the initial starting point coordinates; Obtain indoor danger warning coordinates and calibrate indoor danger warning areas; Obtain children's height reference value and calibrate indoor safe height range.
7. A dangerous area early warning device, characterized in that: The device comprises: An acquisition module is used to obtain acceleration information and movement direction information to determine the child's path information; A positioning module, used to spatially locate the child path information and the preset initial starting point coordinates according to a preset spatial positioning model, and determine the target child coordinates, wherein the spatial positioning model is obtained by training a preset model to be trained with starting point coordinate samples, path information samples and end point coordinate labels; The early warning module is used to execute a preset early warning plan if the target child coordinates are within a preset indoor danger early warning area.
8. A smart watch, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the dangerous area early warning method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the dangerous area early warning method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the dangerous area early warning method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Intelligent terminal-based indoor positioning method and equipment thereof
CN104748735A
Positioning system, positioning method, and intelligent terminal
CN108267767A
Positioning method and mobile terminal
CN109495846A
Early warning method and early warning device based on wearable equipment, equipment and storage medium
CN111754724A
Moving pattern analysis system and method using point of interest
KR1020160136906A