CN114089350A - Ranging correction coefficient training method, device, ranging method and electrical tool - Google Patents

Ranging correction coefficient training method, device, ranging method and electrical tool Download PDF

Info

Publication number
CN114089350A
CN114089350A CN202111385045.1A CN202111385045A CN114089350A CN 114089350 A CN114089350 A CN 114089350A CN 202111385045 A CN202111385045 A CN 202111385045A CN 114089350 A CN114089350 A CN 114089350A
Authority
CN
China
Prior art keywords
correction coefficient
module
distance
value
ranging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111385045.1A
Other languages
Chinese (zh)
Other versions
CN114089350B (en
Inventor
秦先坤
夏武
郝志杰
欧俊延
卢雯兴
陈极升
梁君华
叶青
宁淼福
雷鸣
田湘贵
张坤延
梁诚宁
吴春红
刘有强
林家成
黄承喜
赵琰
王靓
申狄秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Liuzhou Bureau of Extra High Voltage Power Transmission Co
Original Assignee
Liuzhou Bureau of Extra High Voltage Power Transmission Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Liuzhou Bureau of Extra High Voltage Power Transmission Co filed Critical Liuzhou Bureau of Extra High Voltage Power Transmission Co
Priority to CN202111385045.1A priority Critical patent/CN114089350B/en
Publication of CN114089350A publication Critical patent/CN114089350A/en
Application granted granted Critical
Publication of CN114089350B publication Critical patent/CN114089350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

The application relates to a distance measurement correction coefficient training method and device, a distance measurement method and an electrical tool. The method comprises the following steps: acquiring a correction coefficient of a distance measurement module, wherein the correction coefficient is used for correcting the relation between the induced current monitored by the distance measurement module and the electric field intensity of the position of the charged object; the distance measurement module is used for calculating the linear distance from the distance measurement module to the charged object according to the electric field intensity; acquiring an actual measurement value of the linear distance; acquiring a simulated value of the linear distance from the distance measurement module to the charged object; setting a loss function based on the actual measurement value, the simulated value and the correction coefficient; and iteratively executing the step of training the correction coefficient based on the gradient descent algorithm and the loss function until the precision of the loss function meets the preset precision requirement or the iteration number reaches the preset iteration number, and taking the trained correction coefficient as a distance measurement correction coefficient, thereby realizing more accurate measurement of the distance from the electrical tool to the charged object.

Description

Distance measurement correction coefficient training method and device, distance measurement method and electrical tool
Technical Field
The application relates to the field of electrician tools, in particular to a distance measurement correction coefficient training method and device, a distance measurement method and an electrician device.
Background
Electricians need assess electrician's instrument to electrified object's distance in order to guarantee the operation safety when carrying out electric power maintenance in-process, for example, when adopting the screwdriver to carry out electric power maintenance, in order to guarantee the operation personnel safety, need know the distance of screwdriver to electrified body, avoid because of the incident that the electrified body of contact leads to.
However, the modules used for distance measurement in existing electrical tools are susceptible to surrounding conductive substances, resulting in inaccurate measurements of the distance of the electrical tool to a charged object.
Disclosure of Invention
In view of the above, it is necessary to provide a distance measurement correction coefficient training method, a distance measurement correction coefficient training device, a distance measurement method, and an electrical device capable of accurately measuring a distance from an electrical tool to a charged object.
In a first aspect, the present application provides a method for training a ranging correction coefficient, where the method includes:
acquiring a correction coefficient of the distance measurement module, wherein the correction coefficient is used for correcting the relation between the induced current monitored by the distance measurement module and the electric field intensity of the position of the charged object; the distance measurement module is used for calculating the linear distance from the distance measurement module to the charged object according to the electric field intensity;
acquiring an actual measurement value of the linear distance;
acquiring a simulated value of the linear distance from the distance measuring module to the charged object;
setting a loss function based on the actual measurement value, the simulation value and the correction coefficient;
and iteratively executing the step of training the correction coefficient based on the gradient descent algorithm and the loss function until the precision of the loss function meets the preset precision requirement or the iteration frequency reaches the preset iteration frequency, and taking the trained correction coefficient as a ranging correction coefficient.
In one embodiment, the setting of the loss function based on the actual measurement value, the simulated value and the correction coefficient includes:
setting a distance translation term;
constructing a relation function between the actual measurement value and the simulation value based on the actual measurement value, the simulation value, the correction coefficient and the distance translation term;
setting a loss function based on the relationship function.
In one embodiment, the training of the correction coefficient based on the gradient descent algorithm and the loss function includes:
setting a learning rate;
calculating a gradient of the correction coefficient based on a loss function;
and updating the correction coefficient according to the learning rate and the gradient of the correction coefficient.
In one embodiment, the training of the correction coefficient based on the gradient descent algorithm and the loss function further includes:
calculating a gradient of a distance translation term based on a loss function;
updating a distance translation term according to a learning rate and a gradient of the distance translation term, and performing the step of constructing a relation function between the actual measurement value and the simulated value based on the actual measurement value, the simulated value, the correction coefficient and the distance translation term.
In a second aspect, the present application further provides a ranging method, including:
acquiring induced current of a charged object in an electric field;
calculating the electric field intensity of the position of the charged object based on the distance measurement correction coefficient obtained by the distance measurement correction coefficient training method and the induced current;
and calculating the linear distance from the ranging module to the charged object according to the electric field intensity of the position of the charged object.
In a third aspect, the present application further provides an electrical tool comprising:
a ranging module, the ranging module being configured to:
monitoring an induced current of a charged object in the electric field;
calculating the electric field intensity of the position of the charged object based on the distance measurement correction coefficient obtained by the distance measurement correction coefficient training method and the induced current;
and calculating the linear distance from the distance measuring module to the charged object according to the electric field intensity of the position of the charged object.
In one embodiment, the electrical tool further comprises:
and the control module is connected with the ranging module and used for receiving the linear distance from the ranging module to the charged object, which is sent by the ranging module.
In one embodiment, the electrical tool further comprises:
and the voltage measuring module is connected with the control module and is used for measuring the voltage value of the charged object contacted by the electrical tool.
In one embodiment, the electrical tool further comprises:
and the torque measuring module is connected with the control module and is used for measuring the torque force of the electrician tool in the working state.
In a fourth aspect, the present application further provides a ranging correction coefficient training apparatus, including:
the correction coefficient acquisition module is used for acquiring the correction coefficient of the distance measurement module, and the correction coefficient is used for correcting the relation between the induced current monitored by the distance measurement module and the electric field intensity of the position of the charged object; the distance measurement module is used for calculating the linear distance from the distance measurement module to the charged object according to the electric field intensity;
the actual value acquisition module is used for acquiring an actual measurement value of the linear distance;
the simulation value acquisition module is used for acquiring a simulation value of the linear distance from the distance measurement module to the charged object;
a loss function setting module for setting a loss function based on the actual measurement value, the simulation value, and the correction coefficient;
and the parameter determining module is used for iteratively executing the step of training the correction coefficient based on the gradient descent algorithm and the loss function until the precision of the loss function meets the preset precision requirement or the iteration frequency reaches the preset iteration frequency, and taking the trained correction coefficient as a ranging correction coefficient.
The distance measurement correction coefficient training method, the distance measurement correction coefficient training device, the distance measurement method and the electrician tool are characterized in that a correction coefficient of a distance measurement module is obtained firstly, wherein the correction coefficient is used for correcting the relation between induced current monitored by the distance measurement module and electric field intensity of a position where a charged object is located, the distance measurement module is used for calculating the linear distance from the distance measurement module to the charged object according to the electric field intensity, then an actual measurement value of the linear distance and a simulated value of the linear distance from the distance measurement module to the charged object are obtained, a loss function is set based on the actual measurement value, the simulated value and the correction coefficient, finally the step of training the correction coefficient based on a gradient descent algorithm and the loss function is executed in an iterative mode until the precision of the loss function meets a preset precision requirement or the iteration times reach preset iteration times, and the trained correction coefficient is used as the distance measurement correction coefficient. The distance measurement correction coefficient training method continuously updates the distance measurement correction coefficient based on the gradient descent method until the precision of the loss function meets the requirement, so that the distance from the electrical tool to the charged object is more accurately measured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the conventional technologies of the present application, the drawings used in the descriptions of the embodiments or the conventional technologies will be briefly introduced below, it is obvious that the drawings in the following descriptions are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating a method for training a ranging correction factor according to an embodiment;
FIG. 2 is a flow chart illustrating the steps of setting a loss function based on actual measured values, simulated values, and correction coefficients in one embodiment;
FIG. 3 is a schematic flow chart diagram illustrating the step of training the correction coefficients based on the gradient descent algorithm and the loss function in one embodiment;
FIG. 4 is a flow diagram illustrating a ranging method according to one embodiment;
FIG. 5 is a schematic view of an exemplary embodiment of an electrical tool;
FIG. 6 is a diagram illustrating an exemplary ranging correction factor training apparatus;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Embodiments of the present application are set forth in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or be connected to the other element through intervening elements. Further, "connection" in the following embodiments is understood to mean "electrical connection", "communication connection", or the like, if there is a transfer of electrical signals or data between the connected objects.
As used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises/comprising," "includes" or "including," etc., specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof.
In order to solve the problem mentioned in the background art that the distance from an electrical tool to a charged object is inaccurate, the present invention provides a distance measurement correction coefficient training method, as shown in fig. 1, the method comprising:
s200, obtaining a correction coefficient of the ranging module.
The correction coefficient is used for correcting the relation between the induced current monitored by the distance measurement module and the electric field intensity of the position of the charged object. In the process of calculating the electric field intensity, the calculated electric field value is inaccurate due to the fact that the electric field value is easily influenced by surrounding conductive substances, and the relation between the induced current monitored by the ranging module and the electric field intensity of the position of the charged object is corrected by the correction coefficient, so that the electric field intensity is not easily influenced by the surrounding conductive substances in the process of calculating the electric field intensity.
The distance measuring module comprises an electromagnetic field sensor and is used for calculating the linear distance from the distance measuring module to the charged object according to the electric field intensity.
The electromagnetic field sensor in the distance measuring module may obtain an analog charge value Q of any point in the electric field by using an analog charge method, and obtain an electric field strength e (t) of a point in the electric field at a certain time t by knowing the analog charge value Q (t) of the point and the induced current i (t) of the point at the time t. The induced current i (t) can be directly obtained by the electromagnetic field sensor described above.
In particular, the method comprises the following steps of,
Figure BDA0003366819690000061
wherein, K is a correction coefficient, epsilon is a constant, epsilon is 8.854187817 multiplied by 10-12And A is the cross-sectional area of the conductor (i.e., charged body). Knowing I (t), K, ε, and Q (t), the electric field strength E (t) can be solved for.
S400, acquiring an actual measurement value of the linear distance.
The actual measurement value is the distance between the measurement module manually measured and the charged object.
S600, a simulated value of the linear distance from the distance measuring module to the charged object is obtained.
The simulation value is obtained by calculating the electric field intensity calculated by the distance measurement module based on a simulated charge method or other field intensity calculation methods. Specifically, the simulated value of the linear distance from the distance measuring module to the charged object may be obtained by dividing the voltage of the charged object by the electric field intensity at the position of the charged object.
And S800, setting a loss function based on the actual measurement value, the simulated value and the correction coefficient.
Wherein the loss function is used to measure the difference between the actual measured value and the simulated value.
And S900, iteratively executing the step of training the correction coefficient based on the gradient descent algorithm and the loss function until the precision of the loss function meets the preset precision requirement or the iteration frequency reaches the preset iteration frequency, and taking the trained correction coefficient as a ranging correction coefficient.
And presetting the precision of the loss function and the iteration times according to the actual engineering needs. And when the iteration frequency of the gradient descent algorithm reaches the preset iteration frequency or the loss function precision meets the preset precision, stopping the operation of the gradient descent algorithm, and outputting the correction coefficient at the moment as a distance measurement correction coefficient for calculating the linear distance from the distance measurement module to the charged object in the finally set distance measurement module.
The distance measurement correction coefficient training method comprises the steps of firstly obtaining a correction coefficient of a distance measurement module, wherein the correction coefficient is used for correcting the relation between induced current monitored by the distance measurement module and electric field intensity of a position where a charged object is located, the distance measurement module is used for calculating the linear distance from the distance measurement module to the charged object according to the electric field intensity, then obtaining an actual measurement value of the linear distance and a simulated value of the linear distance from the distance measurement module to the charged object, setting a loss function based on the actual measurement value, the simulated value and the correction coefficient, finally carrying out iterative training of the correction coefficient based on a gradient descent algorithm and the loss function until the precision of the loss function meets a preset precision requirement or the iterative training reaches a preset iterative time, and taking the trained correction coefficient as the distance measurement correction coefficient. The distance measurement correction coefficient training method continuously updates the distance measurement correction coefficient based on a gradient descent method until the precision of the loss function meets the requirement, so that the distance from an electrical tool to a charged object is more accurately measured.
In one embodiment, as illustrated in FIG. 2, the above step 800 comprises:
and S810, setting a distance translation term.
When the distance measurement module calculates the simulated value of the distance, the time difference exists between the electric field value used by the distance measurement module and the signal transmission, and the staff using the distance measurement module to perform measurement is in a moving state, which causes the electric field value used in the process of calculating the simulated value by the distance measurement module to be the previous electric field value, thereby causing an offset error to exist between the calculated simulated value and the actual measurement value. Therefore, the distance translation item is set, the moving state of the worker is taken as a consideration factor in the process of calculating the linear distance from the distance measurement module to the charged object, and the precision of the simulated value obtained by the distance measurement module is improved.
S820, a relation function between the actual measured value and the simulation value is constructed based on the actual measured value, the simulation value, the correction coefficient and the distance translation item.
Wherein y represents a simulation value, X represents an actual measurement value, and X0Representing the distance translation term, K representing the correction factor, y, K, X and X0The relationship function between can be expressed as y ═ K (X-X)0)。
S830, setting a loss function based on the relation function.
The loss function J constructed and set based on the above relationship function can be represented as:
Figure BDA0003366819690000081
wherein X can be selected from a certain K and X0In this case, X ═ X [ X ] is a column vector consisting of actual measurement values obtained n times of measurements at different distances1,x2,…,xn]TNorm represents the Euclidean norm and can be expressed as
Figure BDA0003366819690000082
Wherein, by setting the preset precision, when the output value of the loss function meets the preset precision, the output is last time moreNew correction factor K and distance translation term X0And taking the correction coefficient K obtained at the moment as a ranging correction coefficient in the subsequent measurement.
In one embodiment, as shown in fig. 3, the step S900 includes:
s910, a learning rate is set.
S920, a gradient of the correction coefficient is calculated based on the loss function.
S930, the correction coefficient is updated according to the learning rate and the gradient of the correction coefficient.
Wherein the updated correction coefficient is equal to the original correction coefficient minus the learning rate multiplied by the gradient value of the original correction coefficient.
In an embodiment, as shown in fig. 3, the step S930 further includes the following steps:
s940, calculating the gradient of the distance translation term based on the loss function;
s950, the distance translation term is updated according to the learning rate and the gradient of the distance translation term, and the process proceeds to step S820.
Wherein the updated distance translation term is equal to the original distance translation term minus the learning rate multiplied by the gradient value of the original distance translation term.
As shown in fig. 4, the present invention also provides a ranging method, including:
s1000, acquiring induced current of the charged object in the electric field.
S2000, calculating the electric field intensity of the position of the charged object based on the distance measurement correction coefficient and the induced current obtained by the distance measurement correction coefficient training method.
And S3000, calculating the linear distance from the distance measuring module to the charged object based on the electric field intensity of the position of the charged object.
The linear distance from the distance measuring module to the charged object is equal to the voltage of the charged object divided by the electric field intensity of the position of the charged object.
Table 1 shows the difference between the simulated value and the actual value measured by the above distance measurement method.
TABLE 1 simulated and actual distance values from ranging module to charged object
Figure BDA0003366819690000091
Figure BDA0003366819690000101
As can be seen from table 1, the distance measurement method for measuring the distance from the distance measurement module to the charged object based on the distance measurement correction coefficient obtained by the distance measurement correction coefficient training method has high measurement accuracy, and can output a simulation value with stable accuracy when the actual value is larger or smaller.
For the specific limitations of the above ranging method, see the above limitations on the training method of the ranging correction coefficient, which are not described herein again.
It should be understood that although the various steps in the flowcharts of fig. 1-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps or stages.
As shown in fig. 5, the present invention also provides an electrical tool comprising:
a ranging module 100 configured to:
monitoring an induced current of a charged object in the electric field;
calculating the electric field intensity of the position of the charged object based on the distance measurement correction coefficient obtained by the distance measurement correction coefficient training method and the induced current;
and calculating the linear distance from the ranging module to the charged object according to the electric field intensity of the position of the charged object.
Wherein, this electrician's instrument can be the screwdriver, and electrician uses this screwdriver of measurement that can be accurate to the distance of electrified object at daily in-process of patrolling and examining, has promoted the degree of safety of electrician's personnel working process by a wide margin.
The electrical tool may be a tool that is required to be used in an electrical work process, such as pliers.
Wherein, the distance measuring module comprises an electromagnetic field sensor. Specifically, an electromagnetic field sensor of the type UAV-LF-04 may be used, the sensor frequency range being 5Hz-400kHz, and the electric field measurement error being less than 5%.
In one embodiment, as shown in fig. 5, the electrical tool further comprises:
and the control module 200 is connected with the ranging module 100 and is used for receiving the linear distance from the ranging module to the charged object, which is sent by the ranging module.
The control module 200 may be an MCU (micro controller Unit), or may be an embedded control panel or other integrated control chips. Specifically, the control module 200 can adopt an STM32F103 single chip microcomputer, the STM32F103 single chip microcomputer adopts a Cortex-M3 kernel, the highest speed of a CPU reaches 72MHz, and the method has the characteristics of short interruption delay and low debugging cost.
In one embodiment, as shown in fig. 5, the electrical tool further comprises:
and a voltage measuring module 300 connected to the control module 200 for measuring a voltage value of the charged object contacted by the electrical tool.
The voltage measuring module 300 is further configured to send the voltage value to the controller.
The voltage measurement module 300 is a module capable of implementing a voltage measurement function, specifically, the voltage measurement module 300 may be an IM1253B power monitoring module, and the IM1253B power monitoring module may collect single-phase direct current parameters, including voltage, current, active power, and other parameters.
In one embodiment, as shown in fig. 5, the electrical tool further comprises:
the torque measuring module 400 is connected to the control module 200 and is used for measuring the magnitude of the torque of the electrical tool in the working state.
The torque measurement module 400 is further configured to send the torque value to the control module 200.
The torque detection module 400 can be a module capable of implementing a torque measurement function, and specifically, the torque detection module 400 can be a JNNT-S micro static torque and torque measurement module.
In one embodiment, as shown in fig. 5, the electrical tool further comprises:
and the alarm module 500 is connected with the control module 200 and is used for sending an alarm signal when the voltage value measured by the voltage measurement module exceeds a preset voltage range and/or the distance measured by the distance measurement module exceeds a preset distance range.
In one embodiment, as shown in fig. 5, the electrical tool further comprises:
and a display module 600 connected to the control module 200 for displaying the linear distance from the distance measuring module to the charged object, the voltage value and the torque value.
The display module 600 may be a liquid crystal display or an LED screen. Specifically, the display module adopts a 0.3-inch OLED display screen, and the display module 600 is used for receiving and displaying the linear distance, the voltage value and the torque value sent by the control module 600, and is also used for realizing interaction between a user and an electrical tool.
In one embodiment, as shown in fig. 5, the electrical tool further comprises:
the input module 700 is connected to the control module 200 and is configured to adjust the value displayed by the display module 600 when there is no linear distance, no voltage value, or no torque value.
As shown in fig. 6, the present application also provides a ranging correction factor training device, including:
a correction coefficient acquisition module 20, configured to acquire a correction coefficient of the distance measurement module, where the correction coefficient is used to correct a relationship between an induced current monitored by the distance measurement module and an electric field intensity at a position where a charged object is located; the distance measurement module is used for calculating a simulated value of the linear distance from the distance measurement module to the charged object according to the electric field intensity;
an actual value obtaining module 40, configured to obtain an actual measurement value of the linear distance;
a simulated value obtaining module 60, configured to obtain a simulated value of a linear distance from the distance measuring module to the charged object;
a loss function setting module 80 configured to set a loss function based on the actual measurement value, the simulated value, and the correction coefficient;
and the parameter determining module 90 is configured to iteratively perform the step of training the correction coefficient based on the gradient descent algorithm and the loss function until the precision of the loss function meets a preset precision requirement or the number of iterations reaches a preset number of iterations, and use the trained correction coefficient as a ranging correction coefficient.
In one embodiment, the loss function setting module 800 includes:
and the translation item setting unit is used for setting the distance translation item.
And the relation function construction unit is used for constructing a relation function between the actual measured value and the simulation value based on the actual measured value, the simulation value, the correction coefficient and the distance translation item.
A loss function setting unit for setting a loss function based on the relationship function.
In one embodiment, the parameter determining module 900 includes:
a learning rate setting unit for setting a learning rate.
And a correction coefficient updating unit for updating the correction coefficient according to the learning rate and the gradient of the correction coefficient.
In one embodiment, the parameter determining module 900 further includes:
a distance translation term calculation unit for calculating a gradient of the distance translation term based on the loss function.
And the distance translation item updating unit is used for updating a distance translation item according to a learning rate and the gradient of the distance translation item, and is also used for constructing a relation function between the actual measurement value and the simulation value based on the actual measurement value, the simulation value, the correction coefficient and the distance translation item.
For specific limitations of the ranging correction factor training device, reference may be made to the above limitations of the ranging correction factor training method, and details are not repeated here. All or part of each module in the ranging correction coefficient training device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and another division manner may be available in actual implementation.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of range correction coefficient training. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory having a computer program stored therein and a processor that when executing the computer program performs the steps of:
s200, obtaining a correction coefficient of the ranging module.
S400, acquiring an actual measurement value of the linear distance.
S600, a simulated value of the linear distance from the distance measuring module to the charged object is obtained.
S800, setting a loss function based on the actual measurement value, the simulation value and the correction coefficient.
And S900, iteratively executing the step of training the correction coefficient based on the gradient descent algorithm and the loss function until the precision of the loss function meets the preset precision requirement or the iteration frequency reaches the preset iteration frequency, and taking the trained correction coefficient as a ranging correction coefficient.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and S810, setting a distance translation term.
S820, a relation function between the actual measured value and the simulation value is constructed based on the actual measured value, the simulation value, the correction coefficient and the distance translation item.
S830, setting a loss function based on the relation function.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
s910, a learning rate is set.
S920, a gradient of the correction coefficient is calculated based on the loss function.
S930, the correction coefficient is updated according to the learning rate and the gradient of the correction coefficient.
In one embodiment, the processor when executing the computer program further performs the steps of:
s940, calculating the gradient of the distance translation term based on the loss function;
s950, the distance translation term is updated according to the learning rate and the gradient of the distance translation term, and the process proceeds to step S820.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
s1000, acquiring induced current of the charged object in the electric field.
S2000, calculating the electric field intensity of the position of the charged object based on the distance measurement correction coefficient and the induced current obtained by the distance measurement correction coefficient training method.
And S3000, calculating the linear distance from the distance measuring module to the charged object based on the electric field intensity of the position of the charged object.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
and S200, acquiring a correction coefficient of the ranging module.
S400, acquiring an actual measurement value of the linear distance.
S600, a simulated value of the linear distance from the distance measuring module to the charged object is obtained.
S800, setting a loss function based on the actual measurement value, the simulation value and the correction coefficient.
And S900, iteratively executing the step of training the correction coefficient based on the gradient descent algorithm and the loss function until the precision of the loss function meets the preset precision requirement or the iteration frequency reaches the preset iteration frequency, and taking the trained correction coefficient as a ranging correction coefficient.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and S810, setting a distance translation term.
S820, a relation function between the actual measured value and the simulation value is constructed based on the actual measured value, the simulation value, the correction coefficient and the distance translation item.
S830, a loss function is set based on the relation function.
In one embodiment, the computer program when executed by the processor further performs the steps of:
s910, a learning rate is set.
S920, a gradient of the correction coefficient is calculated based on the loss function.
S930, the correction coefficient is updated according to the learning rate and the gradient of the correction coefficient.
In one embodiment, the computer program when executed by the processor further performs the steps of:
s940, calculating the gradient of the distance translation term based on the loss function;
s950, the distance translation term is updated according to the learning rate and the gradient of the distance translation term, and the process proceeds to step S820.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
s1000, acquiring induced current of a charged object in the electric field.
S2000, calculating the electric field intensity of the position of the charged object based on the distance measurement correction coefficient and the induced current obtained by the distance measurement correction coefficient training method.
And S3000, calculating the linear distance from the distance measuring module to the charged object based on the electric field intensity of the position of the charged object.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. 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), among others.
In the description herein, references to the description of "some embodiments," "other embodiments," "desired embodiments," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, a schematic description of the above terminology may not necessarily refer to the same embodiment or example.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1.一种测距修正系数训练方法,其特征在于,所述方法包括:1. A ranging correction coefficient training method, wherein the method comprises: 获取测距模块的修正系数,所述修正系数用于修正所述测距模块监测的感生电流和带电物体所在位置的电场强度的关系;所述测距模块用于根据所述电场强度计算所述测距模块到所述带电物体的直线距离的仿真值;The correction coefficient of the ranging module is obtained, and the correction coefficient is used to correct the relationship between the induced current monitored by the ranging module and the electric field strength at the location of the charged object; The simulation value of the straight-line distance from the ranging module to the charged object; 获取所述直线距离的实际测量值;obtaining the actual measured value of the straight-line distance; 获取所述测距模块到所述带电物体的直线距离的仿真值;Obtain the simulation value of the straight-line distance from the ranging module to the charged object; 基于所述实际测量值、所述仿真值和所述修正系数设置损失函数;setting a loss function based on the actual measured value, the simulated value and the correction factor; 迭代执行基于梯度下降算法和所述损失函数训练所述修正系数的步骤,直至所述损失函数精度满足预设精度要求或迭代次数到达预设迭代次数,并将训练好的所述修正系数作为测距修正系数。Iteratively execute the step of training the correction coefficient based on the gradient descent algorithm and the loss function until the loss function accuracy meets the preset accuracy requirement or the number of iterations reaches the preset number of iterations, and the trained correction coefficient is used as the test. distance correction factor. 2.根据权利要求1所述方法,其特征在于,所述基于所述实际测量值、所述仿真值和所述修正系数设置损失函数包括:2. The method according to claim 1, wherein the setting a loss function based on the actual measured value, the simulated value and the correction coefficient comprises: 设置距离平移项;Set the distance translation item; 基于所述实际测量值、所述仿真值、所述修正系数与所述距离平移项构建所述实际测量值与所述仿真值之间的关系函数;constructing a relationship function between the actual measured value and the simulated value based on the actual measured value, the simulated value, the correction coefficient and the distance translation term; 基于所述关系函数设置损失函数。A loss function is set based on the relationship function. 3.根据权利要求1或2所述方法,其特征在于,所述基于梯度下降算法和所述损失函数训练所述修正系数包括:3. The method according to claim 1 or 2, wherein the training the correction coefficient based on the gradient descent algorithm and the loss function comprises: 设置学习率;set the learning rate; 基于所述损失函数计算所述修正系数的梯度;calculating the gradient of the correction coefficient based on the loss function; 根据所述学习率和所述修正系数的梯度更新所述修正系数。The correction coefficient is updated according to the learning rate and the gradient of the correction coefficient. 4.根据权利要求2所述方法,其特征在于,所述基于梯度下降算法和所述损失函数训练所述修正系数后还包括:4. The method according to claim 2, wherein after training the correction coefficient based on the gradient descent algorithm and the loss function, the method further comprises: 基于所述损失函数计算所述距离平移项的梯度;calculating the gradient of the distance translation term based on the loss function; 根据所述学习率和所述距离平移项的梯度更新所述距离平移项,并进入所述基于所述实际测量值、所述仿真值、所述修正系数与所述距离平移项构建所述实际测量值与所述仿真值之间的关系函数的步骤。Update the distance translation term according to the learning rate and the gradient of the distance translation term, and enter into the construction of the actual measurement value, the simulation value, the correction coefficient and the distance translation term. The step of the relationship function between the measured value and the simulated value. 5.一种测距方法,其特征在于,包括:5. A ranging method, characterized in that, comprising: 获取电场中带电物体的感生电流;Obtain the induced current of a charged object in an electric field; 基于权利要求1-4中任一项所述的测距修正系数训练方法得到的所述测距修正系数和所述感生电流计算所述带电物体所在位置的电场强度;Calculate the electric field strength at the location of the charged object based on the ranging correction coefficient and the induced current obtained by the ranging correction coefficient training method according to any one of claims 1-4; 根据所述带电物体所在位置的电场强度计算所述测距模块到所述带电物体的直线距离。The straight-line distance from the ranging module to the charged object is calculated according to the electric field strength at the location of the charged object. 6.一种电工工具,其特征在于,所述工具包括:6. An electrician tool, characterized in that the tool comprises: 测距模块,所述测距模块用于:A ranging module, the ranging module is used for: 监测电场中带电物体的感生电流;Monitoring the induced current of charged objects in the electric field; 基于权利要求1-4中任一项所述的测距修正系数训练方法得到的所述测距修正系数和所述感生电流计算所述带电物体所在位置的电场强度;Calculate the electric field strength at the location of the charged object based on the ranging correction coefficient and the induced current obtained by the ranging correction coefficient training method according to any one of claims 1-4; 根据所述带电物体所在位置的电场强度计算所述测距模块到所述带电物体的直线距离。The straight-line distance from the ranging module to the charged object is calculated according to the electric field strength at the location of the charged object. 7.根据权利要求6所述的电工工具,其特征在于,所述电工工具还包括:7. The electrician tool according to claim 6, wherein the electrician tool further comprises: 控制模块,与所述测距模块连接,用于接收测距模块发送的所述测距模块到所述带电物体的直线距离。A control module, connected with the ranging module, is used for receiving the straight-line distance from the ranging module to the charged object sent by the ranging module. 8.根据权利要求6所述电工工具,其特征在于,所述电工工具还包括:8. The electrical tool according to claim 6, wherein the electrical tool further comprises: 电压测量模块,与所述控制模块连接,用于测量所述电工工具接触的所述带电物体的电压数值。A voltage measurement module, connected with the control module, is used for measuring the voltage value of the charged object contacted by the electrician tool. 9.根据权利要求6-8中任一项所述的电工工具,其特征在于,所述电工工具还包括:9. The electrician tool according to any one of claims 6-8, wherein the electrician tool further comprises: 扭矩测量模块,与所述控制模块连接,用于测量所述电工工具处于工作状态时的扭力大小。A torque measurement module, connected with the control module, is used for measuring the torque size of the electric tool when it is in a working state. 10.一种测距修正系数训练装置,其特征在于,包括:10. A ranging correction coefficient training device, characterized in that it comprises: 修正系数获取模块,用于获取测距模块的修正系数,所述修正系数用于修正所述测距模块监测的感生电流和带电物体所在位置的电场强度的关系;所述测距模块用于根据所述电场强度计算所述测距模块到所述带电物体的直线距离的仿真值;a correction coefficient acquisition module, used to acquire a correction coefficient of the ranging module, the correction coefficient is used to correct the relationship between the induced current monitored by the ranging module and the electric field strength at the location of the charged object; the ranging module is used for Calculate the simulation value of the straight-line distance from the ranging module to the charged object according to the electric field strength; 实际值获取模块,用于获取所述直线距离的实际测量值;an actual value acquisition module for acquiring the actual measured value of the straight-line distance; 仿真值获取模块,用于获取所述测距模块到所述带电物体的直线距离的仿真值;a simulation value obtaining module, used for obtaining the simulation value of the straight-line distance from the ranging module to the charged object; 损失函数设置模块,用于基于所述实际测量值、所述仿真值和所述修正系数设置损失函数;a loss function setting module, configured to set a loss function based on the actual measured value, the simulated value and the correction coefficient; 参数确定模块,用于迭代执行基于梯度下降算法和所述损失函数训练所述修正系数的步骤,直至所述损失函数精度满足预设精度要求或迭代次数到达预设迭代次数,并将训练好的所述修正系数作为测距修正系数。A parameter determination module, configured to iteratively execute the step of training the correction coefficient based on the gradient descent algorithm and the loss function, until the accuracy of the loss function meets the preset accuracy requirement or the number of iterations reaches the preset number of iterations, and the trained The correction coefficient is used as a ranging correction coefficient.
CN202111385045.1A 2021-11-22 2021-11-22 Distance measurement correction factor training method, device, distance measurement method and electrician tool Active CN114089350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111385045.1A CN114089350B (en) 2021-11-22 2021-11-22 Distance measurement correction factor training method, device, distance measurement method and electrician tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111385045.1A CN114089350B (en) 2021-11-22 2021-11-22 Distance measurement correction factor training method, device, distance measurement method and electrician tool

