Network access method and device for smart home equipment
By comparing device characteristics and monitoring communication behavior of network access requests of smart home devices, and controlling network access permissions based on risk scores, the problem of insufficient security in the existing technology is solved, and effective identification and interception of illegal intrusions and counterfeit devices are achieved. , improving the security of the smart home environment.
Patent Information
- Application Number
- CN202410285342.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-13
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-03-13
AI Technical Summary
Existing smart home device network access technology relies on static means, which cannot effectively deal with network attacks and device counterfeiting. It is also difficult to conduct refined risk assessment and real-time control in the face of a large number of heterogeneous devices and emerging threats, resulting in security risks. insufficient.
By receiving the network access request information of smart home devices, extracting device characteristics and comparing them with the legal device library, monitoring communication behavior characteristics in real time, using the preset risk identification model to generate an overall risk score, determining network access permissions based on the score, and triggering additional verification steps. Ensure safety.
Effectively identify and intercept illegal intrusions and counterfeit devices, enhance the security protection capabilities of smart home environments, ensure device authenticity and compliance, and protect user privacy and network security.
Smart Images

Figure CN118174922B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a network access method and device for smart home equipment. Background Art
[0002] Currently, the network access technology of smart home devices (such as smart TVs, smart air conditioners, smart cameras, smart door locks, etc.) mainly includes basic identity authentication, key negotiation and access control mechanisms. In the field of network access technology for smart home devices today, existing network access solutions mainly focus on traditional security mechanisms based on predefined rules. For example, the common WPA / WPA2 / WPA3 security protocols in Wi-Fi networks provide initial device identity authentication and encrypted communication mechanisms, but they usually rely on static means such as shared keys, pre-set certificates or users manually entering passwords, and cannot effectively deal with the evolving network attacks and device counterfeiting problems.
[0003] At the same time, most smart home devices use relatively basic one-time authentication when they are connected to the network, such as MAC address filtering, device ID matching, factory preset key verification, etc. These methods have limitations in preventing malicious device access and device counterfeiting. After the device is first connected to the network, it usually relies on regular security updates and background monitoring to discover potential security risks. This lagging security measure cannot prevent high-risk devices from accessing the network in real time. In addition, with the rapid growth of the number of devices and the complexity of the IoT environment, a single authentication method is no longer sufficient to meet security needs. Existing systems often find it difficult to conduct refined risk assessment and real-time control when faced with the heterogeneity of a large number of devices, the diversity of device behaviors, and emerging security threats. In particular, for malicious devices that attempt to imitate the characteristics of legitimate devices, exploit vulnerabilities or unknown threats to access the network, traditional methods are difficult to effectively identify and block.
[0004] Therefore, the existing smart home network access technology is not secure enough, and innovative solutions are urgently needed to improve the overall security and intelligence level. Summary of the invention
[0005] The embodiments of the present invention provide a method and device for network access of smart home devices, which can effectively solve the security vulnerability problem that may be caused by traditional single verification means, realize the effective identification and interception of illegal intrusion, counterfeit devices and abnormal communication behaviors, greatly enhance the security protection capability of the smart home environment, ensure the authenticity and compliance of all access devices in the home network, and effectively protect user privacy and network security.
[0006] An embodiment of the present invention provides a method for network access of a smart home device, comprising:
[0007] Receive network access request information from a smart home device to be connected to the network;
[0008] Extracting features from the network access request information to obtain device features of the smart home device;
[0009] Compare and analyze the device features with the legal device features in a preset legal device feature library to obtain the device feature similarity;
[0010] Performing real-time monitoring and analysis on the communication behavior of the smart home device when requesting to access the network, and obtaining the communication behavior characteristics when requesting to access the network;
[0011] Inputting the communication behavior characteristics into a preset communication behavior risk identification model to obtain the communication behavior risk level;
[0012] Generating an overall risk score of the smart home device according to a weighted fusion of the device feature similarity and the communication behavior risk level;
[0013] The network access permission of the smart home device is determined based on a comparison result of the overall risk score and a preset risk score threshold.
[0014] As an improvement of the above solution, determining the network access permission of the smart home device according to the comparison result of the overall risk score and the preset risk score threshold includes:
[0015] If the overall risk score is lower than the preset risk score threshold, it is determined to be a low-risk device, and the network access permission of the smart home device is determined to be allowed to access the network, so that the smart home device can access the network normally;
[0016] If the overall risk score is higher than the preset risk score threshold, a preset identity authentication notification is triggered, so that the smart home device can access the network normally after the user passes the biometric identification or the mobile phone SMS verification code verification.
[0017] As an improvement of the above solution, the network access request information includes: a unique device identification code, hardware information, software version and manufacturer information;
[0018] The communication behavior characteristics include: data transmission frequency characteristics, communication protocol characteristics and data packet content characteristics.
[0019] As an improvement of the above solution, the step of inputting the communication behavior characteristics into a preset communication behavior risk identification model to obtain the communication behavior risk level includes:
[0020] Convert the communication behavior characteristics into numerical feature vectors : ,in, is the data transmission frequency characteristic, is the communication protocol characteristic, is the content feature of the data packet;
[0021] The trained communication behavior risk identification model is used to predict the risk and obtain the degree of communication behavior risk. The communication behavior risk identification model is:
[0022]
[0023] is the intercept term, , , The weight coefficients corresponding to the three features are the data transmission frequency feature, the communication protocol feature and the data packet content feature, all of which are determined after the model is trained; Indicates that under the given communication behavior characteristics, the event Probability of occurrence, event It refers to the high-risk communication behaviors that occur in smart home devices.
[0024] As an improvement of the above solution, the training process of the communication behavior risk identification model includes:
[0025] Construct an initial risk identification model and initialize model parameters. The initial risk identification model is: , is the intercept term, is the feature weight vector;
[0026] For each communication behavior feature sample in the training set Calculate its predicted probability : ; The training set includes a plurality of communication behavior feature samples And the corresponding true label sample , i represents the i-th sample;
[0027] According to the predicted probability and the true label sample corresponding to the sample , and calculate the loss function value of each sample in the training set by minimizing the loss function, and summarize the loss function values of all samples in the training set to obtain the total loss function : ;
[0028] Calculate the total loss function with respect to the model parameters and The gradient of
[0029] Update model parameters using gradient descent and , reduce the loss function value;
[0030] The training process is repeated until the model converges or the preset maximum number of iterations is reached.
[0031] Another embodiment of the present invention provides a network access device for a smart home device, including:
[0032] A receiving module, used to receive network access request information of a smart home device to be connected to the network;
[0033] A feature extraction module, used to extract features from the network access request information to obtain device features of the smart home device;
[0034] A comparison module, used to compare and analyze the device features with the legal device features in a preset legal device feature library to obtain the device feature similarity;
[0035] An analysis module, used to monitor and analyze the communication behavior of the smart home device in real time when requesting to access the network, and obtain the communication behavior characteristics when requesting to access the network;
[0036] An identification module, used for inputting the communication behavior characteristics into a preset communication behavior risk identification model to obtain the communication behavior risk level;
[0037] A risk scoring module, configured to generate an overall risk score for the smart home device based on a weighted fusion of the device feature similarity and the communication behavior risk level;
[0038] The decision module is used to determine the network access permission of the smart home device according to the comparison result of the overall risk score and the preset risk score threshold.
[0039] As an improvement of the above solution, the decision module is specifically used for:
[0040] If the overall risk score is lower than the preset risk score threshold, it is determined to be a low-risk device, and the network access permission of the smart home device is determined to be allowed to access the network, so that the smart home device can access the network normally;
[0041] If the overall risk score is higher than the preset risk score threshold, a preset identity authentication notification is triggered, so that the smart home device can access the network normally after the user passes the biometric identification or the mobile phone SMS verification code verification.
[0042] As an improvement of the above solution, the network access request information includes: a unique device identification code, hardware information, software version and manufacturer information;
[0043] The communication behavior characteristics include: data transmission frequency characteristics, communication protocol characteristics and data packet content characteristics.
[0044] As an improvement of the above solution, the identification module is specifically used for:
[0045] Convert the communication behavior characteristics into numerical feature vectors : ,in, is the data transmission frequency characteristic, is the communication protocol characteristic, is the content feature of the data packet;
[0046] The trained communication behavior risk identification model is used to predict the risk and obtain the degree of communication behavior risk. The communication behavior risk identification model is:
[0047]
[0048] is the intercept term, , , The weight coefficients corresponding to the three features are the data transmission frequency feature, the communication protocol feature and the data packet content feature, all of which are determined after the model is trained; Indicates that under the given communication behavior characteristics, the event Probability of occurrence, event It refers to the high-risk communication behaviors that occur in smart home devices.
[0049] As an improvement of the above solution, the device further includes:
[0050] The construction module is used to build the initial risk identification model and initialize the model parameters. The initial risk identification model is: , is the intercept term, is the feature weight vector;
[0051] The first calculation module is used to calculate each communication behavior feature sample in the training set. Calculate its predicted probability : ; The training set includes a plurality of communication behavior feature samples And the corresponding true label sample , i represents the i-th sample;
[0052] The second calculation module is used to calculate the predicted probability and the real label sample corresponding to the sample. , and calculate the loss function value of each sample in the training set by minimizing the loss function, and summarize the loss function values of all samples in the training set to obtain the total loss function : ;
[0053] The third calculation module is used to calculate the minimization loss function with respect to the model parameters and The gradient of
[0054] Update module, used to update model parameters using gradient descent and , reduce the loss function value;
[0055] The termination module is used to repeat the training process from the construction module to the update module until the model converges or reaches a preset maximum number of iterations.
[0056] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0057] The embodiments of the present invention improve security by combining static characteristics of devices with dynamic behavior analysis. First, the received network access request information is deeply analyzed, the inherent identity characteristics of the device are extracted and compared with the known legal device library, and quantified as the device feature similarity. Secondly, the communication behavior characteristics of the device during the network access process are monitored in real time and deeply analyzed, and the corresponding risk level is calculated with the help of a preset communication behavior risk identification model. Finally, the device feature similarity and the communication behavior risk level are weighted and fused to form an overall risk score, and based on this, it is compared with the preset risk threshold to accurately control whether the smart home device has network access rights. The embodiments of the present invention effectively solve the security vulnerability problem that may be caused by traditional single verification methods, realize the effective identification and interception of illegal intrusions, counterfeit devices and abnormal communication behaviors, greatly enhance the security protection capabilities of the smart home environment, ensure the authenticity and compliance of all access devices in the home network, and effectively protect user privacy and network security. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a flowchart of a method for network access of a smart home device provided by an embodiment of the present invention;
[0059] Figure 2 It is a structural schematic diagram of a network access device for a smart home device provided by an embodiment of the present invention;
[0060] Figure 3 It is a structural diagram of a network access control device for a smart home device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] See also Figure 1 , is a flowchart of a method for accessing a smart home device according to an embodiment of the present invention. The method for accessing a smart home device comprises steps S10 to S16:
[0063] S10, receiving network access request information of a smart home device to be connected to the network;
[0064] S11, extracting features from the network access request information to obtain device features of the smart home device;
[0065] S12, comparing and analyzing the device features with legitimate device features in a preset legitimate device feature library to obtain device feature similarity;
[0066] S13, monitoring and analyzing the communication behavior of the smart home device in real time when requesting to access the network, and obtaining communication behavior characteristics when requesting to access the network;
[0067] S14, inputting the communication behavior characteristics into a preset communication behavior risk identification model to obtain a communication behavior risk level;
[0068] S15, generating an overall risk score of the smart home device according to a weighted fusion of the device feature similarity and the communication behavior risk level;
[0069] S16, determining the network access permission of the smart home device according to the comparison result of the overall risk score and the preset risk score threshold.
[0070] The embodiments of the present invention improve security by combining static characteristics of devices with dynamic behavior analysis. First, the received network access request information is deeply analyzed, the inherent identity characteristics of the device are extracted and compared with the known legal device library, and quantified as the device feature similarity. Secondly, the communication behavior characteristics of the device during the network access process are monitored in real time and deeply analyzed, and the corresponding risk level is calculated with the help of a preset communication behavior risk identification model. Finally, the device feature similarity and the communication behavior risk level are weighted and fused to form an overall risk score, and based on this, it is compared with the preset risk threshold to accurately control whether the smart home device has network access rights. The embodiments of the present invention effectively solve the security vulnerability problem that may be caused by traditional single verification methods, realize the effective identification and interception of illegal intrusions, counterfeit devices and abnormal communication behaviors, greatly enhance the security protection capabilities of the smart home environment, ensure the authenticity and compliance of all access devices in the home network, and effectively protect user privacy and network security.
[0071] In this embodiment, the method of extracting relevant features may be an existing feature extraction method, wherein the unique identification code of the device may be a MAC address or a UUID, and the hardware information may be a CPU model or a memory capacity, and the like.
[0072] In this embodiment, as an example, the similarity between the device feature and the legal device feature can be calculated by a cosine similarity algorithm. Wherein, the legal device feature of each legal device is pre-set in the preset legal device feature library.
[0073] In this embodiment, as an example, the calculation process of the weighted fusion of the device feature similarity and the communication behavior risk level is:
[0074] Used to calculate the overall risk score of smart home devices (denoted as R ), where the device feature similarity is S , the risk level of communication behavior is C , and introduces a weight factor that reflects the importance of both w 1 and w 2, and the function considering nonlinear effects and : ;
[0075] in, w 1 and w 2 represent the weights of device feature similarity and communication behavior risk level, respectively, satisfying and ,The choice of weights can be adjusted according to the actual application ,scenario and historical data. is a nonlinear transformation function of the device feature similarity, used to enhance the impact of similarity differences: ;in, and is a parameter that adjusts the shape of the function. is a nonlinear conversion function of the risk level of communication behavior, which can also enhance the importance of risk level: ,in, and It is an adjustment parameter for the risk level characteristics. By performing nonlinear processing on the risk indicators from two different sources and assigning different weights according to their relative importance in the risk assessment system, the overall risk level of smart home devices can be more accurately reflected.
[0076] In this embodiment, it should be noted that the technical means for real-time monitoring and analysis of the communication behavior of the smart home device when requesting to access the network can refer to the existing monitoring and analysis technology, which will not be elaborated here.
[0077] For example, determining the network access permission of the smart home device according to the comparison result of the overall risk score and the preset risk score threshold includes:
[0078] If the overall risk score is lower than the preset risk score threshold, it is determined to be a low-risk device, and the network access permission of the smart home device is determined to be allowed to access the network, so that the smart home device can access the network normally;
[0079] If the overall risk score is higher than the preset risk score threshold, a preset identity authentication notification is triggered, so that the smart home device can access the network normally after the user passes the biometric identification or the mobile phone SMS verification code verification.
[0080] As an example, the network access request information includes: a device unique identification code, hardware information, software version, and manufacturer information;
[0081] The communication behavior characteristics include: data transmission frequency characteristics, communication protocol characteristics and data packet content characteristics.
[0082] Among them, the data transmission frequency feature indicates the average number of data transmissions per minute by the device; the communication protocol feature indicates the communication protocol encoding used by the device, such as TCP, UDP or other custom protocols; the data packet content feature indicates the numerical value after some quantitative processing of the data packet content, such as the entropy of the hash value, the frequency of keyword occurrence, etc.
[0083] Furthermore, the step of inputting the communication behavior characteristics into a preset communication behavior risk identification model to obtain the communication behavior risk level includes:
[0084] Convert the communication behavior characteristics into numerical feature vectors : ,in, is the data transmission frequency characteristic, is the communication protocol characteristic, is the content feature of the data packet;
[0085] The trained communication behavior risk identification model is used to predict the risk and obtain the degree of communication behavior risk. The communication behavior risk identification model is:
[0086]
[0087] is the intercept term, , , The weight coefficients corresponding to the three features are the data transmission frequency feature, the communication protocol feature and the data packet content feature, all of which are determined after the model is trained; Indicates that under the given communication behavior characteristics, the event Probability of occurrence, event It refers to the high-risk communication behaviors that occur in smart home devices.
[0088] For example, the feature vector of a new device is: , here It means that the number of data transmissions per minute is 150. Indicates that the device is using the first preset communication protocol. Represents the quantified value of the data packet content features. Using the trained model parameters, we calculate the risk level of the device; based on the comparison result of the overall risk score with the preset risk score threshold, the system will decide whether to allow the device to quickly access the network or trigger additional security verification steps.
[0089] As an example, the training process of the communication behavior risk identification model includes:
[0090] Construct an initial risk identification model and initialize model parameters. The initial risk identification model is: , is the intercept term, is the feature weight vector;
[0091] For each communication behavior feature sample in the training set Calculate its predicted probability : ; The training set includes a plurality of communication behavior feature samples And the corresponding true label sample , i represents the i-th sample;
[0092] According to the predicted probability and the true label sample corresponding to the sample , and calculate the loss function value of each sample in the training set by minimizing the loss function, and summarize the loss function values of all samples in the training set to obtain the total loss function : ;
[0093] Calculate the total loss function with respect to the model parameters and The gradient is: ; "j" refers to the model parameter vector The index of each feature weight parameter in ; in machine learning and optimization algorithms, when we calculate the gradient of the loss function with respect to the model parameters, we need to calculate the weight parameter corresponding to each feature Calculate partial derivatives, where j ranges from 1 to n, indicating that there are n features in the model; Represents the loss function L with respect to the Feature weights The partial derivatives of the model can be used to update the model parameters based on these partial derivatives through optimization algorithms such as gradient descent, in order to minimize the loss function and thus improve the prediction performance of the model.
[0094] Update model parameters using gradient descent and , reduce the loss function value; use gradient descent or other optimization algorithms (such as Newton method, Adam, etc.) to update model parameters, the purpose is to reduce the loss function value. Taking the gradient descent method as an example, each time the parameters are updated, according to the learning rate Update as follows: ;
[0095] Repeat the above training process until the model converges or reaches the preset maximum number of iterations.
[0096] Throughout the process, by continuously calculating the gradient of the loss function and updating the parameters in the opposite direction of the gradient, the model gradually learns to effectively infer the risk level of the device from the communication behavior characteristics, minimize the prediction error, and improve the performance of the model on new samples.
[0097] See also Figure 2 , is a schematic diagram of the structure of a network access device for a smart home device provided by an embodiment of the present invention. The network access device for the smart home device includes:
[0098] The receiving module 10 is used to receive network access request information of a smart home device to be connected to the network;
[0099] A feature extraction module 11 is used to extract features from the network access request information to obtain device features of the smart home device;
[0100] A comparison module 12 is used to compare and analyze the device features with the legal device features in a preset legal device feature library to obtain the similarity of the device features;
[0101] The analysis module 13 is used to monitor and analyze the communication behavior of the smart home device in real time when requesting to access the network, and obtain the communication behavior characteristics when requesting to access the network;
[0102] An identification module 14, configured to input the communication behavior characteristics into a preset communication behavior risk identification model to obtain a communication behavior risk level;
[0103] A risk scoring module 15, configured to generate an overall risk score of the smart home device based on a weighted fusion of the device feature similarity and the communication behavior risk level;
[0104] The decision module 16 is used to determine the network access permission of the smart home device according to the comparison result of the overall risk score and the preset risk score threshold.
[0105] The embodiments of the present invention improve security by combining static characteristics of devices with dynamic behavior analysis. First, the received network access request information is deeply analyzed, the inherent identity characteristics of the device are extracted and compared with the known legal device library, and quantified as the device feature similarity. Secondly, the communication behavior characteristics of the device during the network access process are monitored in real time and deeply analyzed, and the corresponding risk level is calculated with the help of a preset communication behavior risk identification model. Finally, the device feature similarity and the communication behavior risk level are weighted and fused to form an overall risk score, and based on this, it is compared with the preset risk threshold to accurately control whether the smart home device has network access rights. The embodiments of the present invention effectively solve the security vulnerability problem that may be caused by traditional single verification methods, realize the effective identification and interception of illegal intrusions, counterfeit devices and abnormal communication behaviors, greatly enhance the security protection capabilities of the smart home environment, ensure the authenticity and compliance of all access devices in the home network, and effectively protect user privacy and network security.
[0106] As an improvement of the above solution, the decision module is specifically used for:
[0107] If the overall risk score is lower than the preset risk score threshold, it is determined to be a low-risk device, and the network access permission of the smart home device is determined to be allowed to access the network, so that the smart home device can access the network normally;
[0108] If the overall risk score is higher than the preset risk score threshold, a preset identity authentication notification is triggered, so that the smart home device can access the network normally after the user passes the biometric identification or the mobile phone SMS verification code verification.
[0109] As an improvement of the above solution, the network access request information includes: a unique device identification code, hardware information, software version and manufacturer information;
[0110] The communication behavior characteristics include: data transmission frequency characteristics, communication protocol characteristics and data packet content characteristics.
[0111] As an improvement of the above solution, the identification module is specifically used for:
[0112] Convert the communication behavior characteristics into numerical feature vectors : ,in, is the data transmission frequency characteristic, is the communication protocol characteristic, is the content feature of the data packet;
[0113] The trained communication behavior risk identification model is used to predict the risk and obtain the degree of communication behavior risk. The communication behavior risk identification model is:
[0114]
[0115] is the intercept term, , , The weight coefficients corresponding to the three features are the data transmission frequency feature, the communication protocol feature and the data packet content feature, all of which are determined after the model is trained; Indicates that under the given communication behavior characteristics, the event Probability of occurrence, event It refers to the high-risk communication behaviors that occur in smart home devices.
[0116] As an improvement of the above solution, the device further includes:
[0117] The construction module is used to construct the initial risk identification model and initialize the model parameters. The initial risk identification model is: , is the intercept term, is the feature weight vector;
[0118] The first calculation module is used to calculate each communication behavior feature sample in the training set. Calculate its predicted probability : ; The training set includes a plurality of communication behavior feature samples And the corresponding true label sample , i represents the i-th sample;
[0119] The second calculation module is used to calculate the predicted probability and the real label sample corresponding to the sample. , and calculate the loss function value of each sample in the training set by minimizing the loss function, and summarize the loss function values of all samples in the training set to obtain the total loss function : ;
[0120] The third calculation module is used to calculate the minimization loss function with respect to the model parameters and The gradient of
[0121] Update module, used to update model parameters using gradient descent and , reduce the loss function value;
[0122] The termination module is used to repeat the training process from the construction module to the update module until the model converges or reaches a preset maximum number of iterations.
[0123] See also Figure 3 , is a schematic diagram of a network access control device for a smart home device provided in an embodiment of the present invention. The network access control device for a smart home device in this embodiment includes: a processor 100, a memory 101, and a computer program stored in the memory 101 and executable on the processor 100, such as a network access program for a smart home device. When the processor 100 executes the computer program, the steps in the network access method embodiments of each smart home device described above are implemented. Alternatively, when the processor 100 executes the computer program, the functions of each module / unit in the above-mentioned device embodiments are implemented.
[0124] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 101 and executed by the processor 100 to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the network access control device of the smart home device.
[0125] The network access control device of the smart home device may be a network access control device such as a gateway. The network access control device of the smart home device may include, but is not limited to, a processor and a memory. Those skilled in the art may understand that the schematic diagram is only an example of a network access control device of a smart home device and does not constitute a limitation on the network access control device of the smart home device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the network access control device of the smart home device may also include input and output devices, network access devices, buses, etc.
[0126] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the network access control device of the smart home device, and uses various interfaces and lines to connect various parts of the network access control device of the entire smart home device.
[0127] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the network access control device of the smart home device by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0128] Wherein, if the module / unit integrated in the network access control device of the smart home device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media does not include electrical carrier signals and telecommunication signals.
[0129] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0130] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for connecting a smart home device to a network. It is characterized in that include: Receive network access request information from a smart home device to be connected to the network; Extracting features from the network access request information to obtain device features of the smart home device; Compare and analyze the device features with the legal device features in a preset legal device feature library to obtain the device feature similarity; Performing real-time monitoring and analysis on the communication behavior of the smart home device when requesting to access the network, and obtaining the communication behavior characteristics when requesting to access the network; Inputting the communication behavior characteristics into a preset communication behavior risk identification model to obtain the communication behavior risk level; Generating an overall risk score of the smart home device according to a weighted fusion of the device feature similarity and the communication behavior risk level; Determining the network access permission of the smart home device according to a comparison result of the overall risk score and a preset risk score threshold; The network access request information includes: device unique identification code, hardware information, software version and manufacturer information; the communication behavior characteristics include: data transmission frequency characteristics, communication protocol characteristics and data packet content characteristics; The step of inputting the communication behavior characteristics into a preset communication behavior risk identification model to obtain the communication behavior risk level includes: Convert the communication behavior characteristics into numerical feature vectors : ,in, is the data transmission frequency characteristic, is the communication protocol characteristic, is the content feature of the data packet; The trained communication behavior risk identification model is used to predict the risk and obtain the degree of communication behavior risk. The communication behavior risk identification model is: is the intercept term, , , The weight coefficients corresponding to the three features are the data transmission frequency feature, the communication protocol feature and the data packet content feature, all of which are determined after the model is trained; Indicates that under the given communication behavior characteristics, the event Probability of occurrence, event It refers to the high-risk communication behaviors that occur in smart home devices.
2. The method for accessing the smart home device as claimed in claim 1, It is characterized in that The determining the network access permission of the smart home device according to the comparison result of the overall risk score and the preset risk score threshold includes: If the overall risk score is lower than the preset risk score threshold, it is determined to be a low-risk device, and the network access permission of the smart home device is determined to be allowed to access the network, so that the smart home device can access the network normally; If the overall risk score is higher than the preset risk score threshold, a preset identity authentication notification is triggered so that the smart home device can access the network normally after the user passes the biometric identification or the mobile phone SMS verification code verification.
3. The method for accessing the smart home device as claimed in claim 1, It is characterized in that The training process of the communication behavior risk identification model includes: Construct an initial risk identification model and initialize model parameters. The initial risk identification model is: , is the intercept term, is the feature weight vector; For each communication behavior feature sample in the training set Calculate its predicted probability : ; The training set includes a plurality of communication behavior feature samples And the corresponding true label sample , i represents the i-th sample; According to the predicted probability and the true label sample corresponding to the sample , and calculate the loss function value of each sample in the training set by minimizing the loss function, and summarize the loss function values of all samples in the training set to obtain the total loss function : ; Calculate the total loss function with respect to the model parameters and The gradient of Update model parameters using gradient descent and , reduce the loss function value; The training process is repeated until the model converges or the preset maximum number of iterations is reached.
4. A network access device for smart home devices, It is characterized in that include: A receiving module, used to receive network access request information of a smart home device to be connected to the network; A feature extraction module, used to extract features from the network access request information to obtain device features of the smart home device; A comparison module, used to compare and analyze the device features with the legal device features in a preset legal device feature library to obtain the device feature similarity; An analysis module, used to monitor and analyze the communication behavior of the smart home device in real time when requesting to access the network, and obtain the communication behavior characteristics when requesting to access the network; An identification module, used for inputting the communication behavior characteristics into a preset communication behavior risk identification model to obtain the communication behavior risk level; A risk scoring module, configured to generate an overall risk score for the smart home device based on a weighted fusion of the device feature similarity and the communication behavior risk level; A decision module, configured to determine the network access permission of the smart home device according to a comparison result of the overall risk score and a preset risk score threshold; The network access request information includes: device unique identification code, hardware information, software version and manufacturer information; the communication behavior characteristics include: data transmission frequency characteristics, communication protocol characteristics and data packet content characteristics; The identification module is specifically used for: Convert the communication behavior characteristics into numerical feature vectors : ,in, is the data transmission frequency characteristic, is the communication protocol characteristic, is the content feature of the data packet; The trained communication behavior risk identification model is used to predict the risk and obtain the degree of communication behavior risk. The communication behavior risk identification model is: is the intercept term, , , The weight coefficients corresponding to the three features are the data transmission frequency feature, the communication protocol feature and the data packet content feature, all of which are determined after the model is trained; Indicates that under the given communication behavior characteristics, the event Probability of occurrence, event It refers to the high-risk communication behaviors that occur in smart home devices.
5. The network access device of the smart home device as claimed in claim 4, It is characterized in that The decision module is specifically used for: If the overall risk score is lower than the preset risk score threshold, it is determined to be a low-risk device, and the network access permission of the smart home device is determined to be allowed to access the network, so that the smart home device can access the network normally; If the overall risk score is higher than the preset risk score threshold, a preset identity authentication notification is triggered so that the smart home device can access the network normally after the user passes the biometric identification or the mobile phone SMS verification code verification.
6. The network access device for smart home equipment according to claim 4, It is characterized in that The device also includes: The construction module is used to construct the initial risk identification model and initialize the model parameters. The initial risk identification model is: , is the intercept term, is the feature weight vector; The first calculation module is used to calculate each communication behavior feature sample in the training set. Calculate its predicted probability : ; The training set includes a plurality of communication behavior feature samples And the corresponding true label sample , i represents the i-th sample; The second calculation module is used to calculate the predicted probability and the real label sample corresponding to the sample. , and calculate the loss function value of each sample in the training set by minimizing the loss function, and summarize the loss function values of all samples in the training set to obtain the total loss function : ; The third calculation module is used to calculate the minimization loss function with respect to the model parameters and The gradient of Update module, used to update model parameters using gradient descent and , reduce the loss function value; The termination module is used to repeat the training process from the construction module to the update module until the model converges or reaches a preset maximum number of iterations.
