Electronic level intelligent error compensation method based on self-learning of environmental parameters

By analyzing the environmental parameter fluctuation characteristics and image recognition stability of the electronic level, the error compensation factor was determined, which solved the problem of non-real-time error compensation in the existing technology and improved the accuracy and stability of elevation measurement.

CN123135099APending Publication Date: 2026-11-20HUNAN HONGSHANG DETECTION TECH CO LTD +4
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611301678.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-26
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing error compensation methods for electronic levels based on self-learning of environmental parameters are unable to reflect the dynamic changes of environmental factors on measurement errors in real time, leading to a decrease in measurement stability and accuracy.

Method used

By acquiring elevation data, environmental parameters, and coded leveling rod images from an electronic level, the temporal fluctuation characteristics and relative change gradient of environmental parameters are analyzed, the consistency of environmental parameter fluctuations is evaluated, and stability and elevation data changes are identified by combining the leveling rod images. The contribution index of environmental disturbance error is determined, and the elevation data is corrected using an error compensation factor.

Benefits of technology

It enables real-time quantification and accurate compensation of environmental factors for elevation measurement errors, improving the accuracy and stability of measurement results and avoiding misjudgment or overcompensation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123135099A_ABST
    Figure CN123135099A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of height measurement, in particular to an electronic level intelligent error compensation method based on environmental parameter self-learning. The method comprises: obtaining height data, environmental parameters and coded leveling staff image of the electronic level in the working process; evaluating the fluctuation consistency of the environmental parameters in the current period according to the time sequence fluctuation characteristics of the environmental parameters in the current period and the relative change gradient of adjacent environmental parameters in the same kind of environmental parameters, and combining the offset of the center position of the coded leveling staff image at adjacent time in the current period and the fluctuation of the height data to determine the staff image recognition stability; obtaining the environmental disturbance error contribution index by using the change of the height data and the relationship between the height data and the environmental parameters; determining the error compensation factor by comprehensively considering the staff image recognition stability and the environmental disturbance error contribution index, and then correcting the height data. The present application improves the accuracy of the final obtained height data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of elevation measurement technology, and more specifically to an intelligent error compensation method for electronic levels based on self-learning of environmental parameters. Background Technology

[0002] During elevation measurements using electronic levels, environmental factors such as temperature, humidity, atmospheric pressure, and lighting conditions comprehensively affect the stability of the instrument's optical system, the line-of-sight propagation path, and the scale image recognition process, leading to systematic errors in the measurement results. In actual engineering measurement environments, various environmental parameters often exhibit continuous changes, and different environmental factors have different time response characteristics in their impact on line-of-sight stability, air refractive index, and image acquisition quality, resulting in a clearly dynamic mechanism for measurement error formation. However, existing error compensation methods for electronic levels based on environmental parameter self-learning typically establish fixed-structure error mapping models based on historical samples, assuming a relatively stable correlation between environmental parameters and measurement errors during continuous measurements. When the rate of environmental change or the environmental coupling relationship changes, the original model struggles to reflect the dynamic changes in the degree of influence of environmental factors on measurement errors, causing the error compensation results to gradually deviate from the actual measurement error, affecting the measurement stability and compensation accuracy of the electronic level under complex environmental conditions. Summary of the Invention

[0003] To address the measurement error problem inherent in existing methods for elevation measurement using electronic levels, this invention aims to provide an intelligent error compensation method for electronic levels based on self-learning of environmental parameters. The specific technical solution adopted is as follows: In a first aspect, the present invention provides an intelligent error compensation method for electronic levels based on self-learning of environmental parameters, the method comprising the following steps: Acquire elevation data, environmental parameters, and coded leveling rod images during the operation of the electronic level; The consistency of environmental parameter fluctuations within the current time period is evaluated based on the temporal fluctuation characteristics of environmental parameters and the relative change gradient of adjacent environmental parameters within the same type of environmental parameters. The stability of the leveling scale image recognition is determined by combining the offset of the center position of the coded leveling scale image at adjacent times within the current time period, the fluctuation of elevation data, and the aforementioned consistency of fluctuations. By utilizing the changes in elevation data and the relationship between elevation data and environmental parameters, the environmental disturbance error contribution index is obtained; by combining the stability of scale image recognition and the environmental disturbance error contribution index, the error compensation factor is determined. The elevation data at the current moment is corrected using an error compensation factor.

[0004] Preferably, the step of evaluating the consistency of environmental parameter fluctuations within the current time period based on the temporal fluctuation characteristics of environmental parameters and the relative change gradients of adjacent environmental parameters within the same type of environmental parameter includes: Identify the extreme points of candidate environmental parameters within the current time period; obtain the transient change gradient exponent of the candidate environmental parameters based on the amplitude difference and time interval between adjacent extreme points; calculate the first ratio of the candidate environmental parameter at the latter time to the candidate environmental parameter at the former time in two adjacent time periods within the current time period; obtain the fluctuation consistency value of the candidate environmental parameters within the current time period based on the average distribution level of all the first ratios within the current time period and the transient change gradient exponent; the candidate environmental parameters can be any type of environmental parameter. Based on the fluctuation consistency values ​​of all environmental parameters within the current time period, a fluctuation consistency factor is obtained to evaluate the fluctuation consistency of environmental parameters within the current time period.

[0005] Preferably, obtaining the fluctuation consistency factor of the environmental parameters in the current time period based on the fluctuation consistency values ​​of all environmental parameters in the current time period includes: The average value of the fluctuation consistency of all environmental parameters within the current time period is used as the fluctuation consistency factor of the environmental parameters within the current time period.

[0006] Preferably, determining the stability of the leveling scale image recognition by combining the offset of the center position of the coded leveling scale image at adjacent times within the current time period, the fluctuation of the elevation data, and the consistency of the fluctuation includes: Calculate the offset distance between the center coordinates of the coded leveling scale images of adjacent times within the current time period; The degree of line-of-sight propagation stability offset is evaluated based on the difference between adjacent offset distances, the offset distance, and the fluctuation consistency factor. The stability of the scale image recognition is evaluated by combining the differences in elevation data between adjacent times within the current time period and the degree of stability shift in line-of-sight propagation.

[0007] Preferably, the evaluation of the scale image recognition stability by combining the differences in elevation data between adjacent times within the current time period and the degree of line-of-sight propagation stability shift includes: Calculate the average difference in elevation data for all adjacent times within the current time period; The stability of ruler image recognition is obtained based on the average difference and the degree of stability offset of line of sight propagation.

[0008] Preferably, the step of obtaining the environmental disturbance error contribution index by utilizing the changes in elevation data and the relationship between elevation data and environmental parameters includes: Arrange the residuals between the elevation data at each moment in the current time period and the reference elevation datum to obtain the residual data sequence; The Pearson correlation coefficients between the standardized results of the residual data sequence and the standardized results of the environmental parameter data sequence for each class are calculated respectively. The absolute value of the Pearson correlation coefficient is used as the coupling strength of each class of environmental parameters. The environmental parameter data sequence is composed of environmental parameters arranged in chronological order. The environmental disturbance error contribution index is obtained based on the fluctuation characteristics of the residual data sequence and the coupling strength of all types of environmental parameters.

[0009] Preferably, the step of obtaining the environmental disturbance error contribution index based on the fluctuation characteristics of the residual data sequence and the coupling strength of all types of environmental parameters includes: Calculate the standard deviation of the residual data sequence and the average coupling strength of all types of environmental parameters, respectively. By combining the standard deviation and the average coupling strength, the environmental disturbance error contribution index is obtained.

[0010] Preferably, the determination of the error compensation factor based on the comprehensive scale image recognition stability and environmental disturbance error contribution index includes: The positive correlation mapping result of the ratio of the environmental disturbance error contribution index to the stability of the scale image recognition is used as the error compensation factor.

[0011] Preferably, the step of correcting the elevation data at the current moment using an error compensation factor includes: Multiply the error compensation factor by the elevation error magnitude at the current moment to obtain the compensation amount; The corrected elevation data is obtained by subtracting the current elevation data from the compensation amount.

[0012] Preferably, the acquisition of the elevation error magnitude at the current moment includes: performing a moving average calculation on all elevation residuals within a preset sliding window prior to the current moment, and using the calculated average residual value as the elevation error magnitude at the current moment.

[0013] The present invention has at least the following beneficial effects: This invention evaluates the consistency of environmental parameter fluctuations based on the temporal fluctuation characteristics of environmental parameters within the current time period and the relative change gradients of adjacent parameters within the same type of environmental parameter. It can effectively distinguish whether environmental disturbances are random noise or structural gradient changes, thus avoiding misjudgments or overcompensation caused by short-term, non-continuous environmental fluctuations. This provides a stable and reliable preliminary judgment basis for subsequent error assessment. By combining the offset of the center position of the coded leveling scale image at adjacent times and the fluctuation of elevation data, and integrating the consistency of environmental parameter fluctuations, the stability of the leveling scale image recognition is determined. This stability comprehensively reflects environmental disturbances, optical path propagation disturbances, and image recognition... The end-to-end interference propagation effect of quality and final measurement results, compared to methods that only consider a single link, can more comprehensively and realistically reflect the actual working status of the electronic level in the current environment. By utilizing the changes in elevation data and the relationship between elevation data and environmental parameters, an environmental disturbance error contribution index is obtained. This index does not rely on a preset error model, but is based on the measured data in the current time period, accurately quantifying the real-time contribution of environmental factors to elevation measurement errors, solving the problem that the error mapping relationship lags behind environmental changes in traditional methods. Furthermore, an error compensation factor is used to correct the elevation data, improving the accuracy of the final obtained elevation data. Attached Figure Description