Publications (2)

Publication Number Publication Date
CN114089350A true CN114089350A (en) 2022-02-25
CN114089350B CN114089350B (en) 2025-03-21

Family

ID=80302594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111385045.1A Active CN114089350B (en) 2021-11-22 2021-11-22 Distance measurement correction factor training method, device, distance measurement method and electrician tool

Country Status (1)

Country Link
CN (1) CN114089350B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114726A (en) * 2022-06-15 2022-09-27 中国第一汽车股份有限公司 Oil churning loss correction method and device and target vehicle

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618288A (en) * 2019-01-28 2019-04-12 上海海事大学 Wireless sensor network distance measurement system and method based on deep convolutional neural network
WO2021169473A1 (en) * 2020-02-28 2021-09-02 深圳前海微众银行股份有限公司 Model performance optimization method, apparatus and device, and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618288A (en) * 2019-01-28 2019-04-12 上海海事大学 Wireless sensor network distance measurement system and method based on deep convolutional neural network
WO2021169473A1 (en) * 2020-02-28 2021-09-02 深圳前海微众银行股份有限公司 Model performance optimization method, apparatus and device, and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄小波;林湘宁;马晓飞;翁汉;鲁文军;: "适用于集中参数单端测距模型的距离修正方法", 电力系统自动化, no. 24, 30 December 2006 (2006-12-30) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114726A (en) * 2022-06-15 2022-09-27 中国第一汽车股份有限公司 Oil churning loss correction method and device and target vehicle
CN115114726B (en) * 2022-06-15 2024-12-31 中国第一汽车股份有限公司 Oil churning loss correction method, device and target vehicle

