Current measurement method and device, computer equipment, storage medium and product
By employing a three-range redundancy design and a self-calibration strategy, and utilizing the characteristics of power grid load fluctuations for current measurement, the stability problem of current sensors over a wide dynamic range is solved, achieving long-term high-precision and low-cost current measurement, suitable for scenarios such as power distribution networks and factory power monitoring.
Patent Information
- Application Number
- CN202511580658.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-31
- Publication Date
- 2026-01-30
AI Technical Summary
The long-term stability of existing current sensors over a wide dynamic range is affected by factors such as ambient temperature, material aging, zero drift, mechanical stress, and external magnetic field interference, resulting in low accuracy of current measurement and failing to meet the requirements of modern power grids for real-time, high-precision, and long-term online monitoring.
It adopts a three-range redundancy design, a range-dependent self-calibration strategy and a residual fault-tolerant mechanism. It realizes current measurement through the multi-range overlap area, utilizes the natural fluctuation characteristics of the power grid load for automatic drift compensation, avoids external reference signal injection, and combines recursive least squares algorithm for parameter update.
It achieves real-time performance while expanding the dynamic range and improving the reliability of parameter identification, reducing the cost of manual calibration, and is suitable for scenarios such as power distribution networks, factory power monitoring, and energy efficiency analysis.
Smart Images

