Self-calibration method, device and equipment for current testing device

By analyzing and determining the target environment parameters, generating training data sets and training neural network models, self-calibration of the current test device is achieved, which solves the problem that the existing technology cannot effectively deal with complex and changing environments and improves the testing accuracy.

CN119916282AActive Publication Date: 2025-05-02SHENZHEN SKONDA ELECTRONICS
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202510405442.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-02
Publication Date
2025-05-02
Estimated Expiration
2045-04-02

AI Technical Summary

Technical Problem

The existing calibration methods of current testing devices cannot effectively deal with complex and changeable working environments, resulting in large errors in the test results.

Method used

By analyzing the target environment parameter information, determining its parameter interval in the working environment of the current test device, generating a training data set, and training the preset target error prediction model based on the neural network to realize self-calibration of the current test device.

Benefits of technology

Dynamically adjust the test error of the current test device, improve the test accuracy, and adapt to complex and changeable working environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119916282A_ABST
    Figure CN119916282A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of current testing, and provides a self-calibration method, device and equipment for a current testing device. The method comprises the following steps: analyzing target environment parameter information related to a test error of a current test device; the target environment parameter information comprises a plurality of target environment parameters; respectively determining a parameter interval corresponding to each target environment parameter in a working environment of the current testing device; generating a training data set based on the current value range of the current testing device and the parameter interval corresponding to each target environment parameter; training a preset neural network based on the training data set to obtain a target error prediction model; and calibrating a test value of the current test device based on the target error prediction model in the operation process of the current test device. According to the method, the test error of the current test device is dynamically adjusted in a complex and changeable working environment, and the test precision of the current test device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of current testing, and in particular to a method, device and equipment for self-calibration of a current testing device. Background Art

[0002] Current test devices are widely used in power systems, electronic equipment, laboratory measurements and other fields to accurately measure the magnitude of current. With the rapid development of modern industrial automation, the Internet of Things, and smart grids, the accuracy and stability of current test devices are particularly important. However, the test results of the current test device may be affected by a variety of environmental factors, such as temperature, humidity, atmospheric pressure, electromagnetic interference, etc. These factors affect the test accuracy of the current test device, and the existing calibration method of the current test device usually uses a fixed calibration value to correct the test results of the current test device. This calibration method cannot cope with complex and changeable working environments, which leads to large errors in the test results of the current test device. Summary of the invention

[0003] The present application provides a current test device self-calibration method, device and equipment to solve the problems raised by the above background technology.

[0004] In a first aspect, the present application provides a current testing device self-calibration method, comprising: Analyzing target environmental parameter information related to a test error of a current test device; the target environmental parameter information includes a plurality of target environmental parameters; Respectively determine the parameter range corresponding to each of the target environmental parameters in the working environment of the current testing device; Generate a training data set based on the current value range of the current testing device and the parameter interval corresponding to each of the target environmental parameters; wherein the training data set includes a plurality of mapping relationships, the mapping relationship is a mapping relationship between an independent variable data group and its corresponding test error, and the independent variable data group includes parameter values ​​corresponding to each of the target environmental parameters and current test values; Training a preset neural network based on the training data set to obtain a target error prediction model; During the operation of the current testing device, the test value of the current testing device is calibrated based on the target error prediction model.

[0005] In a possible implementation, the analyzing target environmental parameter information related to the test error of the current test device includes: Connecting the current testing device to a preset test circuit, and inputting a constant current into the current testing device through the test circuit; the test circuit is located in a closed space with adjustable environmental conditions; For any environmental parameter, the environmental state in the enclosed space is adjusted based on the environmental parameter change curve corresponding to the environmental parameter, and the parameter values ​​of the remaining environmental parameters in the enclosed space except the environmental parameter are kept unchanged. In the process of adjusting the environmental state in the enclosed space, it is determined whether the current test value output by the current testing device changes. If the current test value output by the current testing device changes, the environmental parameter is determined to be the target environmental parameter; each of the target environmental parameters constitutes the target environmental parameter information.

[0006] In a possible implementation, generating a training data set based on the current value range of the current testing device and the parameter interval corresponding to each of the target environmental parameters includes: Determine a plurality of current standard values ​​within the current value range with a step size of 0.001A to obtain a current standard value set; For each of the target environment parameters, determine a plurality of parameter values ​​in a parameter interval corresponding to the target environment parameter with a preset step size corresponding to the target environment parameter to obtain a parameter value set corresponding to the target environment parameter; Performing a Cartesian product operation on the current standard value set and each parameter value set to obtain a plurality of independent variable data groups; For each of the independent variable data groups, a test error corresponding to the independent variable data group is generated based on a preset test error generation method, and a mapping relationship between the independent variable data group and the test error is constructed; each of the mapping relationships constitutes the training data set.

[0007] In a possible implementation, generating the test error corresponding to the independent variable data group based on a preset test error generation method includes: Connecting the current testing device to a preset test circuit; the test circuit is located in a closed space with adjustable environmental conditions; For each of the independent variable data groups, the environmental state of the enclosed space is set based on the environmental parameter values ​​corresponding to the independent variable data group, and a current whose current value is the current standard value corresponding to the independent variable data group is input into the current testing device through the test circuit, and the current test value output by the current testing device is obtained, and the current standard value is used to subtract the current test value to obtain the test error corresponding to the independent variable data group.

[0008] In a possible implementation, the training of a preset neural network based on the training data set to obtain a target error prediction model includes: Dividing the training data set into a training set and a validation set; For each mapping relationship in the training set, the independent variable data group corresponding to the mapping relationship is used as the input of the neural network, and the test error corresponding to the mapping relationship is used as the output of the neural network to train the neural network to obtain an initial error prediction model; The model parameters of the initial error prediction model are optimized based on a preset annealing algorithm and the verification set to obtain the target error prediction model.

[0009] In a possible implementation, optimizing the model parameters of the initial error prediction model based on a preset annealing algorithm and the validation set to obtain the target error prediction model includes: Calculate the initial mean square error corresponding to the initial error prediction model based on the validation set; Based on a preset random perturbation algorithm, each model parameter of the initial error prediction model is randomly perturbed to generate a first parameter solution; the first parameter solution includes a first intermediate parameter corresponding to each model parameter of the initial error prediction model; Calculate a first intermediate mean square error corresponding to the first parameter solution based on the verification set; comparing the initial mean square error with the first intermediate mean square error; Determine a second parameter solution and a first target mean square error based on a comparison result of the initial mean square error and the first intermediate mean square error, and determine a first target temperature based on a preset cooling algorithm and an initial temperature; the second parameter solution includes second intermediate parameters corresponding to each model parameter of the initial error prediction model; Calculate a second intermediate mean square error corresponding to the second parameter solution based on the verification set; comparing the first target mean square error with the second intermediate mean square error; Determine a third parameter solution and a second target mean square error based on a comparison result of the first target mean square error and the second intermediate mean square error, and determine a second target temperature based on a preset cooling algorithm and the first target temperature; Iterate the steps of determining the second parameter solution and the first target mean square error based on the comparison result of the initial mean square error and the first intermediate mean square error, and determining the first target temperature based on a preset cooling algorithm and the initial temperature, until the final target temperature is less than the preset temperature, and determine the parameter solution corresponding to the target mean square error corresponding to the final target temperature as the target parameter solution; The model parameters of the initial error prediction model are updated based on the target parameter solution to obtain the target error prediction model.

[0010] In a possible implementation, determining a second parameter solution and a first target mean square error based on a comparison result between the initial mean square error and the first intermediate mean square error, and determining a first target temperature based on a preset cooling algorithm and an initial temperature includes: If the first intermediate mean square error is not greater than the initial mean square error; Based on the random perturbation algorithm, randomly perturb each model parameter of the first parameter solution to generate a second parameter solution, and determine the first intermediate mean square error as the first target mean square error, and determine the initial temperature as the first target temperature; If the first intermediate mean square error is greater than the initial mean square error, based on Calculate the selection probability of the first parameter solution; wherein, is the selection probability, is the difference between the first intermediate mean square error and the initial mean square error, is the initial temperature; Randomly generate a target value in the interval (0, 1), and compare the target value with the selection probability; If the selection probability is not greater than the target value, randomly perturb each model parameter of the initial error prediction model based on the random perturbation algorithm to generate a second parameter solution, and determine the initial mean square error as the first target mean square error, and determine the initial temperature as the first target temperature; If the selection probability is greater than the target value, the model parameters of the first parameter solution are randomly perturbed based on the random perturbation algorithm to generate a second parameter solution, and the first intermediate mean square error is determined to be the first target mean square error, and the initial temperature is cooled based on a preset cooling coefficient to obtain the first target temperature.

[0011] In a second aspect, the present application provides a current testing device self-calibration device, comprising: An analysis module, used for analyzing target environment parameter information related to a test error of the current test device; the target environment parameter information includes a plurality of target environment parameters; A determination module, used to respectively determine a parameter interval corresponding to each of the target environmental parameters in the working environment of the current testing device; A generating module, configured to generate a training data set based on the current value range of the current testing device and the parameter interval corresponding to each of the target environmental parameters; wherein the training data set includes a plurality of mapping relationships, the mapping relationships being mapping relationships between an independent variable data set and its corresponding test error, the independent variable data set including parameter values ​​corresponding to each of the target environmental parameters and current test values; A training module, used to train a preset neural network based on the training data set to obtain a target error prediction model; A calibration module is used to calibrate the test value of the current testing device based on the target error prediction model during the operation of the current testing device.

[0012] In a third aspect, the present application provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the self-calibration method of the current testing device as described in any one of the above items is implemented.

[0013] The present application provides a method and device for self-calibration of a current test device, the method comprising: analyzing target environment parameter information related to the test error of the current test device; the target environment parameter information comprises a plurality of target environment parameters; respectively determining the parameter interval corresponding to each of the target environment parameters in the working environment of the current test device; generating a training data set based on the current value range of the current test device and the parameter interval corresponding to each of the target environment parameters; wherein the training data set comprises a plurality of mapping relationships, the mapping relationships being the mapping relationships between the independent variable data set and the corresponding test error, the independent variable data set comprising the parameter value corresponding to each of the target environment parameters and the current test value; training a preset neural network based on the training data set to obtain a target error prediction model; during the operation of the current test device, calibrating the test value of the current test device based on the target error prediction model. The method realizes the dynamic adjustment of the test error of the current test device in a complex and changeable working environment, which helps to improve the test accuracy of the current test device. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0015] Figure 1 A schematic diagram of a flow chart of a self-calibration method for a current testing device provided in an embodiment of the present application; Figure 2 A schematic block diagram of the structure of a self-calibration device for a current testing device provided in an embodiment of the present application; Figure 3 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0016] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0017] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0018] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0019] It should be further understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0020] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0021] See also Figure 1 , Figure 1 A schematic diagram of a flow chart of a self-calibration method for a current testing device provided in an embodiment of the present application, such as Figure 1 As shown, the current testing device self-calibration method provided in the embodiment of the present application includes steps S1 to S5.

[0022] Step S1, analyzing target environment parameter information related to a test error of a current test device; the target environment parameter information includes a plurality of target environment parameters.

[0023] The target environmental parameters include but are not limited to temperature, humidity, light intensity and atmospheric pressure.

[0024] Specifically, step S1 includes the following steps: The current testing device is connected to a preset test circuit, and a constant current is input into the current testing device through the test circuit; the test circuit is located in a closed space with adjustable environmental conditions, and the closed space is provided with an environmental condition regulating device, which includes but is not limited to a temperature regulating module, a humidity regulating module, a light intensity regulating module, and an atmospheric pressure regulating module; For any environmental parameter, the environmental state in the enclosed space is adjusted based on the environmental parameter change curve corresponding to the environmental parameter, and the parameter values ​​of the remaining environmental parameters in the enclosed space except the environmental parameter are kept unchanged. In the process of adjusting the environmental state in the enclosed space, it is determined whether the current test value output by the current testing device changes. If the current test value output by the current testing device changes, the environmental parameter is determined to be the target environmental parameter; each of the target environmental parameters constitutes the target environmental parameter information.

[0025] It can be understood that the above-mentioned method of analyzing target environmental parameter information related to the test error of the current testing device can effectively identify the target environmental parameters related to the measurement error of the current testing device, and on the one hand, provides a reliable basis for the subsequent training of the target error prediction model.