Also Published As

Publication number Publication date
CN114089350B (en) 2025-03-21

Similar Documents

Publication Publication Date Title
EP3367209B1 (en) Method and apparatus for surface and ambient temperature estimation for portable devices
CN110617916B (en) Calibration method and device of air pressure sensor
CN111650446A (en) Power parameter measuring method, system, device, computer equipment and storage medium
EP3215860B1 (en) Systems and methods of measuring and determining noise parameters
WO2015033503A1 (en) Estimation device and estimation method
CN106777633A (en) A kind of solid insulation switch cabinet switch contact temperature computation method and device
CN112881818B (en) Electric field strength measurement method, device, computer equipment and storage medium
CN114089350A (en) Ranging correction coefficient training method, device, ranging method and electrical tool
JP6528598B2 (en) Diffusion resistance identification device for secondary battery
JP3626460B2 (en) Two-dimensional stress field measurement system and two-dimensional stress field measurement program
CN117405075B (en) Intelligent settlement monitoring method and system
CN100473947C (en) Level-meter
CN105571666A (en) Flow compensation method, compensation device and flow sensor
CN110896474B (en) Distance compensation method, device and equipment for TOF module
CN115431302B (en) Robot joint idle stroke measuring method and device, electronic equipment and storage medium
EP3865838A1 (en) Enhancing rtd measurement accuracy by means of variable excitation current
CN109270455A (en) Induction machine state monitoring method based on hyposensitiveness Ensemble Kalman Filter
CN109737940A (en) A kind of electronic compass real-time, freedom calibration method and device
JP2017009432A (en) Information processing device, method for correcting measurement value, and program
CN111380616A (en) Separated temperature measuring module
CN111896144A (en) Body temperature detection method, device, equipment and computer readable storage medium
Tomczyk Polynomial approximation of the maximum dynamic error generated by measurement systems
CN115659745B (en) Method and device for predicting residual positive stress of rectangular section and storage medium
JP2021040362A (en) State estimation device, state estimation program, state estimation method
JP7177975B2 (en) Temperature estimation device, temperature estimation method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant