Calibration data analysis method and system for mechanical sensor
By linking weights and performance optimization, a targeted calibration correction solution is generated, which solves the accuracy and accuracy of mechanical sensor calibration correction in traditional methods and improves the measurement performance of the sensor.
Patent Information
- Application Number
- CN202411549150.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-11-01
AI Technical Summary
The calibration and calibration method of traditional mechanical sensors is difficult to accurately judge relevant records, resulting in inappropriate calibration schemes, affecting measurement accuracy and reliability, and the performance evaluation is not accurate enough to meet high-precision requirements.
By acquiring the calibration data knowledge vectors and deviation correction state vectors of the mechanical sensor, determining the correlation weights between the device and the record, optimizing the desired characteristics of the sensor performance, performing feature integration to filter priority indications, and generating a targeted calibration correction scheme.
It improves the accuracy and efficiency of calibration correction, improves the measurement accuracy and reliability of mechanical sensors, and meets high-precision requirements.
Smart Images

Figure CN119046645A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data analysis, and in particular relates to a calibration data analysis method and system for a mechanical sensor. Background Art
[0002] In the use of mechanical sensors, calibration is essential to ensure the accuracy of the sensors. Traditional calibration methods often face many technical problems. For example, when dealing with numerous calibration deviation correction records, there is a lack of effective means to accurately determine which records are most relevant to the target mechanical sensor calibration device. Since this correlation cannot be accurately measured, inappropriate calibration records may be used when generating calibration correction schemes, which affects the accuracy and efficiency of the correction.
[0003] In addition, traditional methods are not accurate enough in evaluating sensor performance. They do not fully consider the complex quantitative relationship of sensor performance parameters and fail to focus on the more critical factors affecting performance, resulting in a deviation between the performance evaluation results and the actual situation. This deviation will further affect the formulation of calibration and correction schemes, resulting in the measurement accuracy and reliability of mechanical sensors failing to reach the ideal level, making it difficult to meet the growing demand for high-precision mechanical sensors in the industrial and scientific research fields. Summary of the invention
[0004] The present invention provides a calibration data analysis method and system for a mechanical sensor, which can solve or partially solve the technical problems involved in the above-mentioned background technology.
[0005] The present invention provides a calibration data analysis method for mechanical sensors, which is applied to a calibration data analysis system. The method comprises: obtaining a calibration data knowledge vector corresponding to a target mechanical sensor calibration device, and determining an association weight between the target mechanical sensor calibration device and each calibration deviation correction record to be processed according to the calibration data knowledge vector and a deviation correction state vector respectively corresponding to each calibration deviation correction record to be processed; optimizing the attention semantics of the sensor performance expected features respectively corresponding to each calibration deviation correction record to be processed, and obtaining a performance optimization output feature of each sensor performance expected feature; the sensor performance expected feature reflects a quantitative relationship vector corresponding to a sensor performance parameter; integrating the association weights between each calibration deviation correction record to be processed and the target mechanical sensor calibration device with the performance optimization output feature of the corresponding sensor performance expected feature, and obtaining a screening priority indication respectively corresponding to each calibration deviation correction record to be processed; and prioritizing each calibration deviation correction record to be processed according to the screening priority indication to obtain a calibration deviation correction record queue, wherein the calibration deviation correction record queue is used to determine a target calibration deviation correction record, and the target calibration deviation correction record is used to assist in generating a current calibration correction scheme for the target mechanical sensor calibration device.
[0006] The present invention provides a calibration data analysis system, comprising at least one processor and a memory; the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the above method.
[0007] The present invention provides a readable storage medium, on which a program or instruction is stored, and the program or instruction implements the steps of the above method when executed by a processor.
[0008] In the present invention, by determining the association weight between the target mechanical sensor calibration device and each calibration deviation correction record to be processed, the degree of connection between the two can be accurately measured, making the subsequent processing more targeted. This process is based on the calibration data knowledge vector and the deviation correction state vector, making full use of the rich information of the device calibration data and correction records, and avoiding blind processing of correction records.
[0009] Optimizing the attention semantics of the expected features of sensor performance to obtain performance optimization output features helps focus on the more critical factors affecting sensor performance. This optimization method takes into account the quantitative relationship vector of sensor performance parameters, making the performance evaluation more consistent with actual working conditions and improving the accuracy of sensor performance evaluation.
[0010] Feature integration obtains screening priority indications, which comprehensively consider the associated weights and performance optimization output features, and comprehensively and reasonably reflect the importance of each calibration deviation correction record to be processed. According to the screening priority indication, the priority is sorted to obtain the calibration deviation correction record queue, and finally the target calibration deviation correction record is determined to assist in generating the current calibration correction plan. This whole process ensures that the correction plan is generated based on the most relevant and effective correction records, thereby improving the efficiency and accuracy of calibration correction, and can significantly improve the performance of mechanical sensor calibration equipment, so that it has higher accuracy and reliability in measurement, and can be widely used in various industrial and scientific research fields that require high accuracy of mechanical sensors. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 The present invention provides a flow chart of a calibration data analysis method for mechanical sensors.
[0012] Figure 2 This is a structural schematic diagram of a calibration data analysis system provided by the present invention. DETAILED DESCRIPTION
[0013] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0014] The terms "first", "second", etc. in the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, in the present invention, "and / or" means at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0015] Figure 1 A calibration data analysis method for a mechanical sensor is shown, which is applied to a calibration data analysis system. The method includes S110-S140.
[0016] S110. Obtain a calibration data knowledge vector corresponding to the target mechanical sensor calibration device, and determine an association weight between the target mechanical sensor calibration device and each calibration deviation correction record to be processed based on the calibration data knowledge vector and the deviation correction state vectors respectively corresponding to each calibration deviation correction record to be processed.
[0017] In S110, the core goal of the calibration data analysis system is to determine the association weight between the target mechanical sensor calibration device and each calibration deviation correction record to be processed. Based on this, the calibration data knowledge vector is first obtained. The calibration data knowledge vector is a comprehensive representation of the calibration data of the target mechanical sensor calibration device. It contains various information about the calibration device, such as the input physical quantity (such as applied force, pressure, torque, etc.), output signal (such as voltage, current, etc.), calibration environmental conditions (temperature, humidity, etc.) and some inherent properties of the calibration device itself (such as sensor type, range, etc.) during the calibration process. This information is organized in the form of a vector, and each element represents a specific attribute or data point. For example, for a strain-type force sensor, the calibration data knowledge vector may contain the following content: [applied force value 1, applied force value 2, ..., output voltage 1, output voltage 2, ..., ambient temperature, ambient humidity, sensor range, sensor sensitivity nominal value].
[0018] The specific values of the calibration data knowledge vector come from the measurements and records during the actual calibration operation. For example, when conducting a force sensor calibration experiment, the corresponding output voltage values are measured at 10 different force values (from 1N to 10N), and the ambient temperature is 25°C, the ambient humidity is 50%, the sensor range is 0-100N, and the sensitivity nominal value is 2mV / N. Then this calibration data knowledge vector can be expressed as [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0.002, 0.004, 0.006, 0.008, 0.01, 0.012, 0.014, 0.016, 0.018, 0.02, 25, 50, 100, 2] (here, in order to simplify the example, the voltage value is reduced by a certain proportion).
[0019] Based on the above content, the calibration data analysis system further realizes the determination of the deviation correction state vector and the associated weight. Among them, each calibration deviation correction record to be processed corresponds to a deviation correction state vector. The deviation correction state vector describes some state information in the previous calibration deviation correction process, such as the type of correction (zero point correction, gain correction or nonlinear correction, etc.), the degree of correction (such as the value of the correction coefficient), and the performance indicators of the sensor after correction (such as the linearity and sensitivity after correction).
[0020] In order to determine the association weight between the target mechanical sensor calibration device and each calibration deviation correction record to be processed, an algorithm based on distance measurement, such as the Euclidean distance algorithm, can be used. Assume that the calibration data knowledge vector is (X=[x_1, x_2, cdots, x_n]), and the deviation correction state vector corresponding to the calibration deviation correction record to be processed is (Y=[y_1, y_2, cdots, y_m]) (here (n) and (m) are the dimensions of vectors (X) and (Y), respectively, and (n) and (m) may be different, and appropriate processing is required, such as padding or truncation). The association weight (W) can be calculated by the following formula: [W=frac{1}{1+sqrt{sum_{i=1}^{min(n,m)}(x_i-y_i)^2}}] For example, there is a deviation correction state vector of a calibration deviation correction record to be processed, which is [zero point correction, correction coefficient 0.9, linearity after correction 0.99, sensitivity after correction 1.01] (here each element is simplified), and the associated weight is calculated with the calibration data knowledge vector of the above force sensor. After numerical calculation, an associated weight value between 0 and 1 is obtained, which indicates the degree of association between the target mechanical sensor calibration device and the calibration deviation correction record to be processed. The closer the value is to 1, the higher the degree of association.
[0021] In detail, the calibration data knowledge vector is a comprehensive representation vector of the calibration data of the target mechanical sensor calibration equipment. It covers various information in the calibration process, including but not limited to input physical quantities, output signals, calibration environment conditions, and the properties of the calibration equipment itself.
[0022] For example, for a force sensor calibration data knowledge vector, its elements may include the force value sequence applied at different calibration times (such as [10N, 20N, 30N, ...]), the corresponding output electrical signal (such as [0.1V, 0.2V, 0.3V, ...]), the temperature of the calibration environment (such as 25°C), humidity (such as 50%), the sensor range (such as 0-100N), and the nominal value of sensitivity (such as 2mV / N), etc. These elements are combined to form a vector that fully describes the knowledge related to the calibration data.
[0023] The calibration data knowledge vector is the basis for the subsequent calculation of the association weight. It provides basic information about the target mechanical sensor calibration device, and by comparing it with the deviation correction state vector, the degree of association between the two can be determined. In the algorithm, it is like a reference template to measure the closeness of the relationship between other related vectors and the target device. For example, when calculating the association weight between the target device and a calibration deviation correction record to be processed, the elements in the calibration data knowledge vector will be operated with the corresponding elements in the deviation correction state vector to obtain a quantitative value of the degree of association.
[0024] In addition, the deviation correction state vector describes the state information in the previous calibration deviation correction process. Its elements include the type of correction (such as zero point correction, gain correction, etc., which can be represented by a specific code, such as 0 for zero point correction, 1 for gain correction, etc.), the degree of correction (such as the offset during zero point correction, the correction coefficient of gain correction, etc.), and the performance indicators of the sensor after correction (such as the linearity value and sensitivity value after correction).
[0025] For example, a bias-corrected state vector might be [0, 0.1, 0.99, 1.01], where 0 indicates that a zero-point correction was performed, 0.1 is the offset of the zero-point correction (e.g., the value of ), 0.99 is the corrected linearity, and 1.01 is the corrected sensitivity.
[0026] The deviation correction state vector and the calibration data knowledge vector are used together to determine the association weight. It reflects the key information of the previous correction operation. Through the association analysis with the calibration data knowledge vector, the relevance of the previous correction record and the current target device can be determined. In addition, in the subsequent screening priority indication calculation, the information such as the correction type and degree it contains will also indirectly affect the final priority sorting.
[0027] S120. Optimize the attention semantics of the expected sensor performance characteristics corresponding to each calibration deviation correction record to be processed, and obtain the performance optimization output characteristics of each expected sensor performance characteristic; the expected sensor performance characteristics reflect the quantitative relationship vector corresponding to the sensor performance parameters.
[0028] In the present invention, S120 focuses on optimizing the attention semantics of the expected characteristics of sensor performance to obtain performance optimized output characteristics.
[0029] Among them, the expected characteristics of sensor performance reflect the quantitative relationship vector corresponding to the sensor performance parameters. For example, for a mechanical sensor, its performance parameters may include linearity, sensitivity, repeatability, hysteresis, etc. Taking linearity as an example, its quantitative relationship vector can be expressed as a vector composed of the deviation values between the actual output and the ideal linear output under different input values. For example, under 5 different input force values [1N, 2N, 3N, 4N, 5N], the deviations between the actual output and the ideal linear output are [0.01V, 0.02V, 0.015V, 0.025V, 0.03V] respectively, then the quantitative relationship vector of this linearity is [0.01, 0.02, 0.015, 0.025, 0.03].
[0030] For sensitivity, the quantitative relationship vector may be a vector composed of the output voltage change rate under different input force value changes. For example, when the input force increases from 1N to 2N, the output voltage changes from 0.02V to 0.04V, and the sensitivity is ((0.04-0.02) / (2-1)=0.02V / N). The quantitative relationship vector of sensitivity is obtained under multiple input force value changes.
[0031] When it comes to attention semantic optimization, an attention mechanism algorithm can be used to optimize the attention semantics of the expected characteristics of sensor performance. The attention mechanism can help focus on factors that have a greater impact on sensor performance. For example, when calculating the performance optimization output characteristics, for the expected performance characteristic of linearity, based on the analysis of previous calibration data, it is found that certain input force ranges have a more critical impact on linearity. For example, in the input force range of 2N-4N, the weight of the impact of linearity deviation on the overall performance is 0.6 (this weight is obtained by analyzing a large amount of calibration data and the working principle of the sensor), while the weight of the impact of other force ranges is 0.4.
[0032] Then when optimizing the attention semantics of linearity, more attention will be paid to the deviation values in the range of 2N-4N. For example, the original linearity quantization relationship vector is [0.01, 0.02, 0.015, 0.025, 0.03]. After attention semantic optimization, the new vector may become [0.01×0.4, 0.02×0.6, 0.015×0.6, 0.025×0.6, 0.03×0.4]=[0.004, 0.012, 0.009, 0.015, 0.012], which is the optimized performance optimization output feature. The same method can be applied to other expected sensor performance features, such as sensitivity, repeatability, etc.
[0033] In other examples, the sensor performance expected characteristics reflect the quantitative relationship vectors corresponding to the sensor performance parameters. The sensor performance parameters generally include linearity, sensitivity, repeatability, hysteresis, etc. For each performance parameter, there is a corresponding quantitative relationship vector.
[0034] Taking linearity as an example, the quantified relationship vector of linearity may be a vector composed of the deviation values between the actual output and the ideal linear output under different input values. For example, when the input force values are [1N, 2N, 3N, 4N, 5N], the deviation between the actual output and the ideal linear output is [0.01V, 0.02V, 0.015V, 0.025V, 0.03V], then the quantified relationship vector of linearity is [0.01, 0.02, 0.015, 0.025, 0.03]. For sensitivity, the quantified relationship vector may be a vector composed of the output voltage change rate under different input force values.
[0035] The expected characteristics of sensor performance are the key basis for evaluating sensor performance. These feature vectors directly reflect the performance of the sensor in different aspects and are the starting point for optimizing sensor performance. In the subsequent attention semantic optimization process, operations will be performed on these feature vectors to improve the evaluation and optimization of sensor performance.
[0036] Furthermore, the performance optimization output feature is the result of attention semantic optimization of the expected sensor performance feature, which is obtained by adjusting the elements in the expected sensor performance feature vector according to their weights of impact on the overall performance.
[0037] For example, for the expected performance feature vector of linearity [0.01, 0.02, 0.015, 0.025, 0.03], if analysis shows that the deviation of the input force value in the range of 2N-4N has an impact weight of 0.6 on the overall linearity, and 0.4 in other ranges, then the performance optimization output feature after optimization may be [0.010.4, 0.020.6, 0.0150.6, 0.0250.6, 0.03×0.4]=[0.004, 0.012, 0.009, 0.015, 0.012].
[0038] The performance optimization output feature more accurately reflects the actual impact of sensor performance parameters on overall performance. It is obtained after considering the importance differences of different performance parameters in different input ranges, providing a more reasonable data basis for subsequent feature integration and screening priority indication calculations.
[0039] Next, the quantitative relationship vector is a form of expression of the expected characteristics of sensor performance. It quantifies the relationship between sensor performance parameters and factors such as input and output through specific numerical values.
[0040] For example, in terms of repeatability performance, the quantitative relationship vector may be a vector composed of the discrete degrees of the output values obtained by measuring the same input value multiple times. For example, if the input force of 10N is measured 5 times, the output voltages obtained are [0.1V, 0.11V, 0.09V, 0.105V, 0.095V] respectively. Then the quantitative relationship vector of repeatability can be obtained by calculating statistics such as standard deviation to obtain a numerical vector. This vector reflects the quantitative relationship between the performance of the sensor in terms of repeatability and the input force value.
[0041] The quantitative relationship vector expresses the sensor performance parameters in a computable and comparable form. It enables quantitative comparison of the performance of different sensors or the same sensor under different conditions, and provides specific data support for the evaluation and optimization of sensor performance and the calculation of other related vectors (such as feature integration).
[0042] S130, feature integrating the association weights between each calibration deviation correction record to be processed and the target mechanical sensor calibration device with the performance optimization output features of the corresponding expected sensor performance features, and obtaining the screening priority indications corresponding to each calibration deviation correction record to be processed.
[0043] In S130, obtaining the screening priority indications corresponding to the calibration deviation correction records to be processed can be achieved through the following two sub-steps.
[0044] Sub-step 1 involves feature integration, in which the association weights between each calibration deviation correction record to be processed and the target mechanical sensor calibration device are respectively integrated with the performance optimization output features of the corresponding sensor performance expected features. For example, for a calibration deviation correction record to be processed, its association weight (W=0.8) (calculated by step S110), and its corresponding linearity performance optimization output feature is [0.004, 0.012, 0.009, 0.015, 0.012] (obtained by step S120).
[0045] The weighted summation method is used for feature integration. For example, the weight of linearity in the comprehensive performance evaluation is (α=0.3) (this weight is determined according to the specific application needs and performance requirements of the sensor). Then the integration result of the performance characteristic of linearity is (0.8×0.3×[0.004, 0.012, 0.009, 0.015, 0.012]=[0.00096, 0.00288, 0.00216, 0.0036, 0.00288]).
[0046] If there are other expected performance characteristics, such as sensitivity, repeatability, etc., the characteristics are integrated according to the same method, and then the integration results of each performance characteristic are combined to obtain a comprehensive characteristic integration result. This result is part of the screening priority indication corresponding to the calibration deviation correction record to be processed.
[0047] Sub-step 2 involves the complete determination of the screening priority indication: after the above-mentioned feature integration operation is performed on all the expected performance characteristics of the sensor, the various results are combined to form a complete vector, which is the screening priority indication corresponding to the calibration deviation correction record to be processed. For example, after the feature integration of the three expected performance characteristics of linearity, sensitivity and repeatability, the obtained screening priority indication vector may be [0.00096, 0.00288, 0.00216, 0.0036, 0.00288, 0.001, 0.002, 0.0015, 0.0025, 0.002, 0.0005, 0.001, 0.0008, 0.0012, 0.001] (this is just an example vector, the actual length and value depend on the specific number of expected performance characteristics and the integration results).
[0048] In detail, the screening priority indication is a comprehensive vector obtained by feature integrating the association weights between each calibration deviation correction record to be processed and the target mechanical sensor calibration device with the performance optimization output features of the corresponding expected features of sensor performance.
[0049] For example, for a calibration deviation correction record to be processed, its associated weight is, and the linearity performance optimization output feature is [0.004, 0.012, 0.009, 0.015, 0.012]. For example, the weight of linearity in the comprehensive performance evaluation is, then the integrated result of the linearity performance feature is. The complete vector obtained by combining similar operations on all performance features is the screening priority indicator vector.
[0050] It can be seen that the screening priority indication vector is used to determine the priority order of each calibration deviation correction record to be processed. It comprehensively considers multiple factors such as the association weight and performance optimization output characteristics. By integrating these vectors, a vector that can fully reflect the importance of the calibration deviation correction record to be processed to the target mechanical sensor calibration equipment is obtained, thereby providing a basis for subsequent priority sorting and determination of the target calibration deviation correction record.
[0051] S140. Prioritize each calibration deviation correction record to be processed according to the screening priority indication to obtain a calibration deviation correction record queue, wherein the calibration deviation correction record queue is used to determine a target calibration deviation correction record, and the target calibration deviation correction record is used to assist in generating a current calibration correction plan for the target mechanical sensing calibration device.
[0052] In S140 , the calibration data analysis system can obtain a calibration deviation correction record queue through priority sorting and determine a target calibration deviation correction record.
[0053] ① Priority sorting Priority sorting is performed according to the screening priority indications corresponding to the calibration deviation correction records to be processed obtained in S130. A sorting algorithm, such as a bubble sorting algorithm, may be used. For example, there are 5 calibration deviation correction records to be processed, and their screening priority indication vectors are: Record 1: [0.00096, 0.00288, 0.00216, 0.0036, 0.00288, 0.001, 0.002, 0.0015, 0.0025, 0.002, 0.0005, 0.001, 0.0008, 0.0012, 0.001]; Record 2: [0.001, 0.003, 0.0025, 0.004, 0.0035, 0.0012, 0.0022, 0.0018, 0.003, 0.0022, 0.0008, 0.0012, 0.001, 0.0015, 0.0012]; Record 3: [0.0008, 0.0025, 0.002, 0.003, 0.0025, 0.0008, 0.0018, 0.0012, 0.002, 0.0018, 0.0004, 0.0008, 0.0006, 0.001, 0.0008]; Record 4: [0.0012, 0.0032, 0.0028, 0.0042, 0.0038, 0.0015, 0.0025, 0.002, 0.0032, 0.0025, 0.001, 0.0015, 0.0012, 0.0018, 0.0015]; Record 5: [0.0005, 0.002, 0.0015, 0.0025, 0.002, 0.0003, 0.0012, 0.0008, 0.0015, 0.0012, 0.0002, 0.0005, 0.0004, 0.0006, 0.0005].
[0054] Use the bubble sort algorithm to sort these vectors according to optional rules (such as the size of the sum of the vector elements, or the size of a specific element, etc.). After sorting, a calibration deviation correction record queue is obtained. For example, if the queue order obtained after sorting from the sum of the vector elements from small to large is: record 5, record 3, record 1, record 2, record 4.
[0055] ② Determine the target calibration deviation correction record The purpose of the calibration deviation correction record queue is to determine the target calibration deviation correction record. In the above example, the first record 5 is the target calibration deviation correction record. This target calibration deviation correction record will be used to assist in generating the current calibration correction scheme for the target mechanical sensor calibration device. For example, record 5 may contain valid information about zero-point correction, such as zero-point correction coefficient, environmental conditions during calibration, etc. This information can be extracted and combined with the current state of the target mechanical sensor calibration device to formulate a suitable current calibration correction scheme, such as determining whether zero-point calibration is needed again, the magnitude of the correction, etc., thereby improving the calibration accuracy and performance of the target mechanical sensor calibration device.
[0056] In summary, the present invention provides an innovative method for mechanical sensor calibration equipment, which has many beneficial effects. By determining the association weight between the target mechanical sensor calibration equipment and each calibration deviation correction record to be processed, the degree of connection between the two can be accurately measured, making subsequent processing more targeted. This process is based on the calibration data knowledge vector and the deviation correction state vector, making full use of the rich information of the equipment calibration data and correction records, and avoiding blind processing of correction records.
[0057] Optimizing the attention semantics of the expected features of sensor performance to obtain performance optimization output features helps focus on the more critical factors affecting sensor performance. This optimization method takes into account the quantitative relationship vector of sensor performance parameters, making the performance evaluation more consistent with actual working conditions and improving the accuracy of sensor performance evaluation.
[0058] Feature integration obtains screening priority indications, which comprehensively consider the associated weights and performance optimization output features, and comprehensively and reasonably reflect the importance of each calibration deviation correction record to be processed. According to the screening priority indication, the priority is sorted to obtain the calibration deviation correction record queue, and finally the target calibration deviation correction record is determined to assist in generating the current calibration correction plan. This whole process ensures that the correction plan is generated based on the most relevant and effective correction records, thereby improving the efficiency and accuracy of calibration correction, and can significantly improve the performance of mechanical sensor calibration equipment, so that it has higher accuracy and reliability in measurement, and can be widely used in various industrial and scientific research fields that require high accuracy of mechanical sensors.
[0059] In some optional embodiments, the method of obtaining the calibration data knowledge vector corresponding to the target mechanical sensor calibration device includes: obtaining the mechanical sensor calibration data corresponding to the target mechanical sensor calibration device; performing knowledge vector mining on the mechanical sensor calibration data through a calibration data knowledge vector mining branch in a calibrated stacked long short-term memory network StackedLSTM to obtain the calibration data knowledge vector corresponding to the target mechanical sensor calibration device.
[0060] In actual application, the following is a detailed explanation of the technical solution of this embodiment.
[0061] 1. Obtaining the calibration data of the mechanical sensor corresponding to the target mechanical sensor calibration equipment ①Content and source of mechanical sensor calibration data Mechanical sensor calibration data is a collection of various data involved in the calibration process of the target mechanical sensor calibration equipment. These data cover many aspects, such as the precise value of the mechanical input (force, pressure, torque, etc.) applied to the sensor during the calibration process, and the corresponding output signal of the sensor (such as voltage, current or frequency, etc.). At the same time, it also includes environmental parameters during the calibration process, such as temperature, humidity, etc., because these environmental factors may affect the performance of the sensor.
[0062] Take the calibration of a force sensor as an example. During the calibration experiment, the output of the sensor may be measured under a series of precisely controlled force values. For example, the applied force value can be from 1N to 100N, increasing by 1N, and the sensor output data under 100 different force values are obtained. When each force value is applied, the ambient temperature is recorded at that time. For example, the temperature ranges from 20°C to 30°C, and the humidity fluctuates between 40%-60%. These detailed measurement data together constitute the mechanical sensor calibration data.
[0063] ②Acquisition method and accuracy requirements Specialized measuring instruments and equipment are required to obtain this data. For the measurement of mechanical input, high-precision force sensors (for example, with an accuracy of ±0.01N), pressure sensors or torque sensors are required to ensure the accuracy of the input measurement. For the measurement of sensor output signals, high-precision data acquisition equipment is used, and its voltage measurement accuracy may reach ±0.001V. The measurement of environmental parameters is carried out through equipment such as temperature and humidity sensors, with a temperature measurement accuracy of ±0.1°C and a humidity measurement accuracy of ±1%. These high-precision measuring instruments ensure that the obtained mechanical sensor calibration data has sufficient accuracy and provide a reliable data basis for subsequent processing.
[0064] 2. Knowledge vector mining through the calibration data knowledge vector mining branch in the adjusted StackedLSTM ①StackedLSTM (Stacked Long Short-Term Memory Network) StackedLSTM is a deep learning network structure that consists of multiple long short-term memory (LSTM) layers stacked together. LSTM is a special recurrent neural network (RNN) that aims to solve the gradient vanishing and gradient exploding problems of traditional RNN when processing long sequence data. LSTM can effectively process long-term dependencies in long sequence data by introducing a gating mechanism (input gate, forget gate, and output gate).
[0065] In StackedLSTM, multiple LSTM layers are stacked together, and each layer processes the output of the previous layer, so that more complex and advanced features can be extracted. For example, the first layer of LSTM may learn the basic time series patterns in the calibration data, while the second layer of LSTM can learn more abstract patterns based on the output of the first layer, such as the relationship between the changing trend of sensor output and environmental factors under different force values.
[0066] ② Calibration data knowledge vector mining branch This branch is specially designed for mechanical sensor calibration data, and is inside the StackedLSTM network structure. Its structure and parameters are adjusted to adapt to the characteristics of calibration data and mining requirements.
[0067] When training this branch, the input is the mechanical sensor calibration data, such as the sequence of force value, sensor output, ambient temperature and humidity mentioned above. The output is the calibration data knowledge vector.
[0068] For example, the dimension of the calibration data knowledge vector is (n), for example (n=20). The elements in this vector may include some statistical features, such as the mean and standard deviation of the sensor output in different force ranges, the average values of ambient temperature and humidity, and the correlation coefficient between the force value and the sensor output. Specifically, the first 5 elements may be the mean of the sensor output voltage in different force ranges (such as 0-20N, 20-40N, etc.), the next 3 elements are the standard deviation of the corresponding interval, the next 2 elements are the average values of ambient temperature and humidity, and the last 10 elements are the values of the correlation coefficient between different force values and the sensor output after optional transformation.
[0069] ③Specific process and algorithm examples of knowledge vector mining Take a simplified case as an example, for example, the length of the mechanical sensor calibration data sequence is (m) (for example (m=1000)), and the data points at each time step contain force value (F_t), sensor output voltage (V_t), temperature (T_t) and humidity (H_t) ((t=1, 2, cdots, m)).
[0070] In the calibration data knowledge vector mining branch of StackedLSTM, the data is first preprocessed and converted into a format suitable for network input. For example, the force value, voltage, temperature and humidity are normalized to the interval of ([-1, 1]).
[0071] For the calculation in the LSTM layer, taking a single LSTM unit as an example, the calculation formula of the forget gate (f_t) is: (f_t=sigma(W_fcdot[h_{t-1},x_t]+b_f)), where (W_f) is the weight matrix of the forget gate, (h_{t-1}) is the hidden state of the previous time step, (x_t) is the input of the current time step (including normalized force, voltage, temperature, humidity and other information), (b_f) is the bias vector of the forget gate, and (sigma) is the sigmoid function.
[0072] The input gate (i_t) and output gate (o_t) also have similar calculation formulas, namely (i_t=sigma(W_icdot[h_{t-1},x_t]+b_i)) and (o_t=sigma(W_ocdot[h_{t-1},x_t]+b_o)).
[0073] The update formula of the cell state (C_t) is: (C_t=f_t×C_{t-1}+i_t×tanh(W_Ccdot[h_{t-1},x_t]+b_C)).
[0074] The hidden state (h_t) is calculated as: (h_t=o_t×tanh(C_t)).
[0075] After being processed by multiple layers of LSTM, the output of the last layer of LSTM is converted into a calibration data knowledge vector through a fully connected layer. For example, the weight matrix of the fully connected layer is (W_{out}) and the bias vector is (b_{out}). The calculation formula of the calibration data knowledge vector (V) is: (V=W_{out}cdoth_m+b_{out}), where (h_m) is the hidden state of the last time step.
[0076] When training this network, supervised learning is performed using labeled calibration data samples. For example, the mean square error (MSE) is used as the loss function: (MSE=frac{1}{n}sum_{i=1}^{n}(y_i-hat{y}_i)^2), where (y_i) is the true value in the calibration data knowledge vector (obtained by manually calculating the original calibration data or using other accurate methods), and (hat{y}_i) is the value in the calibration data knowledge vector predicted by the network. The weights and biases of the network are continuously adjusted through the back-propagation algorithm to minimize the loss function, thereby obtaining the calibration data knowledge vector mining branch in the calibrated StackedLSTM, which can accurately mine the calibration data knowledge vector from the mechanical sensor calibration data.
[0077] With this design, firstly, by acquiring comprehensive and accurate mechanical sensor calibration data and processing it with the calibration data knowledge vector mining branch in the calibrated StackedLSTM, the calibration data knowledge vector can be efficiently mined. This method makes full use of StackedLSTM's ability to process long sequence data and learn complex patterns, and can more deeply mine the hidden information in the calibration data compared to traditional data analysis methods. For example, it can accurately capture the subtle relationship between sensor output and environmental factors under different force values, which may be ignored in traditional methods. Secondly, the mined calibration data knowledge vector provides a more accurate and richer basis for subsequent operations such as determining the association weight between the target mechanical sensor calibration device and each calibration deviation correction record to be processed. This helps to improve the accuracy and efficiency of the entire calibration deviation correction process, thereby improving the performance of the mechanical sensor calibration device and ensuring that it can provide more reliable measurement results in various application scenarios.
[0078] In some other embodiments, the method also includes: performing knowledge vector mining on each calibrated deviation correction record in the deviation correction record set through the first deviation correction state vector mining branch or the second deviation correction state vector mining branch in the calibrated stacked long short-term memory network StackedLSTM, to obtain the initial deviation correction state vector corresponding to each calibrated deviation correction record; and determining the deviation correction state vector corresponding to each calibrated deviation correction record to be processed from each initial deviation correction state vector.
[0079] Furthermore, the specific implementation methods involved in this embodiment are as follows.
[0080] 1. Mining of Bias Correction Record Set and Initial Bias Correction State Vector ①Bias correction record set The deviation correction record set is a collection of calibration deviation correction records for mechanical sensor calibration equipment. Each calibration deviation correction record covers detailed information during a calibration operation. This information includes the timestamp of the calibration, the specific sensor performance parameters for the calibration (such as linearity, sensitivity, repeatability, etc.), the calibration method used (such as zero point calibration method, gain calibration method, etc.), the input parameters during the calibration process (such as the size and frequency of the applied calibration signal, if applicable), and the evaluation of the results after calibration (such as the actual measured values of the sensor performance parameters after calibration).
[0081] For example, a deviation correction record may contain the following information: the correction time is 10:00 on May 10, 2023, the correction is for the sensitivity parameter of the sensor, the correction method used is the gain correction method, the correction gain coefficient applied is 1.05, and the actual sensitivity measurement value obtained by measuring a series of standard force values after correction is 2.1mV / N (the original nominal value is 2mV / N). This deviation correction record set provides a rich source of raw data for subsequent mining operations.
[0082] ②The first bias-corrected state vector mining branch and the second bias-corrected state vector mining branch in StackedLSTM The two mining branches in StackedLSTM are specially designed for mining bias-corrected state vectors from bias-corrected record sets. They differ in structure and function, but both aim to extract useful information from bias-corrected records and transform them into bias-corrected state vectors.
[0083] The first deviation correction state vector mining branch may focus more on mining from the parameters and results of the correction operation itself. For example, it will focus on information such as the correction method, correction coefficient, and the direct numerical relationship of the performance parameters after correction.
[0084] The second bias correction state vector mining branch may consider more complex information such as the environmental factors of the correction (if recorded in the bias correction record), the relationship between the correction and other related operations (such as the previous calibration operation), etc.
[0085] ③Knowledge vector mining process Taking the first bias correction state vector mining branch as an example, for each calibration bias correction record in the bias correction record set, its related information is preprocessed so as to be input into the StackedLSTM. For example, the information of a calibration bias correction record is organized into a vector form, such as ([t, p, m, i, r]), where (t) represents the correction time (in an optional time encoding form, such as the number of seconds from a certain start time), (p) represents the performance parameter targeted by the correction (which can be represented by encoding, such as 0 for linearity, 1 for sensitivity, etc.), (m) represents the correction method (which can also be encoded, such as 0 for zero point correction, 1 for gain correction, etc.), (i) represents the correction input parameter (such as the gain coefficient in gain correction), and (r) represents the result evaluation after correction (such as the actual value of the performance parameter after correction).
[0086] These vectors are input into the StackedLSTM of the first bias-corrected state vector mining branch. Each layer of LSTM units in the StackedLSTM is processed according to its internal calculation mechanism. Taking the first layer of LSTM units as an example, for the input vector (x=[t, p, m, i, r]), the calculation of its forget gate (f) is as follows: Assume that the weight matrix (W_f) of the forget gate is a (5×5) matrix (for example, the input vector dimension is 5), and the bias vector (b_f) is a 5-dimensional vector.
[0087] First calculate (z=W_fcdotx+b_f), for example (z=[z_1, z_2, z_3, z_4, z_5]), and then forget the gate (f=sigma(z)), where (sigma) is the sigmoid function, that is, (f=[sigma(z_1), sigma(z_2), sigma(z_3), sigma(z_4), sigma(z_5)]).
[0088] The updates of the input gate (i), output gate (o), and cell state (C) and the calculation of the hidden state (h) are also performed according to similar LSTM calculation rules. After being processed by multiple layers of LSTM, the output of the last layer of LSTM is converted into an initial bias-corrected state vector through a fully connected layer. For example, if the weight matrix of the fully connected layer is (W_{out1}) and the bias vector is (b_{out1}), then the calculation formula for the initial bias-corrected state vector (V_1) is: (V_1=W_{out1}cdoth_{last}+b_{out1}), where (h_{last}) is the hidden state of the last time step.
[0089] For the second bias correction state vector mining branch, the processing process is similar, but the preprocessing of the input information and the parameters such as the weight matrix and bias vector inside the network may be different to adapt to its mining needs for different types of information. For example, if the ambient temperature (T) and humidity (H) information at the time of correction is included in the bias correction record, the input vector may become ([t, p, m, i, r, T, H]), and the corresponding network structure and parameters will be adjusted to correctly process this additional information and mine a suitable initial bias correction state vector.
[0090] 2. Determine the deviation correction state vector corresponding to the calibration deviation correction record to be processed from the initial deviation correction state vector ① Determination of screening criteria It is necessary to establish certain screening criteria to determine the deviation correction state vectors corresponding to each calibration deviation correction record to be processed from each initial deviation correction state vector. This screening criterion can be based on various factors, such as the relevance to the target mechanical sensor calibration device, the integrity of the correction record, the reliability of the correction result, etc.
[0091] Taking the correlation with the target mechanical sensor calibration device as an example, an optional similarity measure between the initial bias correction state vector and the calibration data knowledge vector of the target device (obtained by the method mentioned above) can be calculated. For example, the cosine similarity is used to measure, for an initial bias correction state vector (V_{1i}) ((i) represents the (i)th initial bias correction state vector) and the calibration data knowledge vector (K) of the target device, the calculation formula of the cosine similarity (s) is: (s= frac{V_{1i}cdotK}{leftvertV_{1i}rightvert×leftvertKrightvert}); Among them: (cdot) represents the vector dot product; (leftvertV_{1i}rightvert) and (leftvertKrightvert) represent the modulus of the vectors (V_{1i}) and (K) respectively.
[0092] If the cosine similarity (s) is greater than a set threshold (s_{th}) (for example, (s_{th}=0.8)), it is considered that the calibration deviation correction record corresponding to this initial deviation correction state vector has a high correlation and can be used as the calibration deviation correction record to be processed. Its initial deviation correction state vector becomes a deviation correction state vector after further processing (such as removing some redundant information or normalizing).
[0093] ②Processing example For example, after calculation, there are several initial deviation correction state vectors whose cosine similarity with the calibration data knowledge vector of the target device is greater than (0.8). For one of the initial deviation correction state vectors (V_{1j}=[a_1, a_2, cdots, a_n]) ((j) represents the (j)th initial deviation correction state vector that meets the relevance requirement), if it is found that some of the elements are not very relevant to the main goal of determining the deviation correction state vector at present (for example, when only focusing on the correlation between the correction result and the correction method, the correction time element in the initial deviation correction state vector may not be very important), these elements can be removed or given a lower weight.
[0094] For example, the weight of the first element in (V_{1j}) (e.g., the correction time-related element) is set to 0, and then the remaining elements are normalized. Let the vector composed of the remaining elements be (V_{1j}'=[a_2, cdots, a_n]), and the element (b_k) ((k=2, cdots, n)) of the normalized deviation correction state vector (V_{j}) is calculated by: (b_k=frac{a_k}{sqrt{sum_{l=2}^{n}a_l^2}}). In this way, the final deviation correction state vector (V_{j}) is obtained, which is used for subsequent operations such as determining the association weight between the target mechanical sensor calibration device.
[0095] In this way, firstly, by using the bias correction state vector mining branch in StackedLSTM to mine the knowledge vector of the bias correction record, it is possible to make full use of the powerful feature learning ability of StackedLSTM to extract valuable information from complex bias correction records. For example, by deeply mining the information such as correction method, correction parameters and correction results, the essential characteristics of each correction operation can be more comprehensively understood. Secondly, by setting reasonable screening criteria to determine the final bias correction state vector from the initial bias correction state vector, it is possible to improve the correlation with the target device, remove unnecessary information, and make the obtained bias correction state vector more refined and effective. This helps to accurately determine the association weight between the target mechanical sensor calibration device and each calibration deviation correction record to be processed, thereby improving the accuracy and efficiency of the entire calibration correction process and improving the performance of the mechanical sensor calibration device.
[0096] In actual application, the calibration method of the calibrated stacked long short-term memory network StackedLSTM may include the following contents: obtaining a priori training example set, the priori training example set including: mechanical sensor calibration data samples, calibration deviation correction record authentication samples and calibration deviation correction record disturbance samples corresponding to the mechanical sensor calibration equipment samples; performing knowledge vector mining on the mechanical sensor calibration data samples through the calibration data knowledge vector mining branch in the stacked long short-term memory network StackedLSTM to be calibrated to obtain calibration data knowledge vector samples; performing knowledge vector mining on the calibration deviation correction record authentication samples through the first deviation correction state vector mining branch in the stacked long short-term memory network StackedLSTM to be calibrated to obtain deviation correction state vector authentication samples; performing knowledge vector mining on the calibration deviation correction record authentication samples through the second deviation correction state vector mining branch in the stacked long short-term memory network StackedLSTM to be calibrated to obtain deviation correction state vector authentication samples; performing knowledge vector mining on the calibration deviation correction record authentication samples through the second deviation correction state vector mining branch in the stacked long short-term memory network StackedLSTM to be calibrated to obtain deviation correction state vector authentication samples. A quantity mining branch is provided to perform knowledge vector mining on the calibration deviation correction record disturbance sample to obtain a deviation correction state vector disturbance sample; the attention semantics of the expected characteristics of sensor performance corresponding to the calibration deviation correction record authentication sample is optimized to obtain the first optimization training information; the attention semantics of the expected characteristics of sensor performance corresponding to the calibration deviation correction record disturbance sample is optimized to obtain the second optimization training information; a network tuning quality evaluation function is determined based on the calibration data knowledge vector sample, the deviation correction state vector authentication sample, the deviation correction state vector disturbance sample, the first optimization training information and the second optimization training information; a neural network weight optimization is performed on the stacked long short-term memory network StackedLSTM to be tuned based on the network tuning quality evaluation function until the neural network tuning meets the standard requirements, and a calibrated stacked long short-term memory network StackedLSTM is obtained.
[0097] In detail, the network calibration quality evaluation function is determined based on the calibration data knowledge vector sample, the deviation correction state vector authentication sample, the deviation correction state vector perturbation sample, the first optimization training information and the second optimization training information, including: determining a first association weight between a mechanical sensing calibration device sample and a calibration deviation correction record authentication sample based on the calibration data knowledge vector sample and the deviation correction state vector authentication sample; determining a second association weight between a mechanical sensing calibration device sample and a calibration deviation correction record perturbation sample based on the calibration data knowledge vector sample and the deviation correction state vector perturbation sample; obtaining a first iterative training error based on the first association weight, the first optimization training information and the set iterative processing decision feature; obtaining a second iterative training error based on the second association weight, the second optimization training information and the set iterative processing decision feature; and determining a network calibration quality evaluation function based on the first iterative training error and the second iterative training error.
[0098] In the next step, the attention semantics of the expected sensor performance characteristics corresponding to the calibration deviation correction record authentication sample are optimized to obtain the first optimized training information; the attention semantics of the expected sensor performance characteristics corresponding to the calibration deviation correction record perturbation sample are optimized to obtain the second optimized training information, including: weighting the expected sensor performance characteristics and the set enhancement characteristics corresponding to the calibration deviation correction record authentication sample to obtain the first sensor performance expected characteristics; processing the attention semantics of the first expected sensor performance characteristics through the channel attention mechanism to obtain the first optimized training information; weighting the expected sensor performance characteristics and the set enhancement characteristics corresponding to the calibration deviation correction record perturbation sample to obtain the second expected sensor performance characteristics; processing the attention semantics of the second expected sensor performance characteristics through the channel attention mechanism to obtain the second optimized training information.
[0099] The calibration method for the stacked long short-term memory network StackedLSTM can be achieved through the following five steps.
[0100] 1. Acquisition of Prior Training Example Set ① Constituent elements of the prior training example set The prior training example set contains a variety of sample data that are crucial for tuning the stacked long short-term memory network (StackedLSTM). Among them, the mechanical sensor calibration data samples corresponding to the mechanical sensor calibration equipment samples are the basic part. These data samples are similar to the data generated by the actual mechanical sensor calibration equipment during the calibration process, including different mechanical input quantities (such as force, pressure, torque, etc.) and the corresponding output signals of the sensor (voltage, current, etc.), and may also include data related to the calibration environment (such as temperature, humidity, etc.).
[0101] The calibration deviation correction record certification examples are certified calibration deviation correction record examples with accuracy and reliability. These examples record in detail various information during the deviation correction process of the mechanical sensing equipment, such as the type of correction (zero point correction, gain correction, etc.), specific parameters during correction (such as correction coefficients, etc.), and the evaluation of the results after correction (the measured values of the sensor performance parameters after correction).
[0102] The calibration deviation correction record disturbance samples are correction record samples that are different from the certification samples. They may be correction records generated under certain conditions (such as certain noise interference, environmental fluctuations, or slight changes in correction parameters, etc.), and are used to test the adaptability and accuracy of the network under different situations.
[0103] ② Acquisition method and data accuracy requirements Mechanical sensor calibration data samples can be obtained through simulated calibration experiments or by selecting representative parts from a large amount of existing calibration data. For simulation experiments, data collection needs to be carried out strictly in accordance with the actual calibration process and accuracy requirements. For example, in the calibration of simulated force sensors, the simulation accuracy of mechanical input quantities must reach a level close to that of actual measurements (such as the simulation accuracy of force values reaching ±0.01N), and the acquisition accuracy of sensor output signals must also meet the requirements (such as the voltage acquisition accuracy reaching ±0.001V). The simulation accuracy of environmental parameters also needs to be guaranteed (temperature simulation accuracy is ±0.1°C, humidity simulation accuracy is ±1%).
[0104] The calibration deviation correction record certification samples and disturbance samples can be obtained from the actual calibration operation record database, where the certification samples are records that have been strictly reviewed and verified, and the disturbance samples can be obtained by making controlled modifications to the certification samples (such as changing the correction parameters within a certain range, introducing small environmental fluctuations, etc.).
[0105] 2. Knowledge vector mining through the StackedLSTM to be adjusted ① Operation of calibration data knowledge vector mining branch For the calibration data knowledge vector mining branch in the StackedLSTM to be calibrated, the mechanical sensor calibration data sample is used as input. For example, the mechanical sensor calibration data sample is a data sequence containing 1000 time steps, and each time step contains force value, voltage, temperature and humidity information. Before inputting into the StackedLSTM, these data need to be preprocessed, such as normalizing the force value, voltage, temperature and humidity to the interval of [-1, 1].
[0106] Then, the data enters each layer of LSTM units of StackedLSTM. Taking the first layer of LSTM units as an example, for the input vector (x_t) of a single time step (t) (containing normalized force value, voltage, temperature and humidity information), the calculation of the forget gate (f_t) is: (f_t=sigma(W_fcdot[h_{t-1},x_t]+b_f)), where (W_f) is the weight matrix of the forget gate, (h_{t-1}) is the hidden state of the previous time step, (b_f) is the bias vector of the forget gate, and (sigma) is the sigmoid function. The updates of the input gate (i_t), output gate (o_t) and cell state (C_t) and the calculation of the hidden state (h_t) are all performed according to the standard calculation rules of LSTM. After being processed by multiple layers of LSTM, the output of the last layer of LSTM is converted into a calibration data knowledge vector sample through a fully connected layer. For example, the weight matrix of the fully connected layer is (W_{out}) and the bias vector is (b_{out}). The calculation formula for the calibration data knowledge vector sample (V) is: (V=W_{out}cdoth_m+b_{out}), where (h_m) is the hidden state of the last time step.
[0107] ② Operation of the first deviation correction state vector mining branch The first bias correction state vector mining branch in the StackedLSTM to be calibrated performs knowledge vector mining on the calibration bias correction record authentication sample. For example, the calibration bias correction record authentication sample is represented in vector form as ([t, p, m, i, r]), where (t) represents the correction time (in optional time encoding form), (p) represents the performance parameter targeted by the correction (encoded representation), (m) represents the correction method (encoded representation), (i) represents the correction input parameter, and (r) represents the result evaluation after correction.
[0108] This vector is input into the StackedLSTM of the first bias-corrected state vector mining branch, and the LSTM units inside it are processed according to the corresponding calculation rules. For example, the calculation of the forget gate, input gate, output gate, and cell state is similar to the previous one. After being processed by multiple layers of LSTM, the output of the last layer of LSTM is converted into a bias-corrected state vector authentication sample through a fully connected layer. Assuming the weight matrix of the fully connected layer is (W_{out1}) and the bias vector is (b_{out1}), the calculation formula of the bias-corrected state vector authentication sample (V_{auth}) is: (V_{auth}=W_{out1}cdoth_{last1}+b_{out1}), where (h_{last1}) is the hidden state of the last time step of this branch.
[0109] ③ Operation of the second deviation correction state vector mining branch The second bias correction state vector mining branch performs knowledge vector mining on the perturbation samples of the calibration bias correction records. The process is similar to that of the first bias correction state vector mining branch. However, since the characteristics of the input calibration bias correction record perturbation samples may be different (such as data changes caused by perturbation factors), its internal weight matrix, bias vector and other parameters may be different. For example, the vector representation of the calibration bias correction record perturbation sample is ([t', p', m', i', r']) (where the primed elements represent values that may be different from the authentication samples). After StackedLSTM processing, the bias correction state vector perturbation sample (V_{pert}) is obtained. The calculation process is similar to that of the first bias correction state vector mining branch, except that different weight matrices (W_{out2}) and bias vectors (b_{out2}) are used. The bias correction state vector perturbation sample: (V_{pert}=W_{out2}cdoth_{last2}+b_{out2}), where (h_{last2}) is the hidden state of the last time step of this branch.
[0110] 3. Attention semantic optimization to obtain optimized training information ① Processing of calibration deviation correction record certification samples For the sensor performance expected feature corresponding to the calibration deviation correction record authentication sample, firstly weight it and the set enhanced feature to obtain the first sensor performance expected feature. For example, the sensor performance expected feature is a vector (E=[e_1, e_2, cdots, e_n]), and the set enhanced feature is a vector (S=[s_1, s_2, cdots, s_n]), then the element of the first sensor performance expected feature (E_1) is calculated as (e_{1i}=e_i×s_i)((i=1, 2, cdots, n)).
[0111] Then, the attention semantics of the first sensor performance expectation feature are processed by the channel attention mechanism to obtain the first optimized training information. The channel attention mechanism can adjust the weight of each channel by calculating the relationship between the channels of the feature map. For example, for the first sensor performance expectation feature (E_1), its channel attention weight vector (A=[a_1, a_2, cdots, a_n]) is calculated, which can be obtained by global average pooling and fully connected layer operations. Then the elements of the first optimized training information (I_{auth}) are calculated as (i_{authi}=e_{1i}×a_i)((i=1, 2, cdots, n)).
[0112] ② Processing of calibration deviation correction record disturbance samples The sensor performance expected feature and the set enhanced feature corresponding to the calibration deviation correction record disturbance sample are weighted to obtain the second sensor performance expected feature. For example, the sensor performance expected feature corresponding to the calibration deviation correction record disturbance sample is a vector (E'=[e_1', e_2', cdots, e_n']), then the element of the second sensor performance expected feature (E_2) is calculated as (e_{2i}=e_i'×s_i)((i=1, 2, cdots, n)).
[0113] The second optimized training information is obtained by processing the attention semantics of the expected characteristics of the second sensor performance through the channel attention mechanism. Similarly, its channel attention weight vector (A'=[a_1', a_2', cdots, a_n']) is calculated, and then the element of the second optimized training information (I_{pert}) is calculated as (i_{perti}=e_{2i}×a_i')((i=1, 2, cdots, n)).
[0114] 4. Determine the network calibration quality evaluation function ① Calculate the first association weight and the second association weight The first association weight between the mechanical sensor calibration device sample and the calibration deviation correction record authentication sample is determined based on the calibration data knowledge vector sample and the deviation correction state vector authentication sample. An optional distance measurement algorithm, such as the Euclidean distance algorithm, can be used. Suppose the calibration data knowledge vector sample is (V=[v_1, v_2, cdots, v_m]), and the deviation correction state vector authentication sample is (V_{auth}=[v_{auth1}, v_{auth2}, cdots, v_{authn}]) (for example, (m) and (n) can be processed appropriately to make them usable for calculation, such as padding or truncation), then the calculation formula of the first association weight (W_1) is: (W_1=frac{1}{1+sqrt{sum_{i=1}^{min(m,n)}(v_i-v_{authi})^2}}).
[0115] Similarly, the second association weight (W_2) between the mechanical sensor calibration equipment sample and the calibration deviation correction record disturbance sample is determined based on the calibration data knowledge vector sample and the deviation correction state vector disturbance sample. Assume that the deviation correction state vector disturbance sample is (V_{pert}=[v_{pert1}, v_{pert2}, cdots, v_{pertn}]), then: (W_2=frac{1}{1+sqrt{sum_{i=1}^{min(m,n)}(v_i-v_{perti})^2}}).
[0116] ②Calculate the first iteration training error and the second iteration training error The first iterative training error is obtained according to the first association weight, the first optimized training information and the set iterative processing decision feature. For example, the set iterative processing decision feature is a vector (D=[d_1, d_2, cdots, d_n]), and the first optimized training information is: (I_{auth}=[i_{auth1}, i_{auth2}, cdots, i_{authn}]), then the calculation formula for the first iteration training error (E_1) is: (E_1=sum_{i=1}^{n}(W_1×i_{authi}-d_i)^2).
[0117] The second iterative training error is obtained according to the second association weight, the second optimized training information and the set iterative processing decision feature. Assume that the second optimized training information is: (I_{pert}=[i_{pert1}, i_{pert2}, cdots, i_{pertn}]), then the calculation formula for the second iteration training error (E_2) is: (E_2=sum_{i=1}^{n}(W_2×i_{perti}-d_i)^2).
[0118] ③Determine the network calibration quality evaluation function The network calibration quality evaluation function is determined based on the first iteration training error and the second iteration training error. For example, the network calibration quality evaluation function (Q) can be defined as: (Q=E_1+E_2). This function comprehensively considers the training errors obtained from the certification samples and the perturbation samples, and can comprehensively evaluate the calibration quality of the network.
[0119] 5. Neural Network Weight Optimization and Tuned StackedLSTM ①Neural network weight optimization process The neural network weights of the StackedLSTM to be tuned are optimized according to the network tuning quality evaluation function (Q). During the optimization process, optimization algorithms such as the gradient descent algorithm can be used. For example, for a certain weight (w) in the StackedLSTM, the update formula is: (w=w-alpha×frac{partialQ}{partialw}), where (alpha) is the learning rate (for example, (alpha=0.001)). This process updates all weights in the StackedLSTM (including the weights in the calibration data knowledge vector mining branch, the first bias correction state vector mining branch, and the second bias correction state vector mining branch).
[0120] After each weight update, the network tuning quality evaluation function (Q) is recalculated to determine whether it meets the standard requirements for neural network tuning. The standard requirement can be that the value of (Q) is less than a certain set threshold (such as (Q_{th}=0.01)) or the optimization is stopped after a certain number of iterations (such as 1000 times).
[0121] ②Get the calibrated StackedLSTM When the neural network calibration meets the standard requirements, the optimization process is terminated, and the StackedLSTM obtained at this time is the calibrated StackedLSTM. This calibrated network can be used for subsequent operations such as mining calibration data knowledge vectors from mechanical sensor calibration data and mining deviation correction state vectors from deviation correction records, thereby providing accurate data support for the calibration deviation correction process of the entire mechanical sensor calibration equipment.
[0122] By applying the above embodiment, the network is adjusted by using a priori training example set containing multiple samples (mechanical sensor calibration data samples, calibration deviation correction record authentication samples and disturbance samples), so that StackedLSTM can adapt to data in different situations and improve the generalization ability of the network. For example, the introduction of calibration deviation correction record disturbance samples allows the network to accurately mine information even when facing data that may be disturbed or changed.
[0123] The method of calculating the network calibration quality evaluation function based on association weights, optimized training information, and iterative processing of decision features takes into account multiple factors and can more accurately evaluate the quality of network calibration. Furthermore, optimizing the expected features of sensor performance through attention semantics to obtain optimized training information helps focus on the key factors that affect performance and improves the network's ability to process information related to sensor performance.
[0124] The entire tuning process ensures that StackedLSTM can mine vectors more accurately when used in subsequent operations, thereby improving the accuracy and efficiency of the calibration deviation correction process of the entire mechanical sensor calibration equipment.
[0125] Under some preferred design ideas, the association weight between the target mechanical sensor calibration device and each calibration deviation correction record to be processed is determined based on the calibration data knowledge vector and the deviation correction state vector corresponding to each calibration deviation correction record to be processed, including: for each calibration deviation correction record to be processed, determining the characteristic operation result of the calibration data knowledge vector and the deviation correction state vector corresponding to the calibration deviation correction record to be processed; determining the association weight between the target mechanical sensor calibration device and the calibration deviation correction record to be processed based on the characteristic operation result.
[0126] Based on this, the attention semantics of the expected sensor performance characteristics corresponding to each calibration deviation correction record to be processed are optimized to obtain the performance optimization output characteristics of each sensor performance expected characteristic, including: for each calibration deviation correction record to be processed, the expected sensor performance characteristics and the set enhancement characteristics corresponding to the calibration deviation correction record to be processed are weighted to obtain the enhanced sensor performance expected characteristics; the attention semantics of the enhanced sensor performance expected characteristics are processed through the channel attention mechanism to obtain the performance optimization output characteristics of the sensor performance expected characteristics corresponding to the calibration deviation correction record to be processed.
[0127] Furthermore, the association weights between each calibration deviation correction record to be processed and the target mechanical sensor calibration device are respectively integrated with the performance optimization output characteristics of the corresponding expected sensor performance characteristics to obtain the screening priority indications corresponding to each calibration deviation correction record to be processed, including: for each calibration deviation correction record to be processed, the association weights between the target mechanical sensor calibration device and the calibration deviation correction record to be processed are globally processed with the performance optimization output characteristics of the expected sensor performance characteristics corresponding to the calibration deviation correction record to be processed to obtain the screening priority indication of the calibration deviation correction record to be processed.
[0128] In the actual application process, the following is a detailed explanation of the above design ideas.
[0129] 1. Determine the association weight between the target mechanical sensor calibration device and each calibration deviation correction record to be processed ① Determine the feature operation results For each calibration deviation correction record to be processed, it is necessary to determine the characteristic operation results of the calibration data knowledge vector and the deviation correction state vector corresponding to the calibration deviation correction record to be processed. For example, the calibration data knowledge vector is (V=[v_1, v_2, cdots, v_n]), and the deviation correction state vector is (U=[u_1, u_2, cdots, u_m]) (where (n) and (m) are the dimensions of the vector).
[0130] An exemplary feature operation may be a dot product operation of a vector. For example, the dot product of the calibration data knowledge vector (V) and the deviation correction state vector (U) is calculated as the feature operation result (R), then (R=VcdotU=sum_{i=1}^{min(n,m)}v_i×u_i). Another possible feature operation may be a cosine similarity calculation, and the calculation formula of the cosine similarity (S) is (S=frac{VcdotU}{leftvertVrightvert×leftvertUrightvert}), where: (leftvertVrightvert=sqrt{sum_{i=1}^{n}v_i^2}), (leftvertUrightvert=sqrt{sum_{i=1}^{m}u_i^2}).
[0131] These characteristic operation results can reflect the closeness of the relationship between the calibration data knowledge vector and the deviation correction state vector to a certain extent.
[0132] ②Determine the association weight The association weight between the target mechanical sensor calibration device and the calibration deviation correction record to be processed is determined based on the characteristic operation result. For example, when the dot product is used as the characteristic operation result (R), the dot product result can be converted into the association weight (W) through a mapping function. An exemplary mapping function may be (W=frac{1}{1+e^{-R}}), where (e) is a natural constant. This function maps the dot product result (R) to the interval ((0, 1)) so that the value of the association weight (W) is within this reasonable range. If the cosine similarity (S) is used as the characteristic operation result, the association weight (W) can be directly defined as (W=S), because the value of the cosine similarity itself is in the interval ([-1, 1]) and can well represent the similarity between the two vectors. Here, it can be regarded as an association weight, and only the value of the ([0, 1]) part is taken to represent the positive correlation degree.
[0133] 2. Optimizing the attention semantics of the expected features of sensor performance to obtain performance-optimized output features ① Weighted and enhanced expected characteristics of sensor performance For each calibration deviation correction record to be processed, the sensor performance expected feature and the set enhancement feature corresponding to the calibration deviation correction record to be processed are weighted. For example, the sensor performance expected feature is (E=[e_1, e_2, cdots, e_p]), and the set enhancement feature is (F=[f_1, f_2, cdots, f_p]).
[0134] Then the element of the enhanced sensor performance expected characteristic (G) is calculated as (g_i=e_i×f_i)((i=1, 2, cdots, p)). For example, if an element (e_1) in the sensor performance expected characteristic (E) represents the sensitivity deviation of the sensor under a certain force value, and the value is (0.01), and the corresponding element (f_1=2) in the enhanced characteristic (F) is set, then the corresponding element in the enhanced sensor performance expected characteristic (G) is (g_1=0.01×2=0.02).
[0135] ②Performance-optimized output features are obtained through channel attention mechanism processing The attention semantics of the enhanced sensor performance expectation feature (G) are processed through the channel attention mechanism to obtain the performance optimization output feature. The channel attention mechanism can adjust the weight of each channel by calculating the relationship between channels of the feature map.
[0136] For example, the channel attention mechanism adopts a method based on global average pooling and fully connected layers. First, the enhanced sensor performance expected feature (G) is globally average pooled to obtain a (1×p) vector (H=[h_1, h_2, cdots, h_p]), where (h_i=frac{1}{q}sum_{j=1}^{q}g_{ij}) (for example, (G) has (q) samples or time steps). Then (H) is passed through a fully connected layer, the weight matrix of the fully connected layer is (W_{fc}=[w_{11},w_{12},cdots,w_{1p};w_{21},w_{22},cdots,w_{2p};cdots;w_{r1},w_{r2},cdots,w_{rp}]) ((r) is the number of neurons in the fully connected layer), and the bias vector is (b=[b_1,b_2,cdots,b_p]).
[0137] The output vector after the fully connected layer is (I=[i_1, i_2, cdots, i_p]), where (i_k=sum_{l=1}^{p}w_{kl}h_l+b_k)((k=1, 2, cdots, p)). Finally, (I) is passed through an activation function (such as the sigmoid function (sigma)) to obtain the channel attention weight vector (A=[a_1, a_2, cdots, a_p]=sigma(I)). The element calculation of the performance optimization output feature (O) is (o_i=g_i×a_i)((i=1, 2, cdots, p)).
[0138] 3. Feature integration to get screening priority indication ① Global processing to obtain screening priority indication For each calibration deviation correction record to be processed, the association weight (W) between the target mechanical sensor calibration device and the calibration deviation correction record to be processed is globally processed with the performance optimization output feature (O) of the expected feature of the sensor performance corresponding to the calibration deviation correction record to be processed to obtain a screening priority indication.
[0139] A global processing method can be to perform element-wise multiplication of the association weight (W) and the performance optimization output feature (O), and then normalize the resulting vector. For example, let the association weight (W=0.8) and the performance optimization output feature (O=[o_1, o_2, cdots, o_p]), first calculate (P=[w×o_1, w×o_2, cdots, w×o_p]). Then normalize (P) and calculate the vector modulus of (P): (leftvertPrightvert=sqrt{sum_{i=1}^{p}(w×o_i)^2}), the element of the screening priority indication (Q) (q_i=frac{w×o_i}{leftvertPrightvert})((i=1, 2, cdots, p)). This screening priority indication (Q) combines the information of the associated weight and the performance optimization output feature, and can be used to determine the priority order of the calibration deviation correction records to be processed.
[0140] With this design, first, when determining the association weight, the relationship between the calibration data knowledge vector and the bias correction state vector is measured by the specific feature operation results, which can accurately reflect the degree of association between the two. For example, the dot product or cosine similarity calculation is used to make the determination of the association weight more scientific. Secondly, when optimizing the expected characteristics of sensor performance, the combination of weighted operation and channel attention mechanism can highlight key information according to the set enhanced features, and accurately adjust the weight of each channel through the complex calculation of the channel attention mechanism, thereby improving the accuracy of sensor performance evaluation. Finally, the method of obtaining the screening priority indication by feature integration comprehensively considers the association weight and performance optimization output characteristics, and obtains a comprehensive indicator through global processing, which helps to reasonably determine the priority order of the calibration bias correction records to be processed, thereby improving the accuracy and efficiency of the entire calibration bias correction process.
[0141] In an innovative design of the present invention, the calibrated stacked long short-term memory network StackedLSTM includes multiple LSTM layers, and the multiple LSTM layers are vertically stacked on each other. The multiple LSTM layers realize gated information transmission and gradient vanishing mitigation through a gating mechanism.
[0142] Based on this, the method of obtaining a priori training example set includes: obtaining a calibration deviation correction record queue sample corresponding to the mechanical sensor calibration equipment sample; filtering the noise calibration deviation correction record in the calibration deviation correction record queue sample to obtain a deviation correction record denoising queue; determining the priori training example set based on the deviation correction record denoising queue and setting an augmentation strategy.
[0143] Furthermore, the method of determining a priori training example set based on the bias correction record denoising queue and setting an augmentation strategy includes: for each bias correction record sample in the bias correction record denoising queue, determining the initial performance expected characteristics based on the sensor performance expected characteristics corresponding to the bias correction record sample and the set enhancement coefficient; determining the prior training example set based on the bias correction record sample and the initial performance expected characteristics.
[0144] Furthermore, the method of determining a priori training example set based on the bias correction record denoising queue and setting an augmentation strategy includes: analyzing the bias correction pattern corresponding to each bias correction record sample in the bias correction record denoising queue; determining a target bias correction pattern in which the number of bias correction record samples included is less than a set number based on the bias correction pattern analysis result; performing sample augmentation on the bias correction record denoising queue based on the target bias correction pattern; and determining a priori training example set based on the sample augmentation result.
[0145] In the present invention, an exemplary introduction to the above innovative design is as follows.
[0146] 1. Structural characteristics of the calibrated Stacked LSTM network ①Vertical stacking of multiple LSTM layers StackedLSTM is composed of multiple LSTM layers stacked vertically on top of each other. LSTM (Long Short-Term Memory) is a special recurrent neural network (RNN) designed to solve the gradient vanishing and gradient exploding problems encountered by traditional RNN when processing long sequence data. Each LSTM layer has its own internal structure and function.
[0147] In the vertical stacking structure, the output of the previous LSTM layer is used as the input of the next LSTM layer. For example, the first LSTM layer receives the original input data (such as mechanical sensor calibration data samples and other related data), and outputs an intermediate result after its internal calculation. This intermediate result contains the feature information extracted from the input data by the first LSTM layer, and then this intermediate result is used as the input of the second LSTM layer. The second LSTM layer further extracts more advanced and abstract features on this basis. And so on. The stacking of multiple layers of LSTM can gradually dig deeper into the complex patterns in the data.
[0148] ②Gating mechanism realizes gated information transmission and gradient disappearance mitigation LSTM controls the transmission of information through a gating mechanism, including input gate, forget gate and output gate. Taking an exemplary LSTM unit as an example, the forget gate (f_t) determines how much information of the cell state (C_{t-1}) at the previous moment is retained to the current moment (t). The calculation formula is (f_t=sigma(W_fcdot[h_{t-1},x_t]+b_f)), where (W_f) is the weight matrix of the forget gate, (h_{t-1}) is the hidden state of the previous time step, (x_t) is the input of the current time step, (b_f) is the bias vector of the forget gate, and (sigma) is the sigmoid function.
[0149] The input gate (i_t) determines how much new information can be updated to the cell state at the current moment, (i_t=sigma(W_icdot[h_{t-1},x_t]+b_i)). The update formula of the cell state (C_t) is (C_t=f_t×C_{t-1}+i_t×tanh(W_Ccdot[h_{t-1},x_t]+b_C)), where (W_C) is the weight matrix for updating the cell state, and (b_C) is the corresponding bias vector. The output gate (o_t) determines how much information of the cell state (C_t) can be output to the hidden state (h_t) at the current moment, (o_t=sigma(W_ocdot[h_{t-1},x_t]+b_o)), (h_t=o_t×tanh(C_t)).
[0150] In StackedLSTM, this gating mechanism works in each LSTM layer, which not only realizes the gated information transmission between layers, but also effectively alleviates the gradient vanishing problem. When calculating the gradient of back propagation, the gating mechanism can control the flow of the gradient so that the gradient does not disappear or explode too quickly, thereby enabling the network to effectively learn long-term dependencies in long sequence data.
[0151] 2. The process of obtaining a priori training example set ① Get the calibration deviation correction record queue sample and filter the noise record First, obtain the calibration deviation correction record queue sample corresponding to the force sensor calibration equipment sample. This queue sample contains a series of deviation correction records for the force sensor calibration equipment. These records may contain various correction information, such as the time of correction, the sensor performance parameters for correction, the correction method, and the correction results.
[0152] However, there may be noise calibration deviation correction records in these records, such as abnormal correction records caused by temporary failure of the measuring instrument, environmental interference and other factors. These noise calibration deviation correction records need to be filtered to obtain a deviation correction record denoising queue. An exemplary filtering method may be based on statistical analysis. For example, for a key indicator in each deviation correction record (such as the corrected sensor performance parameter value), calculate its mean (mu) and standard deviation (sigma). If the indicator value in a certain record exceeds the range of ([mu-ksigma, mu+ksigma]) ((k) is the set threshold, for example (k=3)), the record is considered to be a noise record and is filtered out.
[0153] ② Determine the prior training example set based on the bias correction record denoising queue and setting the augmentation strategy Determine the initial performance expected features: For each bias-corrected record sample in the bias-corrected record denoising queue, determine the initial performance expected features based on the sensor performance expected features corresponding to the bias-corrected record sample and the set reinforcement coefficient. For example, the sensor performance expected features corresponding to a bias-corrected record sample are (E=[e_1, e_2, cdots, e_n]), and the reinforcement coefficient is set to (s) (for example, (s=2)), then the initial performance expected features are (E'=[e_1×s, e_2×s, cdots, e_n×s]). This step can enhance the sensor performance expected features according to actual needs, so as to highlight the impact of certain features in subsequent training.
[0154] Determine the prior training example set based on the deviation correction record sample and the initial performance expected characteristics: Determine the prior training example set based on the deviation correction record sample and the initial performance expected characteristics. For example, the information in the deviation correction record sample (such as correction time, correction method, etc.) is combined with the initial performance expected characteristics to form a sample in the prior training example set. Specifically, if the deviation correction record sample is (D=[t, m, r]) ((t) represents the correction time, (m) represents the correction method, and (r) represents the correction result), and the initial performance expected characteristics are (E'=[e_1', e_2', cdots, e_n']), then the combined sample can be ([t, m, r, e_1', e_2', cdots, e_n']), and these combined samples together constitute the prior training example set.
[0155] Sample augmentation: Analyze the deviation correction mode corresponding to each deviation correction record sample in the deviation correction record denoising queue. The deviation correction mode can be classified according to factors such as the type of correction and the sensor performance parameters targeted. For example, the correction mode can be divided into a zero point correction mode for linearity, a gain correction mode for sensitivity, etc.
[0156] According to the analysis results of the deviation correction mode, the target deviation correction mode is determined in which the number of deviation correction record samples included is less than the set number. For example, if the set number is (N=10), after analysis, it is found that the number of deviation correction record samples in a special correction mode for repeatability is only 5, which is less than the set number, then this mode is the target deviation correction mode.
[0157] According to the target deviation correction mode, the deviation correction record denoising queue is sample augmented. An exemplary sample augmentation method can be based on interpolation. For example, the deviation correction record samples in the target deviation correction mode are ([x_1, y_1, z_1]) and ([x_2, y_2, z_2]) ((x) represents the input parameters during correction, (y) represents the parameters related to the correction method, and (z) represents the sensor performance parameters after correction). New samples ([x_3, y_3, z_3]) can be obtained by linear interpolation, where: (x_3=frac{x_1+x_2}{2}), (y_3=frac{y_1+y_2}{2}), (z_3=frac{z_1+z_2}{2}).
[0158] In this way, the samples in the target bias correction mode are augmented, making the number of samples in different bias correction modes more balanced, thereby improving the quality of the prior training example set.
[0159] The prior training example set is determined based on the sample augmentation results. The augmented samples and the samples in the original bias correction record denoising queue (after operations such as combining with the initial performance expectation features) together constitute the prior training example set, which will be used in the subsequent StackedLSTM calibration process.
[0160] With this design, first of all, the structural characteristics of StackedLSTM, multiple vertically stacked LSTM layers realize gated information transmission and gradient vanishing mitigation through a gating mechanism, so that the network can effectively process long sequence data and mine complex patterns, and improve the network's processing capabilities for related data such as mechanical sensor calibration data. Secondly, when obtaining a priori training example set, filtering the noise calibration deviation correction records can remove the interference of abnormal data and improve data quality. The initial performance expected characteristics are determined based on the expected characteristics of sensor performance and the set reinforcement coefficients, and the feature impact can be highlighted according to actual needs. The sample augmentation operation balances the number of samples under different deviation correction modes, making the priori training example set more representative, thereby improving the calibration effect of StackedLSTM, and then improving the accuracy and efficiency of the entire mechanical sensor calibration equipment related processing flow.
[0161] In some extended embodiments of the present invention, after the calibration deviation correction records to be processed are prioritized according to the screening priority indication to obtain a calibration deviation correction record queue, the method further includes: determining a target calibration deviation correction record according to the calibration deviation correction record queue; generating a current calibration correction scheme for the target mechanical sensing calibration device using the target calibration deviation correction record; and performing calibration correction processing on the target mechanical sensing calibration device using the current calibration correction scheme.
[0162] In some further extended embodiments of the present invention, the target calibration deviation correction record is used to generate a current calibration correction scheme for the target mechanical sensor calibration device, including: obtaining the error source discrimination viewpoint and the offset capture discrimination viewpoint corresponding to the target mechanical sensor calibration device; pairing the error source discrimination viewpoint and the offset capture discrimination viewpoint in the target mechanical sensor calibration device based on the discrimination viewpoint logical characteristics between the error source discrimination viewpoint and the offset capture discrimination viewpoint in the target mechanical sensor calibration device to obtain a discrimination viewpoint set; determining the unpaired offset capture discrimination viewpoint as an outlier; A shift capture discriminant viewpoint is defined, and according to the semantic commonality value between the offset capture discriminant viewpoint in the discriminant viewpoint set and the outlier offset capture discriminant viewpoint, a correction strategy feature matching the outlier offset capture discriminant viewpoint is determined; the correction strategy feature matching the outlier offset capture discriminant viewpoint is paired with the outlier offset capture discriminant viewpoint to obtain a linkage calibration correction vector; according to the linkage calibration correction vector, the discriminant viewpoint set and the calibration deviation correction causal characteristics corresponding to the target calibration deviation correction record, a current calibration correction scheme corresponding to the target mechanical sensing calibration device is generated.
[0163] With respect to the above-mentioned extended embodiments, the following is an exemplary introduction to the relevant technical solutions.
[0164] 1. Determine the target calibration deviation correction record based on the calibration deviation correction record queue and perform calibration correction processing ① Determine the target calibration deviation correction record After the calibration deviation correction record queue is obtained by prioritizing each calibration deviation correction record to be processed according to the screening priority indication, the target calibration deviation correction record is determined according to the queue. The records in the calibration deviation correction record queue are arranged according to priority, and records with high priority are more likely to be selected as target calibration deviation correction records. For example, in the queue, the priority of a record can be represented by a numerical value, and the higher the numerical value, the higher the priority. For example, there are 5 records in the calibration deviation correction record queue, and their priority values are [0.8, 0.6, 0.5, 0.3, 0.2] respectively, then the record with a priority value of 0.8 will be preferentially selected as the target calibration deviation correction record.
[0165] This selection process can be based on an exemplary selection rule, that is, selecting the record with the highest priority. In practical applications, more complex selection strategies can also be set according to specific needs, such as randomly selecting one record that meets a certain priority threshold (such as 0.7) to increase the flexibility of selection.
[0166] ② Generate the current calibration correction scheme and perform calibration correction processing The current calibration correction scheme of the target mechanical sensor calibration device is generated using the selected target calibration deviation correction record. The target mechanical sensor calibration device is then calibrated and corrected using the current calibration correction scheme. For example, if the target calibration deviation correction record indicates that the previous calibration operation was to adjust the gain of the sensor, and the gain adjustment coefficient was 1.05, then the current calibration correction scheme may include a strategy for further adjusting the gain, such as adjusting the gain to 1.03 or 1.07, etc., based on the current measurement situation of the target device. When performing the calibration correction process, the relevant parameters of the target mechanical sensor calibration device are adjusted according to the strategy in this scheme to improve the accuracy of its calibration.
[0167] 2. Detailed process of generating the current calibration correction plan using the target calibration deviation correction record ① Obtain error source identification and offset capture identification Obtain the error source discrimination viewpoint and offset capture discrimination viewpoint corresponding to the target mechanical sensor calibration device. The error source discrimination viewpoint may include multiple factors, such as the influence of environmental factors (such as temperature, humidity, etc.) on the sensor measurement error, the error caused by the device's own hardware characteristics (such as the linearity and sensitivity of the sensor, etc.). For example, the error source discrimination viewpoint may be expressed as: due to the temperature change in the range of 5°C-10°C, the sensor's measurement error may increase by 1%-2%, which is based on a large amount of experimental data and theoretical analysis.
[0168] The offset capture judgment point of view focuses on the judgment of the offset of the sensor measurement value. For example, when the sensor has been running for a long time, the output voltage has an offset of 0.05V relative to the initial value. This offset may be caused by zero drift or gain change. The offset capture judgment point of view is to judge this offset phenomenon and its possible causes.
[0169] ②Based on the logical characteristics of discriminant opinions, pair them to obtain the discriminant opinion set Based on the discriminant logic features between the error source discriminant viewpoint and the offset capture discriminant viewpoint in the target mechanical sensor calibration device, the two are paired to obtain a discriminant viewpoint set. The discriminant logic features can be based on factors such as causality and correlation. For example, if the error source discriminant viewpoint points out that temperature changes can cause zero drift of the sensor (the error source is temperature, and the result is zero drift), and the offset capture discriminant viewpoint also finds the zero drift phenomenon, then the two viewpoints can be paired based on this logical relationship.
[0170] For example, there are three error source discriminant viewpoints, namely (E_1), (E_2), (E_3), and four offset capture discriminant viewpoints, namely (O_1), (O_2), (O_3), and (O_4). By analyzing the logical relationship between them, it is found that (E_1) and (O_1), (E_2) and (O_3) are logically related, so the discriminant viewpoint set includes two pairs of discriminant viewpoints, ((E_1, O_1)) and ((E_2, O_3)).
[0171] ③Determine outlier shift to capture discriminant viewpoints and match correction strategy features The unpaired offset capture discriminant opinions are determined as outlier offset capture discriminant opinions. In the above example, (O_2) and (O_4) are outlier offset capture discriminant opinions. Then, according to the opinion semantic commonality value between the offset capture discriminant opinions in the discriminant opinion set and the outlier offset capture discriminant opinions, the correction strategy features that match the outlier offset capture discriminant opinions are determined.
[0172] The semantic commonality of opinions can be calculated by using methods such as vector space model. For example, the offset capture discriminant opinions are expressed as vectors, such as (O_1=[0.1, 0.2, 0.3]) (the values here can represent different semantic feature weights), (O_2=[0.15, 0.1, 0.25]), and the semantic commonality of opinions is determined by calculating the cosine similarity of the vectors. Assume that the cosine similarity of (O_1) and (O_2) is: (C=frac{O_1cdotO_2}{leftvertO_1rightvert×leftvertO_2rightvert}), where (cdot) represents the vector dot product, (leftvertO_1rightvert) and (leftvertO_2rightvert) are the modulos of vectors (O_1) and (O_2) respectively.
[0173] According to this view semantic commonality value, if (C) is greater than a certain threshold (such as 0.6), they are considered to have a high semantic commonality, and the correction strategy features corresponding to the error source discriminant view (E_1) paired with (O_1) in the discriminant view set can be used to determine the correction strategy features that match (O_2). For example, the correction strategy feature corresponding to (E_1) is to adjust the zero point of the sensor with an adjustment coefficient of 0.9, so a similar zero point adjustment strategy can also be used for (O_2), but the adjustment coefficient may be fine-tuned according to the specific semantic commonality value, such as adjusted to 0.92.
[0174] ④ Obtain linkage calibration correction vector and generate current calibration correction scheme The correction strategy feature that matches the outlier shift capture discriminant viewpoint is paired with the outlier shift capture discriminant viewpoint to obtain the linkage calibration correction vector. For example, for the outlier shift capture discriminant viewpoint (O_2) and its matching correction strategy feature (zero adjustment coefficient is 0.92), the linkage calibration correction vector can be expressed as ([O_2, 0.92]).
[0175] According to the linkage calibration correction vector, the set of discriminant viewpoints, and the calibration deviation correction causal characteristics corresponding to the target calibration deviation correction record, the current calibration correction scheme corresponding to the target mechanical sensor calibration device is generated. The calibration deviation correction causal characteristics can represent the causal relationship between the correction operation in the target calibration deviation correction record and the change in sensor performance. For example, if the target calibration deviation correction record indicates that the previous correction operation was an adjustment of the gain and caused a change in the linearity of the sensor, this is a calibration deviation correction causal characteristic.
[0176] Taking all these factors into consideration, the current calibration correction scheme may include adjustment strategies for multiple parameters such as zero point and gain. For example, according to the discriminant viewpoint set, the error caused by temperature is zero-adjusted, the specific offset is zero-adjusted according to the linkage calibration correction vector, and the gain is fine-tuned according to the calibration deviation correction causal characteristics corresponding to the target calibration deviation correction record, so as to form a comprehensive current calibration correction scheme.
[0177] By applying the above-mentioned embodiment, the target calibration deviation correction record is determined through the calibration deviation correction record queue, and the most suitable correction record can be reasonably selected according to the priority, thereby improving the scientificity and accuracy of determining the target correction record. When generating the current calibration correction scheme, multiple factors such as the error source judgment point of view and the offset capture judgment point of view are comprehensively considered. Through complex pairing, determination of outliers and matching correction strategies and other operations, the state of the sensor can be more comprehensively analyzed and a more accurate correction scheme can be formulated. This scheme generation method based on multiple judgment points and logical relationships helps to improve the calibration and correction effect of mechanical sensor calibration equipment, thereby improving the measurement accuracy and reliability of the equipment.
[0178] In summary, the present invention can accurately measure the degree of connection between the target mechanical sensor calibration device and each calibration deviation correction record to be processed by determining the association weight between the two, so that subsequent processing is more targeted; optimizing the attention semantics of the expected characteristics of sensor performance to obtain performance optimization output characteristics, which helps to focus on the more critical factors affecting sensor performance; obtaining a screening priority indication through feature integration, comprehensively considering the association weight and performance optimization output characteristics, and comprehensively and reasonably reflecting the importance of each calibration deviation correction record to be processed. Priority sorting is performed according to the screening priority indication to obtain a calibration deviation correction record queue, and finally the target calibration deviation correction record is determined to assist in generating the current calibration correction plan, which can improve the efficiency and accuracy of calibration correction.
[0179] Further, Figure 2 FIG. 2 is a schematic diagram of a calibration data analysis system 200 provided by the present invention. Figure 2 The calibration data analysis system 200 shown includes a processor 210, which can call and run a computer program from a memory to implement the method of the present invention.
[0180] Alternatively, if Figure 2 As shown, the calibration data analysis system 200 may further include a memory 230. The processor 210 may call and run a computer program from the memory 230 to implement the method of the present invention.
[0181] The memory 230 may be a separate device independent of the processor 210 , or may be integrated into the processor 210 .
[0182] Alternatively, if Figure 2 As shown, the calibration data analysis system 200 may further include a transceiver 220, and the processor 210 may control the transceiver 220 to interact with other devices, specifically, may send information or data to other devices, or receive information or data sent by other devices.
[0183] Optionally, the calibration data analysis system 200 may implement the corresponding processes corresponding to the storage engine or components in the storage engine (such as a processing module) or a device deployed with a storage engine in each method of the present invention, which will not be described in detail here for the sake of brevity.
[0184] It should be understood that the processor of the present invention may be an integrated circuit chip having signal processing capabilities.
[0185] It is understood that the memory in the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memory. It should be noted that the memory of the systems and methods described herein is intended to include but is not limited to suitable types of memory.
[0186] Based on the above, a readable storage medium is provided, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the above method are implemented.
[0187] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or 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 device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present invention is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0188] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0189] It should be understood that the formula parameter content recorded in the above technical solution is in LaTeX format (an existing formula editing format), and technical personnel in this field can undoubtedly restore the corresponding original formula expression based on the formula parameter content recorded in the above technical solution.
[0190] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the purpose of the present invention and the scope of protection of the present invention, all of which are within the protection of the present invention.
Claims
1. A calibration data analysis method for mechanical sensors. It is characterized in that The method comprises: Acquire a calibration data knowledge vector corresponding to the target mechanical sensor calibration device, and determine an association weight between the target mechanical sensor calibration device and each calibration deviation correction record to be processed according to the calibration data knowledge vector and the deviation correction state vectors respectively corresponding to each calibration deviation correction record to be processed; Optimizing the attention semantics of the expected sensor performance features corresponding to each calibration deviation correction record to be processed, and obtaining the performance optimization output features of each expected sensor performance feature; the expected sensor performance feature reflects the quantized relationship vector corresponding to the sensor performance parameter; The association weights between each calibration deviation correction record to be processed and the target mechanical sensor calibration device are respectively integrated with the performance optimization output features of the corresponding sensor performance expected features to obtain the screening priority indications corresponding to each calibration deviation correction record to be processed; According to the screening priority indication, each calibration deviation correction record to be processed is prioritized to obtain a calibration deviation correction record queue, and the calibration deviation correction record queue is used to determine a target calibration deviation correction record, and the target calibration deviation correction record is used to assist in generating a current calibration correction plan for the target mechanical sensing calibration device.
2. The method according to claim 1, It is characterized in that The step of obtaining the calibration data knowledge vector corresponding to the target mechanical sensor calibration device includes: Obtaining mechanical sensor calibration data corresponding to the target mechanical sensor calibration device; By using the calibration data knowledge vector mining branch in the calibrated stacked long short-term memory network StackedLSTM, knowledge vector mining is performed on the mechanical sensor calibration data to obtain the calibration data knowledge vector corresponding to the target mechanical sensor calibration device.
3. The method according to claim 1, It is characterized in that The method further comprises: Through the first bias correction state vector mining branch or the second bias correction state vector mining branch in the calibrated stacked long short-term memory network StackedLSTM, knowledge vector mining is performed on each calibrated bias correction record in the bias correction record set to obtain the initial bias correction state vector corresponding to each calibrated bias correction record; Determine the deviation correction state vectors corresponding to each calibration deviation correction record to be processed from each initial deviation correction state vector; The method for adjusting the adjusted stacked long short-term memory network StackedLSTM includes: Acquire a priori training example set, wherein the priori training example set includes: a mechanical sensor calibration data sample corresponding to a mechanical sensor calibration equipment sample, a calibration deviation correction record authentication sample, and a calibration deviation correction record disturbance sample; By using the calibration data knowledge vector mining branch in the stacked long short-term memory network StackedLSTM to be adjusted, the knowledge vector mining is performed on the mechanical sensor calibration data sample to obtain the calibration data knowledge vector sample; Through the first deviation correction state vector mining branch in the stacked long short-term memory network StackedLSTM to be adjusted, the calibration deviation correction record authentication sample is subjected to knowledge vector mining to obtain the deviation correction state vector authentication sample; By using the second bias correction state vector mining branch in the stacked long short-term memory network StackedLSTM to be calibrated, the knowledge vector mining is performed on the calibration bias correction record disturbance sample to obtain the bias correction state vector disturbance sample; The attention semantics of the expected characteristics of sensor performance corresponding to the calibration deviation correction record authentication sample is optimized to obtain the first optimized training information; the attention semantics of the expected characteristics of sensor performance corresponding to the calibration deviation correction record disturbance sample is optimized to obtain the second optimized training information; Determine a network calibration quality evaluation function according to the calibration data knowledge vector sample, the deviation correction state vector authentication sample, the deviation correction state vector disturbance sample, the first optimization training information and the second optimization training information; Optimizing the neural network weights of the stacked long short-term memory network Stacked LSTM to be calibrated according to the network calibration quality evaluation function until the neural network calibration meets the standard requirements, thereby obtaining a calibrated stacked long short-term memory network Stacked LSTM; The determining of the network calibration quality evaluation function according to the calibration data knowledge vector sample, the deviation correction state vector authentication sample, the deviation correction state vector disturbance sample, the first optimization training information and the second optimization training information includes: Determining a first association weight between a mechanical sensing calibration device sample and a calibration deviation correction record authentication sample based on the calibration data knowledge vector sample and the deviation correction state vector authentication sample; Determining a second association weight between a mechanical sensing calibration device sample and a calibration deviation correction record disturbance sample based on the calibration data knowledge vector sample and the deviation correction state vector disturbance sample; Obtaining a first iterative training error according to the first association weight, the first optimization training information and a set iterative processing decision feature; Obtaining a second iterative training error according to the second association weight, the second optimization training information and the set iterative processing decision feature; A network calibration quality evaluation function is determined according to the first iterative training error and the second iterative training error.
4. The method according to claim 1, It is characterized in that The determining of the association weight between the target mechanical sensor calibration device and each calibration deviation correction record to be processed based on the calibration data knowledge vector and the deviation correction state vectors respectively corresponding to each calibration deviation correction record to be processed comprises: For each calibration deviation correction record to be processed, determine the characteristic operation result of the calibration data knowledge vector and the deviation correction state vector corresponding to the calibration deviation correction record to be processed; determine the association weight between the target mechanical sensor calibration device and the calibration deviation correction record to be processed based on the characteristic operation result.
5. The method according to claim 1, It is characterized in that The optimization of the attention semantics of the expected sensor performance features corresponding to each calibration deviation correction record to be processed, and obtaining the performance optimization output features of each expected sensor performance feature, include: For each calibration deviation correction record to be processed, weighting the expected sensor performance characteristics and the set enhanced characteristics corresponding to the calibration deviation correction record to be processed to obtain the enhanced expected sensor performance characteristics; The attention semantics of the enhanced expected sensor performance characteristics are processed through a channel attention mechanism to obtain a performance optimization output feature of the expected sensor performance characteristics corresponding to the calibration deviation correction record to be processed.
6. The method according to any one of claims 1 to 5, It is characterized in that The feature integration of the association weights between each calibration deviation correction record to be processed and the target mechanical sensor calibration device and the performance optimization output features of the corresponding sensor performance expected features to obtain the screening priority indications corresponding to each calibration deviation correction record to be processed, includes: For each calibration deviation correction record to be processed, the association weight between the target mechanical sensor calibration device and the calibration deviation correction record to be processed is globally processed with the performance optimization output characteristics of the expected characteristics of the sensor performance corresponding to the calibration deviation correction record to be processed, so as to obtain a screening priority indication of the calibration deviation correction record to be processed.
7. The method according to claim 3, It is characterized in that The calibrated stacked long short-term memory network StackedLSTM includes multiple LSTM layers, which are vertically stacked on each other. The multiple LSTM layers achieve gated information transmission and gradient vanishing mitigation through a gating mechanism.
8. The method according to claim 7, It is characterized in that The obtaining of a priori training example set comprises: Obtain a calibration deviation correction record queue sample corresponding to a force sensing calibration device sample; The noise calibration deviation correction records in the calibration deviation correction record queue samples are filtered to obtain the deviation correction record denoising queue; the prior training example set is determined according to the deviation correction record denoising queue and the set augmentation strategy; The step of recording a denoising queue based on the deviation correction and setting an augmentation strategy to determine a priori training example set includes: For each bias correction record sample in the bias correction record denoising queue, determine the initial performance expected characteristics according to the sensor performance expected characteristics corresponding to the bias correction record sample and the set reinforcement coefficient; determine the prior training example set according to the bias correction record sample and the initial performance expected characteristics; or, Analyze the deviation correction patterns corresponding to each deviation correction record sample in the deviation correction record denoising queue; determine a target deviation correction pattern in which the number of deviation correction record samples included is less than a set number based on the deviation correction pattern analysis results; perform sample augmentation on the deviation correction record denoising queue based on the target deviation correction pattern; and determine a priori training example set based on the sample augmentation results.
9. The method according to claim 7, It is characterized in that The optimization of the attention semantics of the expected characteristics of the sensor performance corresponding to the calibration deviation correction record authentication sample is performed to obtain the first optimized training information; The attention semantics of the expected features of the sensor performance corresponding to the calibration deviation correction record disturbance sample are optimized to obtain the second optimized training information, including: Weighting the expected sensor performance characteristics and the set enhanced characteristics corresponding to the calibration deviation correction record authentication sample to obtain the first expected sensor performance characteristics; Processing the attention semantics of the first sensor performance expected feature through a channel attention mechanism to obtain first optimized training information; The expected sensor performance characteristics and the set enhanced characteristics corresponding to the calibration deviation correction record disturbance sample are weighted to obtain the second expected sensor performance characteristics; the attention semantics of the second expected sensor performance characteristics are processed through the channel attention mechanism to obtain the second optimized training information.
10. A calibration data analysis system, It is characterized in that The method comprises at least one processor and a memory; the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Unmanned aerial vehicle-based building surface crack geometric parameter measurement method and system
CN115082377A
Automobile pressure sensor data acquisition and calibration method
CN117804673A
Ocean temperature-salinity-depth sensor data calibration method, medium and system
CN118245784A
Home customization intelligent interaction processing method and system based on artificial intelligence
CN118734950A
Parameter calibration method and apparatus, and mobile platform
WO2022061495A1
Cited By
Intelligent calibration method and system for semiconductor detection equipment
CN119619175A
Multi-spectral image displacement depth adaptive mapping method and system based on radiometric calibration
CN122093682A