[0026] Step S2: respectively determine the parameter range corresponding to each of the target environmental parameters in the working environment of the current testing device.

[0027] Specifically, historical parameter value information of each environmental parameter in the working environment where the current testing device is located is obtained, and for each environmental parameter, an interval between a minimum value and a maximum value in the historical parameter value information corresponding to the environmental parameter is determined as a parameter interval corresponding to the environmental parameter.

[0028] Step S3, generating a training data set based on the current value range of the current testing device and the parameter interval corresponding to each of the target environmental parameters; wherein the training data set includes a plurality of mapping relationships, the mapping relationships are mapping relationships between independent variable data groups and their corresponding test errors, and the independent variable data groups include parameter values ​​and current test values ​​corresponding to each of the target environmental parameters.

[0029] Specifically, step S3 includes the following steps: Determine a plurality of current standard values ​​within the current value range with a step size of 0.001A to obtain a current standard value set; For each of the target environment parameters, determine a plurality of parameter values ​​in a parameter interval corresponding to the target environment parameter with a preset step size corresponding to the target environment parameter to obtain a parameter value set corresponding to the target environment parameter; Cartesian product operation is performed on the current standard value set and each parameter value set to obtain a plurality of independent variable data sets; wherein the result of the Cartesian product operation is all possible sets obtained by arbitrarily extracting a parameter value from each of the current standard value set and each parameter value set; For each of the independent variable data groups, a test error corresponding to the independent variable data group is generated based on a preset test error generation method, and a mapping relationship between the independent variable data group and the test error is constructed; each of the mapping relationships constitutes the training data set.

[0030] It can be understood that the above-mentioned method of generating a training data set based on the current value range of the current testing device and the parameter interval corresponding to each target environmental parameter determines the current standard value set and the parameter value set corresponding to each target environmental parameter, and performs Cartesian product operations on the current standard value set and each parameter value set to obtain multiple independent variable data groups. It can systematically cover the effective test conditions and ensure the integrity and representativeness of the training data set, which helps to enhance the reliability of the training data, and further helps to train a more accurate target error prediction model.

[0031] The method for generating the test error corresponding to the independent variable data set based on a preset test error generation method comprises the following steps: Connecting the current testing device to a preset test circuit; the test circuit is located in a closed space with adjustable environmental conditions; For each of the independent variable data groups, the environmental state of the enclosed space is set based on the environmental parameter values ​​corresponding to the independent variable data group, and a current whose current value is the current standard value corresponding to the independent variable data group is input into the current testing device through the test circuit, and the current test value output by the current testing device is obtained, and the current standard value is used to subtract the current test value to obtain the test error corresponding to the independent variable data group.

[0032] Step S4: training a preset neural network based on the training data set to obtain a target error prediction model.

[0033] Specifically, step S4 includes the following steps: Dividing the training data set into a training set and a validation set; For each mapping relationship in the training set, the independent variable data group corresponding to the mapping relationship is used as the input of the neural network, and the test error corresponding to the mapping relationship is used as the output of the neural network to train the neural network to obtain an initial error prediction model; The model parameters of the initial error prediction model are optimized based on a preset annealing algorithm and the verification set to obtain the target error prediction model.

[0034] It can be understood that the above-mentioned method of training the preset neural network based on the training data set to obtain the target error prediction model uses the global search capability of the annealing algorithm to find the approximately optimal model parameters in the parameter space corresponding to the initial error prediction model, which helps to improve the prediction accuracy of the target error prediction model.

[0035] The step of optimizing the model parameters of the initial error prediction model based on the preset annealing algorithm and the verification set to obtain the target error prediction model comprises the following steps: The initial mean square error corresponding to the initial error prediction model is calculated based on the validation set; specifically, by Calculate the initial mean square error corresponding to the initial error prediction model, where: is the initial mean square error, Represents the validation set includes A mapping relationship, Indicates the validation set The standard error value corresponding to the mapping relationship is Indicates that the validation set The prediction error value obtained by inputting the independent variable data group corresponding to the mapping relationship into the initial error prediction model; Based on a preset random perturbation algorithm, each model parameter of the initial error prediction model is randomly perturbed to generate a first parameter solution; the first parameter solution includes a first intermediate parameter corresponding to each model parameter of the initial error prediction model; specifically, based on the random perturbation algorithm, each model parameter of the initial error prediction model is respectively increased or decreased by a small variable, and the small variable is not greater than 0.1; A first intermediate mean square error corresponding to the first parameter solution is calculated based on the validation set; specifically, a model parameter of the initial error prediction model is updated based on the first parameter solution to obtain an updated error prediction model, and a first intermediate mean square error corresponding to the updated error prediction model is calculated based on the validation set. It should be noted that the calculation method of the first intermediate mean square error refers to the calculation method of the initial mean square error, which will not be repeated here. comparing the initial mean square error with the first intermediate mean square error; Determine a second parameter solution and a first target mean square error based on a comparison result of the initial mean square error and the first intermediate mean square error, and determine a first target temperature based on a preset cooling algorithm and an initial temperature; the second parameter solution includes second intermediate parameters corresponding to each model parameter of the initial error prediction model; A second intermediate mean square error corresponding to the second parameter solution is calculated based on the validation set; specifically, the model parameters of the initial error prediction model are updated based on the second parameter solution to obtain an updated error prediction model, and a second intermediate mean square error corresponding to the updated error prediction model is calculated based on the validation set. It should be noted that the calculation method of the second intermediate mean square error refers to the calculation method of the initial mean square error, which will not be repeated here. comparing the first target mean square error with the second intermediate mean square error; Determine a third parameter solution and a second target mean square error based on a comparison result of the first target mean square error and the second intermediate mean square error, and determine a second target temperature based on a preset cooling algorithm and the first target temperature; Iterate the steps of determining the second parameter solution and the first target mean square error based on the comparison result of the initial mean square error and the first intermediate mean square error, and determining the first target temperature based on the preset cooling algorithm and the initial temperature, until the final target temperature is less than the preset temperature, and determining the parameter solution corresponding to the target mean square error corresponding to the final target temperature as the target parameter solution; for example, if the final target temperature is the eighth target temperature, then determining the parameter solution corresponding to the eighth target mean square error as the target parameter solution; The model parameters of the initial error prediction model are updated based on the target parameter solution to obtain the target error prediction model.

[0036] The step of determining a second parameter solution and a first target mean square error based on a comparison result between the initial mean square error and the first intermediate mean square error, and determining a first target temperature based on a preset cooling algorithm and an initial temperature comprises the following steps: If the first intermediate mean square error is not greater than the initial mean square error; Based on the random perturbation algorithm, randomly perturb each model parameter of the first parameter solution to generate a second parameter solution, and determine the first intermediate mean square error as the first target mean square error, and determine the initial temperature as the first target temperature; If the first intermediate mean square error is greater than the initial mean square error, based on Calculate the selection probability of the first parameter solution; wherein, is the selection probability, is the difference between the first intermediate mean square error and the initial mean square error, is the initial temperature; Randomly generate a target value in the interval (0, 1), and compare the target value with the selection probability; If the selection probability is not greater than the target value, randomly perturb each model parameter of the initial error prediction model based on the random perturbation algorithm to generate a second parameter solution, and determine the initial mean square error as the first target mean square error, and determine the initial temperature as the first target temperature; If the selection probability is greater than the target value, the model parameters of the first parameter solution are randomly perturbed based on the random perturbation algorithm to generate a second parameter solution, and the first intermediate mean square error is determined to be the first target mean square error, and the initial temperature is cooled based on a preset cooling coefficient to obtain the first target temperature.

[0037] The step of determining a third parameter solution and a second target mean square error based on a comparison result between the first target mean square error and the second intermediate mean square error, and determining a second target temperature based on a preset cooling algorithm and the first target temperature, comprises the following steps: If the second intermediate mean square error is not greater than the first target mean square error; Based on the random perturbation algorithm, randomly perturb each model parameter of the second parameter solution to generate a third parameter solution, and determine the second intermediate mean square error as the second target mean square error, and determine the first target temperature as the second target temperature; If the second intermediate mean square error is greater than the first target mean square error, based on Calculate the selection probability of the first parameter solution; wherein, is the selection probability, is the difference between the second intermediate mean square error and the first target mean square error, is the first target temperature; Randomly generate a target value in the interval (0, 1), and compare the target value with the selection probability; If the selection probability is not greater than the target value, randomly perturb the parameter solution corresponding to the first target mean square error based on the random perturbation algorithm to generate a second parameter solution, and determine the first target mean square error to be the second target mean square error, and determine the first target temperature to be the second target temperature; If the selection probability is greater than the target value, the model parameters of the second parameter solution are randomly perturbed based on the random perturbation algorithm to generate a third parameter solution, and the second intermediate mean square error is determined to be the second target mean square error, and the first target temperature is cooled based on a preset cooling coefficient to obtain the second target temperature.

[0038] Step S5: During the operation of the current testing device, calibrate the test value of the current testing device based on the target error prediction model.

[0039] Specifically, the environmental parameter value information corresponding to the target environmental parameter information is obtained through a preset environmental parameter detection device, and the current test value of the current testing device is obtained, and the environmental parameter value information and the current test value are input into the target error prediction model to obtain a test error value, and the test error value is added to the current test value to achieve calibration of the current test value.

[0040] The method provided in this embodiment realizes dynamic adjustment of the test error of the current test device in a complex and changeable working environment, which helps to improve the test accuracy of the current test device.

[0041] See also Figure 2 , Figure 2 A schematic block diagram of the structure of the current test device self-calibration device 100 provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the current test device self-calibration device 100 provided in the embodiment of the present application includes: The analysis module 110 is used to analyze target environment parameter information related to the test error of the current test device; the target environment parameter information includes a plurality of target environment parameters.

[0042] The determination module 120 is used to respectively determine the parameter range corresponding to each of the target environmental parameters in the working environment of the current testing device.

[0043] A generation module 130 is used to generate a training data set based on the current value range of the current testing device and the parameter interval corresponding to each of the target environmental parameters; wherein the training data set includes a plurality of mapping relationships, the mapping relationships are mapping relationships between an independent variable data group and its corresponding test error, and the independent variable data group includes parameter values ​​corresponding to each of the target environmental parameters and current test values.

[0044] The training module 140 is used to train a preset neural network based on the training data set to obtain a target error prediction model.

[0045] The calibration module 150 is used to calibrate the test value of the current testing device based on the target error prediction model during the operation of the current testing device.

[0046] It should be noted that those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described device and each module can refer to the process in the aforementioned current testing device self-calibration method embodiment, and will not be repeated here.

[0047] The current test device self-calibration device 100 provided in the above embodiment can be implemented in the form of a computer program. The computer program can be used in Figure 3 The system is run on the terminal device 200 shown.

[0048] See also Figure 3 , Figure 3 The present invention provides a schematic block diagram of the structure of a terminal device 200 according to an embodiment of the present application. The terminal device 200 includes a processor 201 and a memory 202. The processor 201 and the memory 202 are connected via a device bus 203, wherein the memory 202 may include a non-volatile storage medium and an internal memory.

[0049] The non-volatile storage medium can store a computer program. The computer program includes program instructions, and when the program instructions are executed by the processor 201, the processor 201 can execute any of the above-mentioned current test device self-calibration methods.

[0050] The processor 201 is used to provide computing and control capabilities to support the operation of the entire terminal device 200.

[0051] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor 201, the processor 201 can execute any of the above-mentioned current test device self-calibration methods.

[0052] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the terminal device 200 involved in the scheme of the present application. The specific terminal device 200 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0053] It should be understood that the processor 201 may be a central processing unit (CPU), and the processor 201 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0054] In some embodiments, the processor 201 is used to run a computer program stored in the memory to implement the following steps: Analyzing target environmental parameter information related to a test error of a current test device; the target environmental parameter information includes a plurality of target environmental parameters; Respectively determine the parameter range corresponding to each of the target environmental parameters in the working environment of the current testing device; Generate a training data set based on the current value range of the current testing device and the parameter interval corresponding to each of the target environmental parameters; wherein the training data set includes a plurality of mapping relationships, the mapping relationship is a mapping relationship between an independent variable data group and its corresponding test error, and the independent variable data group includes parameter values ​​corresponding to each of the target environmental parameters and current test values; Training a preset neural network based on the training data set to obtain a target error prediction model; During the operation of the current testing device, the test value of the current testing device is calibrated based on the target error prediction model.

[0055] It should be noted that those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the terminal device 200 described above can refer to the corresponding process of the self-calibration method of the aforementioned current testing device, and will not be repeated here.

[0056] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by one or more processors, the one or more processors implement the current testing device self-calibration method provided in the embodiment of the present application.

[0057] The computer-readable storage medium may be an internal storage unit of the terminal device 200 in the aforementioned embodiment, such as a hard disk or memory of the terminal device 200. The computer-readable storage medium may also be an external storage device of the terminal device 200, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped with the terminal device 200.

[0058] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A self-calibration method for a current test device, characterized in that: include: Analyzing target environmental parameter information related to test errors of the current test device; The target environment parameter information includes a plurality of target environment parameters; Respectively determine the parameter range corresponding to each of the target environmental parameters in the working environment of the current testing device; Generate a training data set based on the current value range of the current testing device and the parameter interval corresponding to each of the target environmental parameters; wherein the training data set includes a plurality of mapping relationships, the mapping relationship is a mapping relationship between an independent variable data group and its corresponding test error, and the independent variable data group includes parameter values ​​corresponding to each of the target environmental parameters and current test values; Training a preset neural network based on the training data set to obtain a target error prediction model; During the operation of the current testing device, the test value of the current testing device is calibrated based on the target error prediction model.

2. The current test device self-calibration method according to claim 1, characterized in that: The analyzing target environmental parameter information related to the test error of the current test device includes: Connecting the current testing device to a preset test circuit, and inputting a constant current into the current testing device through the test circuit; the test circuit is located in a closed space with adjustable environmental conditions; For any environmental parameter, the environmental state in the enclosed space is adjusted based on the environmental parameter change curve corresponding to the environmental parameter, and the parameter values ​​of the remaining environmental parameters in the enclosed space except the environmental parameter are kept unchanged. In the process of adjusting the environmental state in the enclosed space, it is determined whether the current test value output by the current testing device changes. If the current test value output by the current testing device changes, the environmental parameter is determined to be the target environmental parameter; each of the target environmental parameters constitutes the target environmental parameter information.

3. The current test device self-calibration method according to claim 1, characterized in that: The generating of the training data set based on the current value range of the current testing device and the parameter interval corresponding to each of the target environmental parameters includes: Determine a plurality of current standard values ​​within the current value range with a step size of 0.001A to obtain a current standard value set; For each of the target environment parameters, determine a plurality of parameter values ​​in a parameter interval corresponding to the target environment parameter with a preset step size corresponding to the target environment parameter to obtain a parameter value set corresponding to the target environment parameter; Performing a Cartesian product operation on the current standard value set and each parameter value set to obtain a plurality of independent variable data groups; For each of the independent variable data groups, a test error corresponding to the independent variable data group is generated based on a preset test error generation method, and a mapping relationship between the independent variable data group and the test error is constructed; each of the mapping relationships constitutes the training data set.

4. The current test device self-calibration method according to claim 3, characterized in that: The method of generating the test error corresponding to the independent variable data set based on a preset test error generation method includes: Connecting the current testing device to a preset test circuit; the test circuit is located in a closed space with adjustable environmental conditions; For each of the independent variable data groups, the environmental state of the enclosed space is set based on the environmental parameter values ​​corresponding to the independent variable data group, and a current whose current value is the current standard value corresponding to the independent variable data group is input into the current testing device through the test circuit, and the current test value output by the current testing device is obtained, and the current standard value is used to subtract the current test value to obtain the test error corresponding to the independent variable data group.

5. The current test device self-calibration method according to claim 1, characterized in that: The step of training a preset neural network based on the training data set to obtain a target error prediction model includes: Dividing the training data set into a training set and a validation set; For each mapping relationship in the training set, the independent variable data group corresponding to the mapping relationship is used as the input of the neural network, and the test error corresponding to the mapping relationship is used as the output of the neural network to train the neural network to obtain an initial error prediction model; The model parameters of the initial error prediction model are optimized based on a preset annealing algorithm and the verification set to obtain the target error prediction model.

