A calibration method and system for nonlinear distortion measuring instrument

The deep learning algorithm is used to extract the output waveform characteristics of the nonlinear distortion measuring instrument, which solves the complex and time-consuming problems of traditional calibration methods and achieves efficient and accurate nonlinear distortion assessment.

CN117872248BActive Publication Date: 2024-10-29北京航力安太科技有限责任公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410038056.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-10
Publication Date
2024-10-29
Estimated Expiration
2044-01-10

AI Technical Summary

Technical Problem

The calibration method of traditional nonlinear distortion measuring instruments is complex, requires professional knowledge, and takes a long time, making it difficult to achieve efficient and accurate nonlinear distortion assessment.

Method used

A deep learning algorithm is used to obtain the output waveform of the inspected voltmeter object, extract local waveform semantic features and mine global contextual relationships, and use convolutional neural networks, spatial self-attention layers and context encoders to generate global semantic feature vectors to judge Whether the nonlinear distortion meets the requirements.

Benefits of technology

It simplifies the calibration process, avoids the complex calculations and professional knowledge requirements in traditional methods, improves the accuracy and efficiency of nonlinear distortion measurement, and realizes automated evaluation and judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117872248B_ABST
    Figure CN117872248B_ABST
Patent Text Reader

Abstract

The present invention discloses a calibration method and system for a nonlinear distortion measuring instrument, and relates to the technical field of calibration of nonlinear distortion measuring instruments. The method first obtains the output waveform of a voltage meter object to be tested collected by the nonlinear distortion measuring instrument, then extracts the local waveform semantic features of the output waveform to obtain a sequence of output waveform segment semantic feature maps, then performs associated semantic feature extraction on the sequence of output waveform segment semantic feature maps to obtain an output waveform global semantic feature vector, and finally, based on the output waveform global semantic feature vector, determines whether the nonlinear distortion of the voltage meter object to be tested meets the requirements, thereby avoiding the need for traditional complex calculation methods and professional knowledge.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of nonlinear distortion measuring instrument calibration, and more specifically, to a calibration method and system for a nonlinear distortion measuring instrument. Background Art

[0002] In electronic devices, nonlinear distortion refers to the nonlinear relationship between the input signal and the output signal, which causes the output signal to have harmonic components or other nonlinear distortion components with different frequencies from the input signal. The main function of the nonlinear distortion meter is to measure and analyze the degree of nonlinear distortion in the output signal of the device.

[0003] The calibration of a nonlinear distortion meter is to confirm that the measurement results of the instrument meet the predetermined accuracy and reliability requirements through a series of standardized tests and verification processes. The purpose of the calibration is to ensure that the nonlinear distortion meter can provide accurate nonlinear distortion evaluation and has consistency and stability under different conditions.

[0004] In the traditional verification process, a known standard signal source is usually used as input, and then the nonlinear distortion components in the instrument output signal are measured and analyzed. The accuracy, sensitivity and linearity of the measuring instrument are verified by comparison and calibration with known standards. However, this method requires complex calculation methods and professional domain knowledge, and the process is time-consuming.

[0005] Therefore, an optimized calibration method and system for a nonlinear distortion measuring instrument is desired. Summary of the invention

[0006] In order to solve the above technical problems, the present application is proposed. The present application provides a calibration method and system for a nonlinear distortion measuring instrument, which can utilize a deep learning algorithm to fully mine the local waveform feature information of the output waveform of the voltmeter object under test, and mine the global contextual association relationship between each local waveform feature information, so as to realize the evaluation and judgment of the nonlinear distortion by means of this global contextual association relationship.

[0007] According to one aspect of the present application, a method for calibrating a nonlinear distortion measuring instrument is provided, which comprises:

[0008] Acquire the output waveform of the voltage meter object under test collected by the nonlinear distortion measuring instrument;

[0009] Extracting local waveform semantic features of the output waveform to obtain a sequence of output waveform segment semantic feature maps;

[0010] Extracting associated semantic features from the sequence of the output waveform segment semantic feature graphs to obtain an output waveform global semantic feature vector, comprising:

[0011] Performing waveform feature saliency processing on the sequence of output waveform segment semantic feature maps to obtain a sequence of spatially salient output waveform segment semantic feature maps;

[0012] Performing feature distribution correction on the sequence of spatially significant output waveform segment semantic feature maps to obtain a sequence of corrected spatially significant output waveform segment semantic feature maps;

[0013] Mapping the sequence of modified spatially significant output waveform segment semantic feature maps to the same feature space to obtain a sequence of spatially significant output waveform segment semantic feature vectors; and

[0014] Extracting global contextual semantic association features of the sequence of the spatially significant output waveform segment semantic feature vectors to obtain the output waveform global semantic feature vector;

[0015] Based on the global semantic feature vector of the output waveform, it is determined whether the nonlinear distortion of the voltmeter object under test meets the requirements.

[0016] According to another aspect of the present application, a calibration system for a nonlinear distortion measuring instrument is provided, comprising:

[0017] A waveform acquisition module, used for acquiring the output waveform of the voltage meter object under inspection acquired by the nonlinear distortion measuring instrument;

[0018] A local waveform semantic feature extraction module, used to extract the local waveform semantic features of the output waveform to obtain a sequence of output waveform segment semantic feature maps;

[0019] A correlation semantic feature extraction module, used for performing correlation semantic feature extraction on the sequence of the output waveform segment semantic feature graphs to obtain an output waveform global semantic feature vector; and

[0020] It also includes a nonlinear distortion analysis module for determining whether the nonlinear distortion of the calibrated voltmeter object meets the requirements based on the global semantic feature vector of the output waveform.

[0021] Compared with the prior art, the calibration method and system of the nonlinear distortion meter provided by the present application first obtains the output waveform of the voltmeter object to be tested collected by the nonlinear distortion meter, then extracts the local waveform semantic features of the output waveform to obtain a sequence of output waveform segment semantic feature maps, then performs associated semantic feature extraction on the sequence of output waveform segment semantic feature maps to obtain an output waveform global semantic feature vector, and finally, based on the output waveform global semantic feature vector, determines whether the nonlinear distortion of the voltmeter object to be tested meets the requirements. In this way, the need for traditional complex calculation methods and professional knowledge can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. The following drawings are not intentionally scaled to the actual size, and the focus is on illustrating the main purpose of the present application.

[0023] Figure 1 4 is a flow chart of a method for calibrating a nonlinear distortion measuring instrument according to an embodiment of the present application.

[0024] Figure 2 FIG. 4 is a schematic diagram of the structure of a calibration method for a nonlinear distortion measuring instrument according to an embodiment of the present application.

[0025] Figure 3 4 is a flowchart of sub-step S130 of the calibration method of the nonlinear distortion measuring instrument according to an embodiment of the present application.

[0026] Figure 4 4 is a block diagram of a calibration system for a nonlinear distortion measuring instrument according to an embodiment of the present application.

[0027] Figure 5 This is an application scenario diagram of the calibration method of the nonlinear distortion measuring instrument according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work also fall within the scope of protection of the present application.

[0029] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0030] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules can be used and run on the user terminal and / or server. The modules are only illustrative, and different aspects of the system and method can use different modules.

[0031] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. Meanwhile, other operations may also be added to these processes, or a certain step or several steps of operations may be removed from these processes.

[0032] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0033] In view of the above technical problems, the technical concept of the present application is to use a deep learning algorithm to fully mine the local waveform feature information of the output waveform of the inspected voltmeter object, and to mine the global contextual association relationship between each local waveform feature information, so as to realize the evaluation and judgment of the nonlinear distortion by using this global contextual association relationship. In this way, the need for traditional complex calculation methods and professional knowledge is avoided.

[0034] Based on this, Figure 1 4 is a flow chart of a method for calibrating a nonlinear distortion measuring instrument according to an embodiment of the present application. Figure 2 FIG. 1 is a schematic diagram of the structure of the calibration method of the nonlinear distortion measuring instrument according to the embodiment of the present application. Figure 1 and Figure 2 As shown, the calibration method of the nonlinear distortion measuring instrument according to the embodiment of the present application includes the steps of: S110, acquiring the output waveform of the voltmeter object to be tested collected by the nonlinear distortion measuring instrument; S120, extracting the local waveform semantic features of the output waveform to obtain a sequence of output waveform segment semantic feature maps; S130, performing associated semantic feature extraction on the sequence of output waveform segment semantic feature maps to obtain an output waveform global semantic feature vector; and, S140, determining whether the nonlinear distortion of the voltmeter object to be tested meets the requirements based on the output waveform global semantic feature vector.

[0035] It should be understood that the purpose of step S110 is to obtain the output waveform of the voltmeter object under test through the measuring instrument for subsequent analysis and processing. The purpose of step S120 is to analyze the output waveform and extract the semantic features of the local waveform, such as the peak value of the waveform, the period of the waveform, etc., to obtain a sequence of semantic feature graphs of the output waveform segments. The purpose of step S130 is to extract the global semantic feature vector of the output waveform through association analysis of the sequence of semantic feature graphs of the output waveform segments for subsequent judgment and evaluation. The purpose of step S140 is to judge whether the nonlinear distortion of the voltmeter object under test meets the requirements based on the global semantic feature vector of the output waveform, so as to determine whether its performance is normal.

[0036] Specifically, in the technical solution of the present application, the output waveform of the voltmeter object under test collected by the nonlinear distortion measuring instrument is first obtained. The output waveform is the response of the voltmeter object under the action of the input signal. By analyzing the output waveform, the degree of nonlinear distortion of the voltmeter object can be understood, and then it can be determined whether the nonlinear distortion meets the requirements.

