Inference attack method and system for user activity monitoring in intelligent information system

Through the combination of LT-BERT model and DFA classifier, the encrypted traffic characteristics of IoT devices in smart home systems are extracted, which solves the problem of user activity inference caused by device heterogeneity and encrypted traffic ambiguity, and realizes the intelligent information system Highly accurate security assessment and privacy protection.

CN114818974BActive Publication Date: 2024-09-13BEIHANG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210561347.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-23
Publication Date
2024-09-13
Estimated Expiration
2042-05-23

AI Technical Summary

Technical Problem

Due to device heterogeneity and ambiguous encrypted traffic load characteristics in smart home systems, it is difficult for existing technologies to effectively infer user activities, resulting in an increased risk of privacy leaks. Attacks are limited to device-level attacks and cannot accurately assess the security of intelligent information systems.

Method used

Using the LT-BERT model and DFA classifier, by obtaining encrypted traffic data of IoT devices, extracting device event sequences and traffic feature sequences, conduct fine-grained user activity monitoring and security evaluation, combined with pre-stored correspondence and Levenshtein distance processing , to achieve security assessment of intelligent information systems.

Benefits of technology

It improves the accuracy of intelligent information system detection results and provides a fine-grained privacy attack method that can more accurately assess device security and protect user privacy information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114818974B
    Figure CN114818974B
Patent Text Reader

Abstract

The present invention relates to the field of privacy protection technology for smart homes, and specifically to an inference attack method and system for monitoring user activities in a smart information system. The method comprises: obtaining encrypted traffic data of all IoT devices at a target moment; obtaining a device event sequence at the target moment based on the encrypted data traffic of all IoT devices at the target moment; inputting the encrypted traffic data of all IoT devices into a trained LT‑BERT model to obtain a traffic feature sequence; inputting the traffic feature sequence and the device event sequence at the target moment into a trained DFA classifier to obtain user activities at the target moment; and evaluating whether the smart information system is safe based on the user activities at the target moment. Using this method to evaluate the security of the smart information system improves the accuracy of the evaluation results, which is beneficial to the protection of user privacy information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of privacy protection of smart homes, and in particular to an inference attack method and system for monitoring user activities in a smart information system. Background Art

[0002] With the increasing application and popularity of smart home systems, smart home devices have greatly facilitated users' lives. Various IoT devices in smart home environments (such as light bulbs, switches, speakers) allow users to easily control the physical world around them and facilitate their lifestyles through sensors already embedded in these devices. Sensor data contains a lot of sensitive information about users and devices. Attackers inside or near smart home environments can detect and identify the type, operating status, and even user activities of IoT devices by sniffing the network traffic of smart home devices and sensors. However, due to the heterogeneity of devices in smart home systems (device heterogeneity refers to the fact that in the application scenarios of smart home systems, various IoT devices emerge in an endless stream, with different specific brands and models, which means that it becomes extremely difficult to propose a universal attack method, and the inference of user activities requires the combination of information from different IoT devices) and the fuzzy characteristics of encrypted traffic load (the fuzzy characteristics of encrypted traffic load refer to the fact that in smart home systems, most IoT devices use encrypted communication protocols, so device events and user activities can only be analyzed by capturing the metadata of traffic, such as the length, direction, and time of encrypted traffic), the attack methods of such technologies in this scenario are greatly limited, and they only stay at the device level, that is, inferring device types, identifying user occupancy rates, determining device status, and judging basic device modes, which seriously underestimates the risks of privacy leakage. While smart homes facilitate people's lives, they also increase the probability of user privacy exposure. Therefore, how to obtain and protect user privacy information has become an increasingly popular research issue. Summary of the invention

[0003] The purpose of the present invention is to provide an inference attack method and system for monitoring user activities in an intelligent information system. The method is used to detect the intelligent information system, which improves the accuracy of the detection results of the intelligent information system and is beneficial to the protection of user privacy.

[0004] To achieve the above object, the present invention provides the following solutions:

[0005] A method for inference attack on user activity monitoring in an intelligent information system, comprising:

[0006] Obtain the encrypted traffic data of all IoT devices at the target time;

[0007] Obtaining a device event sequence at the target time according to the encrypted data traffic of all IoT devices at the target time;

[0008] Input the encrypted traffic data of all IoT devices into the trained LT-BERT model to obtain a traffic feature sequence;

[0009] The traffic feature sequence and the device event sequence at the target time are input into the trained DFA classifier to obtain the user activity at the target time; the security of the intelligent information system is evaluated based on the user activity at the target time; the intelligent information system is composed of all Internet of Things devices.

[0010] Optionally, obtaining the device event sequence at the target time according to the encrypted data traffic of all IoT devices at the target time specifically includes:

[0011] For any IoT device, determine the data packet information of the encrypted traffic data of the IoT device as the device event fingerprint corresponding to the encrypted traffic data; the data packet information includes the length, sequence and direction of the data packet;

[0012] Obtaining the device event corresponding to the encrypted traffic data according to the device event fingerprint corresponding to the encrypted traffic data and a pre-stored corresponding relationship; the corresponding relationship is a corresponding relationship between the device event and the device event fingerprint;

[0013] The device events corresponding to the encrypted traffic data of all IoT devices at the target time are combined into a device event sequence at the target time.

[0014] Optionally, the process of determining the pre-stored corresponding relationship is specifically as follows:

[0015] For any device event, obtain multiple data packet information corresponding to the device event;

[0016] Processing the plurality of data packet information using Levenshtein distance to obtain a device event fingerprint corresponding to the device event;

[0017] A pre-stored corresponding relationship is obtained according to all device events and the device event fingerprints corresponding to all device events.

[0018] Optionally, the training process of the DFA classifier is:

[0019] Obtain encrypted traffic data and user activities of all training IoT devices at all times;

[0020] For any moment, the device event sequence at the moment is obtained according to the encrypted data traffic of all training IoT devices at the moment;

[0021] Input the encrypted traffic data of all the training IoT devices at the time into the trained LT-BERT model to obtain the traffic feature sequence at the time;

[0022] Determine the device event sequence, traffic feature sequence and user activity at all times as the training set;

[0023] The DFA classifier is trained according to the training set to obtain a trained DFA classifier.

[0024] A system for inference attack on user activity monitoring in an intelligent information system, comprising:

[0025] The acquisition module is used to obtain the encrypted traffic data of all IoT devices at the target time;

[0026] A device event sequence determination module, configured to obtain a device event sequence at the target time according to the encrypted data traffic of all IoT devices at the target time;

[0027] A traffic feature sequence determination module, used to input the encrypted traffic data of all IoT devices into the trained LT-BERT model to obtain a traffic feature sequence;

[0028] The evaluation module is used to input the traffic feature sequence and the device event sequence at the target time into the trained DFA classifier to obtain the user activity at the target time; the security of the intelligent information system is evaluated according to the user activity at the target time; the intelligent information system is composed of all Internet of Things devices.

[0029] Optionally, the device event sequence determination module specifically includes:

[0030] A fingerprint determination unit, configured to determine, for any IoT device, data packet information of encrypted traffic data of the IoT device as a device event fingerprint corresponding to the encrypted traffic data; the data packet information includes a length, sequence and direction of the data packet;

[0031] A device event determination unit, configured to obtain a device event corresponding to the encrypted traffic data according to a device event fingerprint corresponding to the encrypted traffic data and a pre-stored corresponding relationship; the corresponding relationship is a corresponding relationship between a device event and a device event fingerprint;

[0032] The device event sequence determination unit is used to combine the device events corresponding to the encrypted traffic data of all IoT devices at the target time into a device event sequence at the target time.

[0033] Optionally, the process of determining the pre-stored corresponding relationship is specifically as follows:

[0034] For any device event, obtain multiple data packet information corresponding to the device event;

[0035] Processing the plurality of data packet information using Levenshtein distance to obtain a device event fingerprint corresponding to the device event;

[0036] A pre-stored corresponding relationship is obtained according to all device events and the device event fingerprints corresponding to all device events.

[0037] Optionally, the training process of the DFA classifier is:

[0038] Obtain encrypted traffic data and user activities of all training IoT devices at all times;

[0039] For any moment, the device event sequence at the moment is obtained according to the encrypted data traffic of all training IoT devices at the moment;

[0040] Input the encrypted traffic data of all the training IoT devices at the time into the trained LT-BERT model to obtain the traffic feature sequence at the time;

[0041] Determine the device event sequence, traffic feature sequence and user activity at all times as the training set;

[0042] The DFA classifier is trained according to the training set to obtain a trained DFA classifier.

[0043] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: the present invention obtains the device event sequence at the target moment according to the encrypted data traffic of all IoT devices at the target moment; inputs the encrypted traffic data of all IoT devices into the trained LT-BERT model to obtain the traffic feature sequence; inputs the traffic feature sequence and the device event sequence at the target moment into the trained DFA classifier to obtain the user activity at the target moment; and evaluates whether the intelligent information system is safe according to the user activity at the target moment. This is a fine-grained privacy attack method. By evaluating the security of the intelligent information system through this fine-grained attack method, more accurate device evaluation results can be obtained. Some necessary processing is performed on the device according to the evaluation results, which is conducive to the protection of user privacy information. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0045] Figure 1 A flowchart of an inference attack method for monitoring user activities in an intelligent information system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] 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.

[0047] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0048] Based on the problems existing in the prior art, the present invention proposes a method for fine-grained privacy attack on user activities of a smart home system, the method comprising:

[0049] Obtain encrypted traffic data of all IoT devices at the target time.

[0050] The device event sequence at the target moment is obtained according to the encrypted data traffic of all IoT devices at the target moment.

[0051] The encrypted traffic data of all IoT devices are input into the trained LT-BERT model to obtain the traffic feature sequence.

[0052] The traffic feature sequence and the device event sequence at the target time are collectively referred to as Σ; the trained DFA classifier is input to obtain the user activity A at the target time; the security of the intelligent information system is evaluated based on the user activity at the target time; the intelligent information system is composed of all Internet of Things devices.

[0053] In practical applications, obtaining the device event sequence at the target time according to the encrypted data traffic of all IoT devices at the target time specifically includes:

[0054] For any IoT device, data packet information of the encrypted traffic data of the IoT device is determined as the device event fingerprint corresponding to the encrypted traffic data; the data packet information includes the length, sequence and direction of the data packet.

[0055] The device event corresponding to the encrypted traffic data is obtained according to the device event fingerprint corresponding to the encrypted traffic data and a pre-stored corresponding relationship; the corresponding relationship is a corresponding relationship between the device event and the device event fingerprint.

[0056] The device events corresponding to the encrypted traffic data of all IoT devices at the target time are combined into a device event sequence at the target time.

[0057] In actual application, the process of determining the pre-stored corresponding relationship is specifically as follows:

[0058] For any device event, multiple data packet information corresponding to the device event is obtained.

[0059] The Levenshtein distance is used to process the plurality of data packet information to obtain a device event fingerprint corresponding to the device event.

[0060] A pre-stored corresponding relationship is obtained according to all device events and the device event fingerprints corresponding to all device events.

[0061] In practical applications, the training process of the DFA classifier is:

[0062] Get encrypted traffic data and user activity for all training IoT devices at all times.

[0063] For any moment, the device event sequence at the moment is obtained according to the encrypted data traffic of all training IoT devices at the moment.

[0064] The encrypted traffic data of all the training IoT devices at the time is input into the trained LT-BERT model to obtain the traffic feature sequence at the time.

[0065] Determine the device event sequence, traffic feature sequence and user activity at all times as the training set.

[0066] The DFA classifier is trained according to the training set to obtain a trained DFA classifier.

[0067] The embodiment of the present invention provides an inference attack system for monitoring user activities in an intelligent information system, including:

[0068] The acquisition module is used to obtain the encrypted traffic data of all IoT devices at the target time.

[0069] The device event sequence determination module is used to obtain the device event sequence at the target time according to the encrypted data traffic of all IoT devices at the target time.

[0070] The traffic feature sequence determination module is used to input the encrypted traffic data of all the IoT devices into the trained LT-BERT model to obtain the traffic feature sequence.

[0071] The evaluation module is used to input the traffic feature sequence and the device event sequence at the target time into the trained DFA classifier to obtain the user activity at the target time; the security of the intelligent information system is evaluated according to the user activity at the target time; the intelligent information system is composed of all Internet of Things devices.

[0072] As an optional implementation manner, the device event sequence determination module specifically includes:

[0073] The fingerprint determination unit is used to determine, for any IoT device, data packet information of the encrypted traffic data of the IoT device as the device event fingerprint corresponding to the encrypted traffic data; the data packet information includes the length, sequence and direction of the data packet.

[0074] The device event determination unit is used to obtain the device event corresponding to the encrypted traffic data according to the device event fingerprint corresponding to the encrypted traffic data and a pre-stored corresponding relationship; the corresponding relationship is the corresponding relationship between the device event and the device event fingerprint.

[0075] The device event sequence determination unit is used to combine the device events corresponding to the encrypted traffic data of all IoT devices at the target time into a device event sequence at the target time.

[0076] As an optional implementation manner, the process of determining the pre-stored corresponding relationship is specifically as follows:

[0077] For any device event, multiple data packet information corresponding to the device event is obtained.

[0078] The Levenshtein distance is used to process the plurality of data packet information to obtain a device event fingerprint corresponding to the device event.

[0079] A pre-stored corresponding relationship is obtained according to all device events and the device event fingerprints corresponding to all device events.

[0080] As an optional implementation, the training process of the DFA classifier is:

[0081] Get encrypted traffic data and user activity for all training IoT devices at all times.

[0082] For any moment, the device event sequence at the moment is obtained according to the encrypted data traffic of all training IoT devices at the moment.

[0083] The encrypted traffic data of all the training IoT devices at the time is input into the trained LT-BERT model to obtain the traffic feature sequence at the time.

[0084] Determine the device event sequence, traffic feature sequence and user activity at all times as the training set.

[0085] The DFA classifier is trained according to the training set to obtain a trained DFA classifier.

[0086] The embodiment of the present invention also provides a more specific method for fine-grained attack on user activities of a smart home system, the main steps of which are:

[0087] Step 1: Train the LT-BERT model and DFA classifier:

[0088] Step 1: Capture the encrypted traffic data of each IoT device in the smart home system;

[0089] The encrypted traffic data collected in step 1 will be tagged with corresponding time points. All data will be logically associated with the time axis, and the user activities at that time will be recorded. The data obtained is encrypted traffic data marked with user activities.

[0090] Step 2, construct device event fingerprint: by using the payload of the encrypted traffic data, analyze the data packet information of the traffic, such as the length, sequence and direction (incoming / outgoing) of the data packet, determine the data packet information as the device event fingerprint and store it; the specific form of the data packet information is: pkt = [timestamp, direction, packet Length].

[0091] The device event in step 2 refers to when the state of the device changes (such as the smart switch changes from the "off" state to the "on" state), it will trigger a series of data packet sequences for information transmission. By continuously repeating this event, a large number of data packet sequences related to device events can be collected. The Levenshtein distance is used to measure the similarity of the data packet sequences, and then the characteristic information of the event is extracted, namely the device event fingerprint.

[0092] Step 3, constructing an event sequence: by matching device event fingerprints, convert all encrypted traffic data into corresponding device events; construct a device event sequence with corresponding device events of all encrypted traffic data at the same time, and with corresponding user activity labels.

[0093] In step 3, in order to increase the robustness of the model and cope with the diversity of IoT devices, the collected encrypted traffic data is converted into an event sequence by matching the pre-stored event fingerprints. If the user's activities are identified directly from the encrypted traffic data, the accuracy of the model will be greatly reduced due to the differences in the brands and models of devices with the same functions in different users' homes.