[0014] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0015] Figure 1 A flowchart illustrating an intelligent error compensation method for an electronic level based on self-learning of environmental parameters, provided in an embodiment of the present invention. Figure 2 This is a structural block diagram of an intelligent error compensation system for an electronic level based on self-learning of environmental parameters, provided in an embodiment of the present invention. Detailed Implementation

[0016] To further illustrate the technical means and effects adopted by the present invention to achieve the intended purpose, the following detailed description, in conjunction with the accompanying drawings and preferred embodiments, provides a method for intelligent error compensation of electronic level instruments based on self-learning of environmental parameters proposed in accordance with the present invention.

[0017] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0018] The following description, in conjunction with the accompanying drawings, details the specific scheme of the intelligent error compensation method for electronic levels based on self-learning of environmental parameters provided by this invention.

[0019] Example of an intelligent error compensation method for electronic levels based on self-learning of environmental parameters: This embodiment proposes an intelligent error compensation method for electronic levels based on self-learning of environmental parameters, such as... Figure 1 As shown in the figure, the intelligent error compensation method for electronic levels based on self-learning of environmental parameters in this embodiment includes the following steps: Step S1: Acquire elevation data, environmental parameters, and coded leveling rod images of the electronic level during its operation.

[0020] First, before the electronic level begins elevation measurement, the instrument is initialized by acquiring its current internal operating parameters, including internal temperature, tilt compensator status, optical system status, and initial line-of-sight stability parameters. Then, during operation, elevation data is acquired in real time; the optical imaging module of the electronic level continuously images the coded leveling rod, obtaining the coded leveling rod image; simultaneously, the corresponding measurement timestamp and station number are recorded. Meanwhile, during the operation of the electronic level, multiple environmental parameters are collected in real time through an environmental monitoring module installed inside or outside the electronic level. These environmental parameters include ambient temperature, relative humidity, atmospheric pressure, and ambient light intensity, and are recorded synchronously with the corresponding sampling time. The acquisition frequency of elevation data, environmental parameters, and coded leveling rod images is once per second, which can be adjusted by the implementer according to specific circumstances. The acquisition sequence of elevation data, environmental parameters, and coded leveling rod images is aligned, meaning that for any given sampling time, one set of elevation data, all types of environmental parameters, and one coded leveling rod image are acquired.

[0021] Step S2: Evaluate the consistency of environmental parameter fluctuations in the current time period based on the temporal fluctuation characteristics of environmental parameters and the relative change gradient of adjacent environmental parameters in the same type of environmental parameters; determine the stability of scale image recognition by combining the offset of the center position of the coded leveling scale image at adjacent times in the current time period, the fluctuation of elevation data, and the aforementioned consistency of fluctuations.

[0022] In elevation measurements using electronic levels, changes in environmental parameters are a significant source of measurement error. However, not all fluctuations in environmental parameters have the same significant impact on the measurement results. Specifically, when environmental parameters exhibit random, disordered, and rapid oscillations, their impact on the optical system and line of sight often manifests as short-term noise, which can be effectively suppressed by the electronic level's internal digital filtering or image processing algorithms. Conversely, when environmental parameters exhibit a trend-like, stable gradient change, and a consistent fluctuation structure across multiple parameters, this consistent environmental disturbance is more likely to create systematic deviations in air refractive index, atmospheric turbulence structure, and the optical imaging link, thus producing continuous and non-negligible cumulative errors in the elevation measurement results.

[0023] Therefore, relying solely on the instantaneous variation amplitude or simple statistical characteristics of environmental parameters is insufficient to accurately assess their true contribution to measurement errors. To address this, this embodiment will quantitatively evaluate the consistency of environmental parameter fluctuations. Specifically, by analyzing the temporal fluctuation characteristics of environmental parameters within the current time period and the relative change gradients between adjacent moments for similar environmental parameters, it will determine whether the changes in environmental parameters exhibit a structured co-evolutionary pattern. This consistency index can effectively distinguish between random noise components in environmental disturbances and structural fluctuation components with systematic error contribution capabilities. This provides a crucial basis for accurately evaluating the stability of scale image recognition and the environmental disturbance error contribution index, thereby avoiding miscompensation or overcompensation problems caused by random environmental fluctuations and improving the self-learning and environmental adaptation capabilities of the error compensation model.

[0024] The following explanation uses one type of environmental parameter as an example. Other types of environmental parameters can be processed using the method provided in this embodiment.

[0025] Specifically, any type of environmental parameter is recorded as a candidate environmental parameter. The set consisting of all historical moments with a time interval less than or equal to a preset duration and the current moment is defined as the current time period, which can be 3 minutes.

[0026] Following the temporal sequence, candidate environmental parameters for all times within the current time period are arranged to obtain a candidate environmental parameter sequence. Curve fitting is then performed on the data in this sequence to obtain a fitted curve. The x-axis of the fitted curve represents the sampling time, and the y-axis represents the candidate environmental parameter data. Curve fitting is a current technique and will not be elaborated further here. Extreme points on the fitted curve are extracted as the extreme points of the candidate environmental parameters within the current time period; the method for obtaining these extreme points is also a current technique and will not be elaborated further here. Based on the amplitude differences and time intervals between adjacent extreme points, the transient change gradient exponent of the candidate environmental parameters is obtained.

[0027] As a specific implementation method, a specific formula for calculating the transient gradient exponent is given. The transient gradient exponent can be expressed as: in, The gradient exponent represents the transient change of candidate environmental parameters. This indicates the number of extreme points of candidate environmental parameters within the current time period. This represents the magnitude difference between the i-th extreme point and the (i+1)-th extreme point of the candidate environmental parameter within the current time period. This represents the time interval between the sampling time corresponding to the i-th extreme point and the sampling time corresponding to the (i+1)-th extreme point of the candidate environmental parameters within the current time period, where e represents the natural constant. This indicates the duration adjustment parameter.

[0028] The duration adjustment parameter is introduced into the formula for calculating the transient gradient exponent in order to prevent the time interval from decaying exponentially and causing reasonable environmental disturbances of slightly lower frequency to be directly nullified. In this embodiment, the duration adjustment parameter is set to 20, and its dimension is the same as that of the time interval, which is seconds.

[0029] Each type of environmental parameter collected within the current time period is normalized to eliminate the influence of dimensions and value range. In this embodiment, maximum and minimum values ​​are used to normalize each type of environmental parameter. The maximum and minimum values ​​used are the maximum and minimum values ​​of the corresponding type of environmental parameter within the current time period, respectively. The maximum and minimum value normalization method is existing technology and will not be elaborated further here. The amplitude difference between two extreme points is the absolute value of the difference between the normalized values ​​of the candidate environmental parameters at these two extreme points. The amplitude difference between the i-th extreme point and the (i+1)-th extreme point of the candidate environmental parameter within the current time period is used to characterize the intensity of an environmental disturbance; the time interval between the sampling time corresponding to the i-th extreme point and the sampling time corresponding to the (i+1)-th extreme point of the candidate environmental parameter within the current time period is used to characterize the time scale of the environmental disturbance. This value is used to characterize the intensity of environmental disturbances per unit time. The larger the value, the more drastic the environmental change. The average level used to characterize the changes in candidate environmental parameters is the one with the highest value, which indicates a higher gradient exponent for the transient changes in the candidate environmental parameters.

[0030] Specifically, when the number of extreme points is less than or equal to 1, the transient gradient exponent is set to 0.

[0031] Considering that in some cases, although environmental parameters may exhibit large transient fluctuations on short timescales, if these fluctuations do not show a sustained trend on longer timescales, their impact on the measurement system may only be a temporary disturbance and will not result in significant systematic measurement errors. Therefore, it is necessary to evaluate the consistency of multi-scale fluctuations of environmental parameters over a period of time.

[0032] Specifically, the ratio of the candidate environmental parameter at the next adjacent time step to the candidate environmental parameter at the previous time step within the current time period is calculated, and this ratio is recorded as the first ratio. In particular, if the denominator of the formula for calculating the first ratio is 0, then the corresponding first ratio is directly set to 1. Based on the average distribution level of all first ratios within the current time period and the transient change gradient exponent, the fluctuation consistency value of the candidate environmental parameters within the current time period is obtained.

[0033] Based on the consistent fluctuation values ​​of all environmental parameters within the current time period, obtain the consistency fluctuation factor of the environmental parameters within the current time period.

[0034] As a specific implementation method, a specific formula for calculating the volatility uniformity factor is given. The volatility uniformity factor can be expressed as: in, This represents the consistency factor of environmental parameter fluctuations within the current time period. Indicates the number of types of environmental parameters. Let m represent the transient change gradient exponent of the j-th environmental parameter, and m represent the number of sampling times within the current time period. Indicates the number of times within the current time period The j-th type of environmental parameter at each sampling time. Indicates the number of times within the current time period The j-th type of environmental parameter at each sampling time.

[0035] The first ratio is used to characterize the local scale growth rate of disturbance propagation. The more stable this ratio is, the more stable the structural evolution pattern of the environmental disturbance is. This represents the average of all first ratios within the current time period. It is used to reflect the average distribution level of all first ratios within the current time period. Used to characterize the consistent value of the fluctuation of the j-th type of environmental parameter within the current time period. The average value of the fluctuation consistency of all types of environmental parameters within the current time period is used as the fluctuation consistency factor of environmental parameters within the current time period.

[0036] Considering that when performing elevation measurements with an electronic level, changes in environmental parameters can affect the stability of the instrument's line of sight propagation and the process of scale image recognition through changes in air refractive index, optical path propagation stability, and imaging clarity.

[0037] Furthermore, during the acquisition of the scale image, the line of sight propagation path is affected by changes in air refractive index or slight airflow disturbances. Therefore, the position of the acquired scale image in the image plane may drift slightly, and this offset needs to be measured.

[0038] Specifically, the Euclidean distance between the center coordinates of the coded leveling scale images at adjacent times within the current time period is calculated, and this Euclidean distance is used as the offset distance between the center coordinates of the coded leveling scale images at adjacent times within the current time period. The degree of line-of-sight propagation stability offset is evaluated based on the difference between adjacent offset distances, the offset distance itself, and the fluctuation consistency factor.

[0039] As a specific implementation method, a detailed formula for calculating the degree of stability deviation in line-of-sight propagation is provided. The degree of stability deviation in line-of-sight propagation can be expressed as: in, Indicates the degree of stable deviation in line-of-sight propagation. This represents the consistency factor of environmental parameter fluctuations within the current time period. Indicates the number of times within the current time period The coordinates of the center position of the coded leveling rod image at the sampling time and the first sampling time are related to the second sampling time. The offset distance between the center coordinates of the coded leveling scale image at each sampling time. Indicates the number of times within the current time period The coordinates of the center position of the coded leveling rod image at the sampling time and the first sampling time are related to the second sampling time. The offset distance between the center coordinates of the coded leveling scale image at each sampling time. This indicates the absolute value sign.

[0040] Offset distance is used to characterize the amount of instantaneous image plane drift caused by the line of sight during air propagation; Characterizes the degree of fluctuation in the rate of change of image plane drift; This characterizes the continuous change in optical path offset under the premise of line-of-sight offset. If only offset exists but the change is stable, the impact is relatively small. The fluctuation consistency factor of environmental parameters within the current time period serves as a modulation factor for the influence of environmental disturbances on optical path offset. The larger the value, the more cooperative the structure of the environmental disturbances, and the easier it is to form an air refractive index gradient field. The greater the degree of line-of-sight propagation stability offset, the worse the line-of-sight propagation stability of the electronic level within the current time period, and the more significant the impact of environmental disturbances on the optical path.

[0041] It should be noted that: when The above calculation formula is used to calculate the degree of stability deviation in line-of-sight propagation; when In this case, the above calculation formula is no longer used to calculate the degree of stable deviation of line of sight propagation. Instead, the degree of stable deviation of line of sight propagation is directly set to 0.

[0042] The degree of stability offset in line-of-sight propagation describes the physical response of environmental disturbances in the optical propagation process. However, optical path offset does not necessarily lead to measurement error. The optical path may be offset, but the image recognition algorithm can still accurately capture the scale position, which may be offset by an automatic compensator or image plane correction algorithm.

[0043] Based on this, the stability of the scale image recognition is evaluated by combining the differences in elevation data between adjacent times within the current time period and the degree of stability shift in line-of-sight propagation.

[0044] As a specific implementation method, the stability of scale image recognition can be determined as follows: Calculate the absolute value of the difference between elevation data at adjacent times within the current time period, and use this absolute value as the difference in elevation data at adjacent times; calculate the average difference in elevation data at all adjacent times within the current time period; calculate the product of this average difference and the degree of line-of-sight propagation stability offset, and divide this product by a preset reference dimensional constant to achieve dimensionlessness. The value of the exponential function with the natural constant as the base and the negative exponent of this dimensionless result is used as the stability of scale image recognition. When the line-of-sight offset is large, fluctuations in elevation data are more likely to have a real impact on the measurement results. The greater the stability of scale image recognition, the smaller the environmental disturbance, the more stable the line of sight, and the smaller the change in elevation data; that is, the higher the stability of scale image recognition during the measurement process. The preset reference dimensional constant is set to 0.5, and the dimension of the preset reference dimensional constant is consistent with the dimension of the elevation data. For example, if the dimension of the elevation data is millimeters, then the dimension of the preset reference dimensional constant is also millimeters.

[0045] Step S3: Utilize the changes in elevation data and the relationship between elevation data and environmental parameters to obtain the environmental disturbance error contribution index; combine the stability of scale image recognition and the environmental disturbance error contribution index to determine the error compensation factor.

[0046] In this embodiment, the stability of the scale image recognition is obtained in step S2. Although the stability of the scale image recognition reflects the intensity of the disturbance in the recognition process, it cannot directly quantify the magnitude and development trend of the elevation measurement deviation. In order to establish a self-learning error compensation model, it is necessary to determine the dynamic contribution of each environmental factor to the measurement error in order to achieve targeted compensation. Next, it is necessary to further establish the relationship between environmental disturbance and measurement error, and provide dynamic weights for subsequent self-learning error compensation. That is, starting from the complete link of error formation, the dynamic law of error changing with the environment is revealed, providing a basis for real-time adjustment of the compensation model.

[0047] Specifically, a static calibration phase is set up before the formal measurement begins. During the relatively stable environment of 1-2 minutes, the average value of multiple elevation measurements is used as the reference elevation benchmark for the station.

[0048] The residuals between the elevation data at each moment within the current time period and the reference elevation datum are calculated, and these residuals are arranged in chronological order to obtain a residual data sequence. For each type of environmental parameter at all moments within the current time period, the data sequence for each type of environmental parameter is arranged in chronological order, resulting in a data sequence for each type of environmental parameter. Standardization is then performed on each data point in both the residual data sequence and the environmental parameter data sequence to obtain the standardized results for both types of environmental parameter data sequences. The data standardization process is a prior art and will not be elaborated upon here.

[0049] The Pearson correlation coefficients between the standardized results of the residual data sequences and the standardized results of the environmental parameter data sequences are calculated separately. The absolute value of the Pearson correlation coefficient is taken as the coupling strength of each type of environmental parameter. Based on the fluctuation characteristics of the residual data sequences and the coupling strength of all types of environmental parameters, the environmental disturbance error contribution index is obtained.

[0050] As a specific implementation method, the environmental disturbance error contribution index can be determined as follows: Specifically, calculate the standard deviation of all data in the residual data sequence. This standard deviation characterizes the fluctuation characteristics of the residual data sequence. The larger the value, the more drastic the data fluctuation in the residual data sequence, indicating that environmental disturbances have caused significant error changes. Calculate the average value of all types of environmental parameters. This average value represents the average coupling strength of all types of environmental parameters. The larger the value, the stronger the contribution of environmental parameters to the measurement error. The product of this standard deviation and the average coupling strength is used as the environmental disturbance error contribution index. The environmental disturbance error contribution index is determined by combining the dynamic evolution of the residuals with the environmental coupling strength. When the residuals change rapidly and the environmental coupling strength is high, the larger the product, indicating that environmental disturbances significantly affect the measurement error, that is, the larger the environmental disturbance error contribution index during the measurement process.

[0051] Since the environmental disturbance error contribution index can quantify the dynamic contribution of environmental factors to measurement error, and the scale image recognition stability can quantify the ability of the optical system and image recognition to suppress error, it is necessary to integrate the information from these two dimensions to determine a comprehensive index that reflects the evolution trend of environment-driven measurement error. This index can quantify the overall impact of environmental factors on elevation measurement error and its dynamic change characteristics in real time, providing comprehensive and accurate input for the intelligent error compensation model of the electronic level, thereby improving compensation accuracy and measurement stability.

[0052] Specifically, the ratio of the environmental disturbance error contribution index to the stability of the scale image recognition is calculated, and the normalized result of this ratio is used as the error compensation factor. The normalization process uses a maximum-minimum value normalization method, with the maximum and minimum values ​​obtained based on historical data statistics. Specifically, if the ratio calculated based on the current time period's data is less than the minimum value obtained from historical data statistics, the error compensation factor is set to 0; if the ratio calculated based on the current time period's data is greater than the maximum value obtained from historical data statistics, the error compensation factor is set to 1. A larger environmental disturbance error contribution index and a smaller scale image recognition stability indicate a more significant error contribution, and thus a larger error compensation factor.

[0053] Step S4: Correct the elevation data at the current moment using the error compensation factor.

[0054] In this embodiment, the error compensation factor is determined in step S3. Next, the collected elevation data will be compensated using the error compensation factor to obtain accurate elevation data measurement results.

[0055] Specifically, a moving average is calculated for all elevation residuals within a preset sliding window prior to the current moment. The average value of the calculated residuals is used as the elevation error magnitude at the current moment, where the elevation residual is the residual between the elevation data and the reference elevation datum. The preset sliding window can be half a minute. The error compensation factor is multiplied by the elevation error magnitude at the current moment to obtain the compensation amount. The difference between the current elevation data and the compensation amount is used as the corrected elevation data, which can be used for subsequent engineering surveys or as the basis for calculating cumulative elevation differences.

[0056] Thus, by using the above method, intelligent compensation for measurement errors of the electronic level has been achieved.

[0057] This embodiment evaluates the consistency of environmental parameter fluctuations based on the temporal fluctuation characteristics of environmental parameters within the current time period and the relative change gradient of adjacent parameters within the same type of environmental parameter. This effectively distinguishes between random noise and structural gradient changes in environmental disturbances, thus avoiding misjudgments or overcompensation caused by short-term, non-continuous environmental fluctuations. It provides a stable and reliable preliminary judgment basis for subsequent error assessment. By combining the offset of the center position of the coded leveling scale image at adjacent times with the fluctuation of elevation data, and integrating the consistency of environmental parameter fluctuations, the stability of the leveling scale image recognition is determined. This stability comprehensively reflects environmental disturbances, optical path propagation disturbances, and image recognition... The end-to-end interference propagation effect of quality and final measurement results, compared to methods that only consider a single link, can more comprehensively and realistically reflect the actual working status of the electronic level in the current environment. By utilizing the changes in elevation data and the relationship between elevation data and environmental parameters, an environmental disturbance error contribution index is obtained. This index does not rely on a preset error model, but is based on the measured data in the current time period, accurately quantifying the real-time contribution of environmental factors to elevation measurement errors, solving the problem that the error mapping relationship lags behind environmental changes in traditional methods. Furthermore, an error compensation factor is used to correct the elevation data, improving the accuracy of the final obtained elevation data.

[0058] Example of an intelligent error compensation system for electronic levels based on self-learning of environmental parameters: See Figure 2 The diagram illustrates a structural block diagram of an intelligent error compensation system for an electronic level based on self-learning of environmental parameters, according to an embodiment of the present invention. The system may include an acquisition module, an evaluation module, a determination module, and a correction module.

[0059] The acquisition module is used to acquire elevation data, environmental parameters, and coded leveling rod images of the electronic level during its operation. The evaluation module is used to evaluate the consistency of environmental parameter fluctuations within the current time period based on the temporal fluctuation characteristics of environmental parameters and the relative change gradient of adjacent environmental parameters of the same type; and to determine the stability of the leveling scale image recognition by combining the offset of the center position of the coded leveling scale image at adjacent times within the current time period, the fluctuation of elevation data, and the aforementioned consistency of fluctuations. The determination module is used to obtain the environmental disturbance error contribution index by utilizing the changes in elevation data and the relationship between elevation data and environmental parameters; and to determine the error compensation factor by combining the stability of scale image recognition and the environmental disturbance error contribution index. The correction module is used to correct the elevation data at the current moment using an error compensation factor.

[0060] It should be understood that Figure 2 The structural block diagram and modules of the intelligent error compensation system for electronic levels based on self-learning of environmental parameters shown can be implemented in various ways. For example, in some embodiments, the system and its modules can be implemented by hardware, software, or a combination of both. The hardware portion can be implemented using dedicated logic; the software portion can be stored in memory and executed by appropriate instructions, such as a microprocessor or dedicated hardware. Those skilled in the art will understand that the above-described methods and systems can be implemented using computer-executable instructions and / or included in processor control code, for example, on a carrier medium such as a disk, CD, or DVD-ROM, a programmable memory such as read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The systems and modules of this specification can be implemented not only by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field-programmable gate arrays, programmable logic devices, etc., but also by software, for example, executed by various types of processors, or by a combination of the above-described hardware circuits and software (e.g., firmware).

[0061] For more details about the above modules, please refer to other parts of this manual; they will not be repeated here.

[0062] It should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for intelligent error compensation of electronic levels based on self-learning of environmental parameters, characterized in that, The method includes the following steps: Acquire elevation data, environmental parameters, and coded leveling rod images during the operation of the electronic level; The consistency of environmental parameter fluctuations within the current time period is evaluated based on the temporal fluctuation characteristics of environmental parameters and the relative change gradient of adjacent environmental parameters within the same type of environmental parameters. The stability of the leveling scale image recognition is determined by combining the offset of the center position of the coded leveling scale image at adjacent times within the current time period, the fluctuation of elevation data, and the aforementioned consistency of fluctuations. By utilizing the changes in elevation data and the relationship between elevation data and environmental parameters, the environmental disturbance error contribution index is obtained; by combining the stability of scale image recognition and the environmental disturbance error contribution index, the error compensation factor is determined. The elevation data at the current moment is corrected using an error compensation factor.

