Intelligent home monitoring systemTechnical Field
The invention belongs to the technical field of internet, and particularly relates to an intelligent home monitoring system.
Background
At present, the living conditions of people are greatly improved, and the material culture pursuit of people is gradually improved. As the rhythm of life and work of the large city is faster, people almost race with the time, and a lot of time can be saved by arranging some things in advance. If on the way of work, people hope that the water in the home can be automatically boiled and put into the bathtub, and people can take a bath at once after going home; if people wait for the air conditioner to be started after returning home in hot summer, the indoor temperature is slow, and the people need a period of time and cannot enjoy the coolness of the air conditioner in due time; when the owner goes out for a journey or a business trip, the owner sometimes wants to see the condition of the home, and is often worried about whether the home is stolen or not without much time. The current household equipment has low intelligent degree and other conditions are not mature, and the desire of people cannot be realized.
Disclosure of Invention
The invention aims to provide an intelligent home monitoring system, and aims to solve the problems of insufficient intelligent degree, poor safety and inconvenience in use of the existing home system.
The invention is realized in this way, an intelligent home monitoring system includes: the system comprises a service host, a controller, an environment monitoring module, a security monitoring module, a wireless router and a monitoring terminal;
the output end of the controller is connected with the service host, the environment monitoring module and the security monitoring module are installed indoors, the signal output ends of the environment monitoring module and the security monitoring module are connected with the signal input end of the service host, and the signal output end of the service host is connected with the monitoring terminal through the wireless router.
The environment monitoring terminal comprises a built-in detection module, a mobile phone detection module and a data reading module connected with an environment monitoring station;
the mobile phone detection module comprises a mobile phone data sharing module which is connected with the environment monitoring station and used for wirelessly sharing mobile phone client data;
the data reading module comprises:
the network data downloading module is used for downloading the network authentication data and the network configuration data which are encrypted by the public key from the operator server;
the key bank is used for storing a private key matched with the public key of the operator server;
an operator database for storing network authentication data and network configuration data;
the network data authentication module is respectively connected with the key bank, the operator database and the network data downloading module and is used for acquiring a private key corresponding to the public key in the key bank, decrypting the encrypted network authentication data and network configuration data through the private key, authenticating the decrypted network authentication data and network configuration data, and storing the network authentication data and the network configuration data into the operator database after the authentication is passed;
the authentication module is connected with the operator database and used for completing an authentication request by using the network authentication data in the operator database;
the network selection module is connected with the operator database and used for setting the network authentication data and the network configuration data;
the command interpretation module is respectively connected with the network data downloading module, the authentication module and the network selection module and is used for interpreting a command from the mobile terminal and sending the interpreted command to the corresponding functional module; the interface communication module is connected with the command interpretation module and is used for communicating with the mobile terminal;
the safety monitoring module is internally provided with a voice recognition module and a face recognition unit which are in wireless connection with the mobile phone, and sends a voice command to the service host through the mobile phone; the voice recognition module is internally provided with a frequency analysis unit, a phase curve calculation unit, an error calculation unit and a sound signal recognition unit;
the frequency analysis unit is used for analyzing the frequency signal of the sound signal;
the phase curve calculation unit calculates a phase curve approximating a temporal change in the phase of the frequency signal;
the error calculation unit is used for calculating the error between the phase curve and the phase of the frequency signal;
the sound signal identification unit identifies whether the sound signal is a periodic sound signal based on the error.
Further, the environment monitoring module comprises: the intelligent gas sensor comprises a microprocessor, an infrared transponder, an intelligent socket, an intelligent switch, a gas detector, a smoke detector, a temperature and humidity sensor and an indoor sensor;
the microprocessor is used for data operation and processing; the infrared transponder is connected with the microprocessor and used for information exchange between the microprocessor and the outside; the intelligent socket is connected with the microprocessor and used for providing power for the electric equipment; the intelligent switch is connected with the microprocessor and used for communicating the household appliance with a power supply; the gas detector is connected with the microprocessor and is used for detecting the concentration content of the gas in the kitchen; the temperature and humidity sensor is connected with the microprocessor and used for detecting indoor temperature and humidity values; the indoor sensor is connected with the microprocessor and used for detecting indoor environmental information.
Furthermore, the security monitoring module comprises an alarm device and alarm detection equipment, and the signal output end of the alarm detection equipment is connected with the alarm device; the alarm device includes: alarm bell, horn and sound box; the alarm detection device includes: the wireless infrared detector, wireless door magnetism, wireless emergency button, wireless smoke are felt.
Further, the indoor inductor includes: one or more of a smoke concentration transmitter, a carbon dioxide concentration transmitter, a PM2.5 transmitter and a carbon monoxide transmitter.
Further, the wireless router is a ZigBee communication module of a bee butterfly protocol.
Further, the monitoring terminal includes: one or more combinations of a mobile phone control end, a computer control end and a tablet computer control end.
Further, the face recognition unit is provided with a feature extraction module, the feature extraction module is used for constructing a feature extraction operator and extracting face image feature vectors, and the specific steps are as follows:
step one, collecting N samples to be used as a training set X, and calculating a sample average value m by adopting the following formula:
wherein x isi E to the sample training set X = (X)1 ,x2 ,…,xN );
Step two, obtaining a dispersion matrix S:
finding out the eigenvalue lambdai of the dispersion matrix and the corresponding eigenvector ei, wherein ei is a principal component, and arranging the eigenvalues of lambdai 1, lambdai 2 and lambdai 8230in sequence from large to small;
assuming that p values are taken, λ 1, λ 2, \8230, λ p may determine the face space E = (E1, E2, \8230; eP), on which the point in the training sample X, to which each element is projected, may be obtained by:
x'i =Et xi ,t=1,2,…,N;
the p-dimensional vector obtained by the formula is obtained by carrying out PCA dimensionality reduction on the original vector;
the feature extraction module performs multi-face recognition by adopting an SRC face recognition algorithm based on sparse representation.
Further, the environment monitoring station comprises:
the detection base station comprises one or more electrochemical gas sensors, collects the pollution gas information, generates corresponding electric signals and outputs the electric signals, wherein the electrochemical sensors comprise one or more of a sulfur dioxide electrochemical sensor, a nitrogen dioxide electrochemical sensor, a carbon monoxide electrochemical sensor and an ozone electrochemical sensor;
the detection master station receives signals sent by the detection base station;
the monitoring base station is used for carrying out secondary acquisition on signals received by the detection master station and analyzing the signals;
and the monitoring master station is used for storing and inquiring the analysis result of the monitoring base station.
Further, the specific method for performing multi-face recognition by using the SRC face recognition algorithm is as follows:
detecting the face of the current frame and sequencing according to coordinates to obtain the recognition result of each face of the current frame; calculating the respective adjacent n frames of recognition results of each face according to the recognition results of each face of the current frame; counting the identities of all the faces, and determining the final identity of a target by uniform identities with more than half n/2;
wherein, the reconstruction error { r) between the picture to be recognized and each category of the face database is calculated1 ,r2 ……rn },r1 <r2 <……<rn The obtained similarity value is according toDetermining a final recognition result; wherein T is1 Is a ratio value, T1 =0.6。
The invention applies the network technology to the intelligent home, can bring a lot of convenience to the intelligent home user, and can detect indoor and outdoor environmental parameters through the environment monitoring module; the security monitoring module can start an away-from-home mode, and when abnormal conditions occur, the abnormal condition information is automatically sent to a mobile phone number preset by a user to remind the user in time; collect intelligent house and safe in an organic whole, intelligent degree is high, convenient to use.
Drawings
Fig. 1 is a schematic structural diagram of an intelligent home monitoring system provided in an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an environment monitoring module according to an embodiment of the present invention;
in the figure: 1. a service host; 2. a controller; 3. an environment monitoring module; 3-1, a microprocessor; 3-2, an infrared transponder; 3-3, an intelligent socket; 3-4, an intelligent switch; 3-5, a gas detector; 3-6, a smoke detector; 3-7, temperature and humidity sensor; 3-8, an indoor inductor; 4. a security monitoring module; 5. a wireless router; 6. and monitoring the terminal.
Detailed Description
In order to further understand the contents, features and effects of the present invention, the following embodiments are illustrated and described in detail with reference to the accompanying drawings: the modules or units used in the present invention are all known modules or units, and software is already installed when the modules or units are purchased. No software or method innovation exists in the invention.
Please refer to fig. 1 and fig. 2: this intelligent house monitored control system includes: the system comprises a service host 1, a controller 2, an environment monitoring module 3, a security monitoring module 4, a wireless router 5 and a monitoring terminal 6;
the output end of the controller 2 is connected with the service host 1, the environment monitoring module 3 and the security monitoring module 4 are installed indoors, the signal output ends of the environment monitoring module 3 and the security monitoring module 4 are connected with the signal input end of the service host 1, and the signal output end of the service host 1 is connected with the monitoring terminal 6 through the wireless router 5.
The environment monitoring terminal 3 comprises a built-in detection module, a mobile phone detection module and a data reading module connected with an environment monitoring station;
the mobile phone detection module comprises a mobile phone data sharing module which is connected with the environment monitoring station and used for wirelessly sharing mobile phone client data;
the data reading module comprises:
the network data downloading module is used for downloading the network authentication data and the network configuration data which are encrypted by the public key from the operator server;
the key bank is used for storing a private key matched with the public key of the operator server;
the operator database is used for storing network authentication data and network configuration data;
the network data authentication module is respectively connected with the key bank, the operator database and the network data downloading module and is used for acquiring a private key corresponding to the public key in the key bank, decrypting the encrypted network authentication data and network configuration data through the private key, authenticating the decrypted network authentication data and network configuration data, and storing the network authentication data and the network configuration data into the operator database after the authentication is passed;
the authentication module is connected with the operator database and used for completing an authentication request by using the network authentication data in the operator database;
the network selection module is connected with the operator database and used for setting the network authentication data and the network configuration data;
the command interpretation module is respectively connected with the network data downloading module, the authentication module and the network selection module and is used for interpreting a command from the mobile terminal and sending the interpreted command to the corresponding functional module; the interface communication module is connected with the command interpretation module and is used for communicating with the mobile terminal;
the safety monitoring module is internally provided with a voice recognition module and a face recognition unit which are wirelessly connected with the mobile phone, and sends a voice command to the service host through the mobile phone; the voice recognition module is internally provided with a frequency analysis unit, a phase curve calculation unit, an error calculation unit and a sound signal recognition unit;
the frequency analysis unit is used for analyzing the frequency signal of the sound signal;
the phase curve calculation unit calculates a phase curve approximating a temporal change in the phase of the frequency signal;
the error calculation unit is used for calculating the error between the phase curve and the phase of the frequency signal;
the sound signal identification unit identifies whether the sound signal is a periodic sound signal based on the error.
The environment monitoring module 3 comprises: 3-1 parts of a microprocessor, 3-2 parts of an infrared transponder, 3-3 parts of an intelligent socket, 3-4 parts of an intelligent switch, 3-5 parts of a gas detector, 3-6 parts of a smoke detector, 3-7 parts of a temperature and humidity sensor and 3-8 parts of an indoor sensor;
the microprocessor 3-1 is used for data operation and processing; the infrared transponder 3-2 is connected with the microprocessor 3-1 and is used for the microprocessor 3-1 to exchange information with the outside; the intelligent socket 3-3 is connected with the microprocessor 3-1 and used for providing power supply for electric equipment; the intelligent switch 3-4 is connected with the microprocessor 3-1 and is used for communicating the household appliance with a power supply; the gas detector 3-5 is connected with the microprocessor 3-1 and is used for detecting the concentration content of the gas in the kitchen; the temperature and humidity sensor 3-7 is connected with the microprocessor 3-1 and used for detecting indoor temperature and humidity values; the indoor sensor 3-8 is connected with the microprocessor 3-1 and used for detecting indoor environment information.
The security monitoring module 4 comprises an alarm device and alarm detection equipment, and the signal output end of the alarm detection equipment is connected with the alarm device; the alarm device includes: alarm bell, horn and sound box; the alarm detection device includes: the wireless infrared detector, wireless door magnetism, wireless emergency button, wireless smoke are felt.
The indoor inductor 3-8 comprises: one or more of a smoke concentration transmitter, a carbon dioxide concentration transmitter, a PM2.5 transmitter and a carbon monoxide transmitter.
The wireless router 5 is a ZigBee communication module of a bee butterfly protocol.
The monitoring terminal 6 comprises: one or more combinations of a mobile phone control end, a computer control end and a tablet computer control end.
The face recognition unit is provided with a feature extraction module, the feature extraction module is used for constructing a feature extraction operator and extracting face image feature vectors, and the specific steps are as follows:
step one, collecting N samples to be used as a training set X, and solving an average value m of the samples by adopting the following formula:
wherein x isi E to the sample training set X = (X)1 ,x2 ,…,xN );
Step two, obtaining a dispersion matrix S:
finding out the eigenvalue lambada i of the scattering matrix and the corresponding eigenvector ei, wherein the ei is the principal component, and arranging the eigenvalues from large to small in turn to lambada 1, lambada 2, \ 8230;
assuming p values, λ 1, λ 2, \8230;, λ p can determine the face space E = (E1, E2, \8230;, eP), on which the point in the training sample X, where each element is projected into the space, can be obtained by:
x'i =Et xi ,t=1,2,…,N;
the p-dimensional vector obtained by the formula is obtained by carrying out PCA dimensionality reduction on the original vector;
the feature extraction module performs multi-face recognition by adopting an SRC face recognition algorithm based on sparse representation.
The environment monitoring station comprises:
the detection base station comprises one or more electrochemical gas sensors, collects the pollution gas information, generates corresponding electric signals and outputs the electric signals, wherein the electrochemical sensors comprise one or more of a sulfur dioxide electrochemical sensor, a nitrogen dioxide electrochemical sensor, a carbon monoxide electrochemical sensor and an ozone electrochemical sensor;
the detection master station receives signals sent by the detection base station;
the monitoring base station is used for carrying out secondary acquisition on signals received by the detection master station and analyzing the signals;
and the monitoring master station is used for storing and inquiring the analysis result of the monitoring base station.
The specific method for performing multi-face recognition by adopting the SRC face recognition algorithm comprises the following steps:
detecting the face of the current frame and sequencing according to coordinates to obtain the recognition result of each face of the current frame; calculating the respective adjacent n frames of recognition results of each face according to the recognition results of each face of the current frame; counting the identities of all the faces, and determining the final identity of a target by uniform identities with more than half n/2;
wherein, the calculation between the picture to be recognized and each category of the face libraryReconstruction error r1 ,r2 ……rn },r1 <r2 <……<rn The obtained similarity value is according toDetermining a final recognition result; wherein T is1 Is a ratio value, T1 =0.6。
Inputting set values into the service host 1 through the controller 2, and detecting various values of the indoor environment by the environment monitoring module 3; the outdoor environment related data provided by the environment monitoring station can be read and downloaded through the environment monitoring terminal 3, and the environment data of the location of the user can be uploaded; the intelligent socket 3-3 can receive control signals to control the on and off of the household appliance, and can record the power consumption of the household appliance in the power-on time, and the like; the intelligent switches 3-4 can control the on-off of the live wire, such as turning on and off the lamp, adjusting the brightness of the lamp and turning on and off the electric curtain; the gas monitor can monitor whether the gas used in the house leaks or not and transmit the detected signal to the service host 1; the smoke detector 3-6 can detect the smoke concentration in the house, if the concentration exceeds a certain value, fire may be caused, the smoke detector 3-6 transmits a smoke concentration alarm signal to the service host 1, and after the smoke detector knows that the smoke concentration alarm signal is sent to the service host 1 through dialing a video telephone, a user can watch the indoor condition in the house to confirm whether the fire is caused. The temperature and humidity sensors 3-7 are capable of sensing and recording the temperature and humidity indoors or outdoors. After a person leaves home, the security monitoring module 4 starts a leaving-home mode, security reaches the highest level, and a user can know the condition of the home through the monitoring terminal 6; and the face recognition unit sets higher authority to the related units of the intelligent home control system, when abnormal conditions occur in the home, the abnormal condition information is automatically sent to a mobile phone number preset by a user, the user is reminded in time, and the security monitoring module 4 also automatically starts corresponding processing modes such as alarming and the like.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the present invention in any way, and all simple modifications, equivalent changes and modifications made to the above embodiment according to the technical spirit of the present invention are within the scope of the technical solution of the present invention.