MEMS sensor pre-calibration method and system based on different fixed screw specifications
By constructing multi-condition fastening tests and online drift compensation in the laboratory, the zero-bias drift problem caused by inconsistent screw specifications of MEMS sensors was solved, and high-precision adaptation and stability of sensors in different scenarios were achieved.
Patent Information
- Application Number
- CN202611674241.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
The assembly of existing MEMS sensors across different projects and platforms suffers from inconsistent screw specifications, leading to zero-bias drift in the output and affecting the reliability of monitoring data. Existing processing methods are insufficient to effectively solve this problem.
In a laboratory calibration environment, a multi-condition mechanical fastening test was constructed to collect screw specification data of different materials, diameters and fastening torques. A generalized additive model was established, and the drift amount was predicted and compensated by reading the screw information online through a microcontroller, so as to realize the differentiated adaptation of the sensor.
It effectively reduces the tilt angle deviation caused by screw specification differences, improves the long-term measurement stability and cross-scenario interchangeability of MEMS sensors, and reduces the workload of on-site maintenance.
Smart Images

Figure CN123175331A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of microelectromechanical systems (MEMS) technology, and more specifically, to a method and system for pre-calibrating MEMS sensors based on different fixing screw specifications. Background Technology
[0002] MEMS accelerometers and tilt sensors are widely used in structural health monitoring scenarios such as wind power and bridges. These sensors are mostly fixed to the surface of the component being measured by screws. As the mechanical connection between the sensor and the base, the screw's material, diameter, length, and tightening torque directly alter the preload and thermal stress experienced by the sensor after assembly. Due to supply chain and assembly processes, different project sites use screws of varying specifications, leading to changes in stress conditions. This can easily cause zero-bias drift in the sensor output, directly affecting the reliability of the monitoring data.
[0003] Patent CN120293401A discloses a dynamic calibration system and method for small-range pressure sensors in MEMS based on piezoelectric actuators. The calibration system includes: a simulated piezoelectric controller, a piezoelectric ceramic actuator, a high-precision tensile / compressive force calibration sensor, a MEMS sensor detection platform, a lead screw lifting assembly, and an external data acquisition system. During calibration, the simulated piezoelectric controller inputs a voltage signal to control the displacement of the piezoelectric ceramic actuator, causing the actuator to compress the MEMS sensor and apply pressure. At this time, the doped silicon beam of the MEMS sensor deforms, and the resistance changes due to the piezoresistive effect. The external data acquisition system obtains the voltage value across the MEMS sensor by constructing a Wheatstone bridge, thereby achieving force calibration of the MEMS sensor. This invention can achieve high-precision force calibration of small-range sensors.
[0004] While this invention offers numerous advantages, existing conventional methods mostly rely on standardized factory calibration parameters, failing to consider stress differences caused by screw tightening conditions. Consequently, changing the assembly screws of the same sensor model can lead to significant fluctuations in measurement accuracy. Some manufacturers circumvent this issue by strictly limiting screw types and tightening torques, but this approach places high demands on on-site assembly, increases supply chain management costs, and is difficult to fully implement in practical engineering, resulting in poor interoperability of sensors across projects and platforms. Summary of the Invention
[0005] (a) Technical problems to be solved To address the shortcomings of existing technologies, this invention provides a method and system for pre-calibrating MEMS sensors based on different fixing screw specifications, thus solving the aforementioned problems.
[0006] (II) Technical Solution To achieve the above-mentioned objectives, the present invention provides the following technical solution: a pre-calibration method and system for MEMS sensors based on different fixing screw specifications, comprising the following steps: S1. In the laboratory calibration environment, conduct multi-condition mechanical fastening tests on the MEMS sensor to be calibrated. Replace the fixing screws with different materials, diameters and lengths, and use multiple locking torques to complete the mechanical fastening. Construct three typical fastening conditions: screw material condition, screw diameter and length condition, and locking torque condition. S2. Under various fastening conditions, the MEMS sensor triaxial raw output, screw specification parameters, and ambient temperature are simultaneously collected. The stress feature vector, including screw properties, mechanical calculation parameters, and temperature rise, is extracted. The sensor drift is calculated based on the triaxial raw output. S3. Divide the data sample consisting of stress feature vector and sensor drift into no less than three fastening sections according to screw material type and fastening torque. Establish a generalized additive model for each fastening section independently. The generalized additive model expression is ΔY=Σs_j(F_j)+ε, where s_j represents the smooth spline function and ε represents the model error term. Solve to obtain the model parameters corresponding to each group of fastening sections. S4. Convert all model parameters, segment division thresholds and feature normalization coefficients of all fastening sections into q15 fixed-point format and write them into the non-volatile memory of the MEMS sensor, with the overall storage capacity controlled within 8kB. When the S5 and MEMS sensors are running online, the microcontroller reads the material identification code, screw diameter, and locking torque of the screws used in the current assembly, compares the corresponding model parameters with the segment division threshold, and completes the drift prediction calculation within two milliseconds. The predicted drift is then used to compensate the original sensor output to obtain the corrected sensor output.
[0007] Preferably, in step S1, the screw material is selected from stainless steel 304, galvanized carbon steel, aluminum alloy 6061, titanium alloy TC4, and nylon PA66; the screw diameter is selected from M2, M2.5, M3, M4, and M5; the screw length is selected from 6mm, 10mm, 15mm, 20mm, and 25mm; and the tightening torque is set to multiple levels of 0.3N・m, 0.6N・m, 1.0N・m, 1.5N・m, and 2.0N・m, which are combined in sequence to complete the construction of various fastening conditions.
[0008] Preferably, in step S2, the raw triaxial output of the MEMS sensor is denoted as Y_raw, which includes the x-axis output a_x, the y-axis output a_y, and the z-axis output a_z. The sensor drift calculation formula is as follows: ΔY=|Y_raw|-g In the formula, g represents the local gravitational acceleration; the stress characteristic vector includes screw material type, screw diameter, screw length, locking torque, screw Young's modulus, preload stress, fit clearance, and temperature rise; the preload stress is calculated by combining the locking torque with the effective cross-sectional area of the screw, and the temperature rise is obtained by sampling the NTC thermistor arranged on the sensor mounting base through an ADC.
[0009] Preferably, in step S3, the number of smooth spline function nodes within the generalized additive model corresponding to each tight segment is set to no more than 3, and the number of fixed-point multiplication and addition operations performed by the generalized additive model corresponding to each tight segment to complete one inference operation is no more than 12.
[0010] Preferably, in step S3, the total number of fastening sections is set to 9. Based on the screw material type, they are divided into a metal rigid connection area, a lightweight flexible connection area, and a non-metallic area. The metal rigid connection area includes stainless steel 304 and galvanized carbon steel; the lightweight flexible connection area includes aluminum alloy 6061 and titanium alloy TC4; and the non-metallic area is nylon PA66. Further, based on the locking torque, they are divided into a low torque area, a medium torque area, and a high torque area. The locking torque in the low torque area is no greater than 0.6 N·m; the locking torque in the medium torque area is greater than 0.6 N·m but no greater than 1.2 N·m; and the locking torque in the high torque area is greater than 1.2 N·m. The material category and torque category are combined to obtain 9 fastening sections.
[0011] Preferably, the q15 fixed-point format used in step S4 is a sixteen-bit signed number, including one sign bit and fifteen decimal places. After the coefficient rounding process is performed using this fixed-point format, the resulting drift prediction error is no greater than 0.3mg.
[0012] Preferably, the execution process of step S5, which completes the drift prediction calculation within two milliseconds, involves reading no more than 48 bytes of model coefficient data from non-volatile memory, performing no more than 12 fixed-point multiply-add operations, completing one result write-back operation, and the total CPU clock cycles for the entire calculation process not exceeding 128,000 cycles.
[0013] Preferably, it also includes an online fine-tuning step, in which the residual of the output result is continuously statistically analyzed during the operation. When the standard deviation of the residual is greater than 0.15mg and the abnormal state lasts for more than 24 hours, the microcontroller retrieves the operating data collected in the most recent day, refits the generalized additive model of the current fastening section, and rewrites the updated model parameters into the non-volatile memory.
[0014] Preferably, after the compensation and correction are completed by this method, the tilt angle zero deviation of the MEMS sensor caused by the difference in the specifications of the fixing screws is no more than 0.05 degrees.
[0015] A system based on a pre-calibration method for MEMS sensors with different screw specifications includes a mechanical fastening excitation module, a synchronous acquisition module, a data processing and modeling module, a parameter programming module, a microcontroller, and a sensor online calibration module. The mechanical fastening excitation module performs mechanical fastening assembly with different screw materials, diameters, lengths, and tightening torques, establishing various fastening conditions. The synchronous acquisition module collects the triaxial raw output of the MEMS sensor, screw specification parameters, and ambient temperature, extracts stress feature vectors, and calculates sensor drift. The data processing and modeling module performs fastening section division and establishes separate calibration parameters for each fastening section. The generalized additive model solves for model parameters; the parameter programming module converts the segment model parameters, segment division thresholds, and feature normalization coefficients into q15 fixed-point format and writes them into non-volatile memory; the microcontroller reads the screw material identification code, screw diameter, and locking torque under on-site assembly conditions; the sensor online calibration module is integrated inside the microcontroller to match segment model parameters, complete drift prediction, and compensate for the original sensor output; all modules of the system work together to execute all steps of the method. After the microcontroller completes the fixed-point inference calculation, the system has more than 60kB of available RAM remaining, which can ensure the concurrent operation of other business tasks of the equipment.
[0016] (III) Beneficial Effects Compared with the prior art, the present invention provides a method and system for pre-calibrating MEMS sensors based on different fixing screw specifications, which has the following advantages: 1. Multiple sets of real screw tightening conditions were set up in the laboratory for pre-calibration tests. Taking into account the coupling effect of pre-tightening stress and thermal stress caused by screw material, size, and tightening torque, the tightening sections were divided according to material and tightening torque. Each section independently constructed a generalized additive model, which can adapt to the differentiated drift evolution law under different tightening conditions. The model parameters were compressed in q15 fixed-point format and stored in non-volatile memory, strictly controlling storage occupation and adapting to the low-end microcontroller hardware resources commonly used in industrial sites. When used in the equipment field, only the screw assembly information needs to be read to automatically match the corresponding model parameters to complete the drift compensation, without the need for on-site recalibration by the user. This greatly reduces the adaptation constraints under different assembly scenarios and improves the accuracy of MEMS sensors for cross-scenario interchangeability.
[0017] 2. Through an online fine-tuning mechanism driven by residual monitoring, the corresponding section model parameters are automatically updated when a persistently large residual occurs during long-term operation, adapting to the slow changes in characteristics caused by screw creep and stress relaxation during equipment service. The entire calibration and compensation process is completed at the factory stage, without the need for additional hardware modifications such as shims, and without changing the original mechanical structure of the sensor. By distinguishing and modeling multiple types of fastening sections, drift under various working conditions such as metal hard connections, lightweight soft connections, and non-metallic screws can be specifically corrected, effectively reducing the tilt zero deviation caused by screw specification differences, improving the long-term measurement stability of MEMS sensors, and reducing the workload of subsequent on-site maintenance. Attached Figure Description
[0018] Figure 1 A flowchart illustrating the pre-calibration method and system for MEMS sensors based on different fixing screw specifications; Figure 2 The diagram shows the coupling of preload stress and thermal stress under different screw materials and working conditions. Figure 3 Diagrams showing clamping stiffness and stress transfer under different screw diameters and lengths; Figure 4 Diagrams showing the warping of the mounting surface and the distribution of preload under different locking torque conditions; Figure 5 Drift curve of high-torque metal hard-connection region during long-term operation; Figure 6 Figures showing the fitting effect of the nonlinear relationship between screw specifications and drift before and after correction. Figure 7 This is a comparison chart of the drift suppression effects of the present invention and existing technical solutions; Figure 8 This is a comparison diagram of drift suppression under different modeling strategies for the high-torque metal hard-connection region of this invention. Detailed Implementation
[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] Please see Figures 1-8 The present invention provides a technical solution: Example 1: The MEMS sensor pre-calibration method based on different fixing screw specifications includes the following steps: S1. In a laboratory environment, the MEMS sensor to be calibrated was mechanically fixed using screws of different materials, diameters, lengths, and locking torques to construct three typical fastening conditions. These three typical fastening conditions included different screw materials, different screw diameters and lengths, and different locking torques. The screw materials included 304 stainless steel, galvanized carbon steel, 6061 aluminum alloy, TC4 titanium alloy, and PA66 nylon. The screw diameters included M2, M2.5, M3, M4, and M5. The screw lengths included 6mm, 10mm, 15mm, 20mm, and 25mm. The locking torques included 0.3N·m, 0.6N·m, 1.0N·m, 1.5N·m, and 2.0N·m. S2. Synchronously acquire the sensor's triaxial raw output Y_raw=[a_x,a_y,a_z], screw specifications, ambient temperature T_amb, and stress feature vector F=[M_screw,D_screw,L_screw,T_torque,E_screw,σ_pre,δ_gap,ΔT], and calculate the sensor drift ΔY. The specific calculation method is as follows: ΔY=|Y_raw|-g Where a_x, a_y, and a_z are the original output values of the sensor in the x, y, and z axes, respectively, and g is the gravitational acceleration; S3: The stress feature vector F and sensor drift ΔY data obtained in Step S2 are divided into N≥3 fastening sections according to screw material type M_screw and tightening torque T_torque, and a generalized additive model (GAM) is established for each section: ΔY=s1(M_screw)+s2(D_screw)+s3(L_screw)+s4(T_torque)+s5(E_screw)+s6(σ_pre)+s7(δ_gap)+s8(ΔT)+ε, where s_j(·) is a smooth spline function, and ε is an error term, to obtain N sets of section model parameters θ; the number of smooth spline nodes for the generalized additive model of each section is ≤3, and the inference of the generalized additive model for each section only requires ≤12 fixed-point multiply-accumulate operations, with the number of fastening sections N=9; the section thresholds are divided into metal hard connection zone (stainless steel 304 / carbon steel), lightweight soft connection zone (aluminum alloy / titanium alloy) and non-metal zone (nylon PA66) according to screw material type M_screw, and divided into low torque zone (T_torque≤0.6N·m), medium torque zone (0.6N·m<T_torque≤1.2N·m) and high torque zone (T_torque>1.2N·m) according to tightening torque T_torque; in the stress feature vector F, the screw material identification code M_screw is represented by a 4-bit code burned into the sensor at the factory; the screw diameter D_screw is obtained from assembly process documents or measured with a vernier caliper; the screw length L_screw is obtained from assembly process documents or measured with a vernier caliper; the tightening torque T_torque is recorded by a smart electric screwdriver or a torque wrench; the screw Young's modulus E_screw is obtained by querying a material database; the pre-tightening stress σ_pre is calculated from the tightening torque T_torque and the effective cross-sectional area of the screw; the fit gap δ_gap is measured by a feeler gauge or a coordinate measuring machine; the temperature rise ΔT is sampled via an ADC from an NTC thermistor integrated in the sensor mounting base; S4: The N sets of section model parameters θ, section thresholds and feature normalization coefficients are written into the sensor's non-volatile memory in q15 fixed-point format, with a total storage capacity <8kB; the q15 fixed-point format is a 16-bit signed number consisting of 1 sign bit and 15 fractional bits, and the drift prediction error caused by coefficient rounding error is ≤0.3mg; S5. When the sensor is running online, the microcontroller reads the current screw material identification code M_screw, screw diameter D_screw, and locking torque T_torque and compares them with the segment threshold. It automatically selects the corresponding parameter θ_i, calculates ΔŶ within 2ms, and compensates for the original output: Ŷ=Y_raw-ΔŶ. The calculation of ΔŶ within 2ms includes: reading non-volatile memory coefficients ≤48 bytes, fixed-point multiplication and addition 12 times, and writing back the result once. The total CPU cycles are ≤128000 cycles. When the long-term statistical residual standard deviation is >0.15mg and lasts for >24h, the microcontroller triggers online fine-tuning, refits the GAM of this segment using the data of the most recent day, and writes it back to the non-volatile memory. The method ensures that the tilt angle zero deviation caused by the difference in the fixing screw specifications is ≤0.05°.
[0021] A MEMS sensor pre-calibration system based on different fixing screw specifications includes: The mechanical fastening excitation module is used to perform the mechanical fastening process for screws of different materials, diameters, lengths, and locking torques. The synchronous acquisition module is used to record the sensor's raw output, screw specifications, ambient temperature T_amb, and stress feature vector. The data processing and modeling module is used to execute S3 to S4 to obtain N sets of segment model parameters θ. The parameter programming module is used to write N sets of segment model parameters θ into the sensor's non-volatile memory in q15 format; The microcontroller is used to read the current screw material identification code M_screw, screw diameter D_screw, and locking torque T_torque. After running fixed-point inference, the microcontroller has more than 60kB of RAM remaining to meet the concurrent requirements of other tasks. The sensor online calibration module, integrated into the microcontroller, is used to perform 2ms closed-loop compensation for the S5.
[0022] Example 2: Based on Example 1, taking a MEMS static tilt sensor for wind turbine tower structure health monitoring as an example, the sensor needs to be adapted to various installation scenarios, including stainless steel screw installation in high salt spray environments at sea, lightweight aluminum alloy screw installation on land, and nylon screw installation for temporary monitoring. S101: Simulation and data acquisition of mechanical fastening conditions; In the laboratory vibration and temperature cycling test bench, the sensors were installed and fixed using different screw specifications, and the mechanical fastening excitation module was tightened according to a preset sequence: Simulating working conditions of different screw materials: Using M3×15mm screws with a tightening torque of 1.0 N·m, five materials were used: stainless steel 304 (E=193GPa, CTE=17.3ppm / ℃), galvanized carbon steel (E=210GPa, CTE=12ppm / ℃), aluminum alloy 6061 (E=69GPa, CTE=23.6ppm / ℃), titanium alloy TC4 (E=114GPa, CTE=8.6ppm / ℃), and nylon PA66 (E=3GPa, CTE=80ppm / ℃). The system was continuously operated for 720 hours in a combined environment of temperature cycling from -40℃ to +85℃ and random vibration from 5Hz to 2000Hz to collect sensor output drift. Simulate working conditions with different screw diameters and lengths: Using 304 stainless steel, with a locking torque of 1.0 N·m, five specifications of M2×6mm, M2.5×10mm, M3×15mm, M4×20mm and M5×25mm were used. The stress drift caused by the difference in clamping area and stiffness was collected after 720 hours of continuous operation in a comprehensive environment. Simulate different locking torque conditions: Using 304 stainless steel and M3×15mm screws, the locking torques were set to 0.3N·m, 0.6N·m, 1.0N·m, 1.5N·m and 2.0N·m respectively. The stress drift caused by the difference in preload was collected after 720 hours of continuous operation in a comprehensive environment. The MCU has a built-in ADC that synchronously acquires the sensor output and NTC temperature at a sampling rate of 1kHz, and calculates the temperature rise ΔT.
[0023] S102: Feature construction and drift calculation; The average value of the sensor's total modulus M is recorded every 24 hours, and the drift ΔY = Mg (local g≈9.800). At the same time, the current screw specifications and temperature rise ΔT are recorded to construct the feature vector F. More than 1200 different (F,ΔY) data pairs are collected.
[0024] S103: Nonlinear model fitting; a generalized additive model (GAM) is selected, with ΔY as the response variable and s(M_screw), s(D_screw), s(L_screw), s(T_torque), s(E_screw), s(σ_pre), s(δ_gap), and s(ΔT) as smoothing terms. The mgcv library is used to fit the model in R language to obtain the smoothing functions s(M_screw), s(T_torque), and their coefficients.
[0025] S104: Validation and Consolidation; Using another 240 sets of data for testing, the standard deviation of ΔY before correction was 0.105g, and the standard deviation of the residual after correction decreased to 0.009g, with a drift suppression rate of 91.4%. The GAM model type identifier, the fitted smoothing function coefficients, and the normalized parameters (mean, standard deviation) of each feature variable were written into the sensor's non-volatile memory.
[0026] S105: Online calibration; the sensor is installed behind the wind turbine tower. Its MCU reads the screw material identification code M_screw, screw diameter D_screw, and tightening torque T_torque programmed at the factory. The calibration module reads the model parameters from the non-volatile memory, calculates the current drift prediction value ΔŶ, and subtracts it from the original modulus length M_raw to obtain the calibrated modulus length M_corr, thus obtaining a more accurate tilt angle value. The system also determines the current fastening section based on M_screw and T_torque and automatically selects the corresponding mode's parameter subset for calculation. The above process runs on an STM32L432KC (64kB RAM, 256kB Flash, 64MHz), with model coefficients occupying 7.0kB Flash. During operation, RAM is less than 1000B, single inference takes 0.76ms, and the total time is less than 1.0ms, meeting the 2ms closed-loop requirement.
[0027] The following are test data under various typical screw specifications and operating conditions:
[0028] Conclusion: Before correction, the drift ΔY varied from 0.4 mg to 2.2 mg depending on the combination of screw material, diameter, length, and locking torque. This confirms the severity and diversity of sensor drift caused by different screw specifications during long-term operation. After correction using the nonlinear model established by the pre-calibration method, the residual standard deviation under all test conditions was significantly reduced to below 0.15 mg, mostly concentrated between 0.04 mg and 0.10 mg. The corresponding drift suppression rate generally reached about 90%, ranging from 87% to 94%. This proves that the nonlinear correction model G(F) constructed in this invention can effectively characterize and compensate for the complex mapping relationship between different screw specifications and sensor drift, and has wide applicability and robustness. It is not only effective for a single specific screw specification.
[0029] Example 3: In MEMS sensor applications with different screw specifications, the high-torque metal hard connection region (T_torque>1.2N·m and M_screw is stainless steel 304 / carbon steel) is a critical operating condition. Under this condition, the preload stress is large and the metal stiffness is high, the thermal stress coupling is strong, and the stress relaxation and micro-slip characteristics under long-term operation are complex, which has a significant impact on sensor drift. This embodiment compares the drift suppression effect of different modeling strategies in the high-torque metal hard connection region to verify the superiority of the piecewise generalized additive model (GAM) proposed in this invention. Using a MEMS accelerometer for bridge bearing displacement monitoring as the experimental subject, the sensor is mounted on the bridge steel structure with M4 304 stainless steel screws and a locking torque of 1.5 N·m for long-term structural health monitoring. The fastening conditions of a high-torque metal hard connection area (T_torque>1.2 N·m and M_screw is 304 stainless steel / carbon steel) are simulated to generate typical stress drift characteristics, including high preload creep, metal thermal cycle stress relaxation, and micro-slippage of the mounting surface. In the laboratory vibration and temperature cycling test bench, the sensor was installed using a high-torque metal hard connection method to simulate the fastening conditions of the high-torque metal hard connection area. The sensor output data and stress characteristic parameters were collected continuously for 720 hours, including screw material identification code (M_screw), screw diameter (D_screw), screw length (L_screw), locking torque (T_torque), screw Young's modulus (E_screw), preload stress (σ_pre), fit clearance (δ_gap), and temperature rise (ΔT). Model Fitting and Validation 1. Global Linear Regression: Using linear regression to fit the relationship between stress characteristics and sensor drift; 2. Global GAM: The global GAM model is fitted using the mgcv library in R language, with sensor drift as the response variable and stress characteristic parameters as smoothing terms; 3. Segmented GAM: Based on the screw material type M_screw and the locking torque T_torque, the screw is divided into multiple segments. Each segment is independently fitted with a GAM model. The fitting process is similar to that of global GAM, but the model parameters are optimized separately for each segment. Model validation: The drift suppression effect of each model was validated using an independent test dataset (approximately 200 sets of data). The standard deviation of the residuals before and after correction was calculated, and the drift suppression rate of each model was compared.
[0030] Experimental results
[0031] Conclusion: Global linear regression: residual standard deviation is 0.50 mg, a 72% reduction compared to the piecewise GAM of this invention. This indicates that the linear regression model has poor drift suppression in the high-torque metal hard-connection zone and cannot effectively capture the complex nonlinear relationship between stress characteristics and sensor drift. Global GAM: residual standard deviation is 0.30 mg, a 23% reduction compared to the piecewise GAM of this invention. Although global GAM can handle nonlinear relationships, it still suffers from overfitting under complex working conditions in the high-torque metal hard-connection zone and does not consider differences in screw material, torque, and other tightening factors, resulting in limited drift suppression. The piecewise GAM of this invention (benchmark): residual standard deviation is 0.23 mg. As the benchmark model, it has the best drift suppression effect. By dividing the stress characteristics according to screw material type and tightening torque, the piecewise GAM can better adapt to stress changes under different working conditions and significantly improve the drift suppression rate. The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely preferred examples and are not intended to limit the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of the present invention is defined by the appended claims and their equivalents.
Claims
1. A pre-calibration method for MEMS sensors based on different fixing screw specifications, characterized in that, Includes the following steps, S1. In the laboratory calibration environment, conduct multi-condition mechanical fastening tests on the MEMS sensor to be calibrated. Replace the fixing screws with different materials, diameters and lengths, and use multiple locking torques to complete the mechanical fastening. Construct three typical fastening conditions: screw material condition, screw diameter and length condition, and locking torque condition. S2. Under various fastening conditions, the MEMS sensor triaxial raw output, screw specification parameters, and ambient temperature are simultaneously collected. The stress feature vector, including screw properties, mechanical calculation parameters, and temperature rise, is extracted. The sensor drift is calculated based on the triaxial raw output. S3. Divide the data sample consisting of stress feature vector and sensor drift into no less than three fastening sections according to screw material type and fastening torque. Establish a generalized additive model for each fastening section independently. The generalized additive model expression is ΔY=Σs_j(F_j)+ε, where s_j represents the smooth spline function and ε represents the model error term. Solve to obtain the model parameters corresponding to each group of fastening sections. S4. Convert all model parameters, segment division thresholds and feature normalization coefficients of all fastening sections into q15 fixed-point format and write them into the non-volatile memory of the MEMS sensor, with the overall storage capacity controlled within 8kB. When the S5 and MEMS sensors are running online, the microcontroller reads the material identification code, screw diameter, and locking torque of the screws used in the current assembly, compares the corresponding model parameters with the segment division threshold, and completes the drift prediction calculation within two milliseconds. The predicted drift is then used to compensate the original sensor output to obtain the corrected sensor output.
2. The MEMS sensor pre-calibration method based on different fixing screw specifications according to claim 1, characterized in that, In step S1, the screw materials are selected from stainless steel 304, galvanized carbon steel, aluminum alloy 6061, titanium alloy TC4, and nylon PA66. The screw diameters are selected from M2, M2.5, M3, M4, and M5. The screw lengths are selected from 6mm, 10mm, 15mm, 20mm, and 25mm. The tightening torque is set to multiple levels of 0.3N・m, 0.6N・m, 1.0N・m, 1.5N・m, and 2.0N・m. These are combined in sequence to complete the setup for various fastening conditions.
3. The MEMS sensor pre-calibration method based on different fixing screw specifications according to claim 1, characterized in that, In step S2, the raw triaxial output of the MEMS sensor is denoted as Y_raw. Y_raw includes the x-axis output a_x, the y-axis output a_y, and the z-axis output a_z. The sensor drift calculation formula is as follows: ΔY=|Y_raw|-g In the formula, g represents the local gravitational acceleration; the stress characteristic vector includes screw material type, screw diameter, screw length, locking torque, screw Young's modulus, preload stress, fit clearance, and temperature rise; the preload stress is calculated by combining the locking torque with the effective cross-sectional area of the screw, and the temperature rise is obtained by sampling the NTC thermistor arranged on the sensor mounting base through an ADC.
4. The MEMS sensor pre-calibration method based on different fixing screw specifications according to claim 1, characterized in that, In step S3, the number of smooth spline function nodes in the generalized additive model corresponding to each tight segment is set to no more than 3, and the number of fixed-point multiplication and addition operations performed by the generalized additive model corresponding to each tight segment to complete one inference operation is no more than 12.
5. The MEMS sensor pre-calibration method based on different fixing screw specifications according to claim 1, characterized in that, Step S3 divides the fastening sections into a total of 9 sections. Based on the screw material type, the sections are divided into a metal rigid connection section, a lightweight flexible connection section, and a non-metallic section. The metal rigid connection section includes stainless steel 304 and galvanized carbon steel, the lightweight flexible connection section includes aluminum alloy 6061 and titanium alloy TC4, and the non-metallic section is nylon PA66. Based on the locking torque, the sections are further divided into a low torque section, a medium torque section, and a high torque section. The locking torque of the low torque section is no greater than 0.6 N·m, the locking torque of the medium torque section is greater than 0.6 N·m but no greater than 1.2 N·m, and the locking torque of the high torque section is greater than 1.2 N·m. The material category and torque category are combined to obtain 9 fastening sections.
6. The MEMS sensor pre-calibration method based on different fixing screw specifications according to claim 1, characterized in that, The q15 fixed-point format used in step S4 is a sixteen-bit signed number, including one sign bit and fifteen decimal places. After the coefficient rounding process of this fixed-point format, the resulting drift prediction error is no greater than 0.3mg.
7. The MEMS sensor pre-calibration method based on different fixing screw specifications according to claim 1, characterized in that, Step S5, which completes the drift prediction calculation within two milliseconds, involves reading no more than 48 bytes of model coefficient data from non-volatile memory, performing no more than 12 fixed-point multiply-add operations, completing one result write-back operation, and having a total CPU clock cycle of no more than 128,000 cycles.
8. The MEMS sensor pre-calibration method based on different fixing screw specifications according to claim 1, characterized in that, It also includes an online fine-tuning step. During the operation, the residual of the output result is continuously statistically calculated after compensation. When the standard deviation of the residual is greater than 0.15mg and the abnormal state lasts for more than 24 hours, the microcontroller retrieves the operation data collected in the most recent day, refits the generalized additive model of the current fastening section, and rewrites the updated model parameters into the non-volatile memory.
9. The MEMS sensor pre-calibration method based on different fixing screw specifications according to claim 1, characterized in that, After compensation and correction using this method, the tilt angle deviation of the MEMS sensor caused by the difference in the specifications of the fixing screws is no more than 0.05 degrees.
10. The system for pre-calibrating MEMS sensors based on different fixing screw specifications according to any one of claims 1-9, characterized in that, The system includes a mechanical fastening excitation module, a synchronous acquisition module, a data processing and modeling module, a parameter programming module, a microcontroller, and a sensor online calibration module. The mechanical fastening excitation module is used to perform mechanical fastening assembly with different screw materials, diameters, lengths, and locking torques, and to build various fastening conditions. The synchronous acquisition module is used to collect the triaxial raw output of the MEMS sensor, screw specification parameters, and ambient temperature, extract stress feature vectors, and calculate sensor drift. The data processing and modeling module is used to perform fastening section division, establish a generalized additive model for each fastening section, and solve the model parameters. The parameter programming module converts the segment model parameters, segment division thresholds, and feature normalization coefficients into q15 fixed-point format and writes them into non-volatile memory. The microcontroller reads the screw material identification code, screw diameter, and locking torque under on-site assembly conditions. The sensor online calibration module is integrated inside the microcontroller to match the segment model parameters, complete drift prediction, and compensate for the original sensor output. All modules of the system work together to execute all steps of the method. After the microcontroller completes the fixed-point inference calculation, the system still has more than 60kB of available RAM, which can ensure the concurrent operation of other business tasks of the equipment.
Citation Information
Patent Citations
MEMS small-range pressure dynamic calibration system and method based on piezoelectric actuator
CN120293401A
