Smart home security system based on Internet of Things

By using an IoT-based smart home security system to monitor and analyze gas concentration and activity information in real time, security control can be implemented and remote early warnings can be issued. This solves the problems of insufficient prevention and delayed rescue in traditional systems, and achieves safe and effective home protection.

CN121884536APending Publication Date: 2026-04-17HANGZHOU YILIANXUN TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610188938.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-10
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Traditional smart home security systems cannot prevent gas explosions in advance, ignore the danger of objects to the monitored targets, and cannot obtain timely rescue, resulting in incomplete safety protection.

Method used

The system employs an IoT-based smart home security system. The data monitoring module monitors regional information in real time, the safety hazard analysis module identifies gas hazards and dangerous activities, the safety protection module performs security control, and the remote early warning module sends warnings to local rescue terminals.

Benefits of technology

It enables accurate assessment of gas hazards and dangerous activities, prevents gas explosions in advance, facilitates timely rescue, and ensures family safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121884536A_ABST
    Figure CN121884536A_ABST
Patent Text Reader

Abstract

The invention discloses a smart home security system based on the Internet of Things, and relates to the technical field of smart home, the smart home security system comprises a data monitoring module, a potential safety hazard analysis module, a security protection module, a remote early warning module and a database, a house is divided into regions, and the information of each region is monitored in real time; whether gas danger exists in the house or not is judged according to the change of the gas concentration in each area, meanwhile, whether dangerous activities exist in the house or not is judged according to the activity information and the body data of the monitoring target and the dangerous article list of the monitoring target, and security and protection regulation and control are conducted on the smart home according to the gas concentration and the dangerous activities. Meanwhile, casualty risks of people in the house are analyzed, remote early warning is carried out on the local rescue terminal, prevention can be carried out in advance, rescue can be carried out in time, the effectiveness of smart home safety protection and the accuracy of potential safety hazard judgment are guaranteed, and the safety of people in the house is also guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart home technology, and more specifically to a smart home security system based on the Internet of Things. Background Technology

[0002] With the rapid iteration of IoT, AI and automation control technologies, smart homes have become the core direction for the intelligent upgrading of living spaces, and security systems, as a key carrier for protecting family safety, are seeing their technological applications and market demand continue to rise.

[0003] Traditional smart home security systems determine the presence of gas hazards in a house by using gas concentration thresholds and monitor human activity and body data through smart bracelets worn by the user to assess the potential danger of the monitored individual's activities. When a gas hazard is detected, the smart home system activates ventilation; when dangerous activities are detected, it issues voice warnings. Clearly, this type of smart home security system has at least the following shortcomings: 1. Traditional smart home security systems rely solely on gas concentration thresholds to determine the presence of gas hazards and only activate security measures when gas concentration exceeds the limit. They cannot provide preventative measures and neglect the risks of gas explosions caused by high gas concentrations and static sparks during ventilation, thus failing to guarantee the effectiveness of smart home security.

[0004] 2. Traditional smart home security systems neglect the danger posed by objects to the monitored target when determining dangerous activities, and cannot detect whether the monitored target has come into contact with dangerous objects. Therefore, they cannot guarantee the accuracy of the determination of dangerous activities of the monitored target.

[0005] 3. Traditional smart home security systems focus on the control of smart homes and cannot be integrated with local rescue services. When the risk of injury or death from safety hazards inside the house is high, rescue cannot be provided in a timely manner, thus failing to guarantee the safety of people inside the house. Summary of the Invention

[0006] In view of the above-mentioned technical shortcomings, the purpose of this invention is to provide an Internet of Things-based smart home security system.

[0007] To solve the above-mentioned technical problems, the present invention adopts the following technical solution: The present invention provides an Internet of Things-based smart home security system, including: a data monitoring module, a security risk analysis module, a security protection module, a remote early warning module, and a database.

[0008] The data monitoring module is used to divide the house into areas and monitor the information of each area in real time.

[0009] The safety hazard analysis module is used to obtain the information monitored in each area and analyze whether there is a gas hazard or dangerous activity in the house. When there is a gas hazard or dangerous activity in the house, it means that there is a safety hazard in the house.

