Hidden camera discovery method and system based on multi-instance learning

Through multi-instance learning models and decision trees to identify video stream characteristics, combined with user movement detection for sudden video traffic, it solves the problems of high false alarm rate and inconvenient operation of existing hidden camera detection methods, and achieves high-accuracy detection of hidden cameras.

CN118741233AActive Publication Date: 2024-10-01NANJING INST OF INFORMATION TECH

Patent Information

Application Number
CN202410851786.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing hidden camera detection methods are easily triggered by legitimate devices, and cannot accurately identify whether the device is monitoring the user. The false alarm rate is high, and the user needs to carry the camera with him for detection, which is inconvenient to operate.

Method used

A method based on multi-instance learning is used to sniff WiFi signals, extract video stream feature vectors, build a decision tree model to identify video streams, trigger burst video traffic based on user movement, and use sliding windows and multi-instance learning models to identify hidden cameras.

Benefits of technology

It improves the accuracy and practicality of hidden camera detection, reduces the false alarm rate, and has an average accuracy rate of 95%. It does not require WiFi access and accurate movement distance, and has strong applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118741233A_ABST
    Figure CN118741233A_ABST
Patent Text Reader

Abstract

The invention discloses a hidden camera discovering method and system based on multi-instance learning, and the method comprises the steps: carrying out the sniffing of all WiFi signals in an environment, capturing video traffic, extracting a video traffic feature vector, employing a video stream recognition model M1, recognizing a WiFi message containing a video stream in the environment, obtaining a corresponding source MAC address set, and carrying out the recognition of the video stream in the environment; the method comprises the following steps: marking MAC addresses as possible hidden camera equipment, taking a real-time message corresponding to each MAC address as input, extracting message feature vectors, combining the message feature vectors into a multi-instance feature vector sequence, identifying whether the uplink traffic of the MAC address has burst video traffic or not through a camera traffic discovery model, triggering the burst video traffic in a manual movement manner, and finding the burst video traffic. And determining whether a hidden camera is shooting in the current area or not by the camera flow discovery model, and outputting an MAC address set of the hidden camera. According to the method, the multi-instance learning model is used for hidden camera discovery, and the accuracy of hidden camera discovery is improved by introducing that sudden video traffic caused by human body movement contains multi-instance features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a video traffic analysis technology, and in particular to a hidden camera discovery method and system based on multi-instance learning. Background Art

[0002] Active detection of hidden cameras is an important means for users to prevent privacy leaks. One of the current detection methods is to detect devices by sensing and analyzing special physical signals emitted by camera devices, such as radio, infrared, sound waves, etc. Another method is to identify devices indirectly by analyzing the impact of camera operation on environmental factors.

[0003] From the perspective of wireless signals, the mainstream methods for detecting hidden cameras rely on RF receivers that sense whether the received power within a specific frequency range is above a specific threshold. However, since such detectors work by sensing the surrounding RF signals, they can be easily triggered by legitimate RF devices such as mobile phones, radios, smart TVs and other smart devices, which limits the practicality of these detectors. In addition, an alternative method has emerged to detect the presence of IoT devices based solely on network traffic statistics. However, these methods only determine the existence of the device without semantic information about the device information, location, or whether the device is actually monitoring the user. Moreover, if there are services such as live video broadcasting, video calls, and video conferencing running in the network environment, such simple network traffic statistics methods will have a high false alarm rate, which has a great impact on the actual use of users. Similarly, there is also a class of methods that associate the WiFi traffic pattern of a trusted camera with the WiFi traffic pattern of other hidden cameras on the network to detect whether they are observing the same space at the same time. However, these camera-specific methods cannot be generalized across modes, and for practical applications, users are required to carry a camera with them, which is extremely inconvenient for users.

[0004] For example, patent CN113038375A discloses a hidden camera sensing and positioning method and system. This technical solution first needs to determine whether the destination address matches the local machine, and then needs to connect the detection device to the WiFi where the camera is located. However, the actual scene may not be able to determine the WiFi of the hidden camera. In addition, the camera sensing method of this technical solution does not distinguish between camera traffic and other video traffic features, such as video calls and video on demand codes. It also needs to call the mobile phone's motion trajectory, but the mobile phone's motion perception has a large error in a small environment, making it difficult to accurately obtain the user's moving distance. Summary of the invention

[0005] Purpose of the invention: The purpose of the present invention is to solve the deficiencies in the prior art and to provide a hidden camera detection method and system based on multi-instance learning.

[0006] Technical solution: A hidden camera discovery method based on multi-instance learning of the present invention comprises the following steps:

[0007] Step 1: The sniffing device turns on the obfuscation mode, uses the air interface packet capture method to sniff all WiFi signals in the environment, scans all channels under the 2.4g frequency band, captures the traffic within a certain period of time, and extracts the video stream feature vector from the captured traffic packets;

[0008] Step 2: Based on the video stream recognition model M1 constructed by the decision tree, the video stream feature vector is input into the video stream recognition model M1, the WiFi message containing the video stream in the environment is identified through the video stream recognition model M1, the corresponding source MAC address set CS1 is obtained, and the MAC addresses in the source MAC address set CS1 are marked as possible hidden camera devices;

[0009] Step 3: Take the real-time message corresponding to each MAC address in the source MAC address set CS1 as input, use the sliding window method, take 5 seconds as a window, extract the feature vector of the message, and combine it into a multi-instance feature vector sequence Vseq, and then use the multi-instance-based camera traffic discovery model M2 to identify whether the uplink traffic of the MAC address has burst video traffic;

[0010] Step 4: The user triggers burst video traffic by moving manually. The system obtains the start and end time of the user's movement, and compares the output results of the camera traffic discovery model M2 within the time interval to determine whether there are any hidden cameras shooting in the current area. If it is determined that a hidden camera is shooting, the number of hidden cameras and the MAC address of each hidden camera are output to obtain the MAC address set CS2 of the hidden camera.

[0011] Furthermore, when extracting the video stream feature vector in step 1, based on the WiFi traffic characteristics of the camera, 5 seconds is used as the collection time window, the collected data is divided into multiple sequences, and the video traffic features are extracted for each MAC address in each sequence, specifically including the following video traffic features:

[0012] The send_num feature refers to the total number of messages sent by a MAC address within 5 seconds, indicating how frequently the device sends messages.

[0013] The recv_num feature refers to the total number of messages received by the MAC address within 5 seconds, indicating how frequently the device receives messages;

[0014] The data_type feature counts the frame types of all messages sent by the MAC address within 5 seconds and takes the average value, indicating the device's preference for different data types in the messages it sends.

[0015] The data_subtype feature counts the frame subtypes of all messages sent by the MAC address within 5 seconds and takes the average value. It indicates the fine-grained data type of the message sent by the device, including whether it is a QoS message.

[0016] The send_length_mean feature refers to the average length of all messages sent by the MAC address within 5 seconds, indicating the amount of information contained in each data sent by the device;

[0017] The send_length_var feature refers to the length variance of all messages sent by the MAC address within 5 seconds, indicating the variation of the data sent by the device;

[0018] The recv_length_mean feature refers to the average length of all messages received by the MAC address within 5 seconds, indicating the amount of data received by the device;

[0019] The recv_length_var feature refers to the length variance of all messages received by the MAC address within 5 seconds, indicating the variation of the data received by the device.

[0020] Furthermore, in step 2, according to the extracted message features corresponding to each MAC address, the video stream identification model M1 identifies the message containing the video stream information, and preliminarily identifies the source MAC address of such message as the camera address, that is, the MAC address set CS1 of the suspected camera is obtained; the construction method of the video stream identification model M1 is:

[0021] Step A: Build a training set, i.e. collect camera and non-camera traffic and label it according to the known MAC address and actual device type.

[0022] Step B: training the classification model, that is, importing the training set into the initialized decision tree classification model, and calculating the information gain based on the deviation between the model prediction result and the actual result, and then optimizing the decision tree model, and finally constructing the optimal decision tree classification model;

[0023] Step C: Optimizing the model, that is, performing post-pruning optimization on the optimal decision tree classification model obtained in step B to ensure that its training results will not have overfitting and the like.

[0024] Furthermore, in the step 3, each MAC address in the source MAC address set CS1 represents a device that sends video data. The wirelessly sniffed messages are classified according to the MAC addresses, and the feature vector V is extracted from the messages within 5s of each MAC address. 10s-20s of messages are extracted each time (the specific time depends on the user interaction operation). Different overlaps are set to obtain feature vector sequences Vseq of different lengths corresponding to each MAC address. The feature vector sequence Vseq is then used as the input of the camera traffic discovery model M2. The output result indicates whether there is burst video traffic in the messages corresponding to the MAC addresses within the last 10-20s.

[0025] Furthermore, the construction method of the camera traffic discovery model M2 based on multiple examples is:

[0026] Step A: Collect training data, take the camera traffic without movement during the whole process as negative sample data, and take the camera traffic with movement during the whole process as positive sample data. The specific method is as follows:

[0027] First, in an environment where no one is allowed to see the camera, a wireless traffic sniffing method is used to collect static image data from the camera. In this process, all the collected traffic does not contain mobile traffic features, so it can be used to generate negative example package data. Then, the camera's dynamic image data is collected by moving in and out of the camera's monitoring range and constantly entering and exiting the camera's screen. In this process, the collected traffic contains both positive and negative examples representing movement and stillness. Based on the idea of ​​multi-instance learning, a longer time series is used to generate positive example packages to ensure that in addition to an uncertain number of negative examples in the sequence, there must be some positive example data, so it can be marked as a positive example package in the multi-instance learning scenario.

[0028] Step B: Design model architecture

[0029] Based on the input wireless traffic data, multiple example packets are constructed, and the subsequent classification network consists of three fully connected layers, a pooling layer, and an activation layer; the fully connected layer extracts the feature representation vector at the example level, and then learns the feature representation of the entire example package level based on the pooling layer, and the activation layer calculates the classification result based on the obtained example package level representation vector, thereby realizing the packet classification problem of hidden camera positioning; the purpose of the fully connected layer and the pooling layer in the present invention is to learn a feature representation vector representing the entire example package, and finally the activation layer calculates the classification result. The model is actually a deep multi-instance learning model that follows the embedded space paradigm;

[0030] The model is described by the following formula:

[0031]

[0032] in, represents the feature vector extracted at layer l, i is the sample package number, j is the sample number within it, and y i represents the classification result of the i-th sample package, L is the maximum number of layers of the model, H l is the lth fully connected layer of the model, M L It is the last computational layer of the model, including a MIL pooling layer and the final activation layer.

[0033] The present invention also discloses a system for a hidden camera discovery method based on multi-example learning, comprising a wireless sniffing module, a MAC address filtering module, a burst video stream analysis module, and a comparison and judgment module;

[0034] The wireless sniffing module turns on the promiscuous mode to capture the WiFi signals in the area. To ensure that all possible hidden cameras are discovered, all channels in the 2.4G frequency band need to be frequency-hopping collected.

[0035] The MAC address filtering module first extracts feature vectors from the sniffed messages, and uses the video stream recognition model M1 based on the decision tree method to identify the sniffed WiFi messages, and obtains the MAC address set CS1 of the device sending the video stream;

[0036] The burst video flow analysis module uses the MAC address set CS1 obtained through preliminary filtering as a basis, classifies each message containing the MAC source address, extracts multi-example feature vectors, and uses the camera traffic discovery model to determine whether a burst video flow has occurred in the recent period of time;

[0037] The sequence comparison module compares the human body movement time period obtained by user interaction with the result of whether a burst video flow appears in the message of a certain MAC source address within the time period. It can obtain the MAC address of the device judged as a hidden camera, and finally obtain the number of hidden cameras in the area and the corresponding MAC addresses.

[0038] Beneficial effects: The present invention uses a multi-instance learning model for hidden camera detection, and improves the accuracy of hidden camera detection by introducing human body movement to cause burst video traffic to contain multi-instance features. Extensive experiments have proven the effectiveness of this method, and it has been tested in an actual physical environment. For multiple devices of four brands, 100 samples were collected and the average accuracy was found to be 95%. It can be concluded that the method proposed by the present invention has better performance and higher accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a flow chart of the method of the present invention;

[0040] Figure 2It is an architecture diagram of the camera traffic discovery model M2 in the present invention. DETAILED DESCRIPTION

[0041] The technical solution of the present invention is described in detail below, but the protection scope of the present invention is not limited to the embodiments.

[0042] like Figure 1 As shown, the hidden camera discovery method based on multi-instance learning of the present invention comprises the following steps:

[0043] Step 1: The sniffing device turns on the obfuscation mode, uses the air interface packet capture method to sniff all WiFi signals in the environment, scans all channels under the 2.4g frequency band, captures the traffic within a certain period of time, and extracts the video stream feature vector from the captured traffic packets;

[0044] Step 2: Based on the video stream recognition model M1 constructed by the decision tree, the video stream feature vector is input into the video stream recognition model M1, the WiFi message containing the video stream in the environment is identified through the video stream recognition model M1, the corresponding source MAC address set CS1 is obtained, and the MAC addresses in the source MAC address set CS1 are marked as possible hidden camera devices;

[0045] Step 3: Take the real-time message corresponding to each MAC address in the source MAC address set CS1 as input, use the sliding window method, take 5 seconds as a window, extract the feature vector of the message, and combine it into a multi-instance feature vector sequence Vseq, and then use the multi-instance-based camera traffic discovery model M2 to identify whether the uplink traffic of the MAC address has burst video traffic;

[0046] Step 4: The user triggers burst video traffic by moving manually. The system obtains the start and end time of the user's movement, and compares the output results of the camera traffic discovery model M2 within the time interval to determine whether there are any hidden cameras shooting in the current area. If it is determined that a hidden camera is shooting, the number of hidden cameras and the MAC address of each hidden camera are output to obtain the MAC address set CS2 of the hidden camera.

[0047] Since the impact of human motion is cross-modal, especially when the camera captures human motion, the present invention comprehensively considers the traffic statistics of the camera and the impact of human motion on traffic, and classifies the traffic changes caused by the user's motion within the camera shooting range into a multi-instance model. In addition, the existing video encoding methods are all universal formats, and this type of traffic change pattern is also universal, so the present invention has strong applicability. The present invention can distinguish camera traffic from other video traffic by analyzing multiple examples of video fluctuations without accessing WiFi, and does not need to rely on accurate user movement distance.

[0048] This embodiment first turns on the obfuscation mode when acquiring the WiFi signal in the area, and uses the wireless network card to capture air packets. During the first wireless traffic sniffing process, it is necessary to collect data from all channels through a traversal method, and then filter the MAC address of the hidden camera for each channel. In the subsequent processing and analysis process, only the channels and MAC addresses with hidden cameras are analyzed centrally to reduce computing resource overhead.

[0049] When extracting the video stream feature vector in step 1 of this embodiment, based on the WiFi traffic characteristics of the camera, 5 seconds is used as the collection time window, the collected data is divided into multiple sequences, and video traffic features are extracted for each MAC address in each sequence, specifically including the following video traffic features:

[0050] The send_num feature refers to the total number of messages sent by a MAC address within 5 seconds, indicating how frequently the device sends messages.

[0051] The recv_num feature refers to the total number of messages received by the MAC address within 5 seconds, indicating how frequently the device receives messages;

[0052] The data_type feature counts the frame types of all messages sent by the MAC address within 5 seconds and takes the average value, indicating the device's preference for different data types in the messages it sends.

[0053] The data_subtype feature counts the frame subtypes of all messages sent by the MAC address within 5 seconds and takes the average value. It indicates the fine-grained data type of the message sent by the device, including whether it is a QoS message.

[0054] The send_length_mean feature refers to the average length of all messages sent by the MAC address within 5 seconds, indicating the amount of information contained in each data sent by the device;

[0055] The send_length_var feature refers to the length variance of all messages sent by the MAC address within 5 seconds, indicating the variation of the data sent by the device;

[0056] The recv_length_mean feature refers to the average length of all messages received by the MAC address within 5 seconds, indicating the amount of data received by the device;

[0057] The recv_length_var feature refers to the length variance of all messages received by the MAC address within 5 seconds, indicating the variation of the data received by the device.