[0094] Step 4, construction of DFA classifier: From step 1, we can get the sequence of user activities. Through investigation, we find that most people's daily activities at home on weekdays are heavy and regular. Therefore, the deterministic finite automaton (DFA) model is used to describe the transition rules of user activities. DFA classifier is usually used to represent the transition rules between finite states. The DFA model is represented by a six-tuple (A, Σ, f, S, Z, P, Q), where A is a finite state set corresponding to the user's activities at home; Σ is a finite set of input symbols, and different input symbols correspond to different states; f is the transition function of A×Σ→A; S is the start state; Z is the set of end states; P is the state transition matrix, which records the transition probability between interactions; Q is the frequency matrix, which records the frequency of each activity at different times. Specifically, the finite state set A includes: 1) entering the house and returning home, 2) going out, 3) taking a bath, 4) cooking, 5) eating, 6) sleeping, 7) working, 8) exercising, 9) watching TV, 10) going to the toilet, 11) other activities; the start state S refers to the activity of entering the house; the end state Z refers to the activity of going out.

[0095] Step 5, training of LT-BERT model and DFA classifier: The LT-BERT model takes the encrypted traffic data as input, performs representation learning to obtain the traffic feature sequence, and the decoder reconstructs the encrypted traffic data based on the learned traffic feature sequence. The training of the LT-BERT model is completed based on the difference between the reconstructed encrypted traffic data and the input encrypted traffic data. The traffic feature sequence extracted by the LT-BERT model and the device event sequence obtained in step 3 are used as input to train the DFA classifier with the corresponding user activities as output to obtain a trained DFA classifier.

[0096] According to the observation of traffic data, the distribution of single device events and the temporal relationship between different device events are important features. Therefore, the self-supervised method can extract these two types of representations at the same time. Through the analysis of two self-supervised tasks in LT-BERT (i.e., MLM and NSP), it is found that due to the frequent conversion of human daily activities, the device event sequence is not suitable for the NSP task. On the other hand, for the MLM task, the token in the input sequence is randomly masked (i.e., the original token is replaced with "[MASK]"), and then the vector at the corresponding masked position is taken in the output result of LT-BERT for true value prediction. Therefore, the classifier can reconstruct the masked subsequence according to the corresponding sequence representation, and the MLM task is conducive to extracting the contextual relationship of device events. The LT-BERT model is used to learn the feature representation of any user activity and complete the training of the DFA classifier, so the LT part of the BERT model, i.e., the LT-BERT model, is applied. When the accuracy of the model reaches more than 90%, the semi-automatic model training is stopped.

[0097] Step 2: Use the trained model to attack the target:

[0098] After the model training is completed, the target user will be attacked, such as Figure 1 As shown in the figure, first, the user encrypted data is monitored and the encrypted traffic data of all devices at the same time is captured, and then the device event fingerprint is matched. Secondly, the device event sequence is extracted, and all encrypted traffic data are reasonably converted into device event sequences. Then, the LT-BERT model is used to extract feature representation, and the encrypted traffic data is input into the LT-BERT model to obtain traffic features. Finally, the DFA classifier is used to determine user activities. At the same time, the attack model (LT-BERT model + DFA classifier) ​​will be continuously revised according to the target user's data so that the accuracy of the attack gradually increases and tends to be stable over time.

[0099] The present invention can obtain more accurate device evaluation results by evaluating the security of the intelligent information system through a fine-grained attack method, and perform some necessary processing on the device according to the evaluation results, which is beneficial to the protection of user privacy information.