[0010] The security protection module is used to adjust the security of each smart home device according to the type of security hazard when there is a safety hazard in the house.

[0011] The remote early warning module is used to analyze the risk of injury or death of people in the house while the smart home devices are controlling security. If the risk of injury or death of people in the house is high, a remote early warning will be sent to the local rescue terminal.

[0012] The database is used to store information on activities in the house during different historical time periods, operating instructions of smart home devices during gas hazard events, and the health status, activity characteristics, and physical data of each monitored target during each historical activity.

[0013] The beneficial effects of this invention are as follows: 1. This invention provides an Internet of Things-based smart home security system that divides the house into areas and monitors the information of each area in real time. It determines whether there is a gas hazard in the house based on the changes in gas concentration in each area. At the same time, it determines whether there is dangerous activity in the house based on the activity information, physical data, and list of dangerous items of the monitored targets. It also performs security control of the smart home based on gas concentration and dangerous activities, analyzes the risk of injury or death of people in the house, and provides remote early warning to local rescue terminals. This enables early prevention and timely rescue, ensuring the effectiveness of smart home security protection and the accuracy of safety hazard judgment, as well as the safety of people in the house.

[0014] 2. This invention acquires the gas concentration in each area at each time point and plots the gas concentration curve for each area. Simultaneously, it determines the first return value of the gas concentration based on the curve, compares the gas concentration in each area with a gas concentration threshold, and obtains the second return value. When both the first and second return values ​​are 0, it indicates that there is no gas hazard in the house; otherwise, it indicates that there is a gas hazard. When there is a gas hazard, it acquires information on smart home devices related to gas hazard prevention, referring to them as "controlling smart home devices," and sets the gas concentration in each area, with the highest concentration referred to as the "marked gas concentration." The operation of each controlling smart home device is set according to the marked gas concentration, enabling early prevention and ensuring the effectiveness of smart home safety protection.

[0015] 3. This invention sets up dangerous item lists for different people and pets, determines whether there are monitoring targets in each area, and refers to each area with monitoring targets as a marked area. It obtains the movement trajectory and object distribution of the monitoring targets in each marked area. Based on the movement trajectory, object distribution, and dangerous item list of the monitoring targets in each marked area, it obtains the danger return value of the monitoring targets in each marked area. When the danger return value of the monitoring targets in each marked area is 0, it means that there is no dangerous activity in the house; otherwise, it means that there is dangerous activity in the house, thus ensuring the accuracy of safety hazard judgment.

[0016] 4. When the safety hazard in a house is a gas hazard, the present invention monitors the gas concentration in the house in real time while the smart home devices are controlling security. If the gas concentration in the house continues to rise and exceeds the gas concentration threshold, it indicates a high risk of injury or death for people in the house. At this time, a remote warning is sent to the local rescue terminal. When the safety hazard in the house is a dangerous activity, the second return value of the monitoring target in each marked area is obtained. The monitoring targets with a second return value of 1 are called the marked monitoring targets. At this time, the location and body data of the monitoring targets are obtained in real time. If the location of the monitoring target remains unchanged and the body data is abnormal, it indicates a high risk of injury or death for people in the house. At this time, a remote warning is sent to the local rescue terminal, which can provide timely rescue and ensure the safety of people in the house. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram of the system structure connection of the present invention. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] Please see Figure 1As shown, the present invention provides an Internet of Things-based smart home security system, including: a data monitoring module, a security hazard analysis module, a security protection module, a remote early warning module, and a database.

[0021] The data monitoring module is connected to the safety hazard analysis module, the safety hazard analysis module is connected to the safety protection module and the remote early warning module, and the database is connected to the safety protection module and the remote early warning module.

[0022] The data monitoring module is used to divide the house into areas and monitor the information of each area in real time.

[0023] It should be noted that the houses are divided into areas according to preset area thresholds, which are set by staff.

[0024] It should also be noted that the information for each area includes gas concentration and monitoring videos of each area. The gas concentration is monitored by gas sensors, and the videos are collected by cameras.

[0025] The cameras captured video footage from public areas.

[0026] The safety hazard analysis module is used to obtain the information monitored in each area and analyze whether there is a gas hazard or dangerous activity in the house. When there is a gas hazard or dangerous activity in the house, it means that there is a safety hazard in the house.