[0058] In step 2 of this embodiment, based on the extracted message features corresponding to each MAC address, the video stream identification model M1 identifies the message containing the video stream information, and preliminarily identifies the source MAC address of such message as the camera address, that is, the MAC address set CS1 of the suspected camera is obtained;

[0059] The method for constructing the video stream recognition model M1 is:

[0060] Step A: Build a training set, i.e. collect camera and non-camera traffic and label it according to the known MAC address and actual device type.

[0061] Step B: training the classification model, that is, importing the training set into the initialized decision tree classification model, and calculating the information gain based on the deviation between the model prediction result and the actual result, and then optimizing the decision tree model, and finally constructing the optimal decision tree classification model;

[0062] Step C: Optimizing the model, that is, performing post-pruning optimization on the optimal decision tree classification model obtained in step B to ensure that its training results will not have overfitting and the like.

[0063] In step 3 of this embodiment, each MAC address in the source MAC address set CS1 represents a device that sends video data. The wirelessly sniffed messages are classified according to the MAC addresses, and the feature vector V is extracted from the messages within 5s of each MAC address. 10s-20s of messages are extracted each time, and different overlaps are set, so that feature vector sequences Vseq of different lengths corresponding to each MAC address are obtained. The feature vector sequence Vseq is then used as the input of the camera traffic discovery model M2. The output result indicates whether there is burst video traffic in the messages corresponding to the MAC addresses within the last 10-20s.

[0064] The method for constructing the camera traffic discovery model M2 based on multiple examples in this embodiment is:

[0065] Step A: Collect training data, use the camera traffic without mobile behavior as negative sample data, and use the camera traffic with mobile behavior as positive sample data. The specific method is as follows:

[0066] First, in an environment where no one is around, we use the wireless traffic sniffing method to collect static image data from the camera. In this process, all the collected traffic does not contain mobile traffic features, so it is used to generate negative sample packet data.

[0067] Then, the dynamic image data of the camera is collected by moving in and out of the camera monitoring range. In this process, the collected traffic contains both positive and negative examples representing movement and stillness. A longer time series is used to generate positive example packages to ensure that in addition to an uncertain number of negative examples in the sequence, there must be some positive example data, which are marked as positive example packages;

[0068] Step B: Design model architecture

[0069] Based on the input wireless traffic data, multiple example packets are constructed. The subsequent classification network consists of three fully connected layers, a pooling layer, and an activation layer. The fully connected layer extracts the feature representation vector at the example level, and then learns the feature representation of the entire example packet level based on the pooling layer. Finally, the activation layer calculates the classification result based on the obtained example packet level representation vector, thereby realizing the packet classification problem of hidden camera positioning.

[0070] The model is described by the following formula:

[0071]

[0072] in, represents the feature vector extracted at layer l, i is the sample package number, j is the sample number within it, and y i represents the classification result of the i-th sample package, L is the maximum number of layers of the model, H l is the lth fully connected layer of the model, M L It is the last computational layer of the model, including a MIL pooling layer and the final activation layer.

[0073] The system of the hidden camera discovery method based on multi-instance learning includes a wireless sniffing module, a MAC address filtering module, a burst video stream analysis module and a comparison and judgment module;

[0074] The wireless sniffing module turns on the promiscuous mode and performs air interface packet capture on the WiFi signal in the area. In order to ensure that all possible hidden cameras are discovered as much as possible, it is necessary to perform frequency hopping acquisition on all channels in the 2.4G frequency band;

[0075] The MAC address filtering module first extracts feature vectors from the sniffed messages, and uses a video stream recognition model M1 based on a decision tree method to identify the sniffed WiFi messages, and obtains a MAC address set CS1 of the device sending the video stream;

[0076] The burst video flow analysis module uses the MAC address set CS1 obtained by preliminary filtering as a basis, classifies each message containing the MAC source address, extracts multi-example feature vectors, and uses the camera traffic discovery model to determine whether a burst video flow has occurred in the recent period of time;

[0077] The sequence comparison module compares the human body movement time period obtained by user interaction with the result of whether a burst video stream appears in the message of a certain MAC source address within the time period, and obtains the MAC address of the device judged as a hidden camera, and finally obtains the number of hidden cameras in the area and the corresponding MAC addresses.

[0078] This embodiment also discloses a hidden camera discovery device based on multi-instance learning, including a WiFi adapter, a memory, and a processor, wherein:

[0079] WiFi adapter, used to receive or send WiFi signals, can enable promiscuous mode to capture WiFi messages over the air interface;

[0080] A memory for storing computer programs that can be run on the processor;

[0081] The processor is used to execute the steps of the above-mentioned low-light face enhancement method based on a CNN encoder when running the computer program.

[0082] The present invention also discloses a storage medium storing a computer program, which, when executed by at least one processor, implements the steps of the above-mentioned hidden camera detection method based on multi-instance learning.

Claims

1. A hidden camera detection method based on multi-instance learning, characterized in that: The following steps are involved: Step 1: The sniffing device turns on the obfuscation mode, uses the air interface packet capture method to sniff all WiFi signals in the environment, scans all channels under the 2.4g frequency band, captures the traffic within a certain period of time, and extracts the video stream feature vector from the captured traffic packets; Step 2: Based on the video stream recognition model M1 constructed by the decision tree, the video stream feature vector is input into the video stream recognition model M1, the WiFi message containing the video stream in the environment is identified through the video stream recognition model M1, the corresponding source MAC address set CS1 is obtained, and the MAC addresses in the source MAC address set CS1 are marked as possible hidden camera devices; Step 3: Take the real-time message corresponding to each MAC address in the source MAC address set CS1 as input, use the sliding window method, take 5 seconds as a window, extract the message feature vector, and combine it into a multi-instance feature vector sequence Vseq, and then use the multi-instance based camera traffic discovery model M2 to identify whether the uplink traffic of the MAC address has burst video traffic; Step 4: The user triggers burst video traffic by moving manually. The system obtains the start and end time of the user's movement, and compares the output results of the camera traffic discovery model M2 within the time interval to determine whether there are any hidden cameras shooting in the current area. If it is determined that a hidden camera is shooting, the number of hidden cameras and the MAC address of each hidden camera are output to obtain the MAC address set CS2 of the hidden camera.

2. The method for discovering hidden cameras based on multi-instance learning according to claim 1, characterized in that: When extracting the video stream feature vector in step 1, based on the WiFi traffic characteristics of the camera, 5 seconds is used as the acquisition time window, the collected data is divided into multiple sequences, and video traffic features are extracted for each MAC address in each sequence, specifically including the following video traffic features: The send_num feature refers to the total number of messages sent by a MAC address within 5 seconds, indicating how frequently the device sends messages. The recv_num feature refers to the total number of messages received by the MAC address within 5 seconds, indicating how frequently the device receives messages; The data_type feature counts the frame types of all messages sent by the MAC address within 5 seconds and takes the average value, indicating the device's preference for different data types in the messages it sends. The data_subtype feature counts the frame subtypes of all messages sent by the MAC address within 5 seconds and takes the average value. It indicates the fine-grained data type of the message sent by the device, including whether it is a QoS message. The send_length_mean feature refers to the average length of all messages sent by the MAC address within 5 seconds, indicating the amount of information contained in each data sent by the device; The send_length_var feature refers to the length variance of all messages sent by the MAC address within 5 seconds, indicating the variation of the data sent by the device; The recv_length_mean feature refers to the average length of all messages received by the MAC address within 5 seconds, indicating the amount of data received by the device; The recv_length_var feature refers to the length variance of all messages received by the MAC address within 5 seconds, indicating the variation of the data received by the device.

3. The hidden camera detection method based on multi-instance learning according to claim 1 is characterized in that: In step 2, according to the message features corresponding to each MAC address extracted, the message containing the video stream information is identified through the video stream identification model M1, and the source MAC address of such message is preliminarily identified as the camera address, that is, the MAC address set CS1 of the suspected camera is obtained; The method for constructing the video stream recognition model M1 is: Step A: Build a training set, i.e. collect camera and non-camera traffic and label it according to the known MAC address and actual device type. Step B: training the classification model, that is, importing the training set into the initialized decision tree classification model, and calculating the information gain based on the deviation between the model prediction result and the actual result, and then optimizing the decision tree model, and finally constructing the optimal decision tree classification model; Step C: Optimizing the model, namely, performing post-pruning optimization on the optimal decision tree classification model obtained in step B.