Figure CN121431925A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electrical measurement, in particular to a current measurement method and device, computer equipment, storage medium and product. BACKGROUND
[0002] Current measurement is the core basis for safe operation of power systems, state monitoring of distribution networks, industrial process control, and energy efficiency management. With the rapid development of new energy grid connection, smart grid and industrial automation, the operating conditions of power grids are becoming more dynamic and complex, and the range of current signals spans a wider range: from small currents under equipment no-load and light load to high-amplitude currents under unit startup, short circuit or fault conditions. This puts forward comprehensive requirements for current sensors, such as wide dynamic range, high precision, long-term stability, etc.
[0003] In the prior art, the long-term stability of the current sensor is affected by many factors such as environmental temperature, material aging, zero drift, mechanical stress and external magnetic field interference, resulting in low accuracy of current measurement, and the current measurement of the to-be-measured device cannot be effectively performed. SUMMARY
[0004] Therefore, it is necessary to provide a current measurement method, device, computer equipment, storage medium and product capable of accurately measuring the current of a to-be-measured device to solve the above technical problems.
[0005] In a first aspect, the present application provides a current measurement method. The method comprises:
[0006] measuring the output current of the to-be-measured device based on at least one range channel to obtain initial current values of each range channel corresponding to the current time;
[0007] fusing each initial current value to obtain a comprehensive current value at the current time;
[0008] correcting the current of each initial current value according to the comprehensive current value to obtain a target current output by the to-be-measured device.
[0009] In one embodiment, the current correction of each initial current value according to the comprehensive current value to obtain the target current output by the to-be-measured device comprises:
[0010] correcting the variable parameters of each range channel according to the comprehensive current value and each initial current value to obtain corrected variable parameters corresponding to each range channel;
[0011] determining the target current output by the to-be-measured device according to the corrected variable parameters corresponding to each range channel.
[0012] In one embodiment, the step of correcting the variable parameters of each range channel based on the comprehensive current value and each of the initial current values to obtain the corrected variable parameters corresponding to each range channel includes:
[0013] Determine the current region type of the device under test;
[0014] Based on the current region type, determine the variable parameters for each range channel;
[0015] The variable parameters of each range channel are corrected based on the comprehensive current value and each initial current value to obtain the corrected variable parameters corresponding to each range channel.
[0016] In one embodiment, the process of fusing the initial current values to obtain the composite current value at the current moment includes:
[0017] Determine the influence weight corresponding to each of the aforementioned range channels;
[0018] The initial current values are weighted and fused according to the influence weights corresponding to each range channel to obtain the comprehensive current value at the current moment.
[0019] In one embodiment, the step of weighting and fusing the initial current values according to the influence weights corresponding to each of the range channels to obtain the comprehensive current value at the current moment includes:
[0020] The initial current values of the corresponding range channels are weighted according to the influence weights of each range channel to obtain the intermediate values of each range channel.
[0021] The sum of the intermediate values corresponding to each of the aforementioned range channels is taken as the comprehensive current value at the current moment.
[0022] In one embodiment, determining the influence weight corresponding to each of the range channels includes:
[0023] Obtain the state parameters corresponding to each of the aforementioned range channels; wherein, the state parameters include at least one of signal-to-noise ratio, range percentage, and residual confidence level;
[0024] Based on the state parameters corresponding to each range channel, the influence weight corresponding to each range channel is determined.
[0025] Secondly, this application also provides a current measuring device. The device includes:
[0026] The measurement module is used to measure the output current of the device under test based on at least one range channel, and to obtain the initial current value of each range channel at the current moment.
[0027] The fusion module is used to fuse the initial current values to obtain the comprehensive current value at the current moment;
[0028] The calibration module is used to perform current calibration on each of the initial current values based on the comprehensive current value to obtain the target current output by the device under test.
[0029] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0030] The output current of the device under test is measured based on at least one range channel to obtain the initial current value of each range channel at the current moment.
[0031] The initial current values are combined to obtain the comprehensive current value at the current moment;
[0032] Based on the comprehensive current value, the initial current values are corrected to obtain the target current output by the device under test.
[0033] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0034] The output current of the device under test is measured based on at least one range channel to obtain the initial current value of each range channel at the current moment.
[0035] The initial current values are combined to obtain the comprehensive current value at the current moment;
[0036] Based on the comprehensive current value, the initial current values are corrected to obtain the target current output by the device under test.
[0037] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0038] The output current of the device under test is measured based on at least one range channel to obtain the initial current value of each range channel at the current moment.
[0039] The initial current values are combined to obtain the comprehensive current value at the current moment;
[0040] Based on the comprehensive current value, the initial current values are corrected to obtain the target current output by the device under test.
[0041] The aforementioned current measurement method, device, computer equipment, storage medium, and product measure the output current of the device under test (DUT) based on at least one range channel, obtaining the initial current value corresponding to each range channel at the current moment. These initial current values are then fused to obtain the comprehensive current value at the current moment. Furthermore, current correction is applied to each initial current value based on the comprehensive current value to obtain the target output current of the DUT. This achieves effective analysis of the DUT's output current using the initial current values corresponding to each range channel at the current moment, fully utilizing the natural fluctuation characteristics of the power grid load, avoiding the complexity of external reference signal injection, and realizing long-term online, automated drift compensation. Through the redundant design of the three ranges and joint correction of the overlapping area, the dynamic range is widened, and the reliability of parameter identification is improved. The range-dependent self-calibration strategy and residual fault-tolerant mechanism effectively suppress interference from abnormal channels, enhancing system robustness. Compared with existing technologies, this application can achieve long-term high-precision measurement while ensuring real-time performance, reducing manual calibration costs, and has broad application prospects, suitable for various scenarios such as power distribution networks, factory power monitoring, and energy efficiency analysis and protection systems. Attached Figure Description
[0042] Figure 1 An application environment diagram of a current measurement method provided in this application embodiment;
[0043] Figure 2 A flowchart illustrating the first current measurement method provided in this application embodiment;
[0044] Figure 3 A schematic flowchart illustrating the second current measurement method provided in this application embodiment;
[0045] Figure 4 A flowchart illustrating the third current measurement method provided in this application embodiment;
[0046] Figure 5 A flowchart illustrating the fourth current measurement method provided in this application embodiment;
[0047] Figure 6 This is a schematic diagram of the current sensor range overlap design and correction strategy provided in the embodiments of this application;
[0048] Figure 7 This is a schematic diagram of the signal fusion and dynamic weight adjustment process provided in an embodiment of this application;
[0049] Figure 8 This is a schematic diagram of the daily load excitation signal of the power grid provided in an embodiment of this application;
[0050] Figure 9 A structural block diagram of a current measuring device provided in an embodiment of this application;
[0051] Figure 10 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0052] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0053] Current measurement is a core foundation for the safe operation of power systems, distribution network condition monitoring, industrial process control, and energy efficiency management. With the rapid development of new energy grid integration, smart grids, and industrial automation, power grid operating conditions are becoming increasingly dynamic and complex, and the measurement range of current signals is widening: encompassing both minute currents under no-load and light-load conditions, as well as high-amplitude currents during generator startup, short circuits, or fault conditions. This places comprehensive demands on current sensors, including wide dynamic range, high accuracy, and long-term stability.
[0054] Common current sensors in existing technologies include current transformers, Rogowski coils, Hall effect sensors, magnetoresistive and fluxmeter sensors, etc. Closed-loop Hall sensors can achieve high accuracy and good temperature drift performance in small to medium ranges, but their power consumption and cost are high, making them difficult to implement in high-current applications. Current transformers and Rogowski coil solutions can cover large currents and wide ranges, but their resolution is insufficient in the low-current region and they are susceptible to zero-point drift and temperature effects. To extend the dynamic range, some studies have adopted multi-range switching or dual-channel comparison methods, but jumps and instantaneous errors are prone to occur at the switching boundaries. When dual-channel comparison only has two data points, it is difficult to reliably distinguish between changes in the actual signal and drift in a particular channel when the current changes slowly or common-mode disturbances are present.
[0055] Furthermore, the long-term stability of current sensors is affected by multiple factors, including ambient temperature, material aging, zero-point drift, mechanical stress, and external magnetic field interference. Traditional methods rely on periodic manual calibration or external reference signal injection to maintain accuracy, but these methods are costly, require downtime for maintenance, and interfere with normal operation, failing to meet the requirements of modern power grids for real-time, long-term online monitoring. In actual power systems, current fluctuates periodically with the load and is affected by operating condition changes. This inherent load variation provides conditions for long-term online calibration. The natural variation of the current itself can provide the necessary excitation for parameter identification, thereby avoiding the problem of difficulty in distinguishing channel gain and bias at a single operating point.
[0056] Therefore, in order to effectively utilize the natural fluctuation characteristics of grid current and achieve a reliable self-calibration current sensor measurement method in the multi-range overlap region, this application introduces a three-range redundant design, a range-dependent differentiated self-calibration strategy, and a residual-based fault-tolerant mechanism, which can achieve long-term online drift compensation and high-precision current measurement without relying on external references.
[0057] The current measurement method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed in the cloud or on other network servers. The output current of the device under test is measured based on at least one range channel to obtain the initial current value corresponding to each range channel at the current moment. These initial current values are then fused to obtain the comprehensive current value at the current moment. Furthermore, current correction is performed on each initial current value based on the comprehensive current value to obtain the target output current of the device under test. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server or a server cluster composed of multiple servers.
[0058] In one embodiment, such as Figure 2 As shown, a current measurement method is provided, which can be applied to... Figure 1 Taking terminal 102 as an example, the explanation includes the following steps:
[0059] S201, measure the output current of the device under test based on at least one range channel to obtain the initial current value of each range channel at the current moment.
[0060] It should be noted that the range channel includes three current measurement range channels: low range, medium range, and high range. Therefore, when measuring the output current of the device under test based on at least one range channel, the output current of the device under test can be detected simultaneously based on the low range, medium range, and high range channels at the same time.
[0061] To further explain, in order to ensure the accuracy of the initial current value determination, when detecting the output current of the device under test, it is also necessary to normalize the detection results to obtain the initial measurement signal corresponding to each range channel at the current moment.
[0062] The normalization formula is shown below:
[0063] ;
[0064] in, This represents the measurement results for each range channel at the current moment. This represents the rated full-scale value for each range channel; The initial measurement signal corresponding to each range channel at the current time; i represents different range channels, i=L, M, H; L is the low range channel, M is the medium range channel, and H is the high range channel.
[0065] In one embodiment of this application, to further improve the accuracy of the initial current value corresponding to each range channel at the current moment, the factory calibration coefficient K can be used. i With temperature compensation item The initial current value is obtained by estimating the current of the initial measurement signal corresponding to each range channel at the current time.
[0066] The formula for calculating the current estimate is shown below:
[0067] ;
[0068] in, This refers to the initial current value of each range channel at the current moment.
[0069] S202, merge the initial current values to obtain the comprehensive current value at the current moment.
[0070] In one embodiment of this application, when it is necessary to fuse the initial current values to obtain the comprehensive current value at the current moment, the following may be included: determining the influence weight corresponding to each range channel; and weighting and fusing the initial current values according to the influence weight corresponding to each range channel to obtain the comprehensive current value at the current moment.
[0071] S203 performs current correction on each initial current value based on the comprehensive current value to obtain the target current output by the device under test.
[0072] In one embodiment of this application, when it is necessary to perform current correction on each initial current value based on the comprehensive current value to obtain the target current output by the device under test, the following may be included: correcting the variable parameters of each range channel based on the comprehensive current value and each initial current value to obtain the corrected variable parameters corresponding to each range channel; and determining the target current output by the device under test based on the corrected variable parameters corresponding to each range channel.
[0073] The aforementioned current measurement method measures the output current of the device under test (DUT) using at least one range channel, obtaining the initial current value of each range channel at the current moment. These initial current values are then fused to obtain the comprehensive current value at the current moment. Furthermore, the initial current values are corrected based on the comprehensive current value to obtain the target output current of the DUT. This method effectively analyzes the output current of the DUT using the initial current values of each range channel at the current moment, fully utilizing the natural fluctuation characteristics of the power grid load and avoiding the complexity of external reference signal injection, thus achieving long-term online, automated drift compensation. Through the redundant design of the three ranges and the joint correction of the overlapping area, the dynamic range is widened, and the reliability of parameter identification is improved. The range-dependent self-calibration strategy and residual fault-tolerant mechanism effectively suppress interference from abnormal channels, enhancing system robustness. Compared with existing technologies, this application can achieve long-term high-precision measurement while ensuring real-time performance, reducing manual calibration costs, and has broad application prospects, suitable for various scenarios such as power distribution networks, factory power monitoring, and energy efficiency analysis and protection systems.
[0074] In one embodiment, such as Figure 3 As shown, when it is necessary to perform current correction on each initial current value based on the comprehensive current value to obtain the target output current of the device under test, the following can be included:
[0075] S301, based on the comprehensive current value and each initial current value, corrects the variable parameters of each range channel to obtain the corrected variable parameters corresponding to each range channel.
[0076] It should be noted that when it is necessary to correct the variable parameters of each range channel based on the comprehensive current value and each initial current value to obtain the corrected variable parameters corresponding to each range channel, the following may be included: determining the current region type of the device under test; determining the variable parameters of each range channel based on the current region type; correcting the variable parameters of each range channel based on the comprehensive current value and each initial current value to obtain the corrected variable parameters corresponding to each range channel.
[0077] The variable parameters include at least one of the gain parameter and the bias parameter.
[0078] Specifically, when it is necessary to determine the current region type of the device under test, the current region type of the device under test can be determined by whether the initial current value of each range channel is in a saturated state at the current moment.
[0079] The current range types include: three-range range, low-to-medium range, medium-to-high range, and single-range range.
[0080] Specifically, the logic formula for determining the current region type of the device under test is as follows:
[0081] ;
[0082] in, This refers to the type of current region.
[0083] To further explain, different variable parameters are preset for different current region types. Specifically, when the current region type is a three-range region, the corresponding traversal parameters are the gain parameter and the bias parameter; when the current region type is a low-to-medium range region, the corresponding traversal parameter is the bias parameter; when the current region type is a high-to-medium range region, the corresponding traversal parameter is the bias parameter; when the current region type is a single-range region, the corresponding traversal parameter is empty, parameter calibration is paused, and only the measured value is output.
[0084] The mapping relationship between current region type and variable parameters can be set or adjusted according to the historical experience and actual situation of the operation and maintenance personnel. Here, the mapping relationship between current region type and variable parameters is not limited.
[0085] When the measurement channel is not saturated and the residual is stable, the following calculation relationship exists:
[0086] ;
[0087] in, This refers to the gain parameter. This refers to the bias parameter. This refers to the actual current.
[0088] In one embodiment of this application, when it is necessary to correct the variable parameters of each range channel based on the combined current value and each initial current value, an error signal can be constructed using the difference between adjacent channels:
[0089]
[0090] Furthermore, the recursive least squares (RLS) algorithm is used to update the variable parameter vector;
[0091] The variable parameter vector is shown below:
[0092] ;
[0093] in, This refers to the gain parameter. This refers to the bias parameter.
[0094] The calculation formula for the update process is as follows:
[0095] ;
[0096] in, λ is the forgetting factor (0.95–0.99). Let be the covariance matrix.
[0097] S302 determines the target current output by the device under test based on the corrected variable parameters corresponding to each range channel.
[0098] It should be noted that during long-term operation, the algorithm utilizes the periodic fluctuations of the grid load to provide continuous excitation, keeping the parameter estimation observable. If the system detects insufficient excitation (i.e., the current is constant for a long time), the parameter update is delayed, and only the fused output is maintained. The update will continue after the load fluctuations recover.
[0099] Specifically, when it is necessary to determine the target current output by the device under test based on the corrected variable parameters corresponding to each range channel, the following calculation formula can be used to determine the target current output by the device under test.
[0100] .
[0101] The aforementioned current measurement method fully utilizes the natural fluctuation characteristics of the power grid load, avoiding the complexity of external reference signal injection, and achieves long-term online, automated drift compensation. Through a redundant three-range design and joint correction of the overlap region, the dynamic range is widened, and the reliability of parameter identification is improved. The range-dependent self-calibration strategy and residual fault-tolerant mechanism effectively suppress interference from abnormal channels, enhancing system robustness. Compared with existing technologies, this application can achieve long-term high-precision measurement while ensuring real-time performance, reducing manual calibration costs, and has broad application prospects, suitable for various scenarios such as distribution networks, factory power monitoring, and energy efficiency analysis and protection systems.
[0102] In one embodiment, such as Figure 4 As shown, when it is necessary to merge the initial current values to obtain the comprehensive current value at the current moment, the following can be included:
[0103] S401, determine the influence weight corresponding to each range channel.
[0104] It should be noted that when it is necessary to determine the influence weight corresponding to each range channel, the following may be included: obtaining the state parameters corresponding to each range channel; wherein, the state parameters include at least one of signal-to-noise ratio, range proportion and residual confidence; and determining the influence weight corresponding to the corresponding range channel based on the state parameters corresponding to each range channel.
[0105] As an example, the influence weights for each range channel can also be determined based on the channel instantaneous variance estimation, as shown in the following formula:
[0106] ;
[0107] in, The influence weights for each measurement range channel are as follows: This is for estimating the instantaneous variance of the channel.
[0108] To further explain, in order to adapt to the specific situation of different range channels, the channel residuals of each range channel can be calculated, and the channel residual energy can be determined based on the channel residuals. Then, the influence weights can be updated based on the relationship between the channel residual energy and the energy threshold.
[0109] The formula for calculating channel residuals is shown below;
[0110] ;
[0111] The formula for calculating channel residual energy is shown below;
[0112] ;
[0113] Specifically, when the channel residual energy is greater than the energy threshold, the formula affecting the weight update is as follows:
[0114] ;
[0115] Where β is the weighting coefficient, and the value of β is between zero and one.
[0116] S402, according to the influence weight corresponding to each range channel, the initial current values are weighted and fused to obtain the comprehensive current value at the current moment.
[0117] It should be noted that when it is necessary to weight and fuse the initial current values according to the influence weights of each range channel to obtain the comprehensive current value at the current moment, the following can be included: weight the initial current values of the corresponding range channel according to the influence weights of each range channel to obtain the intermediate values of each range channel; and use the sum of the intermediate values of each range channel as the comprehensive current value at the current moment.
[0118] The aforementioned current measurement method fully utilizes the natural fluctuation characteristics of the power grid load, avoiding the complexity of external reference signal injection, and achieves long-term online, automated drift compensation. Through a redundant three-range design and joint correction of the overlap region, the dynamic range is widened, and the reliability of parameter identification is improved. The range-dependent self-calibration strategy and residual fault-tolerant mechanism effectively suppress interference from abnormal channels, enhancing system robustness. Compared with existing technologies, this application can achieve long-term high-precision measurement while ensuring real-time performance, reducing manual calibration costs, and has broad application prospects, suitable for various scenarios such as distribution networks, factory power monitoring, and energy efficiency analysis and protection systems.
[0119] In one embodiment, such as Figure 5 As shown, when it is necessary to determine the target current output by the device under test, the following may be included:
[0120] S501, based on at least one range channel, the output current of the device under test is measured to obtain the initial current value of each range channel at the current moment.
[0121] S502, obtain the status parameters corresponding to each range channel; wherein, the status parameters include at least one of signal-to-noise ratio, range percentage and residual confidence.
[0122] S503, determine the influence weight of each range channel according to the state parameters corresponding to each range channel.
[0123] S504: The initial current value of each range channel is weighted according to the influence weight of each range channel to obtain the intermediate value of each range channel.
[0124] S505 uses the sum of the intermediate values of each range channel as the current comprehensive current value.
[0125] S506, Determine the current region type of the device under test.
[0126] S507 determines the variable parameters of each range channel according to the current region type.
[0127] S508 corrects the variable parameters of each range channel based on the comprehensive current value and each initial current value, and obtains the corrected variable parameters corresponding to each range channel.
[0128] S509 determines the target current output by the device under test based on the corrected variable parameters corresponding to each range channel.
[0129] The schematic diagram of the range overlap design and correction strategy proposed in this application is shown below. Figure 6As shown, the entire design revolves around three parallel measurement channels with overlapping ranges: a low-range channel L (solid line), a medium-range channel M (dashed line), and a high-range channel H (dotted line). The horizontal axis represents the normalized measured current, and the vertical axis represents the measurement accuracy of each channel within its effective operating range. By positioning the median of the medium range between the upper limit (IL,max) of the low range and the lower limit (IH,min) of the high range, it is ensured that all three channels can simultaneously provide effective measurement values near the standard operating point. This structure divides the entire measurement range into multiple operating intervals with different calibration strategies. In the "ultra-low range region" with smaller currents and the "ultra-high range region" with larger currents, the system operates in single-channel mode, pausing recursive parameter updates to ensure stability. When the current enters the "medium-low range overlap region" or the "medium-high range overlap region," the system uses data from two effective channels for joint calibration to update the channel parameters. The centrally located "three-range overlap region" is the optimal calibration area for this application. Within this region, all three channels can provide high-precision data, enabling the system to perform full parameter updates for gain and bias, resulting in the highest observability of parameter identification. By performing joint calibration within these overlap regions, the system can fully utilize the natural fluctuations of the power grid load as a persistent excitation condition, effectively separating and compensating for long-term gain and bias drift in each channel. The entire range overlap design forms the physical basis of the adaptive calibration algorithm, enabling the sensor to achieve long-term, high-precision, and stable online measurements without the need for external reference signals.
[0130] The signal fusion and dynamic weight adjustment process proposed in this application is as follows: Figure 7As shown, the entire processing flow adopts a phased, progressive architecture, consisting of six core stages: data preprocessing, range determination, weighted fusion, anomaly detection, parameter updating, and output feedback, forming a complete adaptive calibration system. After the process starts, the system first receives output signals synchronously from three parallel measurement channels. Before entering the core algorithm, this raw data undergoes normalization and compensation processing. At this stage, the system not only standardizes the output of each channel according to its full-scale value but also introduces real-time temperature compensation to eliminate dimensional differences between different channels and the influence of environmental temperature drift, ensuring that all input data have a unified benchmark and comparability. After preprocessing, the system enters a critical decision node: determining whether the current range is valid. This stage intelligently identifies the operating range of the measured current, signal fluctuations, and whether it is in a multi-range overlap region to assess whether the current operating condition meets the observability conditions required for parameter identification. If it is determined that the current excitation is insufficient or only a single channel is working, i.e., the conditions are not met, the process will switch to the left branch, pausing the parameter update process and outputting only the measured value in the current optimal state. This strategy aims to avoid incorrect parameter estimation when information is insufficient, ensuring the stability of the algorithm. Conversely, if the range is valid, the system enters the core self-calibration closed loop on the right. First, in the weight calculation and fusion module, the system dynamically allocates fusion weights inversely proportionally based on indicators such as the instantaneous variance or residual confidence of each channel. This means that channels with less noise and greater stability will be given higher confidence and weight, generating a smooth-transition fusion current through weighted summation, effectively avoiding data jumps caused by traditional range switching. Immediately afterwards, this fusion value is used as a reference benchmark and sent to the anomaly detection and fault-tolerant weight reduction module. Here, the system calculates the residuals of each original channel with respect to the benchmark and evaluates their energy within a sliding time window. Once the residual energy of a channel exceeds a preset threshold, it is determined to have drifted or become abnormal, and the system automatically triggers a weight reduction mechanism to dynamically reduce its contribution in subsequent fusion calculations, thereby achieving automatic isolation of faulty channels and effectively ensuring the robustness of the final output. After fault-tolerant processing, the system generates the fused correction output for the current moment, a globally consistent, high-precision current estimate. Simultaneously, this output triggers a recursive parameter update process, using algorithms such as Recursive Least Squares (RLS) to progressively correct the gain and bias parameters of each channel. The updated parameters, through the feedback loop shown by the dashed line in the diagram, influence the next round of weight calculation and fusion, forming a closed-loop mechanism for continuous learning and optimization. This entire process constitutes a complete data processing chain, ensuring both the real-time performance and accuracy of instantaneous measurements while achieving long-term high accuracy and reliability of the sensor through adaptive drift compensation.
[0131] A schematic diagram of a typical daily load excitation signal for a power grid used in this application is shown below. Figure 8As shown, this graph illustrates the macroscopic dynamic characteristics of the total current in the regional power grid trunk line as a function of user load over a typical 24-hour period. The horizontal axis represents time, and the vertical axis represents the total current value. The curve clearly reveals significant peak-valley differences and periodic fluctuations in the current within a day. This natural fluctuation in current is the core basis and natural excitation source for achieving online self-calibration of the sensor in this application.
[0132] Specifically, the current in the graph drops to approximately the load's trough during the early morning hours, which is reflected in the mains current, indicating a low point in social production and daily life activities. Conversely, during peak daytime work hours and evening peak residential electricity consumption periods, the current climbs to its peak. This wide dynamic range variation, spanning over 10,000 amperes, provides sufficient and continuous excitation conditions for the parameter identification algorithm (such as recursive least squares) proposed in this application. During the daily cyclical changes in current, the system can collect sensor outputs at different operating points, thereby effectively separating and accurately estimating the gain of each measurement channel. With bias The drift parameter avoids the technical challenge of reliably distinguishing gain and bias errors due to insufficient excitation at a single fixed operating point. More importantly, this daily operating condition variation ensures that the measured current frequently crosses the overlapping area of the multi-range sensor designed in this application, providing a data foundation for joint calibration across multiple channels. By utilizing the inherent load fluctuation characteristics of the power grid, this application can achieve automatic compensation for long-term sensor drift without introducing external reference signals or interrupting system operation for manual calibration. Therefore, the inherent load fluctuation characteristics of the power grid revealed in this figure directly constitute the physical premise and feasibility guarantee for the self-calibration method of this application to maintain high accuracy in a long-term, online, and autonomous manner.
[0133] The aforementioned current measurement method measures the output current of the device under test (DUT) using at least one range channel, obtaining the initial current value of each range channel at the current moment. These initial current values are then fused to obtain the comprehensive current value at the current moment. Furthermore, the initial current values are corrected based on the comprehensive current value to obtain the target output current of the DUT. This method effectively analyzes the output current of the DUT using the initial current values of each range channel at the current moment, fully utilizing the natural fluctuation characteristics of the power grid load and avoiding the complexity of external reference signal injection, thus achieving long-term online, automated drift compensation. Through the redundant design of the three ranges and the joint correction of the overlapping area, the dynamic range is widened, and the reliability of parameter identification is improved. The range-dependent self-calibration strategy and residual fault-tolerant mechanism effectively suppress interference from abnormal channels, enhancing system robustness. Compared with existing technologies, this application can achieve long-term high-precision measurement while ensuring real-time performance, reducing manual calibration costs, and has broad application prospects, suitable for various scenarios such as power distribution networks, factory power monitoring, and energy efficiency analysis and protection systems.
[0134] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0135] Based on the same concept, this application also provides a current measuring device for implementing the aforementioned current measuring method. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more current measuring device embodiments provided below can be found in the limitations of the current measuring method described above, and will not be repeated here.
[0136] In one embodiment, such as Figure 9 As shown, a current measuring device is provided, including: a measuring module 10, a fusion module 20, and a calibration module 30, wherein:
[0137] The measurement module 10 is used to measure the output current of the device under test based on at least one range channel, and obtain the initial current value of each range channel at the current moment.
[0138] The fusion module 20 is used to fuse the initial current values to obtain the comprehensive current value at the current moment.
[0139] The calibration module 30 is used to perform current correction on each initial current value based on the comprehensive current value to obtain the target current output by the device under test.
[0140] In one embodiment, the variable parameters of each range channel are corrected based on the comprehensive current value and each initial current value to obtain the corrected variable parameters corresponding to each range channel.
[0141] The target current output by the device under test is determined based on the corrected variable parameters corresponding to each range channel.
[0142] In one embodiment, the current region type of the device under test is determined;
[0143] Determine the variable parameters for each range channel based on the current region type;
[0144] The variable parameters of each range channel are corrected based on the comprehensive current value and each initial current value to obtain the corrected variable parameters for each range channel.
[0145] In one embodiment, the influence weight corresponding to each range channel is determined;
[0146] The initial current values are weighted and fused according to the influence weights of each range channel to obtain the comprehensive current value at the current moment.
[0147] In one embodiment, the initial current value of the corresponding range channel is weighted according to the influence weight of each range channel to obtain the intermediate value of each range channel.
[0148] The sum of the intermediate values corresponding to each range channel is used as the comprehensive current value at the current moment.
[0149] In one embodiment, state parameters corresponding to each range channel are obtained; wherein, the state parameters include at least one of signal-to-noise ratio, range percentage, and residual confidence level;
[0150] Based on the state parameters corresponding to each range channel, the influence weights corresponding to the respective range channels are determined.
[0151] The aforementioned current measurement device measures the output current of the device under test (DUT) based on at least one range channel, obtaining the initial current value of each range channel at the current moment. These initial current values are then fused to obtain the comprehensive current value at the current moment. Furthermore, the initial current values are corrected based on the comprehensive current value to obtain the target output current of the DUT. This allows for effective analysis of the DUT's output current using the initial current values of each range channel at the current moment, fully utilizing the natural fluctuation characteristics of the power grid load, avoiding the complexity of external reference signal injection, and achieving long-term online, automated drift compensation. Through the redundant design of the three ranges and joint correction of the overlapping area, the dynamic range is widened, and the reliability of parameter identification is improved. The range-dependent self-calibration strategy and residual fault-tolerant mechanism effectively suppress interference from abnormal channels, enhancing system robustness. Compared with existing technologies, this application can achieve long-term high-precision measurement while ensuring real-time performance, reducing manual calibration costs, and has broad application prospects, suitable for various scenarios such as power distribution networks, factory power monitoring, and energy efficiency analysis and protection systems.
[0152] Each module in the aforementioned current measuring device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.
[0153] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 10As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a current measurement method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0154] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0155] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0156] The output current of the device under test is measured based on at least one range channel to obtain the initial current value of each range channel at the current moment.
[0157] The initial current values are combined to obtain the comprehensive current value at the current moment;
[0158] The initial current values are corrected based on the comprehensive current value to obtain the target current output by the device under test.
[0159] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0160] The variable parameters of each range channel are corrected based on the comprehensive current value and each initial current value to obtain the corrected variable parameters for each range channel.
[0161] The target current output by the device under test is determined based on the corrected variable parameters corresponding to each range channel.
[0162] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0163] Determine the current region type of the device under test;
[0164] Determine the variable parameters for each range channel based on the current region type;
[0165] The variable parameters of each range channel are corrected based on the comprehensive current value and each initial current value to obtain the corrected variable parameters for each range channel.
[0166] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0167] Determine the influence weights corresponding to each measurement range channel;
[0168] The initial current values are weighted and fused according to the influence weights of each range channel to obtain the comprehensive current value at the current moment.
[0169] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0170] The initial current values of each range channel are weighted according to the influence weight of each range channel to obtain the intermediate values of each range channel.
[0171] The sum of the intermediate values corresponding to each range channel is used as the comprehensive current value at the current moment.
[0172] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0173] Obtain the status parameters corresponding to each range channel; wherein, the status parameters include at least one of the following: signal-to-noise ratio, range percentage, and residual confidence level;
[0174] Based on the state parameters corresponding to each range channel, the influence weights corresponding to the respective range channels are determined.
[0175] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0176] The output current of the device under test is measured based on at least one range channel to obtain the initial current value of each range channel at the current moment.
[0177] The initial current values are combined to obtain the comprehensive current value at the current moment;
[0178] The initial current values are corrected based on the comprehensive current value to obtain the target current output by the device under test.
[0179] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0180] The variable parameters of each range channel are corrected based on the comprehensive current value and each initial current value to obtain the corrected variable parameters for each range channel.
[0181] The target current output by the device under test is determined based on the corrected variable parameters corresponding to each range channel.
[0182] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0183] Determine the current region type of the device under test;
[0184] Determine the variable parameters for each range channel based on the current region type;
[0185] The variable parameters of each range channel are corrected based on the comprehensive current value and each initial current value to obtain the corrected variable parameters for each range channel.
[0186] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0187] Determine the influence weights corresponding to each measurement range channel;
[0188] The initial current values are weighted and fused according to the influence weights of each range channel to obtain the comprehensive current value at the current moment.
[0189] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0190] The initial current values of each range channel are weighted according to the influence weight of each range channel to obtain the intermediate values of each range channel.
[0191] The sum of the intermediate values corresponding to each range channel is used as the comprehensive current value at the current moment.
[0192] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0193] Obtain the status parameters corresponding to each range channel; wherein, the status parameters include at least one of the following: signal-to-noise ratio, range percentage, and residual confidence level;
[0194] Based on the state parameters corresponding to each range channel, the influence weights corresponding to the respective range channels are determined.
[0195] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0196] The output current of the device under test is measured based on at least one range channel to obtain the initial current value of each range channel at the current moment.
[0197] The initial current values are combined to obtain the comprehensive current value at the current moment;
[0198] The initial current values are corrected based on the comprehensive current value to obtain the target current output by the device under test.
[0199] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0200] The variable parameters of each range channel are corrected based on the comprehensive current value and each initial current value to obtain the corrected variable parameters for each range channel.
[0201] The target current output by the device under test is determined based on the corrected variable parameters corresponding to each range channel.
[0202] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0203] Determine the current region type of the device under test;
[0204] Determine the variable parameters for each range channel based on the current region type;
[0205] The variable parameters of each range channel are corrected based on the comprehensive current value and each initial current value to obtain the corrected variable parameters for each range channel.
[0206] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0207] Determine the influence weights corresponding to each measurement range channel;
[0208] The initial current values are weighted and fused according to the influence weights of each range channel to obtain the comprehensive current value at the current moment.
[0209] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0210] The initial current values of each range channel are weighted according to the influence weight of each range channel to obtain the intermediate values of each range channel.
[0211] The sum of the intermediate values corresponding to each range channel is used as the comprehensive current value at the current moment.
[0212] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0213] Obtain the status parameters corresponding to each range channel; wherein, the status parameters include at least one of the following: signal-to-noise ratio, range percentage, and residual confidence level;
[0214] Based on the state parameters corresponding to each range channel, the influence weights corresponding to the respective range channels are determined.
[0215] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0216] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0217] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0218] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A current measurement method, characterized by, The method comprises: measuring the output current of the device under test based on at least one range channel to obtain initial current values corresponding to the range channels at the current time; fusing the initial current values to obtain a comprehensive current value at the current time; correcting the initial current values according to the comprehensive current value to obtain a target current output by the device under test.
2. The method of claim 1, wherein, The correction of the initial current values according to the comprehensive current value to obtain a target current output by the device under test comprises: correcting variable parameters of the range channels according to the comprehensive current value and the initial current values to obtain corrected variable parameters corresponding to the range channels; determining the target current output by the device under test according to the corrected variable parameters corresponding to the range channels.
3. The method of claim 2, wherein, The correction of the variable parameters of the range channels according to the comprehensive current value and the initial current values to obtain corrected variable parameters corresponding to the range channels comprises: determining a current region type of the device under test; determining the variable parameters of the range channels according to the current region type; correcting the variable parameters of the range channels according to the comprehensive current value and the initial current values to obtain corrected variable parameters corresponding to the range channels.
4. The method of claim 1, wherein, The fusion of the initial current values to obtain a comprehensive current value at the current time comprises: determining influence weights corresponding to the range channels; weighting and fusing the initial current values according to the influence weights corresponding to the range channels to obtain a comprehensive current value at the current time.
5. The method of claim 4, wherein, The weighting and fusing of the initial current values according to the influence weights corresponding to the range channels to obtain a comprehensive current value at the current time comprises: weighting and processing the initial current values of the corresponding range channels according to the influence weights corresponding to the range channels to obtain intermediate values corresponding to the range channels; taking a sum of the intermediate values corresponding to the range channels as the comprehensive current value at the current time.
6. The method of claim 4, wherein, The determination of the influence weights corresponding to the range channels comprises: obtaining state parameters corresponding to the range channels; wherein the state parameters comprise at least one of a signal-to-noise ratio, a range proportion, and a residual confidence level; determining the influence weights corresponding to the range channels according to the state parameters corresponding to the range channels.
7. A current measuring device, characterized by The device comprises: a measurement module configured to measure the output current of the device under test based on at least one range channel to obtain initial current values corresponding to the range channels at the current time; a fusion module configured to fuse the initial current values to obtain a comprehensive current value at the current time; a correction module configured to correct the initial current values according to the comprehensive current value to obtain a target current output by the device under test.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to implement the steps of the method of any one of claims 1 to 6.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that, The computer program, which when executed by the processor, implements the steps of the method of any one of claims 1 to 6.
Citation Information
Cited By
Method for preventing frequent action of control rod in nuclear power plant and computer device
CN121862458A