[0100] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0101] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for inference attack on user activity monitoring in an intelligent information system, characterized in that: include: Obtain the encrypted traffic data of all IoT devices at the target time; Obtaining a device event sequence at the target time according to the encrypted traffic data of all IoT devices at the target time; Input the encrypted traffic data of all IoT devices into the trained LT-BERT model to obtain a traffic feature sequence; Inputting the traffic feature sequence and the device event sequence at the target time into the trained DFA classifier to obtain the user activity at the target time; Evaluating whether the intelligent information system is safe according to the user activities at the target time; The intelligent information system is composed of all IoT devices; The step of obtaining the device event sequence at the target time according to the encrypted traffic data of all IoT devices at the target time specifically includes: For any IoT device, determine the data packet information of the encrypted traffic data of the IoT device as the device event fingerprint corresponding to the encrypted traffic data; the data packet information includes the length, sequence and direction of the data packet; Obtaining the device event corresponding to the encrypted traffic data according to the device event fingerprint corresponding to the encrypted traffic data and a pre-stored corresponding relationship; the corresponding relationship is a corresponding relationship between the device event and the device event fingerprint; The device events corresponding to the encrypted traffic data of all IoT devices at the target time are combined into a device event sequence at the target time; The training process of the DFA classifier is: Get encrypted traffic data and user activities of all training IoT devices at all times; For any moment, the device event sequence at the moment is obtained according to the encrypted traffic data of all training IoT devices at the moment; Input the encrypted traffic data of all the training IoT devices at the time into the trained LT-BERT model to obtain the traffic feature sequence at the time; Determine the device event sequence, traffic feature sequence and user activity at all times as the training set; The DFA classifier is trained according to the training set to obtain a trained DFA classifier.

2. According to claim 1, a method for inference attack on user activity monitoring in an intelligent information system is characterized in that: The process of determining the pre-stored corresponding relationship is specifically as follows: For any device event, obtain multiple data packet information corresponding to the device event; Processing the plurality of data packet information using Levenshtein distance to obtain a device event fingerprint corresponding to the device event; A pre-stored corresponding relationship is obtained according to all device events and the device event fingerprints corresponding to all device events.

3. A system for inference attack on user activity monitoring in an intelligent information system, characterized in that: include: The acquisition module is used to obtain the encrypted traffic data of all IoT devices at the target time; A device event sequence determination module, used to obtain the device event sequence at the target time according to the encrypted traffic data of all IoT devices at the target time; A traffic feature sequence determination module, used to input the encrypted traffic data of all IoT devices into the trained LT-BERT model to obtain a traffic feature sequence; An evaluation module, used for inputting the traffic feature sequence and the device event sequence at the target time into a trained DFA classifier to obtain the user activity at the target time; Evaluating whether the intelligent information system is safe according to the user activities at the target time; The intelligent information system is composed of all IoT devices; The device event sequence determination module specifically includes: A fingerprint determination unit, configured to determine, for any IoT device, data packet information of encrypted traffic data of the IoT device as a device event fingerprint corresponding to the encrypted traffic data; the data packet information includes a length, sequence and direction of the data packet; A device event determination unit, configured to obtain a device event corresponding to the encrypted traffic data according to a device event fingerprint corresponding to the encrypted traffic data and a pre-stored corresponding relationship; the corresponding relationship is a corresponding relationship between a device event and a device event fingerprint; A device event sequence determination unit, configured to combine device events corresponding to the encrypted traffic data of all IoT devices at the target time into a device event sequence at the target time; The training process of the DFA classifier is: Get encrypted traffic data and user activities of all training IoT devices at all times; For any moment, the device event sequence at the moment is obtained according to the encrypted traffic data of all training IoT devices at the moment; Input the encrypted traffic data of all the training IoT devices at the time into the trained LT-BERT model to obtain the traffic feature sequence at the time; Determine the device event sequence, traffic feature sequence and user activity at all times as the training set; The DFA classifier is trained according to the training set to obtain a trained DFA classifier.

4. The inference attack system for monitoring user activities in an intelligent information system according to claim 3, characterized in that: The process of determining the pre-stored corresponding relationship is specifically as follows: For any device event, obtain multiple data packet information corresponding to the device event; Processing the plurality of data packet information using Levenshtein distance to obtain a device event fingerprint corresponding to the device event; A pre-stored corresponding relationship is obtained according to all device events and the device event fingerprints corresponding to all device events.