4. The method for discovering hidden cameras based on multi-instance learning according to claim 1, characterized in that: In the step 3, each MAC address in the source MAC address set CS1 represents a device that sends video data. The wirelessly sniffed messages are classified according to the MAC addresses, and feature vectors V are extracted from messages within 5s of each MAC address. 10s-20s of messages are extracted each time, and different overlaps are set, so that feature vector sequences Vseq of different lengths corresponding to each MAC address are obtained. The feature vector sequence Vseq is then used as the input of the camera traffic discovery model M2, and the output result indicates whether there is burst video traffic in the messages corresponding to the MAC addresses within the last 10-20s.

5. The method for discovering hidden cameras based on multi-instance learning according to claim 1 or 4, characterized in that: The method for constructing the camera traffic discovery model M2 based on multiple examples is: Step A: Collect training data, use the camera traffic without mobile behavior as negative sample data, and use the camera traffic with mobile behavior as positive sample data. The specific method is as follows: First, in an environment where no one is around, we use the wireless traffic sniffing method to collect static image data from the camera. In this process, all the collected traffic does not contain mobile traffic features, so it is used to generate negative sample packet data. Then, the dynamic image data of the camera is collected by moving in and out of the camera monitoring range. In this process, the collected traffic contains both positive and negative examples representing movement and stillness. A longer time series is used to generate positive example packages to ensure that in addition to an uncertain number of negative examples in the sequence, there must be some positive example data, which are marked as positive example packages; Step B: Design model architecture Based on the input wireless traffic data, a multi-instance package is constructed. The subsequent classification network consists of three fully connected layers, a pooling layer, and an activation layer; The fully connected layer extracts the feature representation vector at the example level, and then learns the feature representation of the entire example package level based on the pooling layer. Finally, the activation layer calculates the classification result based on the obtained example package level representation vector, thereby achieving the package classification problem of hidden camera positioning; The model is described by the following formula: in, represents the feature vector extracted at layer l, i is the sample package number, j is the sample number within it, and y i represents the classification result of the i-th sample package, L is the maximum number of layers of the model, H l is the lth fully connected layer of the model, M L It is the last computational layer of the model, including a MIL pooling layer and the final activation layer.

6. A system for implementing the hidden camera detection method of multiple instance learning according to any one of claims 1 to 5, characterized in that: It includes wireless sniffing module, MAC address filtering module, burst video stream analysis module and comparison and judgment module; The wireless sniffing module turns on the promiscuous mode and performs air interface packet capture on the WiFi signal in the area. In order to ensure that all possible hidden cameras are discovered as much as possible, it is necessary to perform frequency hopping acquisition on all channels in the 2.4G frequency band; The MAC address filtering module first extracts feature vectors from the sniffed messages, and uses a video stream recognition model M1 based on a decision tree method to identify the sniffed WiFi messages, and obtains a MAC address set CS1 of the device sending the video stream; The burst video flow analysis module uses the MAC address set CS1 obtained by preliminary filtering as a basis, classifies each message containing the MAC source address, extracts multi-example feature vectors, and uses the camera traffic discovery model to determine whether a burst video flow has occurred in the recent period of time; The sequence comparison module compares the human body movement time period obtained by user interaction with the result of whether a burst video stream appears in the message of a certain MAC source address within the time period, and obtains the MAC address of the device judged as a hidden camera, and finally obtains the number of hidden cameras in the area and the corresponding MAC addresses.

Citation Information

Patent Citations

  • Hidden network camera identification method based on network communication data

    CN111917975A

  • Hidden camera sensing and positioning method and system

    CN113038375A

  • Detection method and device for detecting movement of camera

    CN116156149A

  • Deep machine learning to perform touch motion prediction

    CN117332812A

  • Video Motion Detection Method and Alert Management

    US20160042621A1

Cited By

  • Wifi-based hidden camera judgment method and device, equipment and storage medium

    CN122053820A

  • Method, device and equipment for judging hidden camera based on wifi, and storage medium

    CN122053820B