6. The current test device self-calibration method according to claim 5, characterized in that: The optimizing the model parameters of the initial error prediction model based on the preset annealing algorithm and the verification set to obtain the target error prediction model includes: Calculate the initial mean square error corresponding to the initial error prediction model based on the validation set; Based on a preset random perturbation algorithm, each model parameter of the initial error prediction model is randomly perturbed to generate a first parameter solution; the first parameter solution includes a first intermediate parameter corresponding to each model parameter of the initial error prediction model; Calculate a first intermediate mean square error corresponding to the first parameter solution based on the verification set; comparing the initial mean square error with the first intermediate mean square error; Determine a second parameter solution and a first target mean square error based on a comparison result of the initial mean square error and the first intermediate mean square error, and determine a first target temperature based on a preset cooling algorithm and an initial temperature; the second parameter solution includes second intermediate parameters corresponding to each model parameter of the initial error prediction model; Calculate a second intermediate mean square error corresponding to the second parameter solution based on the verification set; comparing the first target mean square error with the second intermediate mean square error; Determine a third parameter solution and a second target mean square error based on a comparison result of the first target mean square error and the second intermediate mean square error, and determine a second target temperature based on a preset cooling algorithm and the first target temperature; Iterate the steps of determining the second parameter solution and the first target mean square error based on the comparison result of the initial mean square error and the first intermediate mean square error, and determining the first target temperature based on a preset cooling algorithm and the initial temperature, until the final target temperature is less than the preset temperature, and determine the parameter solution corresponding to the target mean square error corresponding to the final target temperature as the target parameter solution; The model parameters of the initial error prediction model are updated based on the target parameter solution to obtain the target error prediction model.

7. The current test device self-calibration method according to claim 6, characterized in that: The determining of a second parameter solution and a first target mean square error based on a comparison result of the initial mean square error and the first intermediate mean square error, and determining a first target temperature based on a preset cooling algorithm and an initial temperature, comprises: If the first intermediate mean square error is not greater than the initial mean square error; Based on the random perturbation algorithm, randomly perturb each model parameter of the first parameter solution to generate a second parameter solution, and determine the first intermediate mean square error as the first target mean square error, and determine the initial temperature as the first target temperature; If the first intermediate mean square error is greater than the initial mean square error, based on Calculate the selection probability of the first parameter solution; wherein, is the selection probability, is the difference between the first intermediate mean square error and the initial mean square error, is the initial temperature; Randomly generate a target value in the interval (0, 1), and compare the target value with the selection probability; If the selection probability is not greater than the target value, randomly perturb each model parameter of the initial error prediction model based on the random perturbation algorithm to generate a second parameter solution, and determine the initial mean square error as the first target mean square error, and determine the initial temperature as the first target temperature; If the selection probability is greater than the target value, the model parameters of the first parameter solution are randomly perturbed based on the random perturbation algorithm to generate a second parameter solution, and the first intermediate mean square error is determined to be the first target mean square error, and the initial temperature is cooled based on a preset cooling coefficient to obtain the first target temperature.

8. A current test device self-calibration device, characterized in that: include: An analysis module, used for analyzing target environment parameter information related to a test error of the current test device; The target environment parameter information includes a plurality of target environment parameters; A determination module, used to respectively determine a parameter interval corresponding to each of the target environmental parameters in the working environment of the current testing device; A generating module, configured to generate a training data set based on the current value range of the current testing device and the parameter interval corresponding to each of the target environmental parameters; wherein the training data set includes a plurality of mapping relationships, the mapping relationships being mapping relationships between an independent variable data set and its corresponding test error, the independent variable data set including parameter values ​​corresponding to each of the target environmental parameters and current test values; A training module, used to train a preset neural network based on the training data set to obtain a target error prediction model; A calibration module is used to calibrate the test value of the current testing device based on the target error prediction model during the operation of the current testing device.

9. A terminal device, characterized in that: The terminal device comprises a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the self-calibration method of the current testing device according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Calibration method and device of current sensor

    CN113189529A

  • Test data processing method and device, electronic equipment and storage medium

    CN114185765A

  • Calibration device error measurement system and method and test system calibration method and system

    CN114280519A

  • Prediction model for optimizing BP neural network through simulated annealing algorithm

    CN115062757A

  • Electric power intelligent terminal metering error calibration system and method under temperature influence

    CN117607782A