A warning processing method and system for intelligent elderly care platform
By classifying early warning information on the smart elderly care platform and using stickman skeletal coordinate processing technology, the problems of long response time and insufficient privacy protection are solved, fast response and efficient data processing are achieved, data transmission and storage requirements are reduced, and intelligence is improved. Application potential of elderly care platform.
Patent Information
- Application Number
- CN202410840770.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-27
AI Technical Summary
The existing intelligent elderly care platform has problems in early warning processing such as long response time, insufficient privacy protection, low data processing efficiency, large data transmission volume, high network security risks and large storage space requirements, making it difficult to effectively carry out intelligent elderly care monitoring and rapid response.
By pre-classifying the warning information into the first, second and third warning levels, using sensing equipment and cameras for real-time detection, converting the camera images into background pictures and stickman skeleton coordinates, storing and transmitting them to the cloud platform, and automatically judging according to the warning levels And perform corresponding processing, calling the stickman early warning receiving process for video synthesis and playback, reducing data transmission and storage requirements, improving response efficiency and privacy protection.
It achieves faster and more efficient early warning response, protects the privacy of the elderly, reduces data transmission and storage requirements, and improves the industrial application and promotion potential of the smart elderly care platform.
Smart Images

Figure CN118411797B
Abstract
Description
Technical Field
[0001] The present invention relates to an early warning processing method, in particular to an early warning processing method for an intelligent elderly care platform, and further to an early warning processing system adopting the early warning processing method for the intelligent elderly care platform. Background Art
[0002] With the aging of society, the supervision and safety of the elderly are receiving increasing attention. Traditional elderly care supervision methods often rely on manual inspections or simple alarm systems, which have problems such as long response time, insufficient privacy protection, and low data processing efficiency. In order to improve supervision efficiency and response speed while protecting the privacy of the elderly, the early warning processing system of the smart elderly care platform came into being.
[0003] In the existing technology, the smart elderly care platform usually includes components such as sensor equipment, cameras, data processing and storage systems. Although these elderly care monitoring systems can monitor the living environment and behavior status of the elderly in real time, they often lack effective early warning classification and rapid response mechanisms. This is one of the problems. In addition, the existing technology also has certain limitations in data processing and storage, such as large data transmission volume, high network security risks and large storage space requirements.
[0004] Although there are some solutions that attempt to solve the above problems, it is obvious that there is still a lot of room for improvement in the existing technology. For example, how to protect the privacy of the elderly, improve the rapid response of early warnings, and overcome the problems of large data transmission volume, high network security risks and large storage space requirements on the basis of effective intelligent elderly care monitoring. Therefore, it is obvious that developing a technical solution for an intelligent elderly care platform that can comprehensively consider these factors is of great significance to improving the quality of life and safety of the elderly. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a warning processing method for an intelligent elderly care platform, which can improve the privacy protection of the elderly, improve the rapid response of warnings, and overcome the problems of large data transmission volume, high network security risks and large storage space requirements, so as to achieve a more humane warning processing of the intelligent elderly care platform. On this basis, a warning processing system using the warning processing method for the intelligent elderly care platform is further provided.
[0006] In this regard, the present invention provides an early warning processing method for an intelligent elderly care platform, comprising the following steps:
[0007] Step S1, pre-classifying the warning information into a first warning level, a second warning level and a third warning level, wherein the first warning level includes any one or more of a fire warning, a gas warning, a waving for help warning and a one-key help warning, the second warning level includes any one or more of a fall warning, a water leakage warning and a fatigue prompt warning, and the third warning level includes a low battery warning and a device offline warning;
[0008] Step S2, detecting early warning information in real time through sensor equipment and cameras;
[0009] Step S3, converting the camera image into the corresponding background image and stick figure skeleton coordinates, storing the warning information, background image and stick figure skeleton coordinates in the cloud platform, and establishing association information among the warning information, background image and stick figure skeleton coordinates according to the time index, and obtaining a warning information index table corresponding to the elderly information one by one;
[0010] Step S4, transmitting the warning information of the sensor device and the stickman skeleton coordinates to the monitoring platform;
[0011] Step S5,
[0012] The current warning level is automatically determined through the monitoring platform. If the current warning level is the first warning level, the first warning process is immediately contacted and performed. After the warning, step S3 and step S4 are skipped to directly receive and play the real-time monitoring information of the camera; if the current warning level is the second warning level, the on-site situation of the elderly is first checked through the sensor device and / or the camera, and the corresponding second warning process is performed after confirmation, and the matchstick man warning receiving process is called to restore the matchstick man skeleton coordinates, the corresponding background image and the elderly information to convert them into a video with the matchstick man skeleton coordinates, and play them through the browser; if the current warning level is the third warning level, the sensor device and the camera are restored within a preset time range, and only the warning information of the sensor and the matchstick man skeleton coordinates are displayed on the monitoring screen, and then the first warning level, the second warning level and the third warning level are differentially played on the monitoring screen;
[0013] The matchmaker warning receiving process includes the following steps:
[0014] Step A, according to the current warning information number, obtain the warning data stream when the warning occurs through the warning information index table, the warning data stream includes the warning information of the sensor device, the background picture, the stickman skeleton coordinates and the elderly information, and the warning information number includes the warning level number and the elderly information number;
[0015] Step B, through the CANVAS canvas component based on HTML5, the video synthesis of the stickman warning animation is performed according to the obtained background image, frame data of the warning information and the corresponding stickman skeleton coordinates.
[0016] A further improvement of the present invention is that when the current warning level is the first warning level or the second warning level, the matchman warning receiving process is called to restore the matchman skeleton coordinates, the corresponding background image and the elderly information to convert them into a video and play them through a browser.
[0017] A further improvement of the present invention is that the match man warning receiving process comprises the following steps:
[0018] Step A, according to the current warning information number, obtain the warning data stream when the warning occurs through the warning information index table, the warning data stream includes the warning information of the sensor device, the background picture, the stickman skeleton coordinates and the elderly information, and the warning information number includes the warning level number and the elderly information number;
[0019] Step B, through the CANVAS canvas component based on HTML5, the video synthesis of the stickman warning animation is performed according to the obtained background image, frame data of the warning information and the corresponding stickman skeleton coordinates.
[0020] A further improvement of the present invention is that step B comprises the following sub-steps:
[0021] Step B1, mirror-flip the background image of the warning scene and set it as the background image of the CANVAS canvas;
[0022] Step B2, restoring the warning data including the stickman skeleton coordinates frame by frame, and drawing them on the page through the HTML5-based CANVAS canvas;
[0023] Step B3, color processing the key point information of the stickman in the frame data through the CANVAS canvas, and drawing the adjacent key points of the stickman into different colors to highlight the body structure of the stickman;
[0024] Step B4, converting the stickman warning animation obtained after the CANVAS canvas is drawn into a video according to the time sequence.
[0025] A further improvement of the present invention is that, before step B, it also includes a stickman warning animation data stream information parsing step. In the stickman warning animation data stream information parsing step, the encrypted data stream is first parsed into a binary stream data frame format through the BASE64 encoding and decoding algorithm and the RSA encryption algorithm, and each frame of data in the binary stream data is parsed.
[0026] A further improvement of the present invention is that, in step B3, preset colors are assigned to different key points in advance according to the elderly information.
[0027] A further improvement of the present invention is that the stickman skeleton coordinates include the skeleton coordinates of 18 key points, each of the limbs includes 2 key points, each between the upper body and the limbs includes 1 key point, the upper and lower ends of the neck each include 1 key point, and the head includes 4 key points, and the skeleton coordinates of each key point correspond to a unique key point ID number; each key point includes X-axis coordinate data, Y-axis coordinate data and key point information, and the 4 key points of the head include at least four different X-axis coordinate data and two different Y-axis coordinate data.
[0028] A further improvement of the present invention is that, in step S3, the specific process of converting the camera image into the corresponding background image and the match man skeleton coordinates includes the following sub-steps:
[0029] Step S301, dividing the human body image into a stick figure structure connected by the 18 key points according to the preset 18 key points;
[0030] Step S302, determining and displaying the name of the elderly person according to the camera number or face recognition;
[0031] Step S303, identifying the human body according to the thermal imaging principle, and generating a desensitized image according to the stick figure structure, wherein the desensitized image refers to an image including the stick figure skeleton coordinates after removing the background image;
[0032] Step S304, real-time target detection and recognition of human posture are achieved, and the human posture is transmitted and displayed in the form of the stick figure structure.
[0033] A further improvement of the present invention is that in step S3, after converting the camera image into the corresponding background image and stickman skeletal coordinates, it is first determined whether the difference between the current background image and the previous background image is less than a preset threshold. If so, the current background image is discarded, and only the current warning information and the stickman skeletal coordinates are sent and stored to the cloud platform, and point to the previous background image when establishing the associated information; if not, the current warning information, background image and stickman skeletal coordinates are sent and stored to the cloud platform accordingly.
[0034] A further improvement of the present invention is that in the step S3, the stick figure skeletal coordinates corresponding to the pre-designated elderly person are first selected according to the camera number and face recognition; then, the stick figure skeletal coordinates of the designated elderly person are framed and marked by a marking frame; finally, the framed and marked stick figure skeletal coordinates are stored in the early warning information index table, and after storage, the framed and marked stick figure skeletal coordinates and the early warning information of the sensor equipment are transmitted to the monitoring platform together.
[0035] A further improvement of the present invention is that in step S5, when the preset time is exceeded and the stick figure skeletal coordinates corresponding to the pre-specified elderly person are not detected, a warning signal of the second warning level is triggered, the on-site situation is checked through the sensor equipment and / or the camera, and after confirmation, the latest stick figure skeletal coordinates, the corresponding background image and the elderly person's information in the warning information index table are retrieved for restoration to convert them into a video with the stick figure skeletal coordinates, and the elderly person or the elderly person's relatives are contacted. If the contact cannot be made, a special person is arranged to handle it.
[0036] The present invention also provides an early warning processing system for an intelligent elderly care platform, which adopts the early warning processing method for an intelligent elderly care platform as described above, and comprises:
[0037] The warning information classification module classifies the warning information in advance into the first warning level, the second warning level and the third warning level;
[0038] Real-time detection module, which detects early warning information in real time through sensor equipment and cameras;
[0039] The image conversion and storage module converts the camera image into the corresponding background image and stick figure skeleton coordinates, stores the warning information of the sensor device, the background image and the stick figure skeleton coordinates in the cloud platform, and establishes association information between the warning information of the sensor device, the background image and the stick figure skeleton coordinates according to the time index to obtain a warning information index table corresponding to the elderly information;
[0040] The transmission module transmits the warning information of the sensor and the coordinates of the stickman skeleton to the monitoring platform;
[0041] The warning level judgment and differential playback module automatically judges the current warning level through the monitoring platform. If the current warning level is the first warning level, it will immediately contact and perform the first warning processing. After the warning, skip steps S3 and S4 to directly receive and play the real-time monitoring information of the camera; if the current warning level is the second warning level, first check the on-site situation of the elderly through the sensor equipment and / or the camera, and perform the corresponding second warning processing after confirmation, call the stickman warning receiving process, restore the stickman skeletal coordinates, the corresponding background image and the elderly information to convert them into a video with stickman skeletal coordinates, and play them through the browser; if the current warning level is the third warning level, the sensor equipment and the camera are restored within a preset time range, and only the warning information of the sensor and the stickman skeletal coordinates are displayed on the monitoring screen, and then the first warning level, the second warning level and the third warning level are differentially played on the monitoring screen.
[0042] Compared with the prior art, the beneficial effects of the present invention are as follows: through the principle of thermal imaging and in accordance with the stickman structure, the elderly in the monitoring screen are virtualized into stickman skeletal coordinates, which are used as the basis for storage, and the behavior is analyzed and warned; when the current warning level is the first warning level, step S3 and step S4 are skipped after the warning to directly receive and play the real-time monitoring information of the camera, so as to respond to the warning processing more quickly and ensure the timeliness and effectiveness of the response; when the current warning level is the second warning level, the stickman warning receiving process is called to restore the stickman skeletal coordinates, the corresponding background image and the elderly information to convert them into a video and play them through a browser; when the current warning level is the third warning level, the sensor equipment and the camera are restored within a preset time range, and only the warning information of the sensor and the stickman skeletal coordinates are displayed in the monitoring screen, and then the first warning level, the second warning level and the third warning level are differentially played on the monitoring screen. Therefore, the present invention can effectively improve the privacy protection of the elderly on the basis of effectively carrying out intelligent elderly care monitoring, and can also perform early warning processing and differential playback in different ways according to different warning levels, thereby ensuring timely and efficient response to early warnings. Through differentiated playback, the centrally monitored images are more recognizable and clear at a glance, thus realizing the early warning processing of a highly humanized intelligent elderly care platform; at the same time, it can also effectively reduce the demand for data transmission, network security and storage space, reduce unnecessary redundant data, and is more conducive to the industrial application and promotion of intelligent elderly care platforms. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a schematic diagram of the working process of an embodiment of the present invention;
[0044] Figure 2It is a workflow diagram of a matchstick man warning receiving process according to an embodiment of the present invention;
[0045] Figure 3 The stick figure skeleton coordinates of an embodiment of the present invention include 18 key structural schematic diagrams;
[0046] Figure 4 It is a schematic diagram of the effect of color processing of the key point information of a stick figure in frame data by using the CANVAS canvas in one embodiment of the present invention;
[0047] Figure 5 The present invention is a schematic diagram of the screen effect of synthesizing a stickman warning animation video according to an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In the description of the present invention, if "several" is involved, it means more than one; if "multiple" is involved, it means more than two; if "greater than", "less than", or "exceed" is involved, it should be understood as not including the number itself; if "above", "below", or "within" is involved, it should be understood as including the number itself. If "first", "second", etc. are involved, they should be understood as being used only to distinguish the names of the same or similar technical features, and should not be understood as implying / indicating the relative importance of the technical features, the number of the technical features, or the order of the technical features.
[0049] The preferred embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0050] like Figures 1 to 5 As shown, this embodiment provides an early warning processing method for a smart elderly care platform, comprising the following steps:
[0051] Step S1, pre-classifying the warning information into a first warning level, a second warning level and a third warning level, wherein the first warning level includes any one or more of a fire warning, a gas warning, a waving for help warning and a one-key help warning, the second warning level includes any one or more of a fall warning, a water leakage warning and a fatigue prompt warning, and the third warning level includes a low battery warning and a device offline warning;
[0052] Step S2, detecting early warning information in real time through sensor equipment and cameras;
[0053] Step S3, converting the camera image into the corresponding background image and stick figure skeleton coordinates, storing the warning information, background image and stick figure skeleton coordinates in the cloud platform, establishing association information among the warning information, background image and stick figure skeleton coordinates according to the time index, and obtaining a warning information index table corresponding to the elderly information one by one;
[0054] Step S4, transmitting the warning information of the sensor device and the stickman skeleton coordinates to the monitoring platform;
[0055] Step S5, automatically judging the current warning level through the monitoring platform, if the current warning level is the first warning level, immediately contacting and performing the first warning process, skipping steps S3 and S4 after the warning, directly receiving and playing the real-time monitoring information of the camera; if the current warning level is the second warning level, first checking the on-site situation of the elderly through the sensor device and / or the camera, and performing the corresponding second warning process after confirmation, calling the stickman warning receiving process, restoring the stickman skeleton coordinates, the corresponding background image and the elderly information, so as to convert them into a video with the stickman skeleton coordinates, and playing them through the browser; if the current warning level is the third warning level, restoring the sensor device and the camera within a preset time range, and only displaying the warning information of the sensor and the stickman skeleton coordinates on the monitoring screen, and then differentially playing the first warning level, the second warning level and the third warning level on the monitoring screen;
[0056] The matchmaker warning receiving process includes the following steps:
[0057] Step A, according to the current warning information number, obtain the warning data stream when the warning occurs through the warning information index table, the warning data stream includes the warning information of the sensor device, the background picture, the stickman skeleton coordinates and the elderly information, and the warning information number includes the warning level number and the elderly information number;
[0058] Step B, through the CANVAS canvas component based on HTML5, the video synthesis of the stickman warning animation is performed according to the obtained background image, frame data of the warning information and the corresponding stickman skeleton coordinates.
[0059] The warning information described in this embodiment includes all warning information detected by the sensor device and the camera, including but not limited to fire and smoke warning, gas warning, waving for help warning, one-click help warning, fall warning, water leakage warning, fatigue warning, low battery warning and device offline warning, etc.; among them, the warning information obtained by the sensor device is called the warning information of the sensor device, including but not limited to fire and smoke warning, gas warning, waving for help warning, water leakage warning, etc. The waving for help warning can be realized by an infrared sensor; the one-click help warning is preferably realized by a physical one-click help button.
[0060] More specifically, when the warning information includes any one or more of the fire and smoke warning, gas warning, waving for help warning and one-button help warning, the current warning level is judged to be the first warning level, and the elderly and / or their relatives are contacted immediately. It is determined whether to call the police and arrange for a special person to handle the situation on site based on the warning information. For example, when a fire and smoke warning and / or gas warning occurs, it is necessary to call the fire department and arrange for a special person to handle the situation on site. When a waving for help warning and a one-button help warning occur, 120 is called according to the needs and a special person is arranged to handle the situation on site. When the warning information includes any one or more of the fall warning, water leakage warning and fatigue warning, the current warning level is judged to be the second warning level, and the elderly's on-site situation is first checked through the sensor equipment and / or camera, and the elderly are contacted after confirming that there is an abnormality, so as to avoid disturbing the elderly due to false alarms. If the contact cannot be made, a special person is arranged to handle the situation on site, so as to avoid delaying the best processing time. When the warning information includes a low battery warning and / or a device offline warning, the current warning level is judged to be the third warning level, and the sensor device and camera are restored within a preset time, such as within 24 hours or other preset time, and the latest device status is updated after the restoration process to ensure reliable operation of the equipment.
[0061] In the existing smart elderly care platform, what is directly monitored, transmitted and uploaded are actual surveillance videos. Although this existing technical solution can also realize the functions of monitoring and early warning alarm, it is obvious that the privacy of the monitored elderly is difficult to protect. Therefore, cameras cannot be installed in special occasions such as bathrooms, but only one-key help buttons can be installed. In actual application, special occasions such as bathrooms are high-frequency scenes where accidents are prone to occur to the elderly. In this regard, the existing technology obviously cannot meet the actual application needs of smart elderly care. In addition, in the existing video transmission and storage process, it is also easy to generate security risks such as information leakage, which puts higher requirements on network security. At the same time, the demand for storage space will also increase significantly with the number of users and the passage of time, and it is not well suitable for actual industrial application and promotion.
[0062] It is worth noting that, unlike the prior art, in the step S3 of the present embodiment, the camera image is first converted into the corresponding background image and the stick figure skeleton coordinates, for example, the trimap-free algorithm and other cutout algorithms are used to separate the elderly person's body from the background image, and the key points of the human body are identified, and the skeleton coordinates of the 18 pre-set key points are selected; or, the human body is directly identified by the thermal imaging principle, preferably the human body posture recognition algorithm of Human PoseEstimation is used, and the human body is identified as 18 key skeleton nodes according to the 18 key points of the stick figure structure to generate a desensitized image, and this image desensitization process can be implemented based on the open source library provided by the OPEN POSE algorithm; then the warning information, background image and stick figure skeleton coordinates are stored in the cloud platform, and the warning information, background image and stick figure skeleton coordinates are associated with each other according to the time index to obtain a warning information index table corresponding to the elderly person's information, so that what is uploaded and stored in the cloud platform is the warning information, background image and stick figure skeleton coordinates and their corresponding warning information index table.
[0063] Through this processing, firstly, the relatively fixed information such as the background image can be uploaded as an image instead of a video, which can greatly reduce the data transmission requirements and the storage space occupied; secondly, what is uploaded and stored is no longer a real-time video or an image including a human body, but data virtualized as the skeletal coordinates of a stick figure, and the skeletal coordinates of the stick figure are still separated from the background image, such as Figure 3 As shown, the privacy of the elderly can be well guaranteed, and it is also convenient to reduce the demand for data transmission, network security and storage space. Third, based on the advantages mentioned above, the warning information, background image and stickman skeleton coordinates of the sensor equipment are associated with each other according to the time index to obtain a warning information index table corresponding to the elderly information. When an actual warning occurs, the corresponding background image, stickman skeleton coordinates and elderly information can be quickly retrieved according to the time when the warning occurs by querying the warning information index table, and the response speed is timely and efficient.
[0064] Then, in the step S4, the present embodiment transmits the early warning information of the sensor and the matchman skeleton coordinates to the monitoring platform, so that the monitoring platform only needs to receive the early warning information of the sensor and the matchman skeleton coordinates, without processing background images and data such as elderly information, and through the early warning information of the sensor and the matchman skeleton coordinates, it can be determined whether an early warning situation occurs. Such a design can not only effectively reduce the computing power and storage capacity requirements of the monitoring platform, but also further ensure the privacy and safety of the elderly, and facilitate the industrial application and promotion of the intelligent elderly care platform. For the monitoring platform, when there is no warning or the third warning level occurs, the monitoring interface corresponding to each elderly person is very concise and clear, including only the warning information of each sensor and the stick figure skeleton coordinates; when the warning of the second warning level occurs, the corresponding background image, stick figure skeleton coordinates and elderly information can be quickly retrieved according to the time of the warning by querying the warning information index table, and the response speed is timely and efficient; when the warning of the third warning level occurs, after the warning, step S3 and step S4 are skipped, and the picture conversion and processing are no longer performed, but the real-time monitoring information of the camera is directly received and played to ensure immediate response in an emergency. The warning information of the sensor includes but is not limited to the warning information corresponding to sensors such as smoke sensors, gas sensors, water level sensors and infrared sensors; the stick figure skeleton coordinates judge the human posture according to the coordinate data, and judge in combination with historical data to judge whether the current human posture is abnormal. This is the same as the existing human posture judgment principle based on target detection or thermal imaging processing, and will not be described in detail.
[0065] When the current warning level is the third warning level, it means that the current warning is only a warning of the device status, and therefore, the match man warning receiving process is not triggered and called. Different from this, in this embodiment, when the current warning level is the first warning level or the second warning level, it means that the current warning information is no longer a warning of the device status, but involves personal and / or property safety. At this time, the match man warning receiving process is called, and the corresponding match man skeleton coordinates, background image and elderly information are quickly obtained by querying the warning information index table, and the match man skeleton coordinates, the corresponding background image and the elderly information are restored to convert them into a video and play them through a browser.
[0066] That is to say, the difference from the prior art lies in that, when the first warning level or the second warning level does not occur, the corresponding information is only the warning information of the sensor and the stickman skeleton coordinates, and the monitoring screen displays simple warning information and stickman skeleton coordinates without a background image.
[0067] After the occurrence of a warning of the second warning level, the stickman's skeletal coordinates, the corresponding background image and the elderly person's information will be restored, converted into a video and played through a browser, thereby ensuring corresponding speed and efficiency; in this way, intuitively, the skeletal coordinate screen with the background image is directly differentiated from the monitoring screen of the third warning level, so that the monitor and the monitoring platform can distinguish them at a glance through the difference in the screen, which is intuitive and clear, so as to more quickly and accurately locate the elderly person and his current status corresponding to the warning of the second warning level.
[0068] Preferably, when this embodiment is converted into a video and played through a browser, the video corresponding to the warning will pop up and hang on the front end of the monitoring platform until the guardian confirms and clicks to close, indicating that the warning has been received / confirmed, thereby effectively ensuring that the warning information is processed in a timely manner.
[0069] More preferably, when the current warning level is the first warning level, it is in the most urgent situation. Preferably, when the warning information of the first warning level is received, the real-time monitoring information of the camera can be directly received through the connection protocol such as http, websocket or mqtt, that is, the processing step of the stickman skeleton coordinates is skipped, and the latest monitoring information is directly obtained, so as to obtain the current actual situation more quickly and accurately, and avoid causing greater personal safety problems and / or property loss problems. In other words, after the first warning level is triggered, the screen conversion and processing of step S3 are no longer performed, but steps S3 and S4 are directly skipped, and the real-time monitoring information of the camera is directly received and played to ensure immediate response in an emergency. On the monitoring screen, this is a real-time screen that is completely different from the second warning level and the third warning level. Even in application scenarios such as nursing homes, multiple monitoring screens are used to monitor multiple elderly people at the same time, and the warning levels of different monitoring screens can be distinguished at a glance, and the degree of recognition and humanized design is very high.
[0070] To sum up, this embodiment uses the principle of thermal imaging and the stickman structure to virtualize the elderly in the monitoring screen into stickman skeletal coordinates, which are used as the basis for storage, and the behavior is analyzed and warned; when the current warning level is the first warning level, step S3 and step S4 are skipped after the warning to directly receive and play the real-time monitoring information of the camera, so as to respond to the warning processing more quickly and ensure the timeliness and effectiveness of the response; when the current warning level is the second warning level, the stickman warning receiving process is called to restore the stickman skeletal coordinates, the corresponding background image and the elderly information to convert them into a video and play them through the browser; when the current warning level is the third warning level, the sensor equipment and the camera are restored within a preset time range, and only the warning information of the sensor and the stickman skeletal coordinates are displayed in the monitoring screen, and then the first warning level, the second warning level and the third warning level are differentially played on the monitoring screen.
[0071] Therefore, this embodiment can effectively improve the privacy protection of the elderly on the basis of effectively carrying out intelligent elderly care monitoring, and can also perform warning processing and differential playback in different ways according to different warning levels, thereby ensuring timely and efficient response to warnings. Through differentiated playback, the centrally monitored images are more recognizable and clear at a glance, thus realizing the warning processing of a highly humanized intelligent elderly care platform; at the same time, it can also effectively reduce the demand for data transmission, network security and storage space, reduce unnecessary redundant data, and is more conducive to the industrial application and promotion of intelligent elderly care platforms.
[0072] The difference from the prior art is that the matchstick man warning receiving process described in this embodiment includes the following steps:
[0073] Step A, according to the current warning information number, obtain the warning data stream when the warning occurs through the warning information index table, the warning data stream includes the warning information of the sensor device, the background picture, the stickman skeleton coordinates and the elderly information, and the warning information number includes the warning level number and the elderly information number; that is, in this embodiment, the corresponding warning level number is pre-numbered for different sensor devices, such as smoke sensors, gas sensors, etc., which are pre-set to the code corresponding to the first warning level; then the elderly information is also numbered accordingly, and the index content corresponding to the number can include the elderly information such as the name, age, home address, relatives information and contact number of the elderly, so as to protect the privacy and safety of the elderly in normal times, and to quickly and accurately find the corresponding warning information data stream when the warning situation occurs;
[0074] Step B, through the CANVAS canvas component based on HTML5, carries out the video synthesis of the stickman early warning animation according to the background picture obtained, the frame data of the early warning information and the corresponding stickman skeleton coordinates. The CANVAS canvas component based on HTML5 is also called HTML5-CANVAS, and Canvas is a canvas component that directly uses JavaScript to draw based on the HTML5 standard. Of course, the scheme described in the present embodiment belongs to one of preferred implementation schemes. In practical applications, except the CANVAS canvas component based on HTML5, the video synthesis of the stickman early warning animation can also be realized according to other video synthesis software.
[0075] The step B described in this embodiment preferably includes the following sub-steps:
[0076] Step B1, mirror-flip the background image of the warning scene and set it as the background image of the CANVAS canvas to restore the video background that can be directly played;
[0077] Step B2, restoring the warning data including the stickman skeleton coordinates frame by frame, and drawing them on the page frame by frame in chronological order through the HTML5-based CANVAS canvas to obtain a preliminary stickman warning animation;
[0078] Step B3, color processing is performed on the key point information of the stickman in the frame data through the CANVAS canvas, such as Figure 4 As shown, the adjacent key points of the stickman are painted in different colors to highlight the body structure of the stickman;
[0079] Step B4, converting the stickman warning animation obtained after the CANVAS canvas is drawn into a video according to the time sequence, so as to facilitate direct playback through the browser.
[0080] In the process of restoring the warning data frame by frame in this embodiment, each frame of data contains two hexadecimal values with coordinate information. The position of the stickman in the canvas is located by these two hexadecimal values with coordinate information, and then the struct constructor is used to locate and restore each frame of data according to the corresponding coordinate position to synthesize the animation.
[0081] Preferably, the present embodiment further includes a stickman warning animation data stream information parsing step before step B. In the stickman warning animation data stream information parsing step, the encrypted data stream is first parsed into a binary stream data frame format through the BASE64 encoding and decoding algorithm and the RSA encryption algorithm, and each frame of data in the binary stream data is parsed, so as to further realize encryption and parsing of the stickman warning animation data stream, further improve its privacy and security, and provide a basis for subsequent video synthesis.
[0082] like Figure 4 and Figure 5 As shown, in step B3 of this embodiment, different key points can also be assigned preset colors in advance according to the information of the elderly. That is to say, in this embodiment, different color assignments can be set in advance for key points of different parts of the elderly; different color assignments can also be set in advance for different key points according to the actual situation of the user for different elderly people, so as to highlight the main focus of each user's body structure more timely and effectively. For example, if the lumbar spine of the elderly A is not good, then the key points corresponding to the lumbar spine of the elderly A are pre-set to the most conspicuous red; when it is detected that the elderly A stands or sits for a long time, a fatigue prompt warning is issued; when it is detected that the key points corresponding to the hand are frequently or repeatedly close to or even overlapped with the key points corresponding to the lumbar spine, it indicates that it may be a recurrence of lumbar spondylosis, and the second warning level is also triggered. For another example, if the elderly's legs are injured, the key points of the injured legs are pre-set to the most conspicuous red, etc., to improve the humanization and personalization of the product, and more prominently display the body structure of the stickman for each user's own situation.
[0083] like Figure 3 As shown, the stickman skeleton coordinates described in this embodiment preferably include the skeleton coordinates of 18 key points, each of the limbs includes 2 key points, each between the upper body and the limbs includes 1 key point, the upper and lower ends of the neck each include 1 key point, and the head includes 4 key points, and the skeleton coordinates of each key point correspond to a unique key point ID number, which is convenient for real-time analysis and recognition of the user's posture according to the movement trajectory and changes of the key point; each key point includes X-axis coordinate data, Y-axis coordinate data and key point information, and the 4 key points of the head include at least four different X-axis coordinate data and two different Y-axis coordinate data.
[0084] It should be noted that the four key points of the head include at least four different X-axis coordinate data and two different Y-axis coordinate data, such as Figure 3 As shown, the key points of the head are staggered in the horizontal and vertical directions. Regardless of whether the user is standing, sitting or lying down, the user's posture can be effectively and accurately identified, avoiding the influence of posture detection effect due to different states.
[0085] In step S3 of this embodiment, the specific process of converting the camera image into the corresponding background image and the stickman skeleton coordinates includes the following sub-steps:
[0086] Step S301, dividing the human body image into a stick figure structure connected by the 18 key points according to the preset 18 key points;
[0087] Step S302, determining and displaying the name of the elderly according to the camera number or face recognition; in this embodiment, the camera number is preferably used to determine and display the name of the elderly, so as to avoid the disadvantage that some users cannot respond to the face recognition command and improve the humanized design of the product;
[0088] Step S303, identifying the human body according to the thermal imaging principle, and generating a desensitized image according to the stick figure structure, wherein the desensitized image refers to an image including the stick figure skeleton coordinates after removing the background image, such as Figure 3 As shown;
[0089] Step S304, real-time target detection and recognition of human posture is achieved, and the human posture is transmitted and displayed in the form of the stickman structure, which effectively reduces the demand for data transmission, network security and storage space, and improves the privacy of users.
[0090] It is worth noting that, since the step S3 described in the present embodiment first converts the camera screen into the corresponding background image and the stick figure skeleton coordinates, and then uploads the warning information, the background image and the stick figure skeleton coordinates, this method has greatly reduced the network and storage resources occupied by uploading the monitoring screen directly; however, there will still be unnecessary data redundancy. For example, in practical applications, the position of the camera is fixed, so its background image is also basically unchanged, such as the photo of a certain room, and the change may only be the placement position of some objects in the room. In order to further reduce this unnecessary data redundancy, in the step S3 described in the present embodiment, after converting the camera screen into the corresponding background image and the stick figure skeleton coordinates, first determine whether the difference between the current background image and the previous background image is less than the preset threshold value, if so, then discard the current background image, only send and store the current warning information and the stick figure skeleton coordinates to the cloud platform, and point to the previous background image when establishing the associated information; if not, then send and store the current warning information, background image and the stick figure skeleton coordinates to the cloud platform accordingly. This embodiment can further reduce the network and storage resources occupied by such a design. For example, if the elderly are in the same room for a continuous period of time, only one background picture is needed. It can also effectively reduce the index table of the warning information, facilitate the rapid query of the table after the warning is triggered, and avoid affecting the response speed due to excessive data volume. The preset threshold refers to the preset background differentiation threshold, which can be set and adjusted according to the actual situation, and the default setting is 15%.
[0091] In practical applications, such as Figure 5As shown, in the indoor activity space, there may be only one single old man, or there may be multiple people at the same time. Then, when multiple people are in the same indoor activity space, the corresponding generated may be the stickman skeleton coordinates of multiple human bodies. In this case, if the stickman skeleton coordinates corresponding to different human bodies are displayed in the same way, it is impossible to monitor the actually designated old man well. Therefore, in the present embodiment, in the step S3, it is preferred to first select the stickman skeleton coordinates corresponding to the pre-designated old man according to the number and face recognition of the camera; then, the stickman skeleton coordinates of the designated old man are framed and marked by the marked frame; finally, the stickman skeleton coordinates with frame selection and marking are stored in the early warning information index table, and after storage, the stickman skeleton coordinates with frame selection and marking and the early warning information of the sensing device are transmitted to the monitoring platform together. Through this method of frame selection and marking of a specific user, even if multiple human bodies are within the monitoring range, effective monitoring of the designated old man can be achieved quickly and accurately.
[0092] Furthermore, in step S5 described in the present embodiment, when the preset time is exceeded and the stick figure skeletal coordinates corresponding to the pre-specified elderly person are not detected, a warning signal of the second warning level is triggered, the on-site situation is checked through the sensor equipment and / or the camera, and after confirmation, the latest stick figure skeletal coordinates, the corresponding background image and the elderly person's information in the warning information index table are retrieved for restoration to convert them into a video with the stick figure skeletal coordinates, and the elderly person or his relatives are contacted. If they cannot be contacted, a special person is arranged to handle it. The reason for designing this embodiment is that the elderly, a special group, are prone to getting lost or having other accidents due to illness and other reasons. Therefore, if they do not return to the monitoring range within the preset time, new stickman skeletal coordinates cannot be collected. At this time, on the one hand, the on-site situation can be checked through sensing equipment and / or cameras, and after confirmation, the latest stickman skeletal coordinates, corresponding background pictures and elderly information in the early warning information index table are retrieved for restoration to convert into a video with stickman skeletal coordinates. On the basis of preventing false alarms, the video before the elderly disappeared is restored to provide data clues for finding the elderly. On the other hand, the elderly or their relatives are contacted at the same time. If they cannot be contacted, a special person is arranged to handle it. On the basis of preventing false alarms, the best search time is well avoided.
[0093] This embodiment also provides an early warning processing system for an intelligent elderly care platform, which adopts the early warning processing method for an intelligent elderly care platform as described above, and includes:
[0094] The warning information classification module classifies the warning information in advance into the first warning level, the second warning level and the third warning level;
[0095] Real-time detection module, which detects early warning information in real time through sensor equipment and cameras;
[0096] The image conversion and storage module converts the camera image into the corresponding background image and stick figure skeleton coordinates, stores the warning information of the sensor device, the background image and the stick figure skeleton coordinates in the cloud platform, and establishes association information between the warning information of the sensor device, the background image and the stick figure skeleton coordinates according to the time index to obtain a warning information index table corresponding to the elderly information;
[0097] The transmission module transmits the warning information of the sensor and the coordinates of the stickman skeleton to the monitoring platform;
[0098] The warning level judgment and differential playback module automatically judges the current warning level through the monitoring platform. If the current warning level is the first warning level, it will immediately contact and perform the first warning processing. After the warning, skip steps S3 and S4 to directly receive and play the real-time monitoring information of the camera; if the current warning level is the second warning level, first check the on-site situation of the elderly through the sensor equipment and / or the camera, and perform the corresponding second warning processing after confirmation, call the stickman warning receiving process, restore the stickman skeletal coordinates, the corresponding background image and the elderly information to convert them into a video with stickman skeletal coordinates, and play them through the browser; if the current warning level is the third warning level, the sensor equipment and the camera are restored within a preset time range, and only the warning information of the sensor and the stickman skeletal coordinates are displayed on the monitoring screen, and then the first warning level, the second warning level and the third warning level are differentially played on the monitoring screen.
[0099] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A warning processing method for a smart elderly care platform, characterized in that: The following steps are involved: Step S1, pre-classifying the warning information into a first warning level, a second warning level and a third warning level, wherein the first warning level includes any one or more of a fire warning, a gas warning, a waving for help warning and a one-key help warning, the second warning level includes any one or more of a fall warning, a water leakage warning and a fatigue prompt warning, and the third warning level includes a low battery warning and a device offline warning; Step S2, detecting early warning information in real time through sensor equipment and cameras; Step S3, first convert the camera image into the corresponding background image and stick figure skeleton coordinates, then store the warning information, background image and stick figure skeleton coordinates in the cloud platform, and establish association information between the warning information, background image and stick figure skeleton coordinates according to the time index to obtain a warning information index table corresponding to the elderly information; Step S4, transmitting the warning information of the sensor device and the stickman skeleton coordinates to the monitoring platform; Step S5, automatically judging the current warning level through the monitoring platform, when no warning situation occurs, the monitoring screen only displays the warning information of the sensor and the stick figure skeleton coordinates; if the current warning level is the first warning level, immediately contact and perform the first warning process, and after the warning, skip steps S3 and S4 to directly receive and play the real-time monitoring information of the camera; when the first warning level or the second warning level does not occur, the monitoring screen displays the warning information and the stick figure skeleton coordinates without the background image, if the current warning level is the second warning level, first check the on-site situation of the elderly through the sensor device and / or the camera, and perform the corresponding second warning process after confirmation, call the stick figure warning receiving process, restore the stick figure skeleton coordinates, the corresponding background image and the elderly information to convert them into a video with the stick figure skeleton coordinates, and play them through the browser; if the current warning level is the third warning level, restore the sensor device and the camera within a preset time range, and only display the warning information and the stick figure skeleton coordinates of the sensor in the monitoring screen, and then perform differential playback of the first warning level, the second warning level and the third warning level on the monitoring screen; The matchmaker warning receiving process includes the following steps: Step A, according to the current warning information number, obtain the warning data stream when the warning occurs through the warning information index table, the warning data stream includes the warning information of the sensor device, the background picture, the stickman skeleton coordinates and the elderly information, and the warning information number includes the warning level number and the elderly information number; Step B, through the CANVAS canvas component based on HTML5, the video synthesis of the stickman warning animation is performed according to the obtained background image, frame data of the warning information and the corresponding stickman skeleton coordinates.
2. The early warning processing method for the smart elderly care platform according to claim 1 is characterized in that: The step B comprises the following sub-steps: Step B1, mirror-flip the background image of the warning scene and set it as the background image of the CANVAS canvas; Step B2, restoring the warning data including the stickman skeleton coordinates frame by frame, and drawing them on the page through the HTML5-based CANVAS canvas; Step B3, color processing the key point information of the stickman in the frame data through the CANVAS canvas, and drawing the adjacent key points of the stickman into different colors to highlight the body structure of the stickman; Step B4, converting the stickman warning animation obtained after the CANVAS canvas is drawn into a video according to the time sequence.
3. The early warning processing method for the smart elderly care platform according to claim 1 is characterized in that: Before step B, a stickman warning animation data stream information parsing step is also included. In the stickman warning animation data stream information parsing step, the encrypted data stream is first parsed into a binary stream data frame format through the BASE64 encoding and decoding algorithm and the RSA encryption algorithm, and each frame of data in the binary stream data is parsed.
4. The early warning processing method for the smart elderly care platform according to claim 2 is characterized in that: In step B3, preset colors are assigned to different key points in advance according to the information of the elderly.
5. The early warning processing method for the smart elderly care platform according to any one of claims 1 to 4, characterized in that: The stickman skeleton coordinates include the skeleton coordinates of 18 key points, each of the limbs includes 2 key points, each between the upper body and the limbs includes 1 key point, the upper and lower ends of the neck each include 1 key point, and the head includes 4 key points, and the skeleton coordinates of each key point correspond to a unique key point ID number; each key point includes X-axis coordinate data, Y-axis coordinate data and key point information, and the 4 key points of the head include at least four different X-axis coordinate data and two different Y-axis coordinate data.
6. The early warning processing method for the smart elderly care platform according to any one of claims 1 to 4, characterized in that: In step S3, the specific process of converting the camera image into the corresponding background image and the stickman skeleton coordinates includes the following sub-steps: Step S301, dividing the human body image into a stick figure structure connected by the 18 key points according to the preset 18 key points; Step S302, determining and displaying the name of the elderly person according to the camera number or face recognition; Step S303, identifying the human body according to the thermal imaging principle, and generating a desensitized image according to the stick figure structure, wherein the desensitized image refers to an image including the stick figure skeleton coordinates after removing the background image; Step S304, real-time target detection and recognition of human posture are achieved, and the human posture is transmitted and displayed in the form of the stick figure structure.
7. The early warning processing method for the smart elderly care platform according to any one of claims 1 to 4, characterized in that: In step S3, after converting the camera image into the corresponding background image and stick figure skeleton coordinates, first determine whether the difference between the current background image and the previous background image is less than a preset threshold. If so, discard the current background image, and only send and store the current warning information and stick figure skeleton coordinates to the cloud platform, and point to the previous background image when establishing the associated information; if not, send and store the current warning information, background image and stick figure skeleton coordinates to the cloud platform accordingly.
8. The early warning processing method for the smart elderly care platform according to any one of claims 1 to 4, characterized in that: In the step S3, firstly, the stick figure skeletal coordinates corresponding to the pre-designated elderly person are selected according to the camera number and face recognition; then, the stick figure skeletal coordinates of the designated elderly person are framed and marked by a marking frame; finally, the framed and marked stick figure skeletal coordinates are stored in the early warning information index table, and after storage, the framed and marked stick figure skeletal coordinates and the early warning information of the sensor equipment are transmitted to the monitoring platform together.
9. The early warning processing method for the smart elderly care platform according to claim 8, characterized in that: In step S5, when the preset time is exceeded and the stick figure skeletal coordinates corresponding to the pre-specified elderly person are not detected, a warning signal of the second warning level is triggered, the on-site situation is checked through the sensor equipment and / or the camera, and after confirmation, the latest stick figure skeletal coordinates, the corresponding background image and the elderly person's information in the warning information index table are retrieved for restoration to convert into a video with the stick figure skeletal coordinates, and the elderly person or his relatives are contacted. If the contact cannot be made, a special person is arranged to handle it.
10. An early warning processing system for an intelligent elderly care platform, characterized in that: The early warning processing method for the smart elderly care platform according to any one of claims 1 to 9 is adopted, and includes: The warning information classification module classifies the warning information in advance into the first warning level, the second warning level and the third warning level; Real-time detection module, which detects early warning information in real time through sensor equipment and cameras; The image conversion and storage module converts the camera image into the corresponding background image and stick figure skeleton coordinates, stores the warning information of the sensor device, the background image and the stick figure skeleton coordinates in the cloud platform, and establishes association information between the warning information of the sensor device, the background image and the stick figure skeleton coordinates according to the time index to obtain a warning information index table corresponding to the elderly information; The transmission module transmits the warning information of the sensor and the coordinates of the stickman skeleton to the monitoring platform; The warning level judgment and difference playback module automatically judges the current warning level through the monitoring platform. When no warning occurs, the monitoring screen only displays the warning information of the sensor and the stickman skeleton coordinates; if the current warning level is the first warning level, the first warning processing is immediately contacted and performed, and after the warning, step S3 and step S4 are skipped to directly receive and play the real-time monitoring information of the camera; when the first warning level or the second warning level does not occur, the monitoring screen displays the warning information and the stickman skeleton coordinates without the background image. If the current warning level is the second warning level, the on-site situation of the elderly is first checked through the sensor device and / or the camera, and the corresponding second warning processing is performed after confirmation, and the stickman warning receiving process is called to restore the stickman skeleton coordinates, the corresponding background image and the elderly information to convert them into a video with the stickman skeleton coordinates, and play them through the browser; if the current warning level is the third warning level, the sensor device and the camera are restored within a preset time range, and only the warning information and the stickman skeleton coordinates of the sensor are displayed in the monitoring screen, and then the first warning level, the second warning level and the third warning level are differentially played on the monitoring screen.
Citation Information
Cited By
Intelligent old-age care supervision system based on AI intelligent agent
CN120877460A