[0027] In one specific embodiment, the safety hazard analysis module includes a gas hazard analysis unit and a hazardous activity analysis unit.

[0028] The gas hazard analysis unit is used to determine whether there is a gas hazard in the house based on the real-time monitoring of gas concentration and gas concentration threshold in each area.

[0029] It should be noted that the gas concentration threshold is 100 ppm. When the gas concentration in the environment is less than 100 ppm, the human body will not experience obvious discomfort. When the gas concentration in the environment is greater than or equal to 100 ppm, the human body will experience dizziness and weakness.

[0030] In a specific embodiment, the gas hazard analysis unit performs the following process: obtaining the gas concentration of each area at each time, plotting the gas concentration curve of each area, and determining the first return value of the gas based on the gas concentration curve of each area.

[0031] It should be noted that the gas concentrations monitored at each time point will be plotted in the gas concentration curve in ascending order of time.

[0032] It should also be noted that in the gas concentration curve, the x-axis represents the sampling time, and the y-axis represents the gas concentration.

[0033] The gas concentration in each area is compared with the gas concentration threshold to obtain the second return value of the gas. When both the first and second return values ​​of the gas are 0, it means that there is no gas hazard in the house; otherwise, it means that there is a gas hazard in the house.

[0034] It should be noted that the gas concentration in each area is compared with the gas concentration threshold. If the gas concentration in each area is less than the gas concentration threshold, the second return value of the gas is 0; otherwise, the second return value of the gas is 1.

[0035] It should be noted that the gas concentration in each area is monitored in real time. When obtaining the second return value of the gas, the gas concentration in each area at the current moment is compared with the gas concentration threshold to determine the second return value of the gas.

[0036] The specific process for determining the first return value of the gas is as follows: A11. Calculate the slope of each point in the gas concentration curve of each region.

[0037] It should be noted that the slope of each point is obtained by calculating the derivative of each point in the gas concentration curve.

[0038] A12. In the gas concentration curve of a certain area, compare the slope of each point with the slope threshold. If the slope of each point is less than the slope threshold, it means that the gas change in the area is normal. Otherwise, it means that the gas change in the area is abnormal. Use this method to determine whether the gas change in each area is abnormal.

[0039] It should be noted that the slope threshold is set by the staff. When the slope at a certain point is greater than or equal to the slope threshold, it means that the gas concentration changes significantly at the corresponding monitoring time.

[0040] A13. When the gas supply in each area changes normally, the first return value of the gas supply is 0; otherwise, the first return value of the gas supply is 1.

[0041] The hazardous activity analysis unit is used to acquire real-time monitoring videos in each area, determine whether there are monitoring targets in each monitoring area, and analyze whether there are hazardous activities inside the building based on the activities of the monitoring targets.

[0042] In a specific embodiment, the hazardous activity analysis unit performs the following process: A21, setting up lists of hazardous items for different people and pets.

[0043] It should be noted that the list of dangerous items is set by the user when logging into the system. For example, dangerous items for children include medicine, knives, and plugs. This example is for illustrative purposes only and is not the only valid one.

[0044] A22. Determine whether there is a monitoring target in each area. Each area where a monitoring target exists is called a marked area. Obtain the movement trajectory and object distribution of the monitoring target in each marked area. Based on the movement trajectory, object distribution, and the list of dangerous items of the monitoring target in each marked area, obtain the danger return value of the monitoring target in each marked area.

[0045] It should be noted that the monitoring video of a certain area is acquired, and the presence of people or pets in that area is determined by machine vision. When people or pets are present in the area, it means that there is a monitoring target in that area, and the monitoring target is people or pets. Conversely, it means that there is no monitoring target in the monitoring area.

[0046] It should also be noted that pets include cats and dogs. In particular, if a user's pet is a snake or spider, the user needs to upload a photo of the pet to the system to avoid the system being unable to recognize the pet.

[0047] A23. When the danger return value of the monitored target in each marked area is 0, it means that there is no dangerous activity in the house; otherwise, it means that there is dangerous activity in the house.