[0037] Next, the output waveform is segmented to obtain a sequence of output waveform segments; and the sequence of output waveform segments is respectively passed through a waveform feature extractor based on a convolutional neural network model to obtain a sequence of semantic feature maps of output waveform segments. Among them, waveform segmentation of the output waveform can highlight the local details of the output waveform, so as to better capture and analyze subtle changes and local semantic feature distribution in the waveform. The convolutional neural network model is then used to construct the waveform feature extractor to capture the local implicit waveform-related feature information of each output waveform segment.

[0038] Correspondingly, in step S120, local waveform semantic features of the output waveform are extracted to obtain a sequence of output waveform segment semantic feature maps, including: performing waveform segmentation on the output waveform to obtain a sequence of output waveform segments; and passing the sequence of output waveform segments through a waveform feature extractor based on a convolutional neural network model to obtain a sequence of output waveform segment semantic feature maps.

[0039] It is worth mentioning that the Convolutional Neural Network (CNN) is a deep learning model that is particularly suitable for processing image and sequence data. It consists of multiple convolutional layers, pooling layers, and fully connected layers, and extracts the features of the input data by learning the weights of the convolution kernel. In step S120, the sequence of semantic feature maps of the output waveform segments is extracted by the waveform feature extractor of the convolutional neural network model. The specific steps are as follows: 1. First, the output waveform is segmented to obtain a sequence of output waveform segments. This step divides the output waveform into multiple segments, each of which contains a continuous waveform data. 2. Then, the sequence of output waveform segments is input into a waveform feature extractor based on the convolutional neural network model. The feature extractor performs a convolution operation on the input waveform data by learning the weights of the convolution kernel to extract the local features of the waveform data. 3. Finally, a sequence of semantic feature maps of the output waveform segments is obtained. These feature maps reflect the semantic information of the output waveform segments, such as the shape and amplitude of the waveform. By using the waveform feature extractor of the convolutional neural network model, the features of the waveform data can be effectively extracted, so as to better understand and analyze the semantic features of the output waveform and provide useful information for subsequent association analysis and judgment.

[0040] Then, the sequence of the output waveform segment semantic feature maps is passed through a waveform spatial saliency device based on a spatial self-attention layer to obtain a sequence of spatially salient output waveform segment semantic feature maps; and the sequence of spatially salient output waveform segment semantic feature maps is respectively passed through a spatial mapper based on a fully connected layer to map the sequence of spatially salient output waveform segment semantic feature maps to the same feature space to obtain a sequence of spatially salient output waveform segment semantic feature vectors;

[0041] Then, the sequence of the spatially significant output waveform segment semantic feature vectors is passed through a context encoder based on a converter module to obtain an output waveform global semantic feature vector. Among them, the waveform spatial salient device based on the spatial self-attention layer can give greater attention to the waveform features of the important areas in the sequence of the output waveform segment semantic feature maps, so that the important features can be better captured and represented. Specifically, the spatial self-attention mechanism can make each of the spatially significant output waveform segment semantic feature maps pay attention to the parts that need to be paid attention to in the spatial dimension of each of the output waveform segment semantic feature maps, so that each of the spatially significant output waveform segment semantic feature maps can better reflect the features of the spatial position in each of the output waveform segment semantic feature maps that have a more essential expression of the image semantic features. After that, the sequence of the spatially significant output waveform segment semantic feature maps is respectively passed through a spatial mapper based on a fully connected layer to map the sequence of the spatially significant output waveform segment semantic feature maps to the same feature space, so as to uniformly represent the semantic features of different waveform segments, thereby obtaining a sequence of spatially significant output waveform segment semantic feature vectors. It should be understood that by mapping the features to the same feature space, the feature scales and differences between different waveform segments can be eliminated, so that they can be directly compared and fused effectively. The sequence of the spatially significant output waveform segment semantic feature vectors is then passed through a context encoder based on a converter module to extract context information between each output waveform segment, capture the semantic association features of global dependencies, and thus obtain the output waveform global semantic feature vector.

[0042] Accordingly, in step S130, Figure 3As shown, the sequence of semantic feature maps of the output waveform segments is subjected to associated semantic feature extraction to obtain a global semantic feature vector of the output waveform, including: S131, waveform feature saliency processing is performed on the sequence of semantic feature maps of the output waveform segments to obtain a sequence of spatially salient output waveform segment semantic feature maps; S132, feature distribution correction is performed on the sequence of spatially salient output waveform segment semantic feature maps to obtain a sequence of corrected spatially salient output waveform segment semantic feature maps; S133, the sequence of corrected spatially salient output waveform segment semantic feature maps is mapped to the same feature space to obtain a sequence of spatially salient output waveform segment semantic feature vectors; and, S134, global contextual semantic association features of the sequence of spatially salient output waveform segment semantic feature vectors are extracted to obtain the global semantic feature vector of the output waveform.

[0043] Wherein, in step S131, the sequence of output waveform segment semantic feature maps is subjected to waveform feature saliency processing to obtain a sequence of spatially significant output waveform segment semantic feature maps, including: passing the sequence of output waveform segment semantic feature maps through a waveform spatial saliency device based on a spatial self-attention layer to obtain a sequence of spatially significant output waveform segment semantic feature maps.

[0044] It is worth mentioning that the spatial self-attention layer is a special type of attention mechanism applied to the spatial dimension in the self-attention mechanism. It is used to process data with spatial relationships, such as images or sequence data. In step S131, the sequence of output waveform segment semantic feature maps is processed by a waveform spatial salientizer based on the spatial self-attention layer to obtain a sequence of spatially salient output waveform segment semantic feature maps. The specific steps are as follows: 1. First, the sequence of output waveform segment semantic feature maps is input into the waveform spatial salientizer. 2 The waveform spatial salientizer uses the spatial self-attention layer to calculate the correlation between each feature map in the sequence. By calculating the attention weight, it can automatically focus on other feature maps that are most relevant to the current feature map. 3. Then, according to the calculated attention weight, the sequence of output waveform segment semantic feature maps is weighted and summed to obtain a sequence of spatially salient output waveform segment semantic feature maps. 4. Finally, the sequence of spatially salient output waveform segment semantic feature maps obtained reflects the spatial relationship and importance between waveform segments, which is helpful for subsequent association analysis and judgment. The spatial self-attention layer can capture the spatial relationship between different feature maps in the sequence, thereby improving the expressiveness and generalization ability of the features. It can extract the spatial structure information in the data, which helps to improve the performance and effect of the model.

[0045] Specifically, in one example, the sequence of the output waveform segment semantic feature maps is passed through a waveform spatial saliency device based on a spatial self-attention layer to obtain the sequence of the spatially salient output waveform segment semantic feature maps, including: processing the output waveform segment semantic feature maps with the following spatial self-attention explicitation formula to obtain the spatially salient output waveform segment semantic feature maps; wherein the spatial self-attention explicitation formula is:

[0046] F output =F input ⊙F self-attention

[0047] F self-attention =Active{Cov[Aug(F input )]}

[0048] Among them, F output The spatial saliency output waveform segment semantic feature map, F input is the semantic feature map of the output waveform segment, ⊙ represents the point multiplication by position, Active represents the activation function, Cov represents the convolution layer, and Aug represents that when the size of the convolution kernel is greater than one, the semantic feature map of the output waveform segment is subjected to low-cost augmentation processing, F self-attention is the self-attention feature map.

[0049] Among them, in step S133, the sequence of the modified spatially significant output waveform segment semantic feature maps is mapped to the same feature space to obtain a sequence of spatially significant output waveform segment semantic feature vectors, including: the sequence of the modified spatially significant output waveform segment semantic feature maps is respectively passed through a spatial mapper based on a fully connected layer to obtain a sequence of spatially significant output waveform segment semantic feature vectors.

[0050] It is worth mentioning that the fully connected layer is a common layer type in a deep neural network, also known as a densely connected layer or a fully connected layer. It connects each neuron in the input layer to each neuron in the output layer, and each connection has a weight for mapping the input feature to the output feature. In step S133, the sequence of the corrected spatially significant output waveform segment semantic feature maps is mapped to the same feature space by a spatial mapper based on the fully connected layer to obtain a sequence of spatially significant output waveform segment semantic feature vectors. The specific steps are as follows: 1. First, the sequence of the corrected spatially significant output waveform segment semantic feature maps is input into the spatial mapper. 2. The spatial mapper is a fully connected layer in which each neuron corresponds to a dimension in the output feature space. It maps the input feature map to the output feature vector by learning weights and biases. 3. For each input feature map, the spatial mapper calculates the corresponding output feature vector based on the weights and biases. 4. The final sequence of semantic feature vectors of the spatially significant output waveform fragments, each of which represents the representation of a modified semantic feature map of the spatially significant output waveform fragments in the feature space. The fully connected layer plays the role of feature mapping and feature extraction in the deep neural network. It can map the high-dimensional features of the input data to a lower-dimensional feature space, which helps to extract the high-level semantic features of the data, thereby better representing and distinguishing different data samples. The fully connected layer is often used in the output layer or middle layer of the neural network, and is one of the very important components of deep learning.

[0051] Wherein, in step S134, extracting the global contextual semantic association features of the sequence of the spatially significant output waveform segment semantic feature vectors to obtain the output waveform global semantic feature vector, including: passing the sequence of the spatially significant output waveform segment semantic feature vectors through a context encoder based on a transformer module to obtain the output waveform global semantic feature vector. It is worth mentioning that the transformer module is a deep learning model for sequence modeling, which is based on the self-attention mechanism, can capture the relationship between different positions in the sequence, and has strong modeling capabilities. In step S134, the transformer module is used as a context encoder to convert the sequence of the spatially significant output waveform segment semantic feature vectors into the global semantic feature vector of the output waveform. Specifically, the transformer module is composed of multiple encoder layers, each of which is composed of two sub-layers: a multi-head self-attention layer and a feedforward neural network layer.

[0052] Specifically, in one example, the sequence of the spatially significant output waveform segment semantic feature vectors is passed through a context encoder based on a converter module to obtain the output waveform global semantic feature vector, including: arranging the sequence of the spatially significant output waveform segment semantic feature vectors in one dimension to obtain a waveform global word sequence feature vector; calculating the product between the waveform global word sequence feature vector and the transposed vector of each spatially significant output waveform segment semantic feature vector in the sequence of the spatially significant output waveform segment semantic feature vector to obtain a plurality of self-attention association matrices; respectively normalizing each of the plurality of self-attention association matrices to obtain a plurality of standardized self-attention association matrices; passing each of the plurality of standardized self-attention association matrices through a Softmax classification function to obtain a plurality of probability values; respectively weighting each of the plurality of spatially significant output waveform segment semantic feature vectors in the sequence of the spatially significant output waveform segment semantic feature vectors with each of the plurality of probability values ​​as a weight to obtain a sequence of output waveform local semantic feature vectors; and, cascading the sequence of the output waveform local semantic feature vectors to obtain the output waveform global semantic feature vector.

[0053] Furthermore, the global semantic feature vector of the output waveform is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the nonlinear distortion of the calibrated voltmeter object meets the requirements.

[0054] Accordingly, in step S140, based on the global semantic feature vector of the output waveform, it is determined whether the nonlinear distortion of the calibrated voltmeter object meets the requirements, including: passing the global semantic feature vector of the output waveform through a classifier to obtain a classification result, and the classification result is used to indicate whether the nonlinear distortion of the calibrated voltmeter object meets the requirements.

[0055] Specifically, the global semantic feature vector of the output waveform is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the nonlinear distortion of the calibrated voltmeter object meets the requirements, including: using the fully connected layer of the classifier to fully connect encode the global semantic feature vector of the output waveform to obtain an encoded classification feature vector; and inputting the encoded classification feature vector into the Softmax classification function of the classifier to obtain the classification result.

[0056] That is, in the technical solution of the present application, the label of the classifier includes the nonlinear distortion of the calibrated voltmeter object meets the requirements (first label), and the nonlinear distortion of the calibrated voltmeter object does not meet the requirements (second label), wherein the classifier determines which classification label the output waveform global semantic feature vector belongs to by a soft maximum function. It is worth noting that the first label p1 and the second label p2 here do not contain artificially set concepts. In fact, during the training process, the computer model does not have the concept of "whether the nonlinear distortion of the calibrated voltmeter object meets the requirements". It only has two classification labels and the probability of the output feature under these two classification labels, that is, the sum of p1 and p2 is one. Therefore, the classification result of whether the nonlinear distortion of the calibrated voltmeter object meets the requirements is actually converted into a binary classification class probability distribution that conforms to the laws of nature through the classification label. In essence, the physical meaning of the natural probability distribution of the label is used, rather than the linguistic text meaning of "whether the nonlinear distortion of the calibrated voltmeter object meets the requirements".

[0057] It should be understood that the role of the classifier is to use the given categories and known training data to learn classification rules and classifiers, and then classify (or predict) unknown data. Logistic regression and SVM are often used to solve binary classification problems. For multi-class classification problems, logistic regression or SVM can also be used, but multiple binary classifications are required to form a multi-classification. However, this is prone to errors and is not efficient. Commonly used multi-classification methods include the Softmax classification function.

[0058] In the technical solution of the present application, each output waveform segment semantic feature map in the sequence of output waveform segment semantic feature maps expresses the image semantic features of the waveform image of the output waveform in the local time domain under the global time domain. Considering the uneven distribution of the image source semantics of the waveform image of the output waveform along the time series, there will be significant imbalance in the expression of image semantic features of each output waveform segment semantic feature map in the sequence of output waveform segment semantic feature maps, which will be more significant after the local feature spatial distribution of the image semantic features is enhanced by the waveform spatial saliency device based on the spatial self-attention layer, thereby affecting the integrity of the feature distribution of the sequence of spatially salient output waveform segment semantic feature maps as a whole, and further affecting the expression effect of the obtained global semantic feature vector of the output waveform.

[0059] Therefore, the applicant of the present application first performs a linear transformation on the sequence of semantic feature maps of the spatially salient output waveform segments so that the width and height of the feature matrix are equal, and then performs feature matrix-based optimization on the sequence of semantic feature maps of the spatially salient output waveform segments after the transformation.

