Time sequence characteristic estimation method and system

By combining window function filters and deep learning frameworks, combined with algorithms such as Bayesian optimization, the problems of noise and interference, difficulty in capturing time dependencies, and insufficient adaptability to environmental changes in time series data analysis are solved, and efficient and accurate time series are achieved. Data processing and analysis.

CN118568458AActive Publication Date: 2024-08-30UNIV OF SCI & TECH BEIJING

Patent Information

Application Number
CN202410464619.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2024-08-30
Estimated Expiration
2044-04-17

AI Technical Summary

Technical Problem

There are problems in existing time series data analysis such as noise and interference, difficulty in capturing time dependencies, and insufficient adaptability to environmental changes.

Method used

A deep learning framework using a window function-based weighted moving average filter combined with depthwise separable convolution, dilated convolution and Transformer model, and utilizing Bayesian optimization, five-fold cross-validation, hyperparameter tuning and adaptive few-shot learning Fine-tuning algorithms for offline learning and online application optimization.

Benefits of technology

It achieves efficient, accurate and adaptive processing of time series data, significantly improves the generalization ability and adaptability of the model, and can effectively remove noise and capture local features and time dependencies in complex time series data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568458A
    Figure CN118568458A
Patent Text Reader

Abstract

The invention provides a time sequence characteristic estimation method and system, and relates to the technical field of wireless communication perception. The method comprises the following steps: collecting channel state information time sequence data, and filtering the time sequence data by using a weighted moving average filter based on a window function; for the filtered time series data, extracting local features by using a deep learning framework combined with depth separable convolution, cavity convolution and a Transform model, and capturing a long-time dependency relationship between the local features by using a multi-head self-attention mechanism and a feedforward network in the Transform model; performing offline learning and online application optimization on the deep learning framework by using a self-adaptive fine tuning algorithm based on Bayesian optimization, five-fold cross validation, hyper-parameter tuning and few-sample learning; and estimating time sequence features based on the optimized deep learning framework, and establishing a fingerprint database. According to the invention, efficient, accurate and adaptive processing of the time series data can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication sensing technology, and in particular to a method and system for estimating timing characteristics. Background Art

[0002] Time series features refer to key attributes extracted from a data sequence that changes over time, which can reveal the trends, periodicity, volatility, etc. of the data. With the rapid advancement of the Internet of Things, smart homes, autonomous driving and other fields, not only efficient and stable data transmission is required, but also the intelligent understanding and processing of the rich time series feature information contained in the signal to achieve more accurate and efficient data analysis and decision support.

[0003] Existing technologies mainly rely on deep learning models such as recurrent neural networks (RNNs), long short-term memory networks (LSTMs), and gated recurrent units (GRUs) to process and predict time series data. However, these models have many parameters and high requirements for computing resources. When faced with complex, high-dimensional time series data, it is difficult to capture dynamic changes in all dimensions. They are sensitive to outliers and noise in the data, have poor model generalization, and low prediction accuracy. Summary of the invention

[0004] In view of the above problems, the purpose of the present invention is to provide a method and system for estimating time series features to solve the problems of noise and interference, difficulty in capturing local and long-term dependencies, and insufficient adaptability to environmental changes existing in existing time series data analysis.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0006] In one aspect, a method for estimating a time series feature is provided, the method comprising the following steps:

[0007] S1, collecting channel state information (CSI) time series data, and filtering the time series data using a weighted moving average filter based on a window function;

[0008] S2. For the filtered time series data, a deep learning framework combining deep separable convolution, dilated convolution and Transformer model is used to extract local features, and the multi-head self-attention mechanism and feedforward network in the Transformer model are used to capture the long-term dependency between the local features;

[0009] S3, using an adaptive fine-tuning algorithm based on Bayesian optimization, five-fold cross validation, hyperparameter tuning and few-shot learning to perform offline learning and online application optimization on the deep learning framework;

[0010] S4. Estimate the time series features of the input CSI time series data based on the optimized deep learning framework and establish a fingerprint library.