[0048] The specific process for obtaining the danger return value of the monitored target in each marked area is as follows: In a certain marked area, when the monitored target in the marked area is a person: A31, obtain the movement trajectory of the monitored target to predict the destination of the monitored target, obtain the items around the destination, and match them with the dangerous items list of the monitored target to determine whether the items around the destination are dangerous items. If none of the items around the destination are dangerous items, the danger return value of the monitored target is 0. Otherwise, obtain the historical activity information of the monitored target in the destination from the database, and determine whether the activity of the monitored target in the destination involves dangerous items. If it does, the first return value of the monitored target is 1. If it does not, the first return value of the monitored target is 0.

[0049] It should be noted that the monitoring video of the marked area is divided into frames to obtain a frame sequence. The position of the monitored target in the frame sequence is obtained, and the frames are connected sequentially to obtain the movement trajectory of the monitored target.

[0050] It should also be noted that the specific process of predicting the destination of the monitored target using LSTM is as follows: the coordinates of each point in the movement trajectory are normalized and a trajectory sequence is constructed. The trajectory sequence is converted into a high-dimensional continuous vector and input into the LSTM encoder to obtain the trajectory temporal features. The trajectory temporal features are then mapped to the destination probability to obtain the destination of the monitored target.

[0051] The area surrounding the destination refers to a region centered on the destination with a preset length threshold as its radius. The preset length threshold is set by staff based on the historical activity trajectories of the monitored target at the destination.

[0052] It should be explained that if an item is listed as a dangerous item in the vicinity of the destination, it means that the item in the vicinity of the destination is a dangerous item; otherwise, it means that the item in the vicinity of the destination is not a dangerous item.

[0053] It should also be explained that the historical activity information of the monitored target at the destination is the historical movement trajectory of the monitored target at the destination.

[0054] It is important to know that the historical movement trajectories of the monitored target at the destination are plotted on a graph. The trajectory in the plotted graph is used as the marked movement trajectory of the monitored target. The positions of the objects around the destination are compared with the marked movement trajectory. If the positions of the objects around the destination are not on the marked movement trajectory, it means that the activities of the monitored target at the destination do not involve dangerous materials. Conversely, it means that the activities of the monitored target at the destination involve dangerous materials.

[0055] A32. Obtain the activity data and body data of the target being monitored. Based on the activity data and body data of the target being monitored, obtain the second return value of the target being monitored. When both the first and second return values ​​of the target being monitored are 0, the danger return value of the target being monitored is 0; otherwise, the danger return value of the target being monitored is 1.

[0056] It should be noted that the activity data includes stride length, speed, and arm swing amplitude, while the body data includes body temperature, blood pressure, and heart rate, all of which are obtained through a smart bracelet worn by the wearer.

[0057] When the monitoring target in the marked area is a pet, the first return value of the monitoring target is obtained according to the method in step A31, and it is used as the danger return value of the monitoring target. The danger return value of the monitoring target in each marked area is obtained by this method.

[0058] The process of obtaining the second return value of the monitored target is as follows: obtain the physical health status and activity characteristics of the monitored target in each historical activity from the database, obtain the current activity characteristics of the monitored target based on the current activity data of the monitored target, and refer to each historical activity with good physical health status and the same activity characteristics as the current activity characteristics of the monitored target as each marked historical activity.

[0059] It should be noted that the health status is obtained through the health status assessment module built into the smart bracelet. The health status includes good and poor. The health status assessment module built into the smart bracelet is set by the smart bracelet manufacturer.

[0060] It should also be noted that the process of obtaining activity features through Transformer is as follows: Construct the input layer, encoder layer and output layer of Transformer. The encoder layer consists of 6 stacked layers. Each stacked layer includes a multi-head self-attention layer, a feedforward neural network, residual connections and layer normalization. Divide the historical motion data into training set, test set and validation set to train Transformer. After training, normalize and standardize the activity data. Input the processed activity data into Transformer and output activity features.

[0061] The body data of the monitored target during each marked historical activity is compared to obtain the numerical range of the body data. The current body data of the monitored target is compared with its numerical range. If the current body data of the monitored target is within its numerical range, the second return value of the monitored target is 0; otherwise, the second return value of the monitored target is 1.

[0062] The security protection module is used to adjust the security of each smart home device according to the type of security hazard when there is a safety hazard in the house.

