Semi-automatic intelligent sensing system and method combining signal processing and deep learning
By combining signal processing and deep learning, a semi-automated intelligent sensing system uses compression processors and mixers pre-trained on unlabeled data to solve the specificity and robustness problems of signal processing methods in the existing technology and achieve a more general and robust intelligent sensing system.
Patent Information
- Application Number
- CN202410689690.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-08-30
AI Technical Summary
Existing smart sensing systems suffer from shortcomings in versatility and robustness. Most solutions rely on specific types of signals, and the unlabeled datasets used in evaluation applications severely compromise the robustness of the systems.
A semi-automated intelligent sensing system that combines signal processing and deep learning is used. Through the compression processor and mixer pre-trained on unlabeled data, a variety of signal processing methods are used to extract the compression encoding vector, and the final code is generated through channel masking. Embedding vectors realizes the combination of traditional signal processing and deep learning methods.
It achieves the combination of the advantages of traditional signal processing and deep learning methods, provides a solution framework for perception tasks that is not based on specific tasks or labeled data sets, alleviates complex work, and improves the versatility and robustness of the system.
Smart Images

Figure CN118573204A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent sensing technology, and in particular to a semi-automatic intelligent sensing system and method combining signal processing and deep learning. Background Art
[0002] The rapid development and popularity of sensors has stimulated a surge in research on smart sensing tasks. A variety of solutions are based on various types of devices and corresponding signals. For example, inertial measurement units (IMUs) usually use accelerometers and gyroscopes to capture signals, Wi-Fi signal access points (APs) are involved in capturing Wi-Fi signals, and millimeter wave radars detect millimeter wave signals. Researchers have explored a variety of sensing applications, such as liquid identification, soil moisture estimation, fall detection, and tracking and positioning.
[0003] Self-supervised learning, or unsupervised learning, aims to learn weights that are beneficial to downstream recognition by capturing relevant features of the input data. These techniques have shown considerable promise in a wide range of fields, including computer vision and natural language processing. They usually adopt a "train first, then fine-tune" training paradigm and utilize a large amount of unlabeled data to learn effective general representations of the data. Among the many unsupervised learning methods, autoencoders (AEs) were first introduced in the literature [1] as a neural network trained with the purpose of reconstructing its input. Their main purpose is to learn informative representations of the data. Denoising autoencoders (DAEs) can be viewed as a regularization method or as a robust autoencoder that can be used for error correction. The input of a denoising autoencoder is corrupted by some noise, and the autoencoder is expected to reconstruct a clean, noise-free version of the original input.
[0004] Many recent works have proposed unsupervised learning frameworks for perception tasks. Cosmo in [2] extracts consistent and complementary information from different modalities in human activity recognition tasks by integrating contrastive learning and quality-guided attention mechanisms to achieve effective fusion. RF-URL in [3] proposes a representation learning framework for wireless RF signal sensing by utilizing a contrastive framework to consider the gap between signal processing-based and learning-based wireless RF signal sensing. LIMU-BERT in [4] adopts the self-supervised training principle of the natural language model BERT to effectively capture the temporal relationship and feature distribution in IMU sensor measurements. Although these works report satisfactory performance, most of them rely on specific types of signals, which leads to the lack of generality of these solutions. In addition, some evaluation applications use unlabeled datasets collected under the same conditions as the downstream tasks, which seriously damages the robustness of the system.
[0005] In view of this, the present invention is proposed.
[0006] Literature [1]. Rumelhart, DE, GE Hinton, and RJ Williams, Learning internal representations by error propagation. 1985, Institute for Cognitive Science, University of California, San Diego La….
[0007] Literature [2].Ouyang,X.,et al.Cosmo:contrastive fusion learning with smalldata for multimodal human activity recognition.in Proceedings of the 28thAnnual International Conference on Mobile Computing And Networking.2022.
[0008] Literature [3]. Song, R., et al. Rf-url: unsupervised representation learning for rf sensing. in Proceedings of the 28th Annual International Conference on Mobile Computing And Networking. 2022.
[0009] Literature [4]. Xu, H., et al., LIMU-BERT: Unleashing the Potential of UnlabeledData for IMU Sensing Applications. 2021.p.220-233. Summary of the invention
[0010] The purpose of the present invention is to provide a semi-automatic intelligent sensing system and method combining signal processing and deep learning, which can combine the advantages of manual production and deep learning methods, ensure the versatility and robustness of the intelligent sensing method, and thus solve the above-mentioned technical problems existing in the prior art.
[0011] The objective of the present invention is achieved through the following technical solutions:
[0012] A semi-automated intelligent sensing system combining signal processing and deep learning, comprising:
[0013] The compression processor and mixer are pre-trained with unlabeled data;
[0014] The compression processor is in communication with the mixer, can take the original sensor signal sequence as input, and can extract multiple compressed code vectors by using multiple compressors applying different signal processing methods;
[0015] The mixer can take multiple compressed coding vectors output by the compression processor as input, connect the multiple compressed coding vectors in a specific order to obtain corresponding vectors, and use channel masking to generate a final embedding vector for use in the performance evaluation of a labeled data set for subsequent specific tasks.
[0016] A semi-automatic intelligent sensing method combining signal processing and deep learning, using the system of the present invention, comprising:
[0017] The compression processor of the system pre-trained with unlabeled data takes the original sensor signal sequence as input, and extracts multiple compressed code vectors by multiple compressors applying different signal processing methods;
[0018] The system's mixer, which is pre-trained with unlabeled data, takes multiple compressed coding vectors output by the compression processor as input, connects the multiple compressed coding vectors in a specific order to obtain corresponding vectors, and uses channel masking to generate a final embedding vector for use in performance evaluation of a labeled data set for subsequent specific tasks.
[0019] Compared with the prior art, the semi-automatic intelligent sensing system and method combining signal processing and deep learning provided by the present invention has the following beneficial effects:
[0020] By setting up a compression processor and mixer that are pre-trained using unlabeled data, the original sensor signal can be processed in the compression stage and the mixing stage in sequence, realizing the combination of traditional signal processing methods and deep network methods based on artificial intelligence, and integrating the respective advantages and strengths of the two methods; due to the use of unlabeled data preprocessing methods, a perception task solution framework that is not based on specific tasks or labeled data sets is provided, which reduces the complex work in the corresponding scenarios and provides convenience for users. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0022] Figure 1 A schematic diagram of the composition of a semi-automatic intelligent sensing system combining signal processing and deep learning provided in an embodiment of the present invention.
[0023] Figure 2 A network structure diagram of a compressor of a semi-automatic intelligent sensing system combining signal processing and deep learning provided in an embodiment of the present invention.
[0024] Figure 3 A network structure diagram of a mixer of a semi-automatic intelligent sensing system combining signal processing and deep learning provided in an embodiment of the present invention.
[0025] Figure 4 A diagram showing the classification effects of different channels used in a semi-automatic intelligent sensing system combining signal processing and deep learning provided in an embodiment of the present invention.
[0026] Figure 5 A diagram showing the effects of using different amounts of labeled data for downstream classifier training under different tasks of a semi-automated intelligent sensing system combining signal processing and deep learning provided by an embodiment of the present invention.
[0027] Figure 6 A flowchart of a semi-automatic intelligent sensing method combining signal processing and deep learning provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in combination with the specific content of the present invention; it is obvious that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments, which does not constitute a limitation of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.
[0029] First, the terms that may be used in this article are explained as follows:
[0030] The term “and / or” means that either or both of them can be realized at the same time. For example, X and / or Y means both “X” or “Y” and “X and Y”.
[0031] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.
[0032] The term "consisting of..." means excluding any technical feature elements not explicitly listed. If this term is used in a claim, it will make the claim closed, so that it does not contain technical feature elements other than the technical feature elements explicitly listed, except for the conventional impurities related to them. If this term only appears in a clause of a claim, it only limits the elements explicitly listed in the clause, and the elements recorded in other clauses are not excluded from the overall claim.
[0033] Unless otherwise specified or limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this article can be understood according to specific circumstances.
[0034] The orientation or position relationship indicated by terms such as "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", etc. are based on the orientation or position relationship shown in the drawings and are only for the convenience and simplification of description, and do not explicitly or implicitly indicate that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation of this document.
[0035] The scheme provided by the present invention is described in detail below. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professionals in the field. If the specific conditions are not specified in the embodiments of the present invention, they are carried out according to the conventional conditions in the field or the conditions recommended by the manufacturer. If the manufacturers are not specified in the reagents or instruments used in the embodiments of the present invention, they are all conventional products that can be purchased commercially.
[0036] like Figure 1 As shown, an embodiment of the present invention provides a semi-automatic intelligent sensing system combining signal processing and deep learning, including:
[0037] A compression processor pre-trained with unlabeled data and a mixer pre-trained with unlabeled data; wherein,
[0038] The compression processor is in communication with the mixer, can take the original sensor signal sequence as input, and can extract multiple compressed code vectors by using multiple compressors applying different signal processing methods;
[0039] The mixer can take multiple compressed coding vectors output by the compression processor as input, connect the multiple compressed coding vectors in a specific order to obtain corresponding vectors, and use channel masking to generate a final embedding vector for use in the performance evaluation of a labeled data set for subsequent specific tasks.
[0040] Preferably, in the above system, the compression processor is composed of a plurality of compressors arranged in parallel; wherein,
[0041] Each compressor corresponds to a different type of manual signal processing method, and can take the original sensor signal sequence as input, encode and decode the input original sensor signal sequence using the applied signal processing method, and then output a compressed code vector.
[0042] See also Figure 2 Preferably, in the above system, each compressor has the same structure, including: each compressor uses an autoencoder composed of an encoder and a decoder, wherein,
[0043] The encoder takes the original sensor signal sequence as input, processes it through a corresponding manual signal processing method, and outputs a compressed code vector from the encoder;
[0044] The decoder takes the compressed coding vector output by the encoder as input to obtain the reconstructed output of the autoencoder for supervising the training of the autoencoder.
[0045] See also Figure 2 Preferably, in the above-mentioned autoencoder as a compressor, the encoder consists of a convolutional layer, a first ReLU layer, a first batch normalization layer, a maximum pooling layer, a linear layer, a second ReLU layer and a second batch normalization layer connected in sequence;
[0046] The decoder consists of a linear layer 1, a ReLU layer 1, a batch normalization layer 1, a convolutional layer, a ReLU layer 2, a batch normalization layer 2 and a linear layer 2 which are connected in sequence.
[0047] Preferably, in the above system, the loss function of the autoencoder as the compressor is:
[0048]
[0049] Where x is the input vector of the autoencoder; is the loss function when the i-th autoencoder accepts x as input, is the output vector of the i-th autoencoder when it takes x as input; f i (x) is the output of the ith signal processing method when x is used as input; L i ′ is the output vector of the i-th autoencoder Length.
[0050] See also Figure 3 Preferably, in the above system, the mixer adopts a masked autoencoder consisting of an encoder and a decoder, wherein,
[0051] The encoder can take the compressed coding vector output by the compression processor as input, connect it in a specific order to obtain a vector, and then process it with a corresponding mask to generate a shielded vector, and process the shielded vector to output an intermediate code to obtain a final embedding vector of the autoencoder;
[0052] The decoder takes the output of the encoder as input to obtain the reconstructed output of the masked autoencoder, which is used to supervise the training of the masked autoencoder.
[0053] Preferably, in the above-mentioned masked autoencoder as a mixer, the encoder and decoder have the same structure, and are both composed of a first linear layer, a first ReLU layer, a first batch normalization layer, a second linear layer, a second ReLU layer and a second batch normalization layer connected in sequence.
[0054] Preferably, in the above system, the loss function of the masked autoencoder is:
[0055]
[0056] Wherein, V is a vector obtained by connecting the compressed coding vectors output by several compressors in a specific order; V′ is a masked vector generated by performing mask masking processing on the vectors obtained by connecting the compressed coding vectors in a specific order through a mask strategy; is the loss function of the masked autoencoder with V as input; y V′ is the output vector obtained by the masked autoencoder according to V′; L is the output vector y of the masked autoencoder V′ Length.
[0057] Preferably, in the above system, the compression processor and the mixer are pre-trained using unlabeled data in the following manner, including:
[0058] Step 1: Select the set of signal processing methods to be involved F = {f i |1≤i≤n};
[0059] Step 2: collect an unlabeled dataset U, which contains signal samples from sensors of the same type as the specific task, apply the methods in the signal processing method set F to the unlabeled dataset U, and obtain the transformed dataset {f i (U)};
[0060] Step 3, use the transformed dataset {f i (U)} Train n compressors that make up the compression processor and apply n compressors to the transformed dataset {f i (U)}Get the encoded data set Connecting Encoded Datasets To collect the combined encoding vector dataset {V U};
[0061] Step 4: Use the encoded vector dataset {V U}Train a mixer.
[0062] See also Figure 6 The embodiment of the present invention further provides a semi-automatic intelligent sensing method combining signal processing and deep learning, using the above system, including:
[0063] The compression processor of the system pre-trained with unlabeled data takes the original sensor signal sequence as input and can extract multiple compressed code vectors by using multiple compressors applying different signal processing methods;
[0064] The system's mixer, which is pre-trained with unlabeled data, takes multiple compressed coding vectors output by the compression processor as input, connects the multiple compressed coding vectors in a specific order to obtain corresponding vectors, and uses channel masking to generate a final embedding vector for use in performance evaluation of a labeled data set for subsequent specific tasks.
[0065] In summary, the system and method of the embodiments of the present invention, by setting a compression processor and a mixer pre-trained with unlabeled data, can perform compression and mixing stage processing on the original sensor signal in sequence, thereby realizing the combination of traditional signal processing methods and deep network methods based on artificial intelligence, and integrating the respective advantages and strengths of the two methods; due to the use of a preprocessing method for unlabeled data, a perception task solution framework that is not based on specific tasks or labeled data sets is provided, which reduces the complex work in the corresponding scenarios and provides convenience for users.
[0066] In order to more clearly demonstrate the technical solution and technical effects provided by the present invention, the semi-automatic intelligent sensing system and method combining signal processing and deep learning provided by the embodiments of the present invention are described in detail with specific embodiments below.
[0067] Example 1
[0068] An embodiment of the present invention provides a semi-automatic intelligent sensing system that combines signal processing and deep learning. The system combines the data processing expertise of existing signal processing methods with the task description capabilities of deep learning models, and absorbs the advantages of both methods. The system can adaptively and quickly guide the design of specific sensing systems for various given tasks of different sensors.
[0069] (1) The form of the problem to be solved by the system of this embodiment: In the semi-automated intelligent sensing (SIS) scenario, a general SIS task consists of a sensing target task o, a sensor and its corresponding signal dataset S, and a related labeled dataset. It is worth noting that the labeled dataset It has a signal data format corresponding to the signal dataset S, and its data label corresponds to the sensing target task o.
[0070] Given a SIS task and signal processing method set F = {f1,f2,…,f n} as input, our goal is to identify which subset using deep learning classification methods To achieve this, we need to solve two interrelated sub-problems. The first problem is to label the dataset Find the optimal subset F′, that is:
[0071]
[0072] where φ is an appropriate performance metric such as accuracy or F1 score; F is the set of signal processing methods, is the power set of the set of signal processing methods, and F′ is a subset of signal processing methods; is a labeled dataset; ε is a positive appropriate error factor.
[0073] The second problem is to ensure that the performance on the signal dataset S for the specific task is at least as good as on the labeled dataset The performance of the selected subset F′ is equivalent to that of the
[0074]
[0075] where φ is an appropriate performance metric such as accuracy or F1 score; F′ is a subset of handcrafted signal processing methods; is a labeled dataset, and S is a signal dataset for a specific task; is a positive appropriate error factor.
[0076] The key to solving the above problems (1) and (2) is to provide an appropriate method to evaluate the subset In the labeled dataset This leads to two requirements for the system of the present invention (hereinafter referred to as the SISS system). First, the SISS system should be able to normalize the outputs of various signal processing methods so that it can handle heterogeneous sequences that vary in scale and granularity. Second, the SISS system should provide evaluation results for all method selections conveniently and cost-effectively.
[0077] The system of the present invention meets the above requirements by applying a two-stage structure, such as Figure 1 The first stage is the compression stage, which extracts compressed representations from the transformed sequences generated by the signal processing methods. Each compressor of the compression processor learns how to standardize and refine the given information and is trained with unlabeled data to enhance robustness. The second stage is the mixing stage, which combines the representations of the compressed channels corresponding to all signal processing methods and integrates them into the final output embedding In the example, a mask interface is provided for subsequent evaluation.
[0078] Only one instance of the SISS system needs to be pre-trained once, and all the data can be easily collected by obtaining the corresponding embeddings and training a simple subsequent evaluation network. No additional training of the trained SISS system is required to generate the embeddings, so the only computational cost comes from training the subsequent classification network, which is typically much smaller in size compared to the task-specific solution.
[0079] (2) System composition and processing flow:
[0080] The system of the present invention can be called a SISS system, which is composed of a compression processor and a mixer connected in sequence. The specific workflow is as follows: Figure 2 The overall processing of the SISS system is divided into two stages, namely the compression stage and the mixing stage.
[0081] (21) Compression stage:
[0082] The first stage of the system of the present invention, the compression stage, focuses on processing the task-independent knowledge provided by existing signal processing methods. In this stage, a series of compressors are used to extract information and standardize it for use in the next stage.
[0083] The compression processor consists of multiple compressors arranged in parallel, each of which is an autoencoder. Autoencoders have been part of mainstream research on neural networks for decades and have traditionally been used for dimensionality reduction or feature learning. In the present invention, a series of signal processing methods are applied to the unlabeled data U to obtain the transformation result f i (U). The compressor receives the result and generates a compressed encoding. By learning from the transformed unlabeled data sequence, the compressor manages to extract the core knowledge of the corresponding method. In addition, by processing heterogeneous information into standardized vectors, the compressor provides a standardized preparation for subsequent data processing.
[0084] An example of the system of the present invention involves a set of compressors, each of which corresponds to a signal processing method. Without loss of generality, assume that a set of signal processing methods {f i |1≤i≤n}, where each signal processing method is a mapping f i : f i (x) represents the signal sequence x through f i The transformed output after the action. Signal processing method f i The corresponding self-encoder as a compressor is composed of encoder Enc i and decoderDec i Composition. For f i (x), Enc iGenerate a fixed-length compressed encoding vector:
[0085]
[0086] here The reason why the compressed code vector length is called fixed is that the compressed code vector lengths output by the compressor corresponding to each signal transformation are consistent. i by As input and output length L' i Vector
[0087]
[0088] The loss function of the autoencoder as a compressor is:
[0089]
[0090] The loss function of this autoencoder can be considered as the sum of the mean squared error between the input and the reconstruction result and the cosine embedding loss.
[0091] Figure 2 The structure of the compressor is described. The compressor uses a multi-layer neural network, including convolutional layers, ReLU layers, linear layers, etc. The encoder of the compressor consists of two parts. The first part aims to extract and refine information by increasing the number of channels. The second part aims to map the output of the first part into a code of uniform length d. By ensuring that d <L′ i , the encoder has to learn a compressed representation of the input, which is why they are called compressors. The decoder first restores the dimensionality of the vector and then reduces the number of channels to 1. The final linear layer allows the network to have some adjustability.
[0092] (22) Mixing stage:
[0093] The second stage, the hybrid stage, is responsible for using the compressed encoding vector provided by the compressor to generate the final embedding vector output according to the selected mask method. The embedding output of the hybrid stage for the task-specific dataset can be used for performance evaluation of subsequent tasks.
[0094] To achieve the mixing stage, the autoencoder is combined with a masking strategy to obtain a masked autoencoder as a mixer. The masking strategy comes from adjusting the configuration of various signal processing methods. We believe that the combination of methods selected by the researchers is equivalent to applying "noise" to the corresponding compressor channel. In this way, not using a certain method is equivalent to masking the compressed code vector output by the compressor channel corresponding to that method.
[0095] For the masking strategy, the only remaining challenge is to combine the information encoded by the various compressor passes after masking. A masked autoencoder is applied, which is a denoising autoencoder that receives the corrupted data as input and predicts the original, uncorrupted data as output. The denoising autoencoder is not only designed to denoise; at the same time, as a side effect, it learns good intermediate vector representations. If the masking operations corresponding to the method configurations are considered as noise, training the denoising autoencoder using the masking strategy allows it to learn in advance to deal with the "noise", that is, different combinations of methods. Therefore, the system does not require additional training to generate embeddings for specific downstream data. In summary, by applying the masked autoencoder as a mixer, the system can combine information from different compressor passes of the compression processor and generate embeddings corresponding to various signal processing method choices.
[0096] An example of a SISS system includes a mixer. Assume that a series of compressors have been trained to form the compression processor of the system. For each raw sensor signal sequence x, the series of compressors provide a total of n compressed code vectors Connecting these compressed coded vectors in a specific order will result in a vector V of length nd; let the vector in, represents a concatenation operation. Applying one of the following two masking strategies will generate a masked vector V′:
[0097] (221) Global mask strategy: V′ is the result of setting a certain percentage of bits in V to zero. In the experiments of the present invention, this percentage is set to 10%.
[0098] (222) Channel masking strategy: V′ is the result of setting all bits of a randomly selected channel of V to zero. Each channel has a 50% chance of being masked. Since masking all channels is meaningless, this case is excluded. For example, if in the mask vector If the third channel is selected,
[0099] The probability of applying the global mask strategy is 80%, while the probability of applying the channel mask strategy is 20%. When training the mixer, each vector V will go through a probability-independent masking operation each time it is input to the mixer. These mask vectors V′ are the inputs of the mixer, and the loss function of the mixer is:
[0100]
[0101] Among them, y V′is the reconstructed output of the mixer, and the output of the encoder of the mixer is the final embedding vector E. It is worth noting that only the channel masking strategy is applied when generating embeddings for subsequent tasks. The length of the embedding is the same as the input vector, that is, nd = dimV = dimE.
[0102] Figure 3 The network structure of the mixer is described. The encoder and decoder of the mixer are the same. They can expand the dimension of the input vector to 4nd and then reduce it back to nd. The input and reconstruction target of the mixer are different, which ensures that the mixer does not degenerate into an equivalent mapping.
[0103] 223) Application of the system of the present invention in specific tasks:
[0104] The pre-training process of the system of the present invention does not involve specific labeled data. To train an instance of the system of the present invention, the pre-training steps are as follows:
[0105] Step 1: Select the set of signal processing methods to be involved F = {f i |1≤i≤n};
[0106] Step 2: collect an unlabeled dataset U, which contains signal samples from sensors of the same type as the specific task, apply the methods in the signal processing method set F to the unlabeled dataset U, and obtain the transformed unlabeled dataset {f i (U)};
[0107] Step 3: Use the transformed unlabeled dataset {f i (U)} Train n compressors and apply these trained compressors to the transformed unlabeled dataset {f i (U)}, get the encoded data set Connecting Encoded Datasets To collect the combined encoding vector dataset {V U};
[0108] Step 4: Use the encoded vector dataset {V U}Train a masked autoencoder as a mixer;
[0109] To learn more about labeled datasets To apply the system of the present invention to a specific task S, just follow the steps 5:
[0110] Step 5, for embeddings with user-specified channel masks Apply the mixer trained in step 4 to the labeled dataset The generated embedding is the final output given by the SISS system of the present invention. Collect all Evaluate performance on a specific task to find the best performing combination of signal processing methods F′.
[0111] For users, the SISS system of the present invention does not require additional training because no fine-tuning is involved in the whole process. Instead, the pre-trained SISS system simply generates and provides embeddings of labeled data according to the channel masks specified by the user. If researchers want to evaluate various method configuration combinations, the only work is to generate embeddings with corresponding masks. During this process, the SISS system is fixed and does not need to be adjusted. In addition, the trained SISS system can be reused because only step 5 involves a specific dataset. Researchers can use it to generate the required embeddings in different tasks without any additional pre-training.
[0112] In contrast, traditional knowledge-based solutions require experts to manually design and test a large number of statistical features provided by the processing methods, while data-driven non-reusable deep learning models need to be repeatedly trained to adapt to different transformed datasets.
[0113] The system of the present invention has at least the following advantages:
[0114] (1) Combine traditional signal processing methods with deep network methods based on artificial intelligence, and integrate the respective advantages and strengths of the two methods.
[0115] (2) By adopting the preprocessing method of unlabeled data, a perception task solution framework is provided that is not based on specific tasks or labeled data sets, which reduces the complex work in the corresponding scenarios and provides convenience for users.
[0116] Example 2
[0117] This embodiment provides a semi-automatic intelligent sensing system combining signal processing and deep learning, including:
[0118] 1) Experimental setup:
[0119] The experiment is explained using IMU signal as an example.
[0120] (11) Datasets: The unlabeled dataset used for pre-training is Capture-24. In this dataset, a total of 151 participants were asked to wear corresponding signal sensors to perform various daily activities in their daily lives. These activities include sitting and watching TV, walking the dog, washing dishes, sleeping, etc. The following datasets are used for downstream evaluation of specific task scenarios: Motionsense includes time series data generated by accelerometer and gyroscope sensors. This dataset is collected using SensingKit, with the iPhone 6s device placed in the participant's front pocket. SensingKit collects information from the Core Motion framework on the iOS device. In this dataset, a total of 24 participants performed 6 activities under the same environment and conditions. The USC-HAD dataset contains data generated by accelerometer and gyroscope sensors. It was collected using MotionNode, and 14 subjects performed 12 activities, including walking, jumping, sleeping, etc. The Daphnet-FOG dataset is used to identify the wearer's gait freezing through wearable accelerometer sensors placed on the legs and hips. Three accelerometers are placed at the ankle, thigh, and torso. Users performed three tasks: walking in a straight line, walking with multiple turns, and daily living tasks. MHEALTH includes body movement and vital sign recordings of 10 volunteers in different conditions while performing multiple physical activities. PAMAP2 contains data from 9 subjects performing 18 different physical activities (e.g., walking, cycling, playing football, etc.). Some of these datasets consist of data from multiple IMUs. Only accelerometer data identical to the baseline described below was used to enable fair performance comparisons.
[0121] (12) Performance indicators and baselines: For evaluation indicators and baselines, publicly available reported data are mainly used. The main indicator for evaluating performance is the average F1 score of the test set. The reported data provides the performance of various supervised models and self-supervised models. The best performing supervised model and self-supervised model are selected for each task. For simplicity, only the performance of a single linear layer as a classifier is compared for a specific task.
[0122] (13) Hardware device information: The SISS system of the present invention is implemented using Python and PyTorch. It is trained on a PC equipped with 1 NVIDIA GeForce RTX 3060 GPU, 32GB memory, and Intel(R) Core(TM) i5-11500 2.70GHz CPU. Further tests were run on Samsung Galaxy S8 and Jetson Nano to verify the computational overhead on the end device.
[0123] (14) Experimental details Setup: Four signal processing methods were selected for the SISS system of the present invention: discrete Fourier transform (DFT), multi-level one-dimensional discrete wavelet transform (DWT), Hilbert-Huang transform (HHT), and periodogram. In addition, an additional channel was trained using the original sensor signal sequence. This original channel can be considered as an identity map, focusing on time domain features. In summary, the SISS instance used in the experiment has five method channels. The sampling rate of the involved IMU signals varies between 50 and 100 Hz, and as a preprocessing, all data are cut into sequences of length 1000 units. For the Capture-24 dataset, the sample overlap is set to zero for efficiency reasons, while the sample overlap of the other datasets is 50%. The selection of accelerometers is the same as the baseline. The processed unlabeled dataset of Capture-24 is used to train five compressors. The compression code length of the compressor is set to 128. Each compressor is trained for 30 rounds. Afterwards, a 5-channel mixer is trained for 50 rounds. The learning rate of both the compressor and the mixer is 0.001. To ensure fair evaluation, the same testing procedure as the baseline is adopted for subsequent tasks. For each specific dataset, 5-fold cross validation is performed in 5 random runs, and the mean and standard deviation are reported. The downstream classifier is trained for 50 rounds. Since the trained SISS consists of 5 available channels, there are 31 possible channel masks. To represent them, SISS-XXXXX is used, where each bit indicates whether a channel is used or not. The order of channels is DFT, HHT, original channel, periodogram, and DWT. For example, SISS-TTFFT means that the original channel and periodogram channel are masked.
[0124] 2) Performance evaluation:
[0125] The classification performance is shown in Tables 1, 2 and Figure 4 shown. Figure 4 Depicted are the F1 scores for all 31 possible mask configurations and the best F1 score of the baseline self-supervised model.
[0126] Table 1 lists the best F1 scores in all mask configurations. The SISS system of the present invention not only achieves better performance than the baseline, but also shows robustness across tasks. The SISS system of the present invention works well even in data collected at different locations with the help of a very simple classifier. It is worth noting that all tests are performed with the same pre-trained SISS system, which means that the SISS system of the present invention can work effectively and at low cost.
[0127] Table 1 shows the classification results of the SISS system of the present invention and the baseline
[0128]
[0129] Table 2 shows the training time and inference time of the SISS system of the present invention on different devices.
[0130]
[0131] It is clear that when various masks are applied, it will cause changes in the SISS system and downstream classification performance, such as Figure 4 As shown. For example, for Motionsense and USC-HAD, masking the HHT channel provides better results, while for other channels, applying them improves performance. Among the five tasks, only two share the same best combination of methods, which is consistent with the fact that different tasks focus on different aspects. This is the core contribution of SISS, which automatically detects the best combination configuration of existing knowledge and methods on a specific dataset for downstream researchers.
[0132] Figure 5 The effect of the training set size is shown. The percentage of the entire labeled dataset used for training is marked on the horizontal axis, and the number in brackets is the actual amount of data used. The black long dashed line is the best result, where 80% of the dataset is used for training. The black short dashed line and the black dotted line are the baselines. For simplicity and clarity, this example only shows some method combinations. It is reasonable that the larger the training scale, the better the performance. The SISS system of the present invention uses about 30% of the labeled data to obtain the same performance as the self-supervised baseline using 80% of the data.
[0133] Table 2 provides the computational overhead of the prototypes in terms of training time, inference time, and number of parameters. The training time for each record at different batch sizes is recorded. The inference time is the execution time used to infer one record. It does not include application-specific signal processing methods, as these algorithms usually require almost no computational time. Each experiment was repeated 5000 times and the average value was obtained. It is worth noting that all compressors have very small parameter sizes, especially the encoder, which is the only part required for inference in practical scenarios. Despite the relatively large size of the mixers, all mixers and compressors are able to quickly generate embeddings, which is ideal in end-device sensing tasks.
[0134] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0135] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims. The information disclosed in the background technology section of this article is only intended to deepen the understanding of the overall background technology of the present invention, and should not be regarded as an admission or in any form that the information constitutes prior art known to those skilled in the art.
Claims
1. A semi-automatic intelligent sensing system combining signal processing and deep learning, characterized in that: include: The compression processor and mixer are pre-trained with unlabeled data; The compression processor is in communication with the mixer, can take the original sensor signal sequence as input, and can extract multiple compressed code vectors by using multiple compressors applying different signal processing methods; The mixer can take multiple compressed coding vectors output by the compression processor as input, connect the multiple compressed coding vectors in a specific order to obtain corresponding vectors, and use channel masking to generate a final embedding vector for use in the performance evaluation of a labeled data set for subsequent specific tasks.
2. The semi-automatic intelligent sensing system combining signal processing and deep learning according to claim 1, characterized in that: The compression processor is composed of a plurality of compressors arranged in parallel; wherein each compressor corresponds to a different signal processing method, can take the original sensor signal sequence as input, encode and decode the input original sensor signal sequence using the applied signal processing method, and then output a compressed coding vector.
3. The semi-automatic intelligent sensing system combining signal processing and deep learning according to claim 2, characterized in that: The compressors have the same structure. Each compressor uses an autoencoder consisting of an encoder and a decoder, where The encoder takes the original sensor signal sequence as input, processes it through a corresponding manual signal processing method, and outputs a compressed code vector from the encoder; The decoder takes the compressed coding vector output by the encoder as input to obtain the reconstructed output of the autoencoder for supervising the training of the autoencoder.
4. The semi-automatic intelligent sensing system combining signal processing and deep learning according to claim 3, characterized in that: The encoder consists of a convolutional layer, a first ReLU layer, a first batch normalization layer, a maximum pooling layer, a linear layer, a second ReLU layer and a second batch normalization layer connected in sequence; The decoder consists of a linear layer 1, a ReLU layer 1, a batch normalization layer 1, a convolutional layer, a ReLU layer 2, a batch normalization layer 2 and a linear layer 2 which are connected in sequence.
5. The semi-automatic intelligent sensing system combining signal processing and deep learning according to claim 3 or 4, characterized in that: The loss function of the autoencoder as the compressor is: Where x is the input vector of the autoencoder; is the loss function when the i-th autoencoder accepts x as input; is the output vector of the i-th autoencoder when it takes x as input; f i (x) is the output of the ith manual signal processing method with x as input; L i ′ is the output vector of the i-th autoencoder Length.
6. The semi-automatic intelligent sensing system combining signal processing and deep learning according to any one of claims 1 to 4, characterized in that: The mixer uses a masked autoencoder consisting of an encoder and a decoder, where The encoder can take the compressed coding vector output by the compression processor as input, connect it in a specific order to obtain a vector, and then process it with a corresponding mask to generate a shielded vector, and process the shielded vector to output an intermediate code to obtain a final embedding vector of the autoencoder; The decoder takes the output of the encoder as input to obtain the reconstructed output of the masked autoencoder, which is used to supervise the training of the masked autoencoder.
7. The semi-automatic intelligent sensing system combining signal processing and deep learning according to claim 6, characterized in that: The encoder and decoder of the masked autoencoder have the same structure, and are composed of a first linear layer, a first ReLU layer, a first batch normalization layer, a second linear layer, a second ReLU layer, and a second batch normalization layer connected in sequence.
8. The semi-automatic intelligent sensing system combining signal processing and deep learning according to claim 6, characterized in that: The loss function of the masked autoencoder as the mixer is: Wherein, V is a vector obtained by connecting the compressed coding vectors output by several compressors in a specific order; V′ is a masked vector generated by masking the vector V obtained by connecting the compressed coding vectors in a specific order; is the loss function of the masked autoencoder with vector V as input; y V′ is the output vector obtained by the masked autoencoder according to the masked vector V′; L is the output vector y of the masked autoencoder V′ Length.
9. The semi-automatic intelligent sensing system combining signal processing and deep learning according to any one of claims 1 to 4, characterized in that: The compression processor and mixer are pre-trained using unlabeled data in the following manner, including: Step 1: Select the set of signal processing methods to be involved F = {f i |1≤i≤n}; Step 2: collect an unlabeled dataset U, which contains signal samples from sensors of the same type as the specific task, apply the methods in the signal processing method set F to the unlabeled dataset U, and obtain the transformed dataset {f i (U)}; Step 3, use the transformed dataset {f i (U)} Train n compressors that make up the compression processor and apply n compressors to the transformed dataset {f i (U)}Get the encoded data set Connecting Encoded Datasets To collect the combined encoding vector dataset {V U }; Step 4: Use the encoded vector dataset {V U }Train a mixer.
10. A semi-automatic intelligent sensing method combining signal processing and deep learning, characterized in that: A system according to any one of claims 1 to 9, comprising: The compression processor of the system pre-trained with unlabeled data takes the original sensor signal sequence as input and can extract multiple compressed code vectors by using multiple compressors applying different signal processing methods; The system's mixer, which is pre-trained with unlabeled data, takes multiple compressed coding vectors output by the compression processor as input, connects the multiple compressed coding vectors in a specific order to obtain corresponding vectors, and uses channel masking to generate a final embedding vector for use in performance evaluation of a labeled data set for subsequent specific tasks.