[0060] Accordingly, in one example, in step S132, the sequence of spatially salient output waveform segment semantic feature maps is subjected to feature distribution correction to obtain a sequence of corrected spatially salient output waveform segment semantic feature maps, including: performing linear transformation on the sequence of spatially salient output waveform segment semantic feature maps so that the width and height of each feature matrix along the channel dimension in the sequence of spatially salient output waveform segment semantic feature maps are equal to obtain a sequence of converted spatially salient output waveform segment semantic feature maps; and performing feature matrix-based optimization on each feature matrix along the channel dimension in the sequence of converted spatially salient output waveform segment semantic feature maps to obtain a sequence of corrected spatially salient output waveform segment semantic feature maps.

[0061] Specifically, each feature matrix along the channel dimension in the sequence of the converted spatially significant output waveform segment semantic feature maps is optimized based on the feature matrix to obtain the sequence of the modified spatially significant output waveform segment semantic feature maps, including: each feature matrix along the channel dimension in the sequence of the converted spatially significant output waveform segment semantic feature maps is optimized based on the feature matrix to obtain the sequence of the modified spatially significant output waveform segment semantic feature maps according to the following optimization formula; wherein the optimization formula is:

[0062]

[0063] Among them, M i and M i+1 are the feature matrices of the i-th and i+1-th positions of the sequence of semantic feature maps of the converted spatially significant output waveform fragments along the channel direction, and ε is a scale adjustment hyperparameter, represents matrix multiplication, ⊙ represents point multiplication by position, represents matrix addition, (·)T represents the transpose operation, M i+1 ′ is the feature matrix of the i+1th position along the channel direction of the sequence of semantic feature maps of the modified spatially saliency output waveform segments.

[0064] Here, the coupled distribution direction of the local feature distribution of the sequence of the converted spatially significant output waveform fragment semantic feature maps along the channel is predicted in the high-dimensional feature space through the progressive structured embedding calculation of the feature matrix with channel adjacent distribution of the sequence of the converted spatially significant output waveform fragment semantic feature maps, so as to determine the iteratively generated transfer schema representation based on channel coupling based on the progressive center of the distribution, and reconstruct the contextual relationship of the sequence of the converted spatially significant output waveform fragment semantic feature maps based on the scene layout of the feature matrix by refining the projection normalization proposal of the sequence of the converted spatially significant output waveform fragment semantic feature maps as a whole along the channel dimension from bottom to top, so as to improve the integrity of the feature representation of the sequence of the converted spatially significant output waveform fragment semantic feature maps, so as to improve the expression effect of the global semantic feature vector of the output waveform, and improve the accuracy of the classification result obtained by the classifier.

[0065] In summary, the calibration method of the nonlinear distortion measuring instrument based on the embodiment of the present application is explained, which can utilize the deep learning algorithm to fully mine the local waveform feature information of the output waveform of the tested voltmeter object, and mine the global context association relationship between each local waveform feature information, so as to realize the evaluation and judgment of the nonlinear distortion by this global context association relationship.

[0066] Figure 4 FIG. 1 is a block diagram of a nonlinear distortion measuring instrument verification system 100 according to an embodiment of the present application. Figure 4 As shown, according to the calibration system 100 of the nonlinear distortion meter according to the embodiment of the present application, it includes: a waveform acquisition module 110, which is used to obtain the output waveform of the voltmeter object under test collected by the nonlinear distortion meter; a local waveform semantic feature extraction module 120, which is used to extract the local waveform semantic features of the output waveform to obtain a sequence of output waveform segment semantic feature maps; an associated semantic feature extraction module 130, which is used to perform associated semantic feature extraction on the sequence of output waveform segment semantic feature maps to obtain an output waveform global semantic feature vector; and a nonlinear distortion analysis module 140, which is used to determine whether the nonlinear distortion of the voltmeter object under test meets the requirements based on the output waveform global semantic feature vector.

[0067] Here, those skilled in the art can understand that the specific functions and operations of each module in the above-mentioned nonlinear distortion measuring instrument verification system 100 have been described in the above reference. Figures 1 to 3 The description of the verification method of the nonlinear distortion measuring instrument has been described in detail, and therefore, its repeated description will be omitted.

[0068] As described above, the calibration system 100 for the nonlinear distortion meter according to the embodiment of the present application can be implemented in various wireless terminals, such as a server with a calibration algorithm for the nonlinear distortion meter. In one example, the calibration system 100 for the nonlinear distortion meter according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the calibration system 100 for the nonlinear distortion meter can be a software module in the operating system of the wireless terminal, or can be an application developed for the wireless terminal; of course, the calibration system 100 for the nonlinear distortion meter can also be one of the many hardware modules of the wireless terminal.