[0063] It should be noted that smart home devices include smart gas stoves, smart cameras, smart curtains, smart switches, and smart light bulbs, among others.

[0064] In a specific embodiment, the safety protection module operates as follows: when the safety hazard in the house is a gas hazard, it acquires information on each smart home device related to the prevention of the gas hazard, refers to them as each control smart home device, compares the gas concentration in each area, and designates the highest gas concentration as the marked gas concentration. The operation of each control smart home device is then set according to the marked gas concentration.

[0065] It should be noted that smart home devices related to preventing gas hazards include smart curtains and smart gas stoves, among others.

[0066] When a building has a safety hazard that constitutes a dangerous activity, the dangerous items involved in the activity are referred to as marked items. It is determined whether each marked item is connected to the household circuit. If none of the marked items are connected to the household circuit, a voice warning is issued. Otherwise, the marked items that are connected to the household circuit are referred to as secondary marked items, and the power to each secondary marked item is cut off.

[0067] It should be noted that the monitoring video shows whether each marked item is connected to the socket. Marked items connected to the socket are connected to the household circuit, while marked items not connected to the socket are not connected to the household circuit.

[0068] The above-mentioned process of setting the operation of each control smart home based on the marked gas concentration is as follows: the marked gas concentration is compared with the explosion gas concentration threshold. If the marked gas concentration is less than the explosion gas concentration threshold, the operation instructions of each control smart home when there is a gas hazard are obtained from the database and sent to each control smart home.

[0069] It should be noted that different types of gas have different explosive concentration thresholds. The explosive concentration threshold for natural gas is 5% (meaning that the gas volume accounts for 5% of the air volume), while the explosive concentration threshold for liquefied petroleum gas is 2%. When the gas concentration exceeds this threshold, it will explode when it encounters a spark.

[0070] It should also be noted that the operating commands for each smart home device are set by staff. For example, in case of gas hazard, the command for smart curtains is to open the curtains, and the command for smart gas stoves is to shut off the gas valve. This example is for illustrative purposes only and is not the only possible setting.

[0071] If the marked gas concentration is greater than or equal to the explosion gas concentration threshold, the humidity in the house is monitored and compared with the humidity threshold. If the humidity in the house is less than the humidity threshold, the humidifier is controlled first to increase the humidity in the house, and the humidity in the house is monitored in real time. When the humidity in the house is greater than or equal to the humidity threshold, the operation instructions of each control smart home are sent to each control smart home.

[0072] It should be noted that the humidity inside the house is monitored using a humidity sensor.

[0073] It should also be noted that the humidity threshold is 40%. When the humidity in the air is less than 40%, the dry air is prone to generating static sparks, which can cause gas explosions.

[0074] The remote early warning module is used to analyze the risk of injury or death of people in the house while the smart home devices are controlling security. If the risk of injury or death of people in the house is high, a remote early warning will be sent to the local rescue terminal.

[0075] In a specific embodiment, the remote early warning module operates as follows: when the safety hazard in the house is a gas hazard, the gas concentration in the house is monitored in real time while the smart home devices are controlling security. If the gas concentration in the house continues to rise and exceeds the gas concentration threshold, it indicates that the risk of injury or death to people in the house is high. At this time, a remote early warning is sent to the local rescue terminal.

[0076] It should be noted that a continuous increase in gas concentration inside a house means that the gas concentration inside the house gradually increases.

[0077] When the safety hazard of the house is a dangerous activity, the second return value of the monitoring target in each marked area is obtained. The monitoring target with a second return value of 1 is called the marked monitoring target. At this time, the location and body data of the monitoring target are obtained in real time. If the location of the monitoring target remains unchanged and the body data is abnormal, it means that the risk of injury or death of people in the house is high. At this time, a remote warning is sent to the local rescue terminal.

[0078] It should be noted that abnormal body data refers to body data that is outside its standard value range. The standard value range of body data is obtained by monitoring the body data of the target when it is in a static state in the past.

[0079] The database is used to store information on activities in the house during different historical time periods, operating instructions of smart home devices during gas hazard events, and the health status, activity characteristics, and physical data of each monitored target during each historical activity.