2. The intelligent error compensation method for electronic levels based on self-learning of environmental parameters according to claim 1, characterized in that, The evaluation of the consistency of environmental parameter fluctuations within the current time period, based on the temporal fluctuation characteristics of environmental parameters and the relative change gradients of adjacent environmental parameters within the same category, includes: Identify the extreme points of candidate environmental parameters within the current time period; obtain the transient change gradient exponent of the candidate environmental parameters based on the amplitude difference and time interval between adjacent extreme points; calculate the first ratio of the candidate environmental parameter at the latter time to the candidate environmental parameter at the former time in two adjacent time periods within the current time period; obtain the fluctuation consistency value of the candidate environmental parameters within the current time period based on the average distribution level of all the first ratios within the current time period and the transient change gradient exponent; the candidate environmental parameters can be any type of environmental parameter. Based on the fluctuation consistency values ​​of all environmental parameters within the current time period, a fluctuation consistency factor is obtained to evaluate the fluctuation consistency of environmental parameters within the current time period.

3. The intelligent error compensation method for electronic levels based on self-learning of environmental parameters according to claim 2, characterized in that, The step of obtaining the fluctuation consistency factor of environmental parameters in the current time period based on the fluctuation consistency values ​​of all environmental parameters in the current time period includes: The average value of the fluctuation consistency of all environmental parameters within the current time period is used as the fluctuation consistency factor of the environmental parameters within the current time period.

4. The intelligent error compensation method for electronic levels based on self-learning of environmental parameters according to claim 3, characterized in that, The determination of the stability of the leveling scale image recognition, by combining the offset of the center position of the coded leveling scale image at adjacent times within the current time period, the fluctuation of the elevation data, and the consistency of the fluctuation, includes: Calculate the offset distance between the center coordinates of the coded leveling scale images of adjacent times within the current time period; The degree of line-of-sight propagation stability offset is evaluated based on the difference between adjacent offset distances, the offset distance, and the fluctuation consistency factor. The stability of the scale image recognition is evaluated by combining the differences in elevation data between adjacent times within the current time period and the degree of stability shift in line-of-sight propagation.

5. The intelligent error compensation method for electronic levels based on self-learning of environmental parameters according to claim 4, characterized in that, The evaluation of the scale image recognition stability by combining the differences in elevation data between adjacent times within the current time period and the degree of line-of-sight propagation stability offset includes: Calculate the average difference in elevation data for all adjacent times within the current time period; The stability of ruler image recognition is obtained based on the average difference and the degree of stability offset of line of sight propagation.

6. The intelligent error compensation method for electronic levels based on self-learning of environmental parameters according to claim 1, characterized in that, The environmental disturbance error contribution index is obtained by utilizing changes in elevation data and the relationship between elevation data and environmental parameters, including: Arrange the residuals between the elevation data at each moment in the current time period and the reference elevation datum to obtain the residual data sequence; The Pearson correlation coefficients between the standardized results of the residual data sequence and the standardized results of the environmental parameter data sequence for each class are calculated respectively. The absolute value of the Pearson correlation coefficient is used as the coupling strength of each class of environmental parameters. The environmental parameter data sequence is composed of environmental parameters arranged in chronological order. The environmental disturbance error contribution index is obtained based on the fluctuation characteristics of the residual data sequence and the coupling strength of all types of environmental parameters.

7. The intelligent error compensation method for electronic levels based on self-learning of environmental parameters according to claim 6, characterized in that, The environmental disturbance error contribution index is obtained based on the fluctuation characteristics of the residual data sequence and the coupling strength of all types of environmental parameters, including: Calculate the standard deviation of the residual data sequence and the average coupling strength of all types of environmental parameters, respectively. By combining the standard deviation and the average coupling strength, the environmental disturbance error contribution index is obtained.

8. The intelligent error compensation method for electronic levels based on self-learning of environmental parameters according to claim 1, characterized in that, The combined scale image recognition stability and environmental disturbance error contribution index are used to determine the error compensation factor, including: The positive correlation mapping result of the ratio of the environmental disturbance error contribution index to the stability of the scale image recognition is used as the error compensation factor.

9. The intelligent error compensation method for electronic levels based on self-learning of environmental parameters according to claim 1, characterized in that, The method of correcting the elevation data at the current moment using an error compensation factor includes: Multiply the error compensation factor by the elevation error magnitude at the current moment to obtain the compensation amount; The corrected elevation data is obtained by subtracting the current elevation data from the compensation amount.

10. The intelligent error compensation method for electronic levels based on self-learning of environmental parameters according to claim 9, characterized in that, The acquisition of the elevation error magnitude at the current moment includes: performing a moving average calculation on all elevation residuals within a preset sliding window before the current moment, and using the calculated average residual value as the elevation error magnitude at the current moment.