[0011] Optionally, the step S1 specifically includes:

[0012] Suppose the input signal is x[n], where n represents the time step. For each time step n, calculate the local standard deviation s[n]:

[0013]

[0014] Where N is the window size, W is half the window size, is the mean of the signal in the window; the window size N is adjusted according to the calculated local standard deviation s[n] and the predefined threshold T; if s[n]>T, a smaller window size N is selected min ; If s[n]≤T, choose a larger window size N max ; The adjustment process is expressed by the following formula:

[0015]

[0016] Using the adjusted window size N', calculate the weighted average y[n] at the current time step n:

[0017]

[0018] y[n] is the value of the output signal of the filter.

[0019] Optionally, the step S2 specifically includes:

[0020] Assume X is the filtered time series data with a shape of (N, L), where N is the batch size and L is the sequence length. The processing order of the deep learning framework is:

[0021] S21. Perform batch normalization on the time series data X:

[0022] X bn =BN(X)

[0023] Among them, BN stands for batch normalization layer;

[0024] S22, batch normalized X bn Input a combination of depthwise separable convolution and standard convolution:

[0025] X conv =Pool(AF(BN(DSC(Pool(AF(BN(DSC(X bn ))))))))

[0026] Among them, DSC stands for depth-separable convolutional layer, AF stands for activation function, and Pool stands for pooling operation;

[0027] S23, X conv Input dilated convolution:

[0028] X dil =Pool(AF(BN(Conv dil (X conv ))))

[0029] Among them, Conv dil represents a dilated convolution with an enlarged receptive field;

[0030] S24, X dil Input Adaptation Layer conversion:

[0031] X adapt =W ad Flatten(X dil )+b ad

[0032] Among them, W ad is the weight matrix of the adaptation layer, b ad is the bias term, and Flatten is the operation of flattening the multi-dimensional convolution output into one dimension;

[0033] S25, X adapt Input Transformer model:

[0034] X trans = Transformer(X adapt )

[0035] Among them, the Transformer model is used to capture long-term dependencies;

[0036] S26, X trans Input the fully connected layer to output:

[0037] Y=W fc ·X trans +b fc

[0038] Where Y is the final output prediction result, W fc is the weight matrix of the fully connected layer, b fc is the bias term;

[0039] The forward propagation of the deep learning framework can be expressed by the following composite function:

[0040] Y=W fc Transformer (W adFlatten(Pool(AF(BN(Conv dil (Pool(AF(BN(DSC(BN(X))))))))))+b ad )+b fc

[0041] Optionally, the step S3 specifically includes:

[0042] S31. Use Bayesian optimization to select the optimal hyperparameter combination;

[0043] S32. Evaluate the performance of each optimal hyperparameter combination selected by Bayesian optimization through five-fold cross validation;

[0044] S33. Improve the adaptability of the deep learning framework to new environments through few-sample learning.

[0045] Optionally, the step S31 specifically includes:

[0046] Let the hyperparameter space be Θ. For the hyperparameter combination θ in the hyperparameter space Θ, use Bayesian optimization to find the optimal hyperparameter combination θ * Maximize or minimize the performance index f(θ):

[0047] θ * = argmax θ∈Θ f(θ)

[0048] or,

[0049] θ * =argmin θ∈Θ f(θ).

[0050] Optionally, the step S32 specifically includes:

[0051] Each optimal hyperparameter combination θ selected by Bayesian optimization is * The performance f(θ * ) for evaluation:

[0052]

[0053] Among them, f i (θ * ) means using the optimal hyperparameter combination θ on the i-th fold * Model performance after training.

[0054] Optionally, the step S33 specifically includes:

[0055] Assume D new For a small number of sample data sets in a new environment, the adaptability of the deep learning framework to the new environment is improved through few-sample learning:

[0056]

[0057] in, is the loss function used to measure the performance of the deep learning framework in D new on performance.

[0058] On the other hand, a time series feature estimation system is provided, for implementing any of the above methods, the system comprising:

[0059] A data processing module, used for collecting channel state information (CSI) time series data, and filtering the time series data using a weighted moving average filter based on a window function;

[0060] A deep learning module is used to extract local features of filtered time series data using a deep learning framework that combines deep separable convolution, dilated convolution, and Transformer models, and to capture long-term dependencies between the local features using the multi-head self-attention mechanism and feedforward network in the Transformer model;

[0061] An adaptive fine-tuning module, for performing offline learning and online application optimization on the deep learning framework using an adaptive fine-tuning algorithm based on Bayesian optimization, five-fold cross validation, hyperparameter tuning, and few-shot learning;

[0062] The estimation module is used to estimate the timing characteristics of the input CSI timing data based on the optimized deep learning framework and establish a fingerprint library.

[0063] In another aspect, an electronic device is provided, the electronic device comprising:

[0064] processor;

[0065] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are loaded and executed by the processor, the steps of the above-mentioned estimation method are implemented.

[0066] On the other hand, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores program codes, and the program codes can be called by a processor to execute the steps of the above estimation method.

[0067] The beneficial effects brought about by the technical solution provided by the present invention include at least:

[0068] (1) The estimation method proposed in the present invention can solve the problems existing in the existing time series data analysis, such as noise and interference, difficulty in capturing time dependencies, and insufficient adaptability to environmental changes, and realize efficient, accurate and adaptive processing of time series data.

[0069] (2) The deep learning framework (CNN-DDT) proposed in this paper that combines depthwise separable convolution, dilated convolution and Transformer model can effectively extract local features of time series data and capture the temporal dependencies between these local features, showing significant efficiency and accuracy in processing complex time series data.

[0070] (3) The weighted moving average filter based on the window function proposed in the present invention, namely the Smart Adaptive Filter (SAF), can effectively remove the noise in the time series data and perform smoothing, thus ensuring the flexibility and accuracy of signal processing.

[0071] (4) The adaptive fine-tuning algorithm based on Bayesian optimization, five-fold cross-validation, hyperparameter tuning and few-sample learning proposed in the present invention can significantly reduce the model's dependence on a large amount of training data and improve the model's generalization ability and adaptability. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.

[0073] Figure 1 is a flow chart of a method for estimating time series characteristics provided by an embodiment of the present invention;

[0074] Figure 2 is a schematic diagram of smoothing and denoising using an intelligent adaptive filter provided by an embodiment of the present invention;

[0075] Figure 3 is a schematic diagram of a training loss function provided by an embodiment of the present invention;

[0076] Figure 4 is a schematic diagram of the structure of a time series feature estimation system provided by an embodiment of the present invention;

[0077] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0078] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment 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.

[0079] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0080] The embodiment of the present invention provides a method for estimating a time series feature, which can be implemented by an electronic device, and the electronic device can be a terminal or a server. Figure 1 As shown, the processing flow of the method may include the following steps:

[0081] S1. Collect channel state information (CSI) time series data, and filter the time series data using a weighted moving average filter based on a window function.

[0082] In the embodiment of the present invention, a weighted moving average filter based on a window function is designed, namely "Smart Adaptive Filter" (SAF), which can effectively remove high-frequency noise and smooth the signal, and a grid search algorithm is designed before signal processing to determine the optimal filter parameters (minimum window size, maximum window size and threshold for adjusting window size) according to the maximum signal-to-noise ratio. The advantage of this method is that it provides a more flexible processing method than the traditional moving average filter with a fixed window size, and can better adapt to the different characteristics of the signal.

[0083] SAF seeks a balance between reducing high-frequency noise and retaining important signal characteristics. Suppose the input signal is x[n], where n represents the time step. For each time step n, the local standard deviation s[n] is calculated:

[0084]

[0085] The local standard deviation indicates the degree of signal variation within a local window centered at the current point. Where N is the window size, W is half the window size, is the mean of the signal in the window; the window size N is adjusted according to the calculated local standard deviation s[n] and the predefined threshold T; if s[n]>T, it means that the local change of the current point is large, and a smaller window size N is selected min ; If s[n]≤T, it means that the local change of the current point is small, and a larger window size N is selected max ; The adjustment process is expressed by the following formula:

[0086]

[0087] Using the adjusted window size N', calculate the weighted average y[n] at the current time step n:

[0088]

[0089] This formula expresses the mean of the signal values ​​within the window. The window size N determines the range of the average. The final output signal is obtained by assigning the weighted average y[n] to each time step n, where y[n] is the value of the filter output signal.

[0090] like Figure 2 As shown in Figure 1, the filter design process dynamically adjusts the window size to smooth the input signal according to the local variability of the signal. The filter's sensitivity to local signal characteristics enables it to maintain signal details in highly variable areas while reducing noise in stable areas. This design has good performance when processing non-stationary signals and can effectively remove noise.

[0091] S2. For the filtered time series data, a deep learning framework combining deep separable convolution, dilated convolution and Transformer model is used to extract local features, and the multi-head self-attention mechanism and feedforward network in the Transformer model are used to capture the long-term dependency between the local features.

[0092] In an embodiment of the present invention, a deep learning framework (or deep learning model) combining depthwise separable convolution, dilated convolution and Transformer model is proposed, named CNN-DDT. The framework extracts local features of time series data through depthwise separable convolution and dilated convolution, and uses the composite operation of multi-head self-attention mechanism and feedforward network in Transformer model to capture the long-term dependency between these local features. The framework is suitable for processing complex time series data, such as time series analysis in the fields of communication, Internet of Things, natural language processing, etc.

[0093] Specifically, let X be the filtered time series data, whose shape is (N, L), where N is the batch size and L is the sequence length. The processing order of the deep learning framework is:

[0094] S21. Perform batch normalization on the time series data X:

[0095] X bn =BN(X)

[0096] Among them, BN stands for batch normalization layer;

[0097] S22, batch normalized X bn Input Combination of Depthwise Separable Convolution and Standard Convolution:

[0098] X conv =Pool(AF(BN(DSC(Pool(AF(BN(DSC(X bn ))))))))

[0099] Among them, DSC stands for depth-separable convolutional layer, AF stands for activation function, and Pool stands for pooling operation;

[0100] S23, X conv Enter Dilated Convolution:

[0101] X dil =Pool(AF(BN(Conv dil (X conv ))))

[0102] Among them, Conv dil represents a dilated convolution with an enlarged receptive field;

[0103] S24, X dil Input Adaptor Layer Transformation:

[0104] X adapt =W ad Flatten(X dil )+b ad

[0105] Among them, W ad is the weight matrix of the adaptation layer, b ad is the bias term, and Flatten is the operation of flattening the multi-dimensional convolution output into one dimension;

[0106] S25, X adapt Input Transformer model (TransformerModel):

[0107] X trans = Transformer(X adapt )

[0108] Among them, the Transformer model is used to capture long-term dependencies;

[0109] S26, X trans Input fully connected layer for output (Fully Connected Layer for Output):

[0110] Y=W fc ·X trans +b fc

[0111] Where Y is the final output prediction result, W fc is the weight matrix of the fully connected layer, b fc is the bias term;

[0112] The forward propagation of the entire deep learning framework (CNN-DDT framework) can be expressed by the following composite function:

[0113] Y=W fc Transformer (W ad Flatten(Pool(AF(BN(Conv dil

[0114] (Pool(AF(BN(DSC(BN(X))))))))))+b ad )+b fc

[0115] S3. Utilize an adaptive fine-tuning algorithm based on Bayesian optimization, five-fold cross validation, hyperparameter tuning, and few-shot learning to perform offline learning and online application optimization on the deep learning framework.

[0116] In the embodiment of the present invention, an adaptive fine-tuning algorithm based on Bayesian optimization, five-fold cross validation, hyperparameter tuning and few-sample learning is proposed. Its main function is to significantly reduce the dependence on a large amount of training data while ensuring the performance of the model, thereby improving the adaptability and generalization ability of the model.

[0117] The step S3 specifically includes:

[0118] S31. Use Bayesian optimization to select the optimal hyperparameter combination.

[0119] Bayesian optimization is a strategy for global optimization, especially for optimizing computationally expensive functions. In the algorithm, Bayesian optimization is used to select the best hyperparameter combination.

[0120] Let the hyperparameter space be Θ. For the hyperparameter combination θ in the hyperparameter space Θ, use Bayesian optimization to find the optimal hyperparameter combination θ * Maximize or minimize the performance index f(θ):

[0121] θ * = argmax θ∈Θ f(θ)

[0122] or,

[0123] θ * =argmin θ∈Θ f(θ).

[0124] The Bayesian optimization process involves building a probabilistic model of f(θ) and using that model to predict the performance of each hyperparameter combination while assessing the uncertainty. Based on this information, the algorithm decides on the next set of hyperparameter combinations to balance exploration (finding new areas) and exploitation (refining in known good areas).

[0125] S32. The performance of each optimal hyperparameter combination selected by Bayesian optimization was evaluated by five-fold cross validation.

[0126] Cross-validation is a method for evaluating the generalization ability of a model. Five-fold cross-validation means dividing the dataset into five equal parts, taking four of them as training data and the remaining one as validation data. * The performance f(θ * ) for evaluation:

[0127]

[0128] Among them, f i (θ * ) means using the optimal hyperparameter combination θ on the i-th fold * Model performance after training.

[0129] S33. Improve the adaptability of the deep learning framework to new environments through few-sample learning.

[0130] The goal of few-shot learning is to enable the model to learn from limited data samples. During model fine-tuning, the model's ability to quickly adapt to new environments is improved through few-shot learning technology.

[0131] Assume Dnew For a small number of sample data sets in a new environment, the adaptability of the deep learning framework to the new environment is improved through few-sample learning:

[0132]

[0133] in, is the loss function used to measure the performance of the deep learning framework in D new on performance.

[0134] Specifically, first, Bayesian optimization is used to guide the hyperparameter search process. By establishing a probabilistic model between hyperparameters and model performance, and using this model to predict the performance and uncertainty of unexplored hyperparameter combinations, the need to balance the exploration of new hyperparameter space and the use of known good hyperparameters is balanced. Secondly, in order to accurately evaluate the performance of different hyperparameter combinations, a five-fold cross-validation is used to divide the data set into five equal parts, using four parts as training data each time and the remaining one part as validation data, and the cycle is repeated five times to ensure the evaluation quality of the hyperparameter optimization process. The purpose of subsequent hyperparameter tuning is to find the hyperparameter combination that can maximize the model performance. The selection of hyperparameter combinations is based on the performance results of previous iterations and the guidance of the Bayesian optimization algorithm. Finally, in the model fine-tuning stage, few-sample learning is used to optimize the objective function of a small number of sample data sets designed to adapt to the new environment, thereby improving the model's rapid adaptability and generalization to new tasks. While ensuring the performance of the model, it significantly reduces the dependence on a large amount of training data and improves the model's adaptability and generalization.

[0135] S4. Estimate the timing characteristics of the input CSI timing data based on the optimized deep learning framework and establish a fingerprint library, which can be used for applications such as intelligent positioning.

[0136] Next, the method of the present invention is verified by a specific example.

[0137] We chose to use CSI time series data to build a fingerprint library and realize intelligent positioning in an indoor scene. We deployed a receiver and a transmitter to cover the entire area and collect signal data. The equipment used in the experiment is two computers equipped with network cards as transceivers. Each computer has three antennas for transmission and reception, and uses a Wi-Fi module to obtain CSI information. In the fingerprint library establishment stage, a two-dimensional plane coordinate system is established, and each fingerprint collection point is represented by the coordinate form of a two-dimensional point.

[0138] according to Figure 3It can be seen that, overall, the method proposed in the present invention (CNN-DTT) has the best performance, and its loss decreases the fastest and is maintained at a low level, indicating that this method can effectively learn data features and has a stronger ability to learn complex time series data patterns, requiring fewer iterations than LSTM and RNN.

[0139] To verify the effectiveness of the proposed adaptive fine-tuning algorithm when the environment changes, the laboratory environment is changed from LOS to NLOS. The average positioning errors before and after using the algorithm are 5.23m and 0.17m respectively, and the model prediction accuracy is improved by more than 95%.

[0140] Accordingly, an embodiment of the present invention also provides a system for estimating time series characteristics, such as Figure 4 As shown, the system includes:

[0141] The data processing module 201 is used to collect channel state information (CSI) time series data and filter the time series data using a weighted moving average filter based on a window function;

[0142] A deep learning module 202 is used to extract local features from the filtered time series data using a deep learning framework that combines deep separable convolution, dilated convolution, and a Transformer model, and to capture long-term dependencies between the local features using a multi-head self-attention mechanism and a feedforward network in the Transformer model;

[0143] An adaptive fine-tuning module 203, used for performing offline learning and online application optimization on the deep learning framework using an adaptive fine-tuning algorithm based on Bayesian optimization, five-fold cross validation, hyperparameter tuning and few-shot learning;

[0144] The estimation module 204 is used to estimate the timing characteristics of the input CSI timing data based on the optimized deep learning framework and establish a fingerprint library.

[0145] For ease of explanation, Figure 4 Only the main components of the system are shown. The system of this embodiment can be used to perform Figure 1 The technical solution of the method embodiment shown has similar implementation principles and technical effects, which will not be repeated here.

[0146] In summary, the time series feature estimation method and system proposed in the present invention have the following advantages:

[0147] (1) The present invention proposes an intelligent estimation method for time series features. By combining a weighted moving average filter based on a window function with a deep learning framework of deep separable convolution, dilated convolution and Transformer model, and an adaptive fine-tuning algorithm based on Bayesian optimization, five-fold cross-validation, hyperparameter tuning and few-sample learning, the present invention solves the problems of noise and interference, difficulty in capturing time dependencies and insufficient adaptability to environmental changes existing in the existing time series data analysis, thereby achieving efficient, accurate and adaptive processing of time series data.

[0148] (2) The present invention proposes a deep learning framework named CNN-DTT that combines depthwise separable convolution, dilated convolution and Transformer model to optimize the feature extraction and temporal dependency capture capabilities of time series data, and utilizes the composite operation of multi-head self-attention mechanism and feedforward network to achieve efficient processing and analysis of complex sequence data.

[0149] (3) The present invention proposes a weighted moving average filter based on a window function, named Smart Adaptive Filter (SAF). First, the optimal filtering parameters are adaptively selected according to the local changes of the signal through a grid search algorithm, and then the window size is dynamically adjusted according to the local standard deviation to achieve effective noise removal and signal smoothing.

[0150] (4) The present invention proposes an adaptive fine-tuning algorithm based on Bayesian optimization, five-fold cross-validation, hyperparameter tuning and few-shot learning, which significantly reduces the demand for large data training sets while optimizing model performance. The algorithm achieves a balance between the needs of new and old parameters while ensuring the quality of evaluation through hyperparameter search guided by Bayesian optimization, combined with parameter-performance probability model prediction and five-fold cross-validation, and uses few-shot learning to enhance the model's adaptability and generalization ability to new tasks, significantly reducing the reliance on large amounts of data.

[0151] In an exemplary embodiment, the present invention further provides an electronic device, the electronic device comprising:

[0152] processor;

[0153] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are loaded and executed by the processor, the steps of the estimation method described above are implemented.

[0154] Figure 5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 5As shown, the electronic device 300 may include a processor 3001 and a memory 3002. Optionally, the electronic device 300 may further include a transceiver 3003. The processor 3001, the memory 3002 and the transceiver 3003 may be connected, for example, via a communication bus. The memory 3002 stores computer-readable instructions, which, when executed by the processor 3001, implement the steps of the above estimation method.

[0155] In a specific implementation, as an embodiment, the processor 3001 may include one or more CPUs, such as Figure 5 CPU0 and CPU1 are shown in FIG.

[0156] In a specific implementation, as an embodiment, the electronic device 300 may also include multiple processors, such as Figure 5 3001 and processor 3004 are shown in FIG. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0157] The memory 3002 is used to store the software program for executing the solution of the present invention, and the execution is controlled by the processor 3001. The specific implementation method can refer to the above method embodiment, which will not be repeated here.

[0158] The transceiver 3003 is used to communicate with a network device or a terminal device.

[0159] Optionally, the transceiver 3003 may include a receiver and a transmitter, wherein the receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.

[0160] Optionally, the transceiver 3003 may be integrated with the processor 3001 , or may exist independently and be coupled to the processor 3001 via an interface circuit of the electronic device 300 , which is not specifically limited in the embodiment of the present invention.

[0161] It should be noted that Figure 5 The structure of the electronic device 300 shown in the figure does not constitute a limitation on the electronic device. The actual electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In addition, the technical effects of the electronic device 300 can refer to the technical effects of the above-mentioned method embodiment, which will not be repeated here.

[0162] In an exemplary embodiment, the present invention further provides a computer-readable storage medium, wherein at least one instruction is stored in the computer-readable storage medium, and the at least one instruction is loaded and executed by a processor to implement the steps of the estimation method as described above. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0163] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0164] References in the specification to "one embodiment", "an embodiment", "an exemplary embodiment", "some embodiments", etc. indicate that the described embodiments may include a particular feature, structure, or characteristic, but not every embodiment may include the particular feature, structure, or characteristic. In addition, when a particular feature, structure, or characteristic is described in conjunction with an embodiment, it should be within the knowledge of a person skilled in the relevant art to implement such feature, structure, or characteristic in conjunction with other embodiments (whether or not explicitly described).

[0165] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0166] In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0167] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0168] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0169] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0170] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0171] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0172] The present invention covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present invention. In order to make the public have a thorough understanding of the present invention, specific details are described in detail in the following preferred embodiments of the present invention, but those skilled in the art can fully understand the present invention without the description of these details. In addition, in order to avoid unnecessary confusion about the essence of the present invention, well-known methods, processes, procedures, components and circuits are not described in detail.

[0173] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for estimating time series features, characterized in that: The following steps are involved: S1, collecting channel state information time series data, and filtering the time series data using a weighted moving average filter based on a window function; S2. For the filtered time series data, a deep learning framework combining deep separable convolution, dilated convolution and Transformer model is used to extract local features, and the multi-head self-attention mechanism and feedforward network in the Transformer model are used to capture the long-term dependency between the local features; S3, using an adaptive fine-tuning algorithm based on Bayesian optimization, five-fold cross validation, hyperparameter tuning and few-shot learning to perform offline learning and online application optimization on the deep learning framework; S4. Estimate the time series characteristics of the input channel state information time series data based on the optimized deep learning framework and establish a fingerprint library.

2. The estimation method according to claim 1, characterized in that The step S1 specifically includes: Suppose the input signal is x[n], where n represents the time step. For each time step n, calculate the local standard deviation s[n]: Where N is the window size, W is half the window size, is the mean of the signal in the window; the window size N is adjusted according to the calculated local standard deviation s[n] and the predefined threshold T; if s[n]>T, a smaller window size N is selected min ; If s[n]≤T, choose a larger window size N max ; The adjustment process is expressed by the following formula: Using the adjusted window size N', calculate the weighted average y[n] at the current time step n: y[n] is the value of the output signal of the filter.

3. The estimation method according to claim 1, characterized in that The step S2 specifically includes: Assume X is the filtered time series data with a shape of (N, L), where N is the batch size and L is the sequence length. The processing order of the deep learning framework is: S21. Perform batch normalization on the time series data X: X bn =BN(X) Among them, BN stands for batch normalization layer; S22, batch normalized X bn Input a combination of depthwise separable convolution and standard convolution: X conv =Pool(AF(BN(DSC(Pool(AF(BN(DSC(X bn )))))))) Among them, DSC stands for depth-separable convolutional layer, AF stands for activation function, and Pool stands for pooling operation; S23, X conv Input dilated convolution: X dil =Pool(AF(BN(Conv dil (X conv )))) Among them, Conv dil represents a dilated convolution with an enlarged receptive field; S24, X dil Input Adaptation Layer conversion: X adapt =W ad ·Flatten(X dil )+b ad Among them, W ad is the weight matrix of the adaptation layer, b ad is the bias term, and Flatten is the operation of flattening the multi-dimensional convolution output into one dimension; S25, X adapt Input Transformer model: X trans =Transformer(X adapt ) Among them, the Transformer model is used to capture long-term dependencies; S26, X trans Input the fully connected layer to output: Y=W fc ·X trans +b fc Where Y is the final output prediction result, W fc is the weight matrix of the fully connected layer, b fc is the bias term; The forward propagation of the deep learning framework can be expressed by the following composite function: Y=W fc ·Transformer(W ad ·Flatten(Pool(AF(BN(Conv dil (Pool(AF(BN(DSC(BN(X))))))))))+b ad )+b fc 4. The estimation method according to claim 1, characterized in that: The step S3 specifically includes: S31. Use Bayesian optimization to select the optimal hyperparameter combination; S32. Evaluate the performance of each optimal hyperparameter combination selected by Bayesian optimization through five-fold cross validation; S33. Improve the adaptability of the deep learning framework to new environments through few-sample learning.

5. The estimation method according to claim 4, characterized in that: The step S31 specifically includes: Let the hyperparameter space be Θ. For the hyperparameter combination θ in the hyperparameter space Θ, use Bayesian optimization to find the optimal hyperparameter combination θ * Maximize or minimize the performance index f(θ): i * =arg max θ∈Θ f(θ) or, i * =arg min θ∈Θ f(θ).

6. The estimation method according to claim 5, characterized in that: The step S32 specifically includes: Each optimal hyperparameter combination θ selected by Bayesian optimization is * The performance f(θ * ) for evaluation: Among them, f i (θ * ) means using the optimal hyperparameter combination θ on the i-th fold * Model performance after training.

7. The estimation method according to claim 6, characterized in that: The step S33 specifically includes: Assume D new For a small number of sample data sets in a new environment, the adaptability of the deep learning framework to the new environment is improved through few-sample learning: in, is the loss function used to measure the performance of the deep learning framework in D new on performance.

8. A time series feature estimation system, the system being used to implement the estimation method according to any one of claims 1 to 7, characterized in that: The system comprises: A data processing module, used for collecting channel state information time series data, and filtering the time series data using a weighted moving average filter based on a window function; A deep learning module is used to extract local features of filtered time series data using a deep learning framework that combines deep separable convolution, dilated convolution, and Transformer models, and to capture long-term dependencies between the local features using the multi-head self-attention mechanism and feedforward network in the Transformer model; An adaptive fine-tuning module, for performing offline learning and online application optimization on the deep learning framework using an adaptive fine-tuning algorithm based on Bayesian optimization, five-fold cross validation, hyperparameter tuning, and few-shot learning; The estimation module is used to estimate the time series characteristics of the input channel state information time series data based on the optimized deep learning framework and establish a fingerprint library.

9. An electronic device, characterized in that: The electronic device comprises: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are loaded and executed by the processor, the estimation method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the estimation method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Time sequence prediction method and system based on multi-scale fusion and attention mechanism

    CN115907203A

  • Bearing fault diagnosis method and system

    CN116502135A

  • Wireless communication signal detection method

    CN116866129A

  • Deep Q learning bearing fault diagnosis method based on Bayesian optimization

    CN117171508A

  • Automated stereology for determining tissue characteristics

    US20220058369A1

Cited By

  • Food additive detection method and system based on Fourier transform infrared spectroscopy

    CN119757266A

  • Indoor positioning method and system based on channel state information and depth feature fusion

    CN120075998A