Internet of things-based optimization analysis method for empty nest elderly health monitoring
Technical Field
The invention relates to a power utilization judging method, in particular to an optimization analysis method for empty-nest elderly health monitoring based on the Internet of things.
Background
Along with the increasing aging of society, the number of the old people in China is more and more, the occupied population proportion is higher and higher, statistics shows that the old people in Zhejiang province reach 1080 ten thousands of people, a certain number of the old people cannot realize active help seeking even endanger personal safety once meeting an accident because children work busy or live in different places without accompanying. Therefore, it is necessary for family members to know daily work and rest rules and physical conditions of the elderly in real time, especially for the elderly with empty nests.
At present, the old man crisis monitoring device is proposed in 2016 by changing the past, and the old man crisis monitoring device comprises a portable detection trigger, an old man caring host, a power management system, a system cloud platform and a mobile terminal, wherein the portable falling trigger is in communication connection with the old man caring host and is used for detecting the accidental falling state or the long-time static state of an old man carrier in real time. However, the old and the elderly have poor memory and often forget to carry, so that the monitoring function cannot be realized.
Popular bracelet in the market possesses functions such as rhythm of the heart monitoring, intelligence warning, sleep monitoring, but the old person of a lot often can think the way and take off equipment of wearing on the hands.
The mainstream smart sockets in the market generally take remote control as a main part, and a user needs to actively initiate the action, so that the smart sockets are not combined with monitoring of the old.
Disclosure of Invention
The technical problem to be solved and the technical task to be solved by the invention are to perfect and improve the prior technical scheme and provide an optimized analysis method for the health monitoring of empty nesters based on the Internet of things so as to achieve the purpose of monitoring the life of the old. Therefore, the invention adopts the following technical scheme.
An optimization analysis method for empty nest elderly health monitoring based on the Internet of things comprises the following steps:
1) the intelligent socket acquires the electricity utilization information of the electrical equipment connected with the intelligent socket in real time;
2) the intelligent socket sends the electricity utilization information to a system cloud monitoring platform;
3) the method comprises the steps that a system cloud monitoring platform obtains electricity utilization information sent by an intelligent socket and analyzes the electricity utilization information, wherein the analysis comprises corresponding time period analysis, duration analysis and cycle analysis according to the type of electricity utilization equipment connected with the intelligent socket;
a) the time period analysis comprises the steps of:
a1) acquiring data in a set time, including electric quantity and power of electric equipment;
a2) when the power/electric quantity value obtained in real time is larger than the standby power/electric quantity value of the corresponding equipment and the power of the previous point is smaller than or equal to the standby power/electric quantity value of the equipment, namely the equipment is judged to be started at the previous point, the real-time state of the equipment is updated to be started;
a3) when the power/electric quantity value acquired in real time is smaller than or equal to the standby power/electric quantity value of the equipment and the power/electric quantity value of the previous point is larger than the standby power/electric quantity value of the equipment, namely the equipment is judged to be closed in the previous point, and the real-time state table of the equipment updates the state to be closed;
a4) acquiring a working time period of the electric equipment; if the current time reaches the end time in the time period, calculating the sum of the power consumption of the equipment in the time period, and if the sum of the power consumption is less than or equal to the sum of the standby power of the equipment in the time period, indicating that the electric equipment is not used in the time period;
or acquiring the working time period of the electric equipment; if the current time reaches the end time in the time period, calculating the difference value between the highest electric quantity and the lowest electric quantity of the equipment in the time period, and if the difference value is less than or equal to the sum of the electric quantities generated by standby of the equipment in the time period, indicating that the equipment is not used in the time period;
a5) updating the real-time state of the equipment, wherein the real-time state of the equipment comprises non-working within set time and working within set time;
a6) writing the non-working electric equipment in the set time into an abnormal message database;
when the electric equipment is an electric cooker:
b) the duration analysis comprises the following steps:
b1) acquiring real-time power and standby power of electric equipment;
b2) when the power acquired in real time is greater than the standby power of the equipment and the power of the previous point is less than or equal to the standby power of the equipment, namely the equipment is started at the previous point, updating the real-time state of the equipment to be started;
b3) when the power acquired in real time is greater than the standby power of the equipment and the power of the previous point is greater than the standby power of the equipment, namely the equipment is in a continuous working state, calculating the continuous working time of the equipment according to the current time and the starting time of the equipment, and if the continuous working time is greater than the set time, generating abnormal information, and judging that the electric equipment is in an abnormal state; if the continuous working time is less than or equal to the set rule time, modifying the duration of the equipment;
b4) when the acquired power is less than or equal to the standby power of the equipment and the power of the previous point is greater than the standby power of the equipment, namely the equipment is closed at the previous point, updating the real-time state of the equipment to be closed; if the abnormal state of the previous point of equipment is abnormal, filing the real-time state of the equipment, and newly adding a new record of the real-time state of the equipment; if the abnormal state of the previous point of equipment is normal, the equipment is not filed;
b5) when the power acquired in real time is less than or equal to the standby power of the equipment and the power of the previous point is less than or equal to the standby power of the equipment, namely the equipment is in a closed state, no calculation is performed;
b6) waiting for the power of the next point when the power acquired in real time is empty, and updating the equipment state of the equipment real-time state table to be offline if the continuous 3 points are empty;
b7) writing the electric equipment with continuous working duration longer than the set duration into an abnormal message database;
c) the period class analysis comprises the following steps
c1) The method comprises the following steps Acquiring real-time power and standby power of electric equipment;
c2) when the power acquired in real time is greater than the standby power of the equipment and the power of the previous point is less than or equal to the standby power of the equipment, judging that the equipment is started at the time of the previous point, updating the real-time state of the equipment to be started, and adding 1 time to the use times;
c3) when the power acquired in real time is greater than the standby power of the equipment and the power of the previous point is greater than the standby power of the equipment, judging that the equipment is in a continuous working state and not calculating;
c4) when the power acquired in real time is less than or equal to the standby power of the equipment and the power of the previous point is greater than the standby power of the equipment, judging that the equipment is closed at the previous point, and updating the real-time state of the equipment to be closed;
c5) when the power acquired in real time is less than or equal to the standby power of the equipment and the power of the previous point is less than or equal to the standby power of the equipment, the equipment is in a closed state and no calculation is performed;
c6) waiting for the power of the next point when the power acquired in real time is empty, and updating the equipment state to be offline if the continuous 3 points are empty;
c7) writing the electric equipment with the use times exceeding and/or being less than the set times in the set time into an abnormal message database;
4) and sending an abnormal message to a user associated with the electric equipment according to the abnormal message database data, and analyzing to obtain the electricity utilization state of the corresponding user so as to detect whether the person under guardianship lives normally at home.
According to the technical scheme, the power utilization state of the corresponding user is comprehensively judged and analyzed through time period analysis, duration analysis and cycle analysis so as to detect whether the person under guardianship lives normally at home or not, and the analysis accuracy is high.
As a preferable technical means: the intelligent socket sends electricity utilization information to a system cloud monitoring platform at a frequency of 1-6 min; and the system cloud monitoring platform analyzes the electricity utilization information at corresponding time.
As a preferable technical means: the intelligent socket sends electricity utilization information to a system cloud monitoring platform at a frequency of 5 min; and the system cloud monitoring platform analyzes the application electricity information in 5 min.
As a preferable technical means: in steps b6) and c6), if the power of the previous point is empty, taking the point 10 minutes before as the previous point data; if the point before 10 minutes is also empty, the point before 15 minutes is taken as the previous point data, and it is allowed that empty data appears at 2 points in succession. The influence of data loss on analysis and judgment is effectively reduced, and the analysis accuracy is improved.
As a preferable technical means: in step c7), every morning 00: 05, archiving data, if the rule setting period is 1 day, comparing the use times in the archived real-time state record according to the use times set by the rule, if the use times reach the set times, not reminding, and otherwise generating an abnormal message; if the rule sets the period to be 1 week, in monday morning 00: and 05, calculating the use times of the past week, comparing the use times in the filed real-time state record according to the use times set by the rule, if the use times reach the set times, not reminding, and otherwise, generating an abnormal message.
As a preferable technical means: in step 3), when the system cloud monitoring platform analyzes the electricity utilization information, the electricity utilization information of the electricity utilization equipment of the same user is comprehensively analyzed, the fluctuation rates of the electricity utilization rules of the electricity utilization equipment are sorted, the weight values are set according to the fluctuation rates, the smaller the fluctuation rate is, the larger the weight value is, and the comprehensive electricity utilization normal degree of the user is calculated according to the weight values of the electricity utilization equipment of the same user. If the fluctuation rate of the change is smaller, the electricity utilization of the user is more regular, and the weight value is set according to the change, so that the electricity utilization normal degree of the user is calculated, the analysis is more accurate, manual setting is not needed, the method can automatically judge, the adaptability is good, and the accuracy is higher.
As a preferable technical means: in the step 3), electric equipment is classified into various types including an electric cooker, a water heater, an air conditioner, a washing machine, a television, a mobile phone and a desk lamp, and time period and duration analysis is carried out on the electric cooker and the desk lamp; analyzing the time length of the electric cooker, the water heater, the air conditioner, the mobile phone and the desk lamp; and carrying out cycle class analysis on the washing machine. Therefore, whether the living habits of the user change or not and whether the living habits of the user are healthy or not is analyzed and judged, and whether active reminding needs to be carried out on the guardian or not is judged.
As a preferable technical means: also includes a behavior analysis step; the system cloud monitoring platform calculates the time period, the time length and the period of the electricity consumption of the electric equipment corresponding to the electricity consumption user according to the obtained electricity consumption information sent by the intelligent socket, analyzes and calculates the time period, the time length and the period in the set period to obtain a reference value, and when the use time period, the time length and the period of the electric equipment exceed the range of the reference value, the electricity consumption behavior of the user is considered to be abnormal, and a guardian corresponding to the user is informed.
Has the advantages that: this technical scheme leads to smart jack and acquires the power consumption information that corresponds, the power consumption condition of the electrical apparatus commonly used of real-time supervision old person to will through domestic wifi on data transmission that detecting element detected is to the family's cell-phone of binding with it, can be when detecting the old person not in normal life regular state, can be fast to the early warning of urgent contact, when having improved empty nest old person's life security, can also become the link that the son and mother of living in other places contacted.
Drawings
FIG. 1 is a flow chart of the present invention.
Fig. 2 is a flow chart of the time period analysis of the present invention.
FIG. 3 is a flow chart of the duration analysis of the present invention.
Detailed Description
The technical scheme of the invention is further explained in detail by combining the drawings in the specification.
As shown in fig. 1, the present invention comprises the steps of:
1) the intelligent socket acquires the electricity utilization information of the electrical equipment connected with the intelligent socket in real time;
2) the intelligent socket sends the electricity utilization information to a system cloud monitoring platform;
3) the method comprises the steps that a system cloud monitoring platform obtains electricity utilization information sent by an intelligent socket and analyzes the electricity utilization information, wherein the analysis comprises corresponding time period analysis, duration analysis and cycle analysis according to the type of electricity utilization equipment connected with the intelligent socket;
a) the time period analysis is shown in fig. 2, which includes the steps of:
a1) acquiring data in a set time, including electric quantity and power of electric equipment;
a2) when the power/electric quantity value obtained in real time is larger than the standby power/electric quantity value of the corresponding equipment and the power of the previous point is smaller than or equal to the standby power/electric quantity value of the equipment, namely the equipment is judged to be started at the previous point, the real-time state of the equipment is updated to be started;
a3) when the power/electric quantity value acquired in real time is smaller than or equal to the standby power/electric quantity value of the equipment and the power/electric quantity value of the previous point is larger than the standby power/electric quantity value of the equipment, namely the equipment is judged to be closed in the previous point, and the real-time state table of the equipment updates the state to be closed;
a4) acquiring a working time period of the electric equipment; if the current time reaches the end time in the time period, calculating the sum of the power consumption of the equipment in the time period, and if the sum of the power consumption is less than or equal to the sum of the standby power of the equipment in the time period, indicating that the electric equipment is not used in the time period;
or acquiring the working time period of the electric equipment; if the current time reaches the end time in the time period, calculating the difference value between the highest electric quantity and the lowest electric quantity of the equipment in the time period, and if the difference value is less than or equal to the sum of the electric quantities generated by standby of the equipment in the time period, indicating that the equipment is not used in the time period;
a5) updating the real-time state of the equipment, wherein the real-time state of the equipment comprises non-working within set time and working within set time;
a6) writing the non-working electric equipment in the set time into an abnormal message database;
when the electric equipment is an electric cooker:
b) the duration analysis is shown in fig. 3, which includes the steps of:
b1) acquiring real-time power and standby power of electric equipment;
b2) when the power acquired in real time is greater than the standby power of the equipment and the power of the previous point is less than or equal to the standby power of the equipment, namely the equipment is started at the previous point, updating the real-time state of the equipment to be started;
b3) when the power acquired in real time is greater than the standby power of the equipment and the power of the previous point is greater than the standby power of the equipment, namely the equipment is in a continuous working state, calculating the continuous working time of the equipment according to the current time and the starting time of the equipment, and if the continuous working time is greater than the set time, generating abnormal information, and judging that the electric equipment is in an abnormal state; if the continuous working time is less than or equal to the set rule time, modifying the duration of the equipment;
b4) when the acquired power is less than or equal to the standby power of the equipment and the power of the previous point is greater than the standby power of the equipment, namely the equipment is closed at the previous point, updating the real-time state of the equipment to be closed; if the abnormal state of the previous point of equipment is abnormal, filing the real-time state of the equipment, and newly adding a new record of the real-time state of the equipment; if the abnormal state of the previous point of equipment is normal, the equipment is not filed;
b5) when the power acquired in real time is less than or equal to the standby power of the equipment and the power of the previous point is less than or equal to the standby power of the equipment, namely the equipment is in a closed state, no calculation is performed;
b6) waiting for the power of the next point when the power acquired in real time is empty, and updating the equipment state of the equipment real-time state table to be offline if the continuous 3 points are empty;
b7) writing the electric equipment with continuous working duration longer than the set duration into an abnormal message database;
c) the period class analysis comprises the following steps
c1) The method comprises the following steps Acquiring real-time power and standby power of electric equipment;
c2) when the power acquired in real time is greater than the standby power of the equipment and the power of the previous point is less than or equal to the standby power of the equipment, judging that the equipment is started at the time of the previous point, updating the real-time state of the equipment to be started, and adding 1 time to the use times;
c3) when the power acquired in real time is greater than the standby power of the equipment and the power of the previous point is greater than the standby power of the equipment, judging that the equipment is in a continuous working state and not calculating;
c4) when the power acquired in real time is less than or equal to the standby power of the equipment and the power of the previous point is greater than the standby power of the equipment, judging that the equipment is closed at the previous point, and updating the real-time state of the equipment to be closed;
c5) when the power acquired in real time is less than or equal to the standby power of the equipment and the power of the previous point is less than or equal to the standby power of the equipment, the equipment is in a closed state and no calculation is performed;
c6) waiting for the power of the next point when the power acquired in real time is empty, and updating the equipment state to be offline if the continuous 3 points are empty;
c7) writing the electric equipment with the use times exceeding and/or being less than the set times in the set time into an abnormal message database;
4) and sending an abnormal message to a user associated with the electric equipment according to the abnormal message database data, and analyzing to obtain the electricity utilization state of the corresponding user so as to detect whether the person under guardianship lives normally at home.
The technical scheme comprehensively judges and analyzes the power utilization state of the corresponding user through time period analysis, duration analysis and cycle analysis so as to detect whether the person under guardianship lives normally at home or not, and has high analysis accuracy
In order to take account of the accuracy of data and the simplicity of calculation: the intelligent socket sends electricity utilization information to a system cloud monitoring platform at a frequency of 5 min; and the system cloud monitoring platform analyzes the electricity utilization information at corresponding time.
In order to improve the accuracy of analysis, in the steps b6) and c6), if the power of the previous point is empty, taking the point 10 minutes before as the previous point data; if the point before 10 minutes is also empty, the point before 15 minutes is taken as the previous point data, and it is allowed that empty data appears at 2 points in succession. The influence of data loss on analysis and judgment is effectively reduced, and the analysis accuracy is improved.
In order to improve the efficiency of calculation, increase the accuracy of reminding, reduce the congestion of the network and reduce the influence of the network, in the step c7), 00 a day in the morning: 05, archiving data, if the rule setting period is 1 day, comparing the use times in the archived real-time state record according to the use times set by the rule, if the use times reach the set times, not reminding, and otherwise generating an abnormal message; if the rule sets the period to be 1 week, in monday morning 00: and 05, calculating the use times of the past week, comparing the use times in the filed real-time state record according to the use times set by the rule, if the use times reach the set times, not reminding, and otherwise, generating an abnormal message.
In order to realize automatic judgment, in step 3), when the system cloud monitoring platform analyzes the electricity utilization information, the electricity utilization information of the electric equipment under the same user is comprehensively analyzed, the fluctuation rates of the electricity utilization rules of the electric equipment are sorted, the weight values are set according to the fluctuation rates, the smaller the fluctuation rate is, the larger the weight value is, and the comprehensive electricity utilization normal degree of the user is calculated according to the weight values of the electric equipment under the same user. If the fluctuation rate of the change is smaller, the electricity utilization of the user is more regular, and the weight value is set according to the change, so that the electricity utilization normal degree of the user is calculated, the analysis is more accurate, manual setting is not needed, the method can automatically judge, the adaptability is good, and the accuracy is higher.
In order to improve the accuracy of judgment: in the step 3), electric equipment is classified into various types including an electric cooker, a water heater, an air conditioner, a washing machine, a television, a mobile phone and a desk lamp, and time period and duration analysis is carried out on the electric cooker and the desk lamp; analyzing the time length of the electric cooker, the water heater, the air conditioner, the mobile phone and the desk lamp; and carrying out cycle class analysis on the washing machine. Therefore, whether the living habits of the user change or not and whether the living habits of the user are healthy or not is analyzed and judged, and whether active reminding needs to be carried out on the guardian or not is judged.
To enable the ability to automatically analyze: the invention also comprises a behavior analysis step; the system cloud monitoring platform calculates the time period, the time length and the period of the electricity consumption of the electric equipment corresponding to the electricity consumption user according to the obtained electricity consumption information sent by the intelligent socket, analyzes and calculates the time period, the time length and the period in the set period to obtain a reference value, and when the use time period, the time length and the period of the electric equipment exceed the range of the reference value, the electricity consumption behavior of the user is considered to be abnormal, and a guardian corresponding to the user is informed.
The method for optimizing and analyzing the health monitoring of empty nesters based on the internet of things shown in fig. 1 to 3 is a specific embodiment of the present invention, has embodied the substantial features and the progress of the present invention, and can modify the shape, the structure and the like of the empty nesters according to the practical use requirements, which is within the protection scope of the present invention.