[0080] This invention divides a house into zones and monitors information in each zone in real time. It determines whether there is a gas hazard in the house based on changes in gas concentration in each zone. At the same time, it determines whether there is dangerous activity in the house based on the activity information, physical data, and list of dangerous items of the monitored targets. It then performs security control of the smart home based on gas concentration and dangerous activity, analyzes the risk of injury or death to people in the house, and provides remote early warning to local rescue terminals. This enables early prevention and timely rescue, ensuring the effectiveness of smart home security protection and the accuracy of safety hazard judgment, as well as the safety of people in the house.

[0081] The examples described in this invention are not limited to the specific embodiments listed above. The examples are merely illustrative to facilitate understanding of the invention and do not constitute a limitation on the scope of protection of this invention. Any modifications, equivalent substitutions, etc., made within the spirit and principles of this invention should be included within the scope of protection.

[0082] The above description is merely an example and illustration of the concept of the present invention. Those skilled in the art can make various modifications or additions to the specific embodiments described or use similar methods to replace them, as long as they do not deviate from the concept of the invention or exceed the scope defined in this specification, they should all fall within the protection scope of the present invention.

Claims

1. An Internet of Things based smart home security system, characterized in that, Includes the following modules: The data monitoring module is used to divide the house into zones and monitor the information of each zone in real time. The safety hazard analysis module is used to acquire information monitored in each area and analyze whether there are gas hazards or dangerous activities in the house. When there are gas hazards or dangerous activities in the house, it means that there are safety hazards in the house. The security protection module is used to adjust the security of each smart home device according to the type of security hazard when there is a safety hazard in the house. The remote early warning module is used to analyze the risk of injury or death of people in the house while controlling the security of various smart home devices. If the risk of injury or death of people in the house is high, a remote early warning will be sent to the local rescue terminal. The database is used to store information on activities in the house during different historical time periods, the operating instructions of each smart home device in case of gas hazard, and the health status, activity characteristics, and physical data of each monitored target during each historical activity. 2.The smart home security system based on the Internet of Things according to claim 1, characterized in that, The safety hazard analysis module includes a gas hazard analysis unit and a hazardous activity analysis unit; The gas hazard analysis unit is used to determine whether there is a gas hazard in the house based on the real-time monitoring of gas concentration and gas concentration threshold in each area. The hazardous activity analysis unit is used to acquire real-time monitoring videos in each area, determine whether there are monitoring targets in each monitoring area, and analyze whether there are hazardous activities inside the building based on the activities of the monitoring targets. 3.The smart home security system based on the Internet of Things according to claim 2, characterized in that, The specific process of the gas hazard analysis unit is as follows: Obtain the gas concentration of each region at each time, and plot the gas concentration curve of each region. At the same time, determine the first return value of the gas based on the gas concentration curve of each region. The gas concentration in each area is compared with the gas concentration threshold to obtain the second return value of the gas. When both the first and second return values ​​of the gas are 0, it means that there is no gas hazard in the house; otherwise, it means that there is a gas hazard in the house.

4. The smart home security system based on the Internet of Things according to claim 3, characterized in that, The specific process for determining the first return value of the gas is as follows: A11. Calculate the slope of each point on the gas concentration curve for each region; A12. In the gas concentration curve of a certain area, compare the slope of each point with the slope threshold. If the slope of each point is less than the slope threshold, it means that the gas change in the area is normal. Otherwise, it means that the gas change in the area is abnormal. Use this method to determine whether the gas change in each area is abnormal. A13. When the gas supply in each area changes normally, the first return value of the gas supply is 0; otherwise, the first return value of the gas supply is 1.

5. The smart home security system based on the Internet of Things according to claim 2, characterized in that, The specific process of the hazardous activity analysis unit is as follows: A21. Create lists of dangerous items for different people and pets; A22. Determine whether there are monitoring targets in each area. Each area where there are monitoring targets is called a marked area. Obtain the movement trajectory and object distribution of the monitoring targets in each marked area. Based on the movement trajectory, object distribution and the list of dangerous items of the monitoring targets in each marked area, obtain the danger return value of the monitoring targets in each marked area. A23. When the danger return value of the monitored target in each marked area is 0, it means that there is no dangerous activity in the house; otherwise, it means that there is dangerous activity in the house.

6. The smart home security system based on the Internet of Things according to claim 5, characterized in that, The specific process for obtaining the danger return value of the monitored targets within each marked area is as follows: In a certain marked area, when the monitoring target of the marked area is a person: A31, obtain the movement trajectory of the monitoring target to predict the destination of the monitoring target, obtain the items around the destination, and match them with the list of dangerous items of the monitoring target to determine whether the items around the destination are dangerous items. If none of the items around the destination are dangerous items, the danger return value of the monitoring target is 0. Otherwise, obtain the historical activity information of the monitoring target at the destination from the database, and determine whether the activity of the monitoring target at the destination involves dangerous items. If it does, the first return value of the monitoring target is 1. If it does not, the first return value of the monitoring target is 0. A32. Obtain the activity data and body data of the target being monitored. Based on the activity data and body data of the target being monitored, obtain the second return value of the target being monitored. When both the first and second return values ​​of the target being monitored are 0, the danger return value of the target being monitored is 0; otherwise, the danger return value of the target being monitored is 1. When the monitoring target in the marked area is a pet, the first return value of the monitoring target is obtained according to the method in step A31, and it is used as the danger return value of the monitoring target. The danger return value of the monitoring target in each marked area is obtained by this method.

7. The smart home security system based on the Internet of Things according to claim 6, characterized in that, The specific process for obtaining the second return value of the monitored target is as follows: The database is used to obtain the physical health status and activity characteristics of the target during each historical activity. Based on the current activity data of the target, the current activity characteristics of the target are obtained. Historical activities in which the physical health status is good and the activity characteristics are the same as the current activity characteristics of the target are called marked historical activities. The body data of the monitored target during each marked historical activity is compared to obtain the numerical range of the body data. The current body data of the monitored target is compared with its numerical range. If the current body data of the monitored target is within its numerical range, the second return value of the monitored target is 0; otherwise, the second return value of the monitored target is 1. 8.The smart home security system based on the Internet of Things according to claim 1, wherein, The security protection module operates as follows: When the safety hazard in a house is a gas hazard, the smart home devices related to the prevention of gas hazards are identified and referred to as the control smart home devices. The gas concentration in each area is compared, and the highest gas concentration is referred to as the marked gas concentration. The operation of the control smart home devices is then set according to the marked gas concentration. When a building has a safety hazard that constitutes a dangerous activity, the dangerous items involved in the activity are referred to as marked items. It is determined whether each marked item is connected to the household circuit. If none of the marked items are connected to the household circuit, a voice warning is issued. Otherwise, the marked items that are connected to the household circuit are referred to as secondary marked items, and the power to each secondary marked item is cut off. 9.The smart home security system based on the Internet of Things according to claim 8, characterized in that, The specific process of setting the operation of each smart home device based on the marked gas concentration is as follows: The marked gas concentration is compared with the explosive gas concentration threshold. If the marked gas concentration is less than the explosive gas concentration threshold, the operating instructions of each smart home device in the event of a gas hazard are retrieved from the database and sent to each smart home device. If the marked gas concentration is greater than or equal to the explosion gas concentration threshold, the humidity in the house is monitored and compared with the humidity threshold. If the humidity in the house is less than the humidity threshold, the humidifier is controlled first to increase the humidity in the house, and the humidity in the house is monitored in real time. When the humidity in the house is greater than or equal to the humidity threshold, the operation instructions of each control smart home are sent to each control smart home.

10. The smart home security system based on the Internet of Things according to claim 1, characterized in that, The remote early warning module operates as follows: When the safety hazard in a house is a gas hazard, the gas concentration in the house is monitored in real time when the smart home system is controlling security. If the gas concentration in the house continues to rise and exceeds the gas concentration threshold, it means that the risk of injury or death to people in the house is high. At this time, a remote warning is sent to the local rescue terminal. When the safety hazard of the house is a dangerous activity, the second return value of the monitoring target in each marked area is obtained. The monitoring target with a second return value of 1 is called the marked monitoring target. At this time, the location and body data of the monitoring target are obtained in real time. If the location of the monitoring target remains unchanged and the body data is abnormal, it means that the risk of injury or death of people in the house is high. At this time, a remote warning is sent to the local rescue terminal.