[0069] Alternatively, in another example, the calibration system 100 of the nonlinear distortion meter and the wireless terminal may be separate devices, and the calibration system 100 of the nonlinear distortion meter may be connected to the wireless terminal via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.

[0070] Figure 5 FIG. 1 is an application scenario diagram of the calibration method of the nonlinear distortion measuring instrument according to the embodiment of the present application. Figure 5 As shown, in this application scenario, first, the output waveform of the voltage meter under test collected by the nonlinear distortion measuring instrument is obtained (for example, Figure 5 D), and then, the output waveform is input to a server (for example, Figure 5 In S) shown in , the server can use the verification algorithm of the nonlinear distortion measuring instrument to process the output waveform to obtain a classification result indicating whether the nonlinear distortion of the verified voltmeter object meets the requirements.

[0071] It should be understood that the present application further provides a distortion meter calibration device, which is a wide-bandwidth, high-precision standard distortion wave signal generator. The frequency range of the standard distortion wave output by the instrument is 5Hz-200kHz, and it is continuously adjustable and not fixed frequency; the output distortion range is 0.01%-100%, the minimum adjustment interval is 0.01%, and the basic error of the output standard distortion wave is 0.5%. The instrument is mainly used to calibrate nonlinear distortion measuring instruments, including the distortion indication error, frequency scale error, internally introduced distortion, basic error of unbalanced voltmeters and additional frequency error of the distortion meter; it can also be used to debug high-fidelity amplifiers and other audio networks; the wide-bandwidth, wide-range accurate voltage signal output by the instrument can also be used to calibrate voltmeters.

[0072] The distortion meter calibration device is a harmonic distortion meter designed with integrated circuits, single-chip computers, and a standard distortion source generated by the fundamental wave plus second harmonic method. It is mainly composed of an independent low-distortion fundamental wave oscillator, a second harmonic oscillator, a high-precision harmonic voltage divider, an impedance converter, a frequency meter, a fundamental wave and harmonic superposition circuit, a low-noise power supply, and a voltmeter (FPGA, AD analog-to-digital conversion chip, and ARM chip calculate the effective value of the AC voltage through FFT fast Fourier software transformation). It has built-in embedded system software, high reliability, small instrument size, light weight, and easy operation. It is particularly suitable for metrology verification departments, laboratories to verify / calibrate distortion meters, audio analyzers, and metrology standard instruments and related companies.

[0073] According to another aspect of the present application, a non-volatile computer-readable storage medium is provided, on which computer-readable instructions are stored. When the instructions are executed by a computer, the above-mentioned method can be executed.

[0074] The program part of the technology can be considered as a "product" or "manufactured product" in the form of executable code and / or related data, which is participated in or realized by computer-readable media. Tangible and permanent storage media can include any memory or storage used by any computer, processor, or similar device or related module. For example, various semiconductor memories, tape drives, disk drives or any similar devices that can provide storage functions for software.

[0075] In addition, it will be appreciated by those skilled in the art that various aspects of the present application may be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may all be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". In addition, various aspects of the present application may be represented as a computer product located in one or more computer-readable media, which includes computer-readable program code.

[0076] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this application belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless explicitly defined as such herein.

[0077] The above is an explanation of the present application and should not be considered as a limitation thereof. Although several exemplary embodiments of the present application are described, it will be readily understood by those skilled in the art that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present application. Therefore, all of these modifications are intended to be included within the scope of the present application as defined by the claims. It should be understood that the above is an explanation of the present application and should not be considered to be limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present application is defined by the claims and their equivalents.

Claims

1. A method for calibrating a nonlinear distortion measuring instrument, characterized in that: include: Acquire the output waveform of the voltage meter object under test collected by the nonlinear distortion measuring instrument; Extracting local waveform semantic features of the output waveform to obtain a sequence of output waveform segment semantic feature maps; Extracting associated semantic features from the sequence of the output waveform segment semantic feature graphs to obtain an output waveform global semantic feature vector, comprising: Performing waveform feature saliency processing on the sequence of output waveform segment semantic feature maps to obtain a sequence of spatially salient output waveform segment semantic feature maps; Performing feature distribution correction on the sequence of spatially significant output waveform segment semantic feature maps to obtain a sequence of corrected spatially significant output waveform segment semantic feature maps; Mapping the sequence of the modified spatially significant output waveform segment semantic feature maps to the same feature space to obtain a sequence of spatially significant output waveform segment semantic feature vectors; and extracting global contextual semantic association features of the sequence of the spatially significant output waveform segment semantic feature vectors to obtain the output waveform global semantic feature vector; Based on the global semantic feature vector of the output waveform, it is determined whether the nonlinear distortion of the voltmeter object being tested meets the requirements.

2. The calibration method of the nonlinear distortion measuring instrument according to claim 1, characterized in that: Extracting local waveform semantic features of the output waveform to obtain a sequence of output waveform segment semantic feature maps, including: Performing waveform segmentation on the output waveform to obtain a sequence of output waveform segments; And the sequence of output waveform segments is respectively passed through a waveform feature extractor based on a convolutional neural network model to obtain a sequence of semantic feature maps of the output waveform segments.

3. The calibration method of the nonlinear distortion measuring instrument according to claim 2, characterized in that: Performing waveform feature saliency processing on the sequence of output waveform segment semantic feature maps to obtain a sequence of spatially salient output waveform segment semantic feature maps, comprising: The sequence of the output waveform segment semantic feature maps is passed through a waveform spatial saliency device based on a spatial self-attention layer to obtain the sequence of the spatially salient output waveform segment semantic feature maps.

4. The calibration method of the nonlinear distortion measuring instrument according to claim 3, characterized in that: The sequence of the output waveform segment semantic feature maps is passed through a waveform spatial saliency device based on a spatial self-attention layer to obtain the sequence of the spatially salient output waveform segment semantic feature maps, comprising: The output waveform segment semantic feature map is processed using the following spatial self-attention explicitation formula to obtain the spatially significant output waveform segment semantic feature map; Among them, the spatial self-attention explicitation formula is: ; ; in, Outputting a waveform segment semantic feature map for the spatial saliency, is the output waveform segment semantic feature map, It means point multiplication by position. represents the activation function, represents a convolutional layer, and It means that when the size of the convolution kernel is greater than one, the semantic feature map of the output waveform segment is cheaply augmented. is the self-attention feature map.

5. The calibration method of the nonlinear distortion measuring instrument according to claim 4, characterized in that: Mapping the sequence of the modified spatially significant output waveform segment semantic feature maps to the same feature space to obtain a sequence of spatially significant output waveform segment semantic feature vectors, comprising: The sequence of the modified spatially salient output waveform segment semantic feature maps is respectively passed through a spatial mapper based on a fully connected layer to obtain a sequence of the spatially salient output waveform segment semantic feature vectors.

6. The calibration method of the nonlinear distortion measuring instrument according to claim 5, characterized in that: Extracting global contextual semantic association features of the sequence of the spatially significant output waveform segment semantic feature vectors to obtain the output waveform global semantic feature vector, comprising: The sequence of the spatially salient output waveform segment semantic feature vectors is passed through a context encoder based on a transformer module to obtain the output waveform global semantic feature vector.

7. The calibration method of the nonlinear distortion measuring instrument according to claim 6, characterized in that: The sequence of the spatially significant output waveform segment semantic feature vectors is passed through a context encoder based on a converter module to obtain the output waveform global semantic feature vector, comprising: Arranging the sequence of the spatially significant output waveform segment semantic feature vectors in one dimension to obtain a waveform global word sequence feature vector; Calculating the product of the waveform global word sequence feature vector and the transposed vector of each spatially significant output waveform segment semantic feature vector in the sequence of spatially significant output waveform segment semantic feature vectors to obtain a plurality of self-attention association matrices; Normalizing each of the plurality of self-attention association matrices to obtain a plurality of standardized self-attention association matrices; Passing each of the plurality of standardized self-attention association matrices through a Softmax classification function to obtain a plurality of probability values; Using each probability value in the plurality of probability values ​​as a weight, weighting each spatially significant output waveform segment semantic feature vector in the sequence of spatially significant output waveform segment semantic feature vectors to obtain a sequence of output waveform local semantic feature vectors; And the sequence of the local semantic feature vectors of the output waveform is cascaded to obtain the global semantic feature vector of the output waveform.

8. The calibration method of the nonlinear distortion measuring instrument according to claim 7, characterized in that: Determining whether the nonlinear distortion of the voltmeter object to be tested meets the requirements based on the global semantic feature vector of the output waveform includes: The global semantic feature vector of the output waveform is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the nonlinear distortion of the voltmeter object being tested meets the requirements.

9. A calibration system for a nonlinear distortion measuring instrument, characterized in that: include: A waveform acquisition module, used for acquiring the output waveform of the voltage meter object under inspection acquired by the nonlinear distortion measuring instrument; A local waveform semantic feature extraction module, used to extract the local waveform semantic features of the output waveform to obtain a sequence of output waveform segment semantic feature maps; The associated semantic feature extraction module is used to extract associated semantic features from the sequence of semantic feature graphs of the output waveform segments to obtain a global semantic feature vector of the output waveform.

10. The calibration system of the nonlinear distortion measuring instrument according to claim 9, characterized in that: Also includes: The nonlinear distortion analysis module is used to determine whether the nonlinear distortion of the voltmeter object being tested meets the requirements based on the global semantic feature vector of the output waveform.

Citation Information

Patent Citations

  • Device and method for generating standard nonlinear distortion degree

    CN111505376A

  • Amplifier nonlinear distortion detection system

    CN114720766A