A nonlinear error dynamic compensation method for intelligent atmospheric pressure transmitter
By constructing a basic nonlinear compensation reference surface and a local morphological attenuation kernel function, and combining dynamic fusion weights and temperature coupling mechanisms, the measurement instability problem of atmospheric pressure transmitters under local nonlinear abrupt changes was solved, achieving high-precision and stable dynamic compensation effects.
Patent Information
- Application Number
- CN202611630263.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-11-24
AI Technical Summary
When faced with sudden changes in local nonlinearity, existing atmospheric pressure transmitters cannot simultaneously guarantee compensation accuracy and dynamic response characteristics using traditional compensation methods. This results in the stability and accuracy of the measurement signal being affected, especially in high-precision measurement scenarios where noise interference is severe.
A full-range basic nonlinear compensation reference surface is constructed. Local nonlinear abrupt regions are identified through residual distribution sequences. A local morphological attenuation kernel function is constructed and weighted fusion is performed by combining dynamic fusion weights to ensure the continuity and smoothness of the compensation function inside and outside the stress critical range. A temperature coupling mechanism is introduced to adapt to environmental changes.
It achieves high-precision measurement across the entire measurement range, eliminates measurement errors near the stress critical point, reduces system background noise, improves the signal-to-noise ratio of the measurement signal, and maintains stable compensation effects in complex environments.
Smart Images

Figure CN123155084A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of sensor signal processing technology, and more specifically, to a method for dynamic compensation of nonlinear errors in an intelligent atmospheric pressure transmitter. Background Technology
[0002] Existing nonlinear error compensation techniques for atmospheric pressure transmitters face a technical dilemma: in practical engineering applications, the nonlinear characteristics of atmospheric pressure transmitters are not ideally smooth curves, but rather exhibit complex local abrupt changes across the entire measurement range. These abrupt changes primarily stem from stress concentration effects in the sensor packaging process. Especially near the edge of the sensor's measurement range or at critical structural stress points, the stress distribution on the silicon diaphragm changes drastically, causing local "jumps" or "bends" in the nonlinear response of the piezoresistive effect. Traditional compensation methods face a dilemma when dealing with these local abrupt changes: if high-order polynomials are used for global fitting to pursue higher fitting accuracy, the Runge phenomenon is inevitably triggered, causing severe numerical oscillations in the compensation values near non-sampling points. These oscillations manifest as spurious pressure fluctuations in actual measurements, severely compromising the authenticity of the measurement signal. If piecewise linearization or low-order polynomial fitting is used as a fallback to avoid the oscillation problem, while maintaining numerical stability, discontinuities in derivatives inevitably exist at the junctions of different fitting segments. When the transmitter performs dynamic pressure tracking, this mathematical discontinuity directly translates into tiny "step" jumps in the output signal. In high-precision atmospheric pressure measurement scenarios, even microvolt-level jumps can significantly raise the system's background noise level and disrupt the dynamic response characteristics of the measurement system. This is especially true in applications with extremely stringent stability requirements, such as meteorological observation and airborne altitude measurement. The noise interference caused by this compensation discontinuity often masks the subtle changes in actual atmospheric pressure, thereby affecting the reliability and accuracy of the entire measurement system.
[0003] In view of this, the present invention proposes a dynamic compensation method for nonlinear error of intelligent atmospheric pressure transmitter to solve the above problems. Summary of the Invention
[0004] To overcome the aforementioned deficiencies of the prior art and to achieve the above objectives, the present invention provides the following technical solution: a method for dynamic compensation of nonlinear errors in an intelligent atmospheric pressure transmitter, comprising: Construct a basic nonlinear compensation reference surface across the entire range, and obtain the deviation data between the actual pressure value of the calibration sampling point and the basic nonlinear compensation reference surface to generate a residual distribution sequence; Local nonlinear abrupt change regions are identified based on the residual gradient change rate of the residual distribution sequence. These regions are marked as stress critical intervals, and the boundary points of the stress critical intervals are recorded. A local morphological attenuation kernel function is constructed for the critical stress interval. Based on the local morphological attenuation kernel function and the deviation data, the abrupt compensation component of each sampling point in the critical stress interval is calculated. The function value and first derivative value of the local morphological attenuation kernel function at the boundary point of the interval are both constrained to zero. Obtain the raw pressure data currently output by the transmitter, obtain the current basic compensation value of the raw pressure data based on the basic nonlinear compensation reference surface, and calculate the positional correlation between the raw pressure data and the stress critical interval.
[0005] The dynamic fusion weight is determined based on the positional correlation. The current basic compensation value and the mutation compensation component are then weighted and fused according to the dynamic fusion weight. The derivative of the dynamic fusion weight at the interval boundary point remains continuous, generating the final dynamic compensation output value.
[0006] The technical effects and advantages of the nonlinear error dynamic compensation method for an intelligent atmospheric pressure transmitter of the present invention are as follows: In terms of compensation accuracy, this invention can accurately capture and eliminate local nonlinear abrupt changes caused by packaging stress, improving the measurement accuracy of the transmitter near the stress critical point and fundamentally improving linearity across the entire measurement range. Regarding dynamic response characteristics, by ensuring the continuity of the compensation function and its derivative throughout the entire operating range, it effectively eliminates step-like jumps during dynamic tracking, significantly reducing the system's background noise level and improving the signal-to-noise ratio of the measurement signal. The adaptive characteristics of this invention allow the compensation intensity to be intelligently adjusted according to the spatial relationship between the measurement point and the abrupt change region. It maintains the computational efficiency of basic compensation when far from the abrupt change region and automatically enhances the intervention of local compensation when approaching the abrupt change region, achieving an optimal balance between compensation accuracy and computational complexity. Furthermore, by introducing a temperature coupling mechanism, this invention also possesses good environmental adaptability, maintaining stable compensation effects under different operating temperature conditions, enhancing the reliability and long-term stability of the transmitter under complex environmental conditions. Attached Figure Description
[0007] Figure 1 This is a schematic diagram of a nonlinear error dynamic compensation method for an intelligent atmospheric pressure transmitter according to the present invention. Detailed Implementation
[0008] 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.
[0009] Please see Figure 1In this embodiment of the invention, the specific implementation process of a dynamic compensation method for nonlinear errors of an intelligent atmospheric pressure transmitter includes: A fundamental nonlinear compensation reference surface is constructed across the entire measurement range, and deviation data between the actual pressure values at calibration sampling points and the fundamental nonlinear compensation reference surface are obtained to generate a residual distribution sequence. The fundamental nonlinear compensation reference surface is a mathematical model describing the global nonlinear characteristics of the transmitter, establishing a global mapping relationship between the original output and the standard pressure through low-order polynomial fitting. This reference surface captures the main nonlinear trends of the transmitter but cannot accurately describe local abrupt changes. The deviation data reflects the difference between the actual pressure value and the globally fitted model, including the influence of complex factors such as local nonlinear abrupt changes, encapsulation stress, and material inhomogeneity. The residual distribution sequence, through the ordered arrangement of the deviation data, reveals the spatial distribution law of the error in the pressure domain, providing a data foundation for subsequent abrupt change region identification. This step ensures the global reference uniformity and the identifiability of local features in the compensation method.
[0010] Local nonlinear abrupt change regions are identified based on the residual gradient change rate of the residual distribution sequence. These regions are marked as stress critical intervals, and their boundary points are recorded. The stress critical interval is the region where the transmitter's nonlinear error abnormally increases within a specific pressure range due to abrupt changes in packaging stress; it typically corresponds to abrupt changes in the mechanical stress state of the sensitive chip. Residual gradient change rate analysis allows for precise location of the boundaries of these abnormal regions. The residual gradient change rate is calculated using a second-order difference method, effectively identifying inflection points and abrupt change characteristics of the error curve. Accurate recording of the interval boundary points serves as the spatial positioning benchmark for subsequently constructing the local compensation kernel function, ensuring that the compensation domain precisely corresponds to the spatial distribution of the actual physical phenomenon. This identification process solves the technical challenge of traditional global compensation methods being unable to specifically handle local abrupt changes.
[0011] A local morphological attenuation kernel function is constructed for the critical stress interval. Based on this kernel function and deviation data, abrupt compensation components for each sampling point within the critical stress interval are calculated. The function value and first derivative of the local morphological attenuation kernel function at the interval boundary points are constrained to zero. The local morphological attenuation kernel function is a spatial weighting function specifically designed for the critical stress interval. Its bell-shaped attenuation characteristic ensures that the compensation effect is strongest at the center of the interval and gradually weakens to zero towards the boundary. The zero constraint on the function value and first derivative at the boundary ensures a smooth transition of the compensation components at the interval boundary, avoiding abrupt secondary errors introduced by the compensation. The abrupt compensation components are generated by weighted modulation of the deviation data using the kernel function, accurately describing the amplitude and spatial distribution characteristics of local nonlinear abrupt changes. This kernel function-based local compensation strategy balances compensation accuracy and boundary continuity, and is a key technology for achieving high-precision dynamic compensation.
[0012] The process involves acquiring the transmitter's current output raw pressure data, obtaining the current basic compensation value of the raw pressure data based on the fundamental nonlinear compensation reference surface, and calculating the positional correlation between the raw pressure data and the stress critical interval. The raw pressure data is the uncompensated pressure measurement value acquired in real-time by the transmitter, containing all systematic error components. The current basic compensation value is obtained by substituting the raw pressure data into the fundamental nonlinear compensation reference surface, providing an initial correction for global nonlinear errors. The positional correlation is an indicator that quantifies the spatial relationship between the current measurement point and the stress critical interval, reflecting the degree of influence of local abrupt compensation on the current measurement point. The calculation of the positional correlation considers whether the measurement point falls within the critical interval and its relative position from the interval's center or boundary, providing a spatial positioning basis for subsequent dynamic weight allocation. This step achieves accurate correlation between real-time measurement data and the offline calibration model.
[0013] The dynamic fusion weights are determined based on location correlation. The current base compensation value and the abrupt compensation component are then weighted and fused according to the dynamic fusion weights, with the derivatives of the dynamic fusion weights remaining continuous at the interval boundary points to generate the final dynamic compensation output value. The dynamic fusion weights are a key parameter for achieving adaptive fusion of two-layer compensation, dynamically adjusting the relative contributions of global and local compensations based on the spatial location of the measurement points. Within the critical stress interval, the dynamic fusion weights tilt towards local abrupt compensation, fully leveraging the advantages of local fine compensation; outside the interval, the weights tilt towards global base compensation, maintaining global consistency. The derivative continuity constraint at the boundary ensures the smoothness of the compensation output across the entire pressure domain, avoiding output jumps caused by weight switching. The final dynamic compensation output value integrates the advantages of global nonlinear correction and local abrupt fine compensation, achieving high-precision adaptive error correction across the entire measurement range, significantly improving the transmitter's measurement accuracy and stability.
[0014] In this embodiment of the invention, a basic nonlinear compensation reference surface is constructed over the entire range, and the deviation data between the actual pressure value of the calibration sampling point and the basic nonlinear compensation reference surface are obtained to generate a residual distribution sequence, including: The process involves obtaining the correspondence between standard pressure values and the transmitter's raw output values from the full-range calibration data. This correspondence is a fundamental step in establishing the compensation model, using calibration experiments to establish the input-output mapping. The process is conducted in a standard pressure calibration environment, performing multi-point calibration of the transmitter across its entire range. Typically, 20-50 calibration pressure points are set uniformly or non-uniformly within the range, with each pressure point measured 3-5 times to eliminate random errors. Standard pressure values are provided by high-precision pressure standards, typically with an accuracy one order of magnitude higher than that of the transmitter under test, ensuring the reliability of the calibration reference. The transmitter's raw output values are direct measurement data without any compensation processing, accurately reflecting the sensor's intrinsic characteristics and systematic errors. The correspondence data is organized in pressure-output value pairs, forming a discrete calibration dataset that provides experimental basis for subsequent mathematical modeling. This calibration process also requires recording auxiliary parameters such as ambient temperature and humidity to provide data support for extended functions such as temperature compensation.
[0015] A low-order polynomial is used to globally fit the corresponding relationships, generating a basic nonlinear compensation reference surface. The order of the low-order polynomial is no greater than third. Global fitting is the core step in establishing the basic compensation model, capturing the main nonlinear characteristics through mathematical approximation. The fitting process employs the least squares method to establish the relationship between the standard pressure value and the original output value. The polynomial relationship between them is usually expressed in the form of a second- or third-order polynomial: ; in, The compensation pressure value output from the basic nonlinear compensation reference surface. , , , The fitting coefficients are determined by minimizing the sum of squared residuals between the standard pressure value and the fitted value. The choice of low-order polynomials is based on a balance between computational efficiency and the risk of overfitting. Polynomials of order three or lower can effectively describe the nonlinear characteristics of most piezoresistive sensors, while avoiding the oscillations and overfitting problems that may be introduced by higher-order polynomials. The goodness of fit is evaluated using the coefficient of determination R², which is typically required to be greater than 0.999 to ensure the global approximation accuracy of the reference surface. This low-order polynomial reference surface provides a stable and reliable basis for global nonlinear compensation while ensuring real-time computation.
[0016] The actual pressure values at the calibrated sampling points are substituted into the basic nonlinear compensation datum surface. The difference between the fitted pressure value and the actual pressure value is calculated, and the set of differences is defined as deviation data. This set is then arranged in ascending order of pressure value to generate a residual distribution sequence. Deviation data calculation is a crucial step in quantifying local error characteristics, revealing detailed features that the datum surface cannot capture through residual analysis. The calculation process first substitutes the original output value of each calibrated sampling point into the fitting formula of the basic nonlinear compensation datum surface to obtain the pressure value predicted by the datum surface. Then, it is compared with the standard pressure value (actual pressure value) at that point, and the difference is calculated as the residual. The sign of the residual reflects whether the datum surface prediction is too high or too low, and the absolute value reflects the degree of local fitting error. Arranging the residuals of all sampling points in ascending order of pressure value forms a residual distribution sequence, visually demonstrating the distribution pattern of error in the pressure domain. The residual distribution sequence typically exhibits the characteristic of local fluctuations superimposed on small-amplitude random noise. Regions with significant fluctuations correspond to local nonlinear abrupt changes, providing clear feature markers for subsequent identification of critical stress intervals. This sequence serves as a bridge connecting global compensation and local compensation, carrying crucial local error information.
[0017] In this embodiment of the invention, local nonlinear abrupt change regions are identified based on the residual gradient change rate of the residual distribution sequence, these regions are marked as stress critical intervals, and the boundary points of the stress critical intervals are recorded, including: The first-order difference of the residuals between adjacent sampling points in the residual distribution sequence is calculated, and then the second-order rate of change of the residuals is obtained by subtracting the first-order difference again. The calculation of the second-order rate of change is a mathematical method for identifying inflection points on the error curve, extracting the curvature characteristics of the curve through differencing. The calculation process first performs a first-order differencing operation on the residual distribution sequence to obtain the amount of residual change between adjacent sampling points, reflecting the rate of change of the residuals; then, the first-order difference sequence is subtracted again to obtain the second-order rate of change, reflecting the change in the rate of change of the residuals, i.e., the curvature characteristics of the residual curve. For discrete sampling point sequences... The first difference is divided into The second-order rate of change A significant non-zero value of the second-order rate of change indicates a clear bend or inflection in the residual curve at that point, making it a sensitive indicator for identifying nonlinear abrupt changes. Compared to the first-order difference, which can only detect slope changes, the second-order rate of change can more accurately locate abrupt changes in the curve shape, effectively distinguishing between smooth changes and abrupt regions, and providing a mathematical basis for locating the boundaries of the stress critical interval.
[0018] When the second-order rate of change of the residuals at a consecutive preset number of sampling points all exceed a preset abrupt change threshold, the pressure range corresponding to this preset number of sampling points is marked as a critical stress interval. Critical interval marking is a step that transforms mathematical characteristics into a physical region determination, ensuring robustness of the identification through continuity constraints. The marking process first sets a threshold for the abrupt change of the second-order rate of change. This threshold is determined based on the overall statistical characteristics of the residual distribution sequence, typically set to 2-3 times the standard deviation of the second-order rate of change of the entire sequence, or an absolute value threshold is set based on physical experience. Then, the residual distribution sequence is traversed, detecting sampling point segments that consecutively exceed the threshold. The continuity requirement is typically set to 3-5 sampling points to avoid misclassifying isolated noise points as abrupt change regions. When a continuous segment that meets the conditions is detected, the pressure range corresponding to that sampling point segment is marked as a critical stress interval. This continuity-based determination strategy effectively suppresses the interference of random noise, ensuring that the identified critical stress interval truly corresponds to a real physical abrupt change phenomenon, rather than measurement noise or accidental fluctuations. For complex residual distributions, multiple discontinuous critical stress intervals may be identified, each corresponding to a different stress abrupt change in the encapsulation stress at a different pressure point.
[0019] The pressure values at the sampling points at both ends of the critical stress interval are extracted and marked as the upper and lower boundary points, respectively, and then merged as the interval boundary points. Boundary point extraction is a crucial step in determining the local compensation spatial range, defining the compensation domain through endpoint marking. The extraction process first identifies the sampling point corresponding to the minimum pressure value within the marked critical stress interval, marking it as the lower boundary point, representing the starting position of the abrupt change region; then, it identifies the sampling point corresponding to the maximum pressure value, marking it as the upper boundary point, representing the ending position of the abrupt change region. These two boundary points clearly define the spatial range of the critical stress interval and serve as the supporting interval boundary for subsequently constructing the local morphological attenuation kernel function. Accurate extraction of boundary points ensures a precise correspondence between the local compensation domain and the actual physical abrupt change region, avoiding global model interference caused by an excessively large compensation range or omission of abrupt change features due to an excessively small compensation range. For cases with multiple critical stress intervals, the boundary points of each interval are extracted separately, and each local compensation domain is managed independently to achieve multi-region adaptive compensation. The recording of interval boundary points provides a spatial positioning benchmark for subsequent dynamic compensation.
[0020] In this embodiment of the invention, a local morphological attenuation kernel function is constructed for the critical stress interval. Based on the local morphological attenuation kernel function and the deviation data, the abrupt compensation component of each sampling point within the critical stress interval is calculated, including: Using the central pressure point of the critical stress interval as the origin of the kernel function, a bell-shaped attenuation kernel function is constructed that covers the critical stress interval within the support interval. Constructing the bell-shaped kernel function is a crucial step in designing the local weight distribution, achieving spatial modulation of central strengthening and boundary weakening through symmetrical attenuation characteristics. The construction process first calculates the central pressure point of the critical stress interval. ,in and These represent the pressure values at the upper and lower boundary points, respectively. Then, using the center point as the origin, a bell-shaped decay kernel function is constructed, typically in Gaussian or cosine form. The expression for the Gaussian kernel function is: ; in, The pressure value The kernel function value at the sampling point. To control the scaling parameter of the decay rate, it is typically taken as 1 / 3 to 1 / 2 of the interval half-width, ensuring that the kernel function decays to near zero at the boundary points. The bell-shaped kernel function reaches its maximum value of 1 at the center point and decays symmetrically towards both sides, conforming to the physical intuition that stress abrupt changes are most significant at the center and gradually weaken towards the boundary. This spatial modulation characteristic ensures that the compensation effect is strongest in the most needed region and smoothly weakens in the transition region, achieving an adaptive spatial distribution of the compensation intensity.
[0021] The bell-shaped decay kernel function is truncated at the interval boundary points, and the function values and first derivatives at the truncated points are forcibly set to zero. Boundary truncation is a crucial step to ensure the continuity of compensation, eliminating the quadratic error introduced by compensation through boundary constraints. The process first truncates the kernel function at the upper and lower boundary points, setting the kernel function values outside the boundaries to zero, thus strictly limiting the compensation domain to the critical stress interval. Then, a smoothing correction is introduced at the truncated points, constructing a correction factor to smoothly transition the function values at the boundary points to zero, while simultaneously constraining the first derivative to zero. This ensures that the compensation component is not only continuous (function value zero) but also smooth (derivative zero) at the boundaries. This dual constraint is achieved by introducing a transition function, typically using a cubic or quintic polynomial for local correction in a small region near the boundary, satisfying the constraint that the function values and first derivatives at the boundaries are both zero. Boundary smoothing constraints ensure a smooth transition between local compensation and global compensation at the interval boundaries, avoiding output jumps or kinks caused by compensation switching, and guaranteeing the global smoothness and physical rationality of the entire compensation system.
[0022] The deviation data at each sampling point within the critical stress interval is multiplied by the corresponding bell-shaped decay kernel function after zeroing to generate the abrupt compensation component for each sampling point. Compensation component generation is the final step in completing the local compensation modeling, achieving spatial modulation of the deviation data through kernel function weighting. The generation process extracts the deviation data value (the difference between the actual pressure value and the fitted value of the foundation nonlinear compensation reference surface) for each calibrated sampling point within the critical stress interval; then, the corrected kernel function value at the pressure location of that sampling point is calculated; finally, the deviation data is multiplied by the kernel function value to obtain the abrupt compensation component for that sampling point. The calculation formula is as follows: ,in For the first The mutation compensation component at each sampling point This is the kernel function value at that point. This represents the deviation data at that point. This kernel-based weighted processing preserves the local error characteristics reflected by the deviation data while achieving an adaptive distribution of compensation intensity through spatial attenuation. The set of abrupt compensation components forms a refined compensation model for the critical stress interval, providing a basis for local correction in real-time dynamic compensation and serving as the core data for achieving high-precision local compensation.
[0023] In this embodiment of the invention, calculating the positional correlation between the original pressure data and the critical stress interval includes: The process involves determining whether the original pressure data falls within the critical stress range. Range assignment is the first step in calculating location correlation, using spatial location comparison to determine the compensation strategy branch. This process compares the pressure value corresponding to the real-time acquired original pressure data with the boundary points of the critical stress range, checking whether the pressure value lies at the lower limit boundary point. and upper limit boundary point Between. A simple interval inclusion test is used to determine this: if... If the original pressure data falls within the critical stress range, it is determined that it falls outside the range; otherwise, it is determined that it falls outside the range. This determination directly determines the subsequent method for calculating the position correlation. The correlation of internal points is quantified by their relative position from the center, while the correlation of external points is quantified by their distance from the boundary. The range assignment determination is the key control logic for realizing segmented adaptive compensation, ensuring that the compensation strategy dynamically switches according to the position of the measurement point.
[0024] If the stress falls within the critical stress range, the first normalized distance from the original pressure data to the center point of the critical stress range is calculated, and this first normalized distance is used as the positional correlation. The internal positional correlation calculation is a method to quantify the spatial characteristics of measurement points within the range, reflecting the intensity of abrupt changes in influence through their relative position from the center. The calculation process first calculates the absolute distance from the pressure value corresponding to the original pressure data to the center point of the critical stress range. Then use the interval half width Normalization is performed to obtain the first normalized distance. Normalization ensures that the positional correlation value ranges from 0 to 1, with 0 corresponding to the center point and 1 corresponding to the boundary point. The first normalized distance intuitively reflects the relative position of the measurement point within the interval. The closer to the center, the smaller the normalized distance, indicating a more significant impact of abrupt changes on the point, and thus requiring higher weighting for subsequent local compensation. Conversely, the closer to the boundary, the larger the normalized distance, indicating a transitional region where local compensation weights should gradually decrease. This relative position-based correlation definition provides a continuous and smooth spatial parameter for dynamic weight allocation.
[0025] If the stress falls outside the critical stress range, the second normalized distance from the original pressure data to the nearest boundary point is calculated, and the location correlation is set to a decay value negatively correlated with the second normalized distance. External location correlation calculation is a method to quantify the correlation between measurement points outside the range and abrupt change regions, reflecting residual effects through distance from the boundary. The calculation process first determines which side of the range the original pressure data is located on, and then calculates the distance to the nearest boundary point: if... ,but ;like ,but Then use the characteristic attenuation length Normalize the distance (usually set to 1-2 times the interval width) to obtain the second normalized distance. Finally, the location correlation was set to an exponential decay form. This design achieves a negative correlation where the correlation decreases with increasing distance. This exponential decay design reflects the physical characteristic that the impact of stress abrupt changes rapidly weakens with distance, ensuring that measurement points far from the critical range are almost unaffected by local compensation, maintaining the dominance of global compensation. The continuous decay characteristics of external location correlation smoothly connect with internal correlation at the boundary, achieving a continuous correlation distribution across the entire pressure domain.
[0026] In this embodiment of the invention, the dynamic fusion weight is determined based on the positional correlation, and the derivative of the dynamic fusion weight remains continuous at the interval boundary points, including: A smooth transition weight function is constructed based on location correlation, with its value range restricted to between zero and one. This weight function construction is a mathematical modeling step in achieving adaptive fusion, controlling the relative contributions of the compensation components through function design. The construction process is based on location correlation. Design weight function The function's range must be strictly limited to the interval [0,1] to ensure the physical rationality and numerical stability of the weights. The weighting function typically adopts an S-curve form to achieve a smooth transition when the positional correlation changes, avoiding output jumps caused by abrupt changes. The range constraint is naturally satisfied through the choice of function form; commonly used function forms include transformations of the sigmoid function and tanh function, or polynomial forms. The design of the weighting function needs to balance response sensitivity and smoothness; it must be able to quickly adjust the weight allocation according to the positional correlation while maintaining sufficient smoothness to avoid numerical oscillations.
[0027] Within the critical stress interval, the smooth transition weight function is configured to monotonically increase as the positional correlation decreases. This internal weight configuration is a key setting for defining the compensation strategy within the interval, ensuring logical consistency through monotonicity. The configuration principle is: the lower the positional correlation (i.e., closer to the interval center), the larger the smooth transition weight function value, indicating a higher weight for local abrupt change compensation; the higher the positional correlation (i.e., closer to the interval boundary), the smaller the weight function value, indicating that the weight of global basic compensation gradually regains its dominant position. This monotonically increasing configuration aligns with physical intuition because stress abrupt changes are most significant at the interval center, where local compensation should play its maximum role. Mathematically, this is achieved through design... Or a more complex nonlinear monotonically decreasing form, ensuring that at the center point ( The weight is 1 at point (), and at the boundary point ( The weights at each point tend to be 0. This configuration provides a clear weight allocation rule for adaptive compensation within the interval.
[0028] At the interval boundary points, a derivative continuity constraint is introduced into the smooth transition weight function, and boundary smoothing correction is performed to ensure that the first derivative of the smooth transition weight function continuously transitions to zero outside the interval boundary points. The corrected smooth transition weight function is then determined as the dynamic fusion weight. Boundary smoothing correction is a key step in ensuring the continuous differentiability of the global output, eliminating output kinks caused by weight switching through derivative constraints. The correction process introduces constraints at the interval boundary points, requiring that the weight function not only has continuous function values (usually 0 or small values close to 0) at the boundary points, but also that its first derivative continuously transitions to zero, ensuring that the rate of change of weights smoothly decays rather than abruptly at the boundary. This dual continuity constraint is achieved by constructing a transition function, typically using cubic Hermitian interpolation or fifth-order polynomials for local correction near the boundary to satisfy the function value and derivative value constraints at the boundary. The corrected weight function maintains C^1 continuity (both function values and first derivatives are continuous) throughout the entire pressure domain, ensuring the smooth response characteristics of the compensated output to pressure changes. The final determined dynamic fusion weights comprehensively consider location correlation, monotonicity, and boundary smoothness, providing a mathematical basis for high-quality adaptive compensation fusion.
[0029] In this embodiment of the invention, the current basic compensation value and the mutation compensation component are weighted and fused according to dynamic fusion weights to generate the final dynamic compensation output value, including: Dynamic fusion weights are assigned to the mutation compensation components, and the difference between one and the dynamic fusion weights is assigned to the current base compensation value. Weight assignment is a configuration step for weighted fusion, ensuring the completeness of the fusion through complementary weights. The assignment process uses the calculated dynamic fusion weights. The weighting coefficients are directly used as the weighting coefficients of the mutation compensation component, reflecting the relative contribution of local compensation; at the same time, the complementary weights 1- The weighting coefficients, serving as the current base compensation value, reflect the relative contribution of the global compensation. This complementary weighting design ensures that the sum of the weights of the two compensation components is always 1, satisfying the normalization requirement of the weighted average and guaranteeing the numerical stability and physical rationality of the fusion result. At the center of the stress critical interval, the dynamic fusion weight is close to 1, with abrupt compensation dominating; outside the interval, the dynamic fusion weight is close to 0, with base compensation dominating; in the transition region, the two compensations are smoothly mixed. This adaptive weight allocation achieves intelligent coordination between global and local compensation.
[0030] The weighted mutation compensation component is algebraically summed with the current base compensation value to obtain the comprehensive compensation amount for the current sampling point. Comprehensive compensation calculation is the mathematical operation step that completes the two-layer compensation fusion, achieving a linear combination of compensation components through weighted summation. The calculation formula is: ; in, For the comprehensive compensation amount, For dynamic fusion weights, This is the current basic compensation value (calculated from the basic nonlinear compensation reference surface). The abrupt change compensation component is calculated from the local morphological decay kernel function and deviation data. This linear combination method retains the correction effect of the basic compensation on global nonlinearity while incorporating the fine correction of abrupt change regions by local compensation, achieving a complementary advantage of the two compensation mechanisms. Mathematically, due to the continuity and smoothness of the dynamically fused weights throughout the pressure domain, the comprehensive compensation quantity also has good continuity and differentiability, ensuring the high-quality characteristics of the compensation output.
[0031] The raw pressure data is superimposed with the comprehensive compensation amount to generate the final dynamic compensation output value. This final output generation is the last step in error correction, improving the accuracy of the measured value through compensation superposition. The superposition process involves algebraically adding or subtracting the raw pressure data output by the transmitter (including system errors) from the calculated comprehensive compensation amount (an estimate representing the system error) (according to the sign convention of the error definition) to obtain the corrected pressure measurement value, which serves as the final dynamic compensation output value. This output value benefits from both the main nonlinear correction of global basic compensation and the fine error correction of local abrupt changes, resulting in higher full-range accuracy and better adaptability to local abrupt changes compared to single compensation methods. The final dynamic compensation output value significantly improves the transmitter's measurement accuracy, especially within the critical stress range, where the compensation effect is particularly significant, effectively solving the problem of local nonlinear abrupt changes that traditional methods struggle to handle.
[0032] In this embodiment of the invention, when multiple discontinuous stress critical intervals are identified, the corresponding mutation compensation component and dynamic fusion weight are independently calculated for each stress critical interval; for the original pressure data that simultaneously falls within the coverage of multiple stress critical intervals, the maximum value of the dynamic fusion weight corresponding to each stress critical interval is extracted as the effective fusion weight; weighted fusion is performed based on the mutation compensation component corresponding to the effective fusion weight to generate the final dynamic compensation output value.
[0033] Multi-interval processing is an extended strategy to address complex error distributions, achieving collaborative compensation for multiple abrupt change regions through independent partitioned modeling and intelligent selection. The process first independently executes the aforementioned local morphological attenuation kernel function construction, abrupt change compensation component calculation, and dynamic fusion weight determination for each identified stress critical interval, forming multiple parallel local compensation models, each specifically optimized for the characteristics of a particular abrupt change region. During real-time compensation, the location of the current original pressure data is determined, and its positional correlation with all stress critical intervals and the corresponding dynamic fusion weights are calculated. For the special case where multiple intervals are simultaneously covered (including kernel function support domains), a maximum weight selection strategy is adopted, extracting the maximum value among the corresponding weights of each interval as the effective fusion weight, and simultaneously selecting the abrupt change compensation component corresponding to this maximum weight to participate in the fusion calculation. This maximum value selection strategy is based on the principle of dominant influence, assuming that the abrupt change region with the most significant impact on the current measurement point should dominate local compensation, avoiding overcompensation or compensation conflicts that may be caused by the simple superposition of multi-interval compensations. Multi-interval collaborative processing significantly improves the method's adaptability to complex nonlinear distributions and can handle complex situations where multiple encapsulated stress abrupt change points coexist.
[0034] In this embodiment of the invention, after generating the final dynamic compensation output value, the method further includes: obtaining the final dynamic compensation output value for multiple consecutive sampling periods, and calculating the rate of change of compensation value between adjacent periods; when the rate of change of compensation value exceeds a preset stability threshold, determining that the current state is in dynamic tracking jump state and triggering a smoothing hold mechanism; under the smoothing hold mechanism, replacing the final dynamic compensation output value of the current period with the weighted moving average of the output value of the previous period and the output value of the current period, so as to suppress the step jump of the output signal.
[0035] The smoothing and holding mechanism is an auxiliary strategy to improve output stability. It suppresses output fluctuations caused by compensation switching or noise through time-domain filtering. The mechanism first monitors the final dynamic compensation output value over consecutive sampling periods (usually 3-5 periods) and calculates the rate of change between adjacent periods. ,in For the first Output value per cycle, The sampling period is defined as follows. The rate of change is then compared to a preset stability threshold, which is set according to the dynamic response requirements of the application scenario, typically 0.1%-1% of full scale per second. When the rate of change exceeds the threshold, it is determined that there is a risk of abnormal output jumps, triggering a smoothing and holding mechanism. This mechanism uses a weighted moving average filter to replace the current period's output value with... ,in This is the smoothing coefficient, typically ranging from 0.3 to 0.7, adjusted according to the balance between response speed and smoothness requirements. This time-domain smoothing effectively suppresses output step transitions and high-frequency noise, improving the stability and readability of the measurement output, making it particularly suitable for applications requiring high output stability.
[0036] In this embodiment of the invention, before generating the abrupt compensation component for each sampling point, the method further includes: acquiring the current operating temperature data of the transmitter, querying the pre-stored stress-temperature coupling coefficient based on the operating temperature data, and dynamically adjusting the support interval width of the bell-shaped attenuation kernel function using the stress-temperature coupling coefficient, wherein when the operating temperature data deviates from the standard temperature range, the support interval width narrows proportionally with the degree of deviation, in order to match the nonlinear abrupt range drift of the encapsulation stress with temperature change.
[0037] Temperature coupling compensation is an extended function that considers the thermo-coupling effect, improving compensation accuracy over a wide temperature range through temperature adaptive adjustment. The function first acquires real-time operating temperature data from the transmitter's built-in temperature sensor, then queries a pre-stored stress-temperature coupling coefficient table. This table, established through multi-temperature-point calibration experiments, records the location and width variations of the stress critical range at different temperatures. Based on the deviation between the current temperature and the standard calibration temperature (typically 25°C), the stress-temperature coupling coefficient is calculated. Typically, a linear or piecewise linear model is used. This coefficient is used to dynamically adjust the support interval width of the bell-shaped decay kernel function; the adjustment formula is as follows: ,in The width of the interval at standard temperature. The current operating temperature. Standard temperature The coupling coefficient is denoted by . This narrowing adjustment reflects the physical phenomenon that the encapsulation stress distribution becomes more concentrated when the temperature rises or falls, ensuring that the kernel function support range matches the actual stress distribution range. Temperature adaptive adjustment significantly improves the compensation accuracy and robustness of the method over a wide temperature range, effectively addressing the nonlinear characteristic drift problem caused by temperature changes.
[0038] This invention achieves high-precision dynamic compensation for nonlinear errors in intelligent atmospheric pressure transmitters through a dual-layer compensation architecture, stress critical interval identification, local morphological attenuation kernel function design, dynamic fusion weight adaptation, and temperature coupling compensation. The dynamic compensation method of this invention can accurately handle complex error distributions where global nonlinearity and local abrupt changes coexist, effectively improving the transmitter's full-range measurement accuracy and environmental adaptability.
[0039] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
[0040] It should be noted that all formulas in this manual are calculated by removing dimensions and taking their numerical values. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters and thresholds in the formulas are set by those skilled in the art according to the actual situation.
[0041] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Claims
1. A method for dynamic compensation of nonlinear error in an intelligent atmospheric pressure transmitter, characterized in that, include: Construct a basic nonlinear compensation reference surface across the entire range, and obtain the deviation data between the actual pressure value of the calibration sampling point and the basic nonlinear compensation reference surface to generate a residual distribution sequence; Based on the residual gradient change rate of the residual distribution sequence, local nonlinear abrupt regions are identified, the local nonlinear abrupt regions are marked as stress critical intervals, and the interval boundary points of the stress critical intervals are recorded. A local morphological attenuation kernel function is constructed for the stress critical interval. Based on the local morphological attenuation kernel function and the deviation data, the abrupt compensation component of each sampling point in the stress critical interval is calculated. The function value and first derivative value of the local morphological attenuation kernel function at the boundary point of the interval are both constrained to zero. Obtain the raw pressure data currently output by the transmitter, obtain the current basic compensation value of the raw pressure data based on the basic nonlinear compensation reference surface, and calculate the positional correlation between the raw pressure data and the stress critical interval. The dynamic fusion weight is determined based on the positional correlation. The current basic compensation value and the mutation compensation component are then weighted and fused according to the dynamic fusion weight. The derivative of the dynamic fusion weight at the boundary point of the interval remains continuous, generating the final dynamic compensation output value.
2. The method according to claim 1, characterized in that, The process of constructing a basic nonlinear compensation reference surface across the entire measurement range, obtaining deviation data between the actual pressure values at calibration sampling points and the basic nonlinear compensation reference surface, and generating a residual distribution sequence includes: Obtain the correspondence between the standard pressure value and the transmitter's original output value in the full-range calibration data; The correspondence is globally fitted using a low-order polynomial to generate the basic nonlinear compensation reference surface, wherein the order of the low-order polynomial is no greater than the third order. Substitute the actual pressure value of the calibration sampling point into the basic nonlinear compensation reference surface, calculate the difference between the fitted pressure value and the actual pressure value, determine the set of differences as the deviation data, and generate the residual distribution sequence by arranging them in ascending order of pressure value.
3. The method according to claim 1, characterized in that, The process of identifying local nonlinear abrupt change regions based on the residual gradient change rate of the residual distribution sequence, marking these local nonlinear abrupt change regions as stress critical intervals, and recording the interval boundary points of the stress critical intervals includes: Calculate the first-order difference of the residuals between adjacent sampling points in the residual distribution sequence, and then subtract the first-order difference of the residuals again to obtain the second-order rate of change of the residuals; When the residual second-order rate of change of a consecutive preset number of sampling points all exceed a preset mutation threshold, the pressure range corresponding to the consecutive preset number of sampling points is marked as the stress critical interval. Extract the pressure values of the sampling points at both ends within the critical stress interval, and mark them as the upper limit boundary point and the lower limit boundary point, respectively, and combine them as the boundary points of the interval.
4. The method according to claim 1, characterized in that, The step of constructing a local morphological attenuation kernel function for the critical stress interval, and calculating the abrupt change compensation component for each sampling point within the critical stress interval based on the local morphological attenuation kernel function and the deviation data, includes: Using the center pressure point of the stress critical interval as the origin of the kernel function, a bell-shaped decay kernel function covering the stress critical interval is constructed. The bell-shaped decay kernel function is truncated at the boundary point of the interval, and the function value and first derivative value at the truncated point are forcibly set to zero; The deviation data of each sampling point within the critical stress interval is multiplied by the bell-shaped decay kernel function after being zeroed to generate the abrupt change compensation component of each sampling point.
5. The method according to claim 1, characterized in that, The calculation of the positional correlation between the original pressure data and the critical stress interval includes: Determine whether the original pressure data falls within the critical stress range; If the stress falls within the critical stress range, the first normalized distance from the original pressure data to the center point of the critical stress range is calculated, and the first normalized distance is used as the position correlation degree. If the stress falls outside the critical stress range, the second normalized distance from the original pressure data to the nearest boundary point of the range is calculated, and the position correlation is set to a decay value that is negatively correlated with the second normalized distance.
6. The method according to claim 1, characterized in that, The step of determining the dynamic fusion weight based on the positional correlation, and ensuring that the derivative of the dynamic fusion weight remains continuous at the boundary points of the interval, includes: A smooth transition weight function is constructed based on the location correlation, and the value range of the smooth transition weight function is restricted to between zero and one. Within the critical stress range, the smooth transition weight function is configured to monotonically increase as the positional correlation decreases; At the boundary point of the interval, a derivative continuity constraint is introduced into the smooth transition weight function, and the boundary smoothing correction is performed on the smooth transition weight function. The corrected smooth transition weight function is then determined as the dynamic fusion weight.
7. The method according to claim 1, characterized in that, The step of weighting and fusing the current base compensation value and the mutation compensation component according to the dynamic fusion weight to generate the final dynamic compensation output value includes: The dynamic fusion weight is assigned to the mutation compensation component, and the difference between the dynamic fusion weight and the current base compensation value is assigned to the current base compensation value. The weighted mutation compensation component is algebraically summed with the current basic compensation value to obtain the comprehensive compensation amount for the current sampling point. The original pressure data is superimposed with the comprehensive compensation amount to generate the final dynamic compensation output value.
8. The method according to claim 3, characterized in that, When multiple discontinuous stress critical intervals are identified, the corresponding mutation compensation component and the dynamic fusion weight are calculated independently for each stress critical interval. For the original pressure data that simultaneously falls within the coverage range of multiple stress critical intervals, the maximum value of the dynamic fusion weights corresponding to each stress critical interval is extracted as the effective fusion weight. The weighted fusion is performed based on the mutation compensation component corresponding to the effective fusion weight to generate the final dynamic compensation output value.
9. The method according to claim 1, characterized in that, After generating the final dynamic compensation output value, the following is also included: Obtain the final dynamic compensation output value for multiple consecutive sampling periods, and calculate the rate of change of compensation value between adjacent periods; When the rate of change of the compensation value exceeds the preset stability threshold, it is determined that the current state is in dynamic tracking jump state, and the smooth maintenance mechanism is triggered. Under the smoothing mechanism, the final dynamic compensation output value of the current cycle is replaced with the weighted moving average of the output value of the previous cycle and the output value of the current cycle.
10. The method according to claim 4, characterized in that, Before generating the mutation compensation component for each sampling point, the method further includes: Obtain the current operating temperature data of the transmitter, and query the pre-stored stress-temperature coupling coefficient based on the operating temperature data; The support interval width of the bell-shaped decay kernel function is dynamically adjusted using the stress-temperature coupling coefficient, wherein when the working temperature data deviates from the standard temperature range, the support interval width narrows proportionally with the degree of deviation.
