Adaptive anti-wandering control method for NV center magnetic sensor
By dynamically determining the temperature drift coefficient and matching the actual temperature drift characteristics of the NV color core magnetic sensor in real time, the problem of inaccurate magnetic field data caused by the temperature drift phenomenon of the NV color core magnetic sensor is solved, and high-precision magnetic field data compensation is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SOUTHERN POWER GRID DIGITAL GRID RESEARCH INSTITUTE CO LTD
- Filing Date
- 2026-03-13
- Publication Date
- 2026-06-05
AI Technical Summary
The temperature drift phenomenon of the NV color core magnetic sensor is affected by a variety of factors, which leads to a mismatch between the temperature drift coefficient measured in advance and the actual temperature drift characteristics, affecting the accuracy of the magnetic field data.
By acquiring current and historical magnetic field data and temperature data from the NV color core magnetic sensor, the temperature drift coefficient is dynamically determined, and the actual temperature drift characteristics of the magnetic sensitive element are matched in real time. An adaptive anti-temperature drift control method is then used for temperature drift compensation.
It improves the accuracy of magnetic field data obtained by temperature drift compensation, and can cope with nonlinear temperature drift and sudden changes in probe temperature drift coefficient of NV color core magnetic sensor, maintaining high magnetic measurement accuracy.
Smart Images

Figure CN121831625B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of magnetic sensing technology, and in particular to an adaptive anti-temperature drift control method, device, computer equipment, computer-readable storage medium, and computer program product suitable for NV color center magnetic sensors. Background Technology
[0002] The working principle of a magnetic sensor is based on the response characteristics of the magnetic sensing element within the sensor to a magnetic field, which converts the magnetic field strength into an electrical signal to achieve measurement. In practical applications, it has been found that the physical characteristics of the magnetic sensing element are easily affected by changes in ambient temperature, which can cause temperature drift and lead to deviations in the magnetic field data measured by the magnetic sensor.
[0003] In related technologies, a compensation scheme based on the temperature drift coefficient is usually used to calibrate the deviation caused by the temperature drift phenomenon. For example, the temperature drift coefficient of the magnetic sensing element at different temperatures is determined in advance through experiments, and the corresponding temperature drift coefficient is called according to the real-time temperature of the magnetic sensor to compensate for the magnetic field data measured by the magnetic sensor during actual measurement.
[0004] However, for NV color core magnetic sensors, besides temperature, the temperature drift coefficient is affected by a variety of other factors. For example, after long-term operation, the magnetic sensing element of the NV color core magnetic sensor will experience aging and wear, resulting in irreversible changes in its temperature response characteristics. This leads to a mismatch between the experimentally measured temperature drift coefficient and the actual temperature drift characteristics of the magnetic sensing element. Furthermore, the installation environment of the NV color core magnetic sensor may contain complex interferences, which, in conjunction with temperature, affect the actual temperature drift characteristics of the magnetic sensing element. Therefore, the accuracy of the magnetic field data obtained based on the experimentally measured temperature drift coefficient remains relatively low. Summary of the Invention
[0005] Therefore, it is necessary to address the technical problem of low accuracy of magnetic field data obtained through temperature drift compensation by providing an adaptive anti-temperature drift control method, device, computer equipment, computer-readable storage medium, and computer program product suitable for NV color core magnetic sensors that can improve the accuracy of magnetic field data obtained through temperature drift compensation.
[0006] In a first aspect, this application provides an adaptive anti-temperature drift control method suitable for NV color core magnetic sensors, including:
[0007] Acquire the current magnetic field data and current temperature data of the NV color magnetocardiogram sensor within the current measurement cycle;
[0008] Based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetic sensor within the first historical measurement period, temperature drift compensation processing is performed on the current magnetic field data to obtain the target magnetic field data within the current measurement period; the first historical measurement period is the measurement period prior to the current measurement period.
[0009] The first historical temperature drift coefficient is determined based on the first historical magnetic field data and the first historical temperature data of the NV color core magnetic sensor within the first historical measurement period, and the second historical temperature data and the second historical temperature drift coefficient of the NV color core magnetic sensor within the second historical measurement period; the second historical measurement period is the measurement period prior to the first historical measurement period.
[0010] In one embodiment, the number of the first historical temperature data is at least one;
[0011] After obtaining the target magnetic field data within the current measurement cycle, the method further includes:
[0012] Based on the current magnetic field data, the current temperature data, and the average value of each of the first historical temperature data, the estimated temperature drift coefficient of the NV color core magnetic sensor in the current measurement cycle is determined;
[0013] The estimated temperature drift coefficient is updated based on the first historical temperature drift coefficient to obtain the current temperature drift coefficient; the current temperature drift coefficient is used to perform temperature drift compensation processing on the magnetic field data in the next measurement cycle.
[0014] In one embodiment, updating the estimated temperature drift coefficient based on the first historical temperature drift coefficient to obtain the current temperature drift coefficient includes:
[0015] Determine the first weight of the estimated temperature drift coefficient and the second weight of the first historical temperature drift coefficient;
[0016] Based on the first weight and the second weight, the estimated temperature drift coefficient and the first historical temperature drift coefficient are fused to update the estimated temperature drift coefficient and obtain the current temperature drift coefficient.
[0017] In one embodiment, determining the estimated temperature drift coefficient of the NV color core magnetometer within the current measurement cycle based on the current magnetic field data, the current temperature data, and the average value of each of the first historical temperature data includes:
[0018] Determine the magnetic field difference between the current magnetic field data and the reference magnetic field data of the NV color core magnetosensor; the reference magnetic field data is the magnetic field data measured by the NV color core magnetosensor in a magnetic field-free environment;
[0019] Determine the temperature difference between the current temperature data and the average value of each of the first historical temperature data;
[0020] The estimated temperature drift coefficient is obtained based on the ratio between the magnetic field difference and the temperature difference.
[0021] In one embodiment, the number of the first historical temperature data is at least one;
[0022] The step of performing temperature drift compensation processing on the current magnetic field data based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetometer within the first historical measurement period to obtain the target magnetic field data within the current measurement period includes:
[0023] Based on the current temperature data, the first historical temperature drift coefficient, and the average value of each of the first historical temperature data, the temperature drift magnetic field error within the current measurement cycle is determined; the temperature drift magnetic field error refers to the error in the magnetic field data caused by temperature drift.
[0024] Based on the temperature drift magnetic field error, the current magnetic field data is subjected to temperature drift compensation processing to obtain the target magnetic field data.
[0025] In one embodiment, determining the temperature drift magnetic field error within the current measurement cycle based on the current temperature data, the first historical temperature drift coefficient, and the average value of each of the first historical temperature data includes:
[0026] Determine the temperature difference between the current temperature data and the average value of each of the first historical temperature data;
[0027] The temperature drift magnetic field error is obtained by multiplying the temperature difference and the first historical temperature drift coefficient.
[0028] Secondly, this application also provides an adaptive anti-temperature drift control device suitable for NV color core magnetic sensors, comprising:
[0029] The measurement data acquisition module is used to acquire the current magnetic field data and current temperature data of the NV color magnetocardiogram sensor during the current measurement cycle;
[0030] The magnetic field temperature drift compensation module is used to perform temperature drift compensation processing on the current magnetic field data based on the current temperature data and the first historical temperature data and the first historical temperature drift coefficient of the NV color core magnetometer in the first historical measurement cycle, so as to obtain the target magnetic field data in the current measurement cycle; the first historical measurement cycle is the measurement cycle before the current measurement cycle.
[0031] The first historical temperature drift coefficient is determined based on the first historical magnetic field data and the first historical temperature data of the NV color core magnetic sensor within the first historical measurement period, and the second historical temperature data and the second historical temperature drift coefficient of the NV color core magnetic sensor within the second historical measurement period; the second historical measurement period is the measurement period prior to the first historical measurement period.
[0032] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0033] Acquire the current magnetic field data and current temperature data of the NV color magnetocardiogram sensor within the current measurement cycle;
[0034] Based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetic sensor within the first historical measurement period, temperature drift compensation processing is performed on the current magnetic field data to obtain the target magnetic field data within the current measurement period; the first historical measurement period is the measurement period prior to the current measurement period.
[0035] The first historical temperature drift coefficient is determined based on the first historical magnetic field data and the first historical temperature data of the NV color core magnetic sensor within the first historical measurement period, and the second historical temperature data and the second historical temperature drift coefficient of the NV color core magnetic sensor within the second historical measurement period; the second historical measurement period is the measurement period prior to the first historical measurement period.
[0036] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0037] Acquire the current magnetic field data and current temperature data of the NV color magnetocardiogram sensor within the current measurement cycle;
[0038] Based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetic sensor within the first historical measurement period, temperature drift compensation processing is performed on the current magnetic field data to obtain the target magnetic field data within the current measurement period; the first historical measurement period is the measurement period prior to the current measurement period.
[0039] The first historical temperature drift coefficient is determined based on the first historical magnetic field data and the first historical temperature data of the NV color core magnetic sensor within the first historical measurement period, and the second historical temperature data and the second historical temperature drift coefficient of the NV color core magnetic sensor within the second historical measurement period; the second historical measurement period is the measurement period prior to the first historical measurement period.
[0040] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0041] Acquire the current magnetic field data and current temperature data of the NV color magnetocardiogram sensor within the current measurement cycle;
[0042] Based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetic sensor within the first historical measurement period, temperature drift compensation processing is performed on the current magnetic field data to obtain the target magnetic field data within the current measurement period; the first historical measurement period is the measurement period prior to the current measurement period.
[0043] The first historical temperature drift coefficient is determined based on the first historical magnetic field data and the first historical temperature data of the NV color core magnetic sensor within the first historical measurement period, and the second historical temperature data and the second historical temperature drift coefficient of the NV color core magnetic sensor within the second historical measurement period; the second historical measurement period is the measurement period prior to the first historical measurement period.
[0044] The aforementioned adaptive anti-temperature drift control method, device, computer equipment, computer-readable storage medium, and computer program product applicable to NV color core magnetic sensors dynamically determine the temperature drift coefficient through historical magnetic field data and temperature data. This allows the temperature drift coefficient to match the actual temperature drift characteristics of the magnetic sensitive element under actual working conditions in real time. Therefore, based on the first historical temperature drift coefficient matching the actual temperature drift characteristics, the current temperature data, and the first historical temperature data, temperature drift compensation is performed on the current magnetic field data, improving the accuracy of the magnetic field data obtained by temperature drift compensation. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only one embodiment of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 This is an application environment diagram of an adaptive anti-temperature drift control method for an NV color core magnetic sensor in one embodiment;
[0047] Figure 2 This is a flowchart illustrating an adaptive anti-temperature drift control method applicable to an NV color cardiometer in one embodiment.
[0048] Figure 3 This is a flowchart illustrating the steps of determining the current temperature drift coefficient of the NV color core magnetosensor in the current measurement cycle based on current magnetic field data, current temperature data, first historical temperature data, and first historical temperature drift coefficient in one embodiment.
[0049] Figure 4 This is a flowchart illustrating the steps of performing temperature drift compensation processing on the current magnetic field data based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetometer in the first historical measurement period, to obtain the target magnetic field data in the current measurement period in one embodiment.
[0050] Figure 5 This is a flowchart illustrating an adaptive anti-temperature drift control method for an NV color cardiometameter in another embodiment.
[0051] Figure 6 This is a structural block diagram of an adaptive anti-temperature drift control device for an NV color cardiometameter in one embodiment;
[0052] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0054] It is understood that terms such as "first" and "second" in this application are used only to distinguish similar objects and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. The term "connection" in the embodiments of this application refers to various connection methods, such as direct or indirect connections, to achieve communication between devices; this application does not impose any limitations on this.
[0055] It is understandable that "at least one" refers to one or more, while "multiple" refers to two or more.
[0056] When used herein, the singular forms of “a,” “an,” and “the” may also include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising / including” or “having,” etc., specify the presence of the stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not preclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. Meanwhile, the term “and / or” as used in this specification includes any and all combinations of the associated listed items.
[0057] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0058] The adaptive anti-temperature drift control method for NV color core magnetic sensors provided in this application embodiment can be applied to, for example... Figure 1 The application environment shown is as follows. In this application environment, server 102 communicates with terminal 104 via a network. The data storage system can store the data that server 102 needs to process. The data storage system can be integrated on server 102 or placed on the cloud or other network servers. Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Terminal 104 can be, but is not limited to, various NV color magnetocardiogram sensors, temperature sensors, personal computers, laptops, smartphones, tablets, drones, low-altitude aircraft, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart vehicle devices, projection devices, etc.
[0059] For example, firstly, the server obtains the current magnetic field number and current temperature data of the NV color core magnetometer within the current measurement cycle; then, the server performs temperature drift compensation processing on the current magnetic field data based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetometer within the first historical measurement cycle, to obtain the target magnetic field data within the current measurement cycle and sends it to the user terminal; wherein, the first historical measurement cycle is the measurement cycle before the current measurement cycle; the first historical temperature drift coefficient is determined based on the first historical magnetic field data and first historical temperature data of the NV color core magnetometer within the first historical measurement cycle, and the second historical temperature data and second historical temperature drift coefficient of the NV color core magnetometer within the second historical measurement cycle, the second historical measurement cycle being the measurement cycle before the first historical measurement cycle; wherein, the current temperature data is acquired by the temperature sensor inside the NV color core magnetometer.
[0060] In one embodiment, such as Figure 2 As shown, an adaptive anti-temperature drift control method suitable for NV color core magnetic sensors is provided, which is then applied to... Figure 1 Taking a server as an example, it can be understood that this method can also be applied to a terminal, and can also be applied to a system that includes both a server and a terminal, and is implemented through the interaction between the server and the terminal. The method includes the following steps:
[0061] Step S202: Obtain the current magnetic field data and current temperature data of the NV color core magnetometer within the current measurement cycle.
[0062] NV color centers refer to luminescent defects formed by nitrogen-vacancies in diamond.
[0063] Among them, the magnetic field data is the magnetic field strength measured by the NV color core magnetometer; in practical applications, the number of magnetic field data collected by the NV color core magnetometer in each measurement cycle is at least one.
[0064] The NV color core magnetic sensor also integrates a temperature sensor, and the temperature data is the temperature collected by the temperature sensor. In practical applications, the temperature sensor collects at least one temperature data in each measurement cycle.
[0065] In this step, the server obtains the magnetic field strength measured by the NV color core magnetometer within the current measurement cycle to obtain the current magnetic field data. The server also obtains the temperature measured by the temperature sensor integrated within the NV color core magnetometer within the current measurement cycle to obtain the current temperature data.
[0066] Step S204: Based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetometer in the first historical measurement cycle, perform temperature drift compensation processing on the current magnetic field data to obtain the target magnetic field data in the current measurement cycle.
[0067] The first historical measurement period is the measurement period preceding the current measurement period. For example, the first historical measurement period is the measurement period before the current measurement period.
[0068] Among them, the temperature drift coefficient is used to characterize the rate at which the measurement accuracy of the NV color core magnetic sensor changes with temperature, and directly reflects the impact of ambient temperature fluctuations on the performance stability of the NV color core magnetic sensor.
[0069] The first historical temperature drift coefficient is determined based on the first historical magnetic field data and the first historical temperature data of the NV color core magnetic sensor within the first historical measurement period, and the second historical temperature data and the second historical temperature drift coefficient of the NV color core magnetic sensor within the second historical measurement period. The second historical measurement period is the measurement period preceding the first historical measurement period, for example, the measurement period before the first historical measurement period.
[0070] In this step, the server determines the amount of error in the magnetic field data caused by temperature drift in the current measurement period based on the current temperature data, the first historical temperature data in the previous measurement period, and the first historical temperature drift coefficient. Then, based on the current magnetic field data, it compensates for the amount of error in the magnetic field data caused by temperature drift in the current measurement period, obtains the target magnetic field data in the current measurement period, and sends it to the user terminal.
[0071] In the above-mentioned adaptive anti-temperature drift control method applicable to NV color core magnetic sensors, the temperature drift coefficient is dynamically determined by using historical magnetic field data and temperature data. This allows the temperature drift coefficient to match the actual temperature drift characteristics of the magnetic sensitive element under actual working conditions in real time. Therefore, based on the first historical temperature drift coefficient that matches the actual temperature drift characteristics, the current temperature data, and the first historical temperature data, temperature drift compensation is performed on the current magnetic field data, improving the accuracy of the magnetic field data obtained by temperature drift compensation.
[0072] In one embodiment, after obtaining the target magnetic field data in the current measurement cycle in step S204 above, the following steps are further included: determining the current temperature drift coefficient of the NV color core magnetosensor in the current measurement cycle based on the current magnetic field data, current temperature data, first historical temperature data, and first historical temperature drift coefficient; the current temperature drift coefficient is used to perform temperature drift compensation processing on the magnetic field data in the next measurement cycle.
[0073] In this step, the server estimates the temperature drift coefficient of the NV color core magnetometer in the current measurement period based on the current magnetic field data, the current temperature data, and the first historical temperature data in the first historical measurement period. The estimated temperature drift coefficient in the current measurement period is then updated based on the first historical temperature drift coefficient in the first historical measurement period to obtain the current temperature drift coefficient of the NV color core magnetometer in the current measurement period. This current temperature drift coefficient is used as the first historical temperature drift coefficient in the next measurement period for temperature drift compensation processing.
[0074] In this embodiment, by combining the current temperature data and current magnetic field data within the current measurement cycle, as well as the first historical temperature data and first historical temperature drift coefficient within the first historical measurement cycle, the current temperature drift coefficient within the current measurement cycle is dynamically determined. This allows the temperature drift coefficient to match the actual temperature drift characteristics of the magnetic sensitive element in the current operating state in real time. Consequently, the temperature drift compensation for each round of measurement is based on the temperature drift coefficient that adapts to the actual temperature drift characteristics, achieving continuous optimization of the temperature drift compensation effect and improving the accuracy of the magnetic field data obtained from the temperature drift compensation.
[0075] In one embodiment, the number of first historical temperature data is at least one.
[0076] like Figure 3 As shown, the above steps, based on the current magnetic field data, current temperature data, first historical temperature data, and first historical temperature drift coefficient, determine the current temperature drift coefficient of the NV color core magnetometer within the current measurement cycle, including the following steps:
[0077] Step S302: Determine the estimated temperature drift coefficient of the NV color core magnetic sensor in the current measurement cycle based on the current magnetic field data, the current temperature data, and the average value of each first historical temperature data.
[0078] Step S304: Update the estimated temperature drift coefficient based on the first historical temperature drift coefficient within the first historical measurement period to obtain the current temperature drift coefficient.
[0079] The current temperature drift coefficient is used to compensate for temperature drift in the magnetic field data during the next measurement cycle.
[0080] In this embodiment, firstly, the server estimates the estimated temperature drift coefficient of the NV color core magnetic sensor in the current measurement period based on the current magnetic field data, the current temperature data, and the average value of each first historical temperature data; then, the server fuses the estimated temperature drift coefficient and the first historical temperature drift coefficient to update the estimated temperature drift coefficient and obtain the current temperature drift coefficient of the NV color core magnetic sensor in the current measurement period.
[0081] In this embodiment, by combining the current temperature data and current magnetic field data of the current measurement cycle with the first historical temperature data of the first historical measurement cycle, the estimated temperature drift coefficient within the current measurement cycle can be estimated. By estimating the temperature drift coefficient and the first historical temperature drift coefficient within the first historical measurement cycle, the current temperature drift coefficient of the current measurement cycle can be dynamically determined. This allows the temperature drift coefficient to match the actual temperature drift characteristics of the magnetic sensing element in the current operating state in real time. Consequently, the temperature drift compensation for each round of measurement is based on the temperature drift coefficient that adapts to the actual temperature drift characteristics, achieving continuous optimization of the temperature drift compensation effect and improving the accuracy of the magnetic field data obtained from the temperature drift compensation.
[0082] In one embodiment, step S304 above, updating the estimated temperature drift coefficient based on the first historical temperature drift coefficient to obtain the current temperature drift coefficient, includes the following steps: determining a first weight of the estimated temperature drift coefficient and a second weight of the first historical temperature drift coefficient; and performing a fusion process on the estimated temperature drift coefficient and the first historical temperature drift coefficient based on the first weight and the second weight to update the estimated temperature drift coefficient and obtain the current temperature drift coefficient.
[0083] In this system, the server predetermines adaptive weights; the first weight for estimating the temperature drift coefficient is the adaptive weight; the second weight for the first historical temperature drift coefficient is determined based on the first weight. For example, the sum of the first and second weights is a preset value, and the server subtracts the first weight from the preset value to obtain the second weight. In practical applications, the preset value is 1, meaning the sum of the first and second weights is 1.
[0084] In this embodiment, firstly, the server determines the adaptive weight as the first weight of the estimated temperature drift coefficient, and then subtracts the first weight from the preset value to obtain the second weight of the first historical temperature drift coefficient. Next, the server performs a fusion process on the estimated temperature drift coefficient and the first historical temperature drift coefficient according to the first weight and the second weight to update the estimated temperature drift coefficient and obtain the current temperature drift coefficient.
[0085] In practical applications, the server obtains the current temperature drift coefficient according to the following formula 1:
[0086] (Formula 1)
[0087] Where N is the measurement cycle number; TC[N] is the current temperature drift coefficient; TC_E[N] is the estimated temperature drift coefficient; TC[N-1] is the first historical temperature drift coefficient; and TC_W is the adaptive weight.
[0088] In practical applications, the server has a preset initial temperature drift coefficient TC[0]. If the current measurement period is the first measurement period, the server uses the initial temperature drift coefficient TC[0] as the first historical temperature drift coefficient to calculate the current temperature drift coefficient in the first measurement period.
[0089] In this embodiment, by combining the estimated temperature drift coefficient within the current measurement cycle and the first historical temperature drift coefficient from the previous measurement cycle, the current temperature drift coefficient within the current measurement cycle can be dynamically determined. This allows the temperature drift coefficient to match the actual temperature drift characteristics of the magnetic sensing element in its current operating state in real time. Consequently, the temperature drift compensation for each measurement round is based on a temperature drift coefficient that adapts to the actual temperature drift characteristics, achieving continuous optimization of the temperature drift compensation effect and improving the accuracy of the magnetic field data obtained from temperature drift compensation. Furthermore, the server uses current temperature data and current magnetic field data to weighted correct the estimated temperature drift coefficient, achieving adaptive anti-temperature drift magnetic measurement. This can cope with nonlinear temperature drift of NV color core magnetic sensors (e.g., NV color core magnetic sensors) and sudden changes in probe temperature drift coefficients, maintaining high magnetic measurement accuracy even under these conditions.
[0090] In one embodiment, step S302 above, which determines the estimated temperature drift coefficient of the NV color core magnetic sensor in the current measurement cycle based on the current magnetic field data, the current temperature data, and the average value of each first historical temperature data, includes the following steps: determining the magnetic field difference between the current magnetic field data and the reference magnetic field data of the NV color core magnetic sensor; determining the temperature difference between the current temperature data and the average value of each first historical temperature data; and obtaining the estimated temperature drift coefficient based on the ratio between the magnetic field difference and the temperature difference.
[0091] Among them, the reference magnetic field data is the magnetic field data measured by the NV color core magnetometer in a magnetic field-free environment.
[0092] In this embodiment, the server subtracts the reference magnetic field data of the NV color core magnetometer from the current magnetic field data to obtain the magnetic field difference, and subtracts the average value of each first historical temperature data from the current temperature data to obtain the temperature difference. Then, the magnetic field difference is divided by the temperature difference to obtain the estimated temperature drift coefficient.
[0093] In practical applications, server 2 substitutes the current magnetic field data and current temperature data into formula 2 to calculate a linear fit, thereby obtaining an estimated temperature drift coefficient:
[0094] (Formula 2)
[0095] Where Mag[N] is the current magnetic field data; Mag_Bias is the baseline magnetic field data; TC_E[N] is the estimated temperature drift coefficient; Temp[N] is the current temperature data; and Ave(Temp[N-1]) is the average value of each first historical temperature data.
[0096] In practical applications, if the current measurement cycle is the first measurement cycle, the server uses the initial temperature data Temp[0] collected by the temperature sensor as the first historical temperature data to calculate the estimated temperature drift coefficient within the first measurement cycle.
[0097] In this embodiment, by combining the current temperature data and current magnetic field data of the current measurement cycle with the first historical temperature data of the first historical measurement cycle, the estimated temperature drift coefficient within the current measurement cycle can be preliminarily estimated.
[0098] In one embodiment, the number of first historical temperature data is at least one.
[0099] like Figure 4 As shown, step S204 above, based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetometer in the first historical measurement cycle, performs temperature drift compensation processing on the current magnetic field data to obtain the target magnetic field data in the current measurement cycle, including the following steps:
[0100] Step S402: Determine the temperature drift magnetic field error in the current measurement cycle based on the current temperature data, the first historical temperature drift coefficient, and the average value of each first historical temperature data.
[0101] Step S404: Based on the temperature drift magnetic field error, perform temperature drift compensation processing on the current magnetic field data to obtain the target magnetic field data.
[0102] Among them, temperature drift magnetic field error refers to the error in magnetic field data caused by temperature drift.
[0103] In this embodiment, firstly, the server calculates the error amount of the magnetic field data caused by temperature drift in the current measurement period based on the current temperature data, the first historical temperature drift coefficient, and the average value of each first historical temperature data, and obtains the temperature drift magnetic field error amount; then, the server performs temperature drift compensation processing on the current magnetic field data based on the temperature drift magnetic field error amount, obtains the target magnetic field data in the current measurement period, and sends it to the user terminal.
[0104] In this embodiment, by using the current temperature data in the current measurement cycle and the first historical temperature data and the first historical temperature drift coefficient in the first historical measurement cycle, the temperature drift magnetic field error in the current measurement cycle can be determined, and then accurate temperature drift compensation processing of the current magnetic field data can be achieved based on the temperature drift magnetic field error.
[0105] In one embodiment, step S402 above, which determines the temperature drift magnetic field error in the current measurement cycle based on the current temperature data, the first historical temperature drift coefficient, and the average value of each first historical temperature data, includes the following steps: determining the temperature difference between the current temperature data and the average value of each first historical temperature data; and obtaining the temperature drift magnetic field error based on the product of the temperature difference and the first historical temperature drift coefficient.
[0106] In this embodiment, the server subtracts the temperature difference between the average values of each first historical temperature data from the current temperature data to obtain the temperature difference value. Then, it calculates the product of the temperature difference value and the first historical temperature drift coefficient to obtain the temperature difference of the temperature drift magnetic field.
[0107] In practical applications, the server obtains the target magnetic field data according to the following formula 3:
[0108] (Formula 3)
[0109] Where Mag_NTD is the target magnetic field data; Mag[N] is the current magnetic field data; TC[N-1] is the first historical temperature drift coefficient; Temp[N] is the current temperature data; Ave(Temp[N-1]) is the average value of each first historical temperature data; TC[N-1]×(Temp[N]-Ave(Temp[N-1])) represents the temperature difference of the temperature drift magnetic field.
[0110] In practical applications, if the current measurement cycle is the first measurement cycle, the server uses the initial temperature data Temp[0] collected by the temperature sensor as the first historical temperature data to calculate the target magnetic field data within the first measurement cycle.
[0111] In this embodiment, the temperature drift magnetic field error in the current measurement cycle can be determined by using the current temperature data in the current measurement cycle, the first historical temperature data in the first historical measurement cycle, and the first historical temperature drift coefficient.
[0112] In one embodiment, the server can select different adaptive weights and measurement cycle durations based on the type of NV color core magnetometer and its operating environment to improve the accuracy of temperature drift coefficient estimation and updating.
[0113] To more clearly illustrate the adaptive temperature drift control method for NV color core magnetic sensors provided in this application, a specific embodiment is given below for detailed description. However, it should be understood that the embodiments of this application are not limited thereto. Figure 5 As shown, in one embodiment, this application also provides another adaptive temperature drift control method suitable for NV color core magnetic sensors, specifically including the following steps:
[0114] 1. Begin measurement.
[0115] 2. Configure initial parameters, including initial temperature drift coefficient TC[0], adaptive weight TC_W, and adaptive time window T_SA, and read initial temperature data Temp[0] from the temperature sensor integrated in the NV color core magnetosensor.
[0116] 3. Determine whether the magnetic measurement is complete.
[0117] 4. If the magnetic measurement has not yet ended, then enter the Nth measurement cycle, read the current magnetic field data Mag[N] from the NV color core magnetic sensor, and read the current temperature data Temp[N] from the temperature sensor. The measurement cycle duration is equal to the adaptive time window T_SA.
[0118] 5. Calculate the target magnetic field data Mag_NTD[N] after removing temperature drift and upload it to the user. The calculation formula is: Mag_NTD[N] = Mag[N] - TC[N-1] × (Temp[N] - Ave(Temp[N-1])); where TC[N-1] is the first historical temperature drift coefficient in the previous measurement cycle, and Ave(Temp[N-1]) is the average value of the first historical temperature data in the previous measurement cycle.
[0119] 6. Perform linear fitting on the current magnetic field data Mag[N] and the current temperature data Temp[N] to obtain the estimated temperature drift coefficient TC_E[N] for the current measurement cycle. The fitting formula is: Mag[N] = Mag_Bias + TC_E[N] × (Temp[N] - Ave(Temp[N-1])); where TC[N-1] is the first historical temperature drift coefficient in the previous measurement cycle, and Ave(Temp[N-1]) is the average value of the first historical temperature data in the previous measurement cycle.
[0120] 7. Calculate the target temperature drift coefficient TC[N] in the current measurement cycle according to the adaptive weight TC_W. The calculation formula is as follows: TC[N] = (1 - TC_W) × TC[N-1] + TC_W × TC_E[N].
[0121] 8. Return to step 3.
[0122] In this embodiment, firstly, the temperature drift coefficient is corrected by weighting the newly measured temperature and magnetic field data, which enables adaptive anti-temperature drift magnetic measurement. This can cope with nonlinear temperature drift and sudden changes in the temperature drift coefficient of NV color center magnetic sensors, especially NV color center magnetic sensors, and maintain high magnetic measurement accuracy even under these conditions. Secondly, different adaptive weights TC_W and adaptive time windows T_SA can be selected according to different working environments to match the typical amplitude and time period of ambient temperature changes, thereby improving the accuracy of temperature drift estimation and correction. Thirdly, the accuracy requirement for the initial temperature drift coefficient TC[0] is reduced, and it can be gradually corrected to the correct value when TC[0] has a large deviation, thus achieving self-calibration of the temperature drift coefficient. Related studies have shown that the temperature drift coefficient of diamond NV color centers has a certain degree of inconsistency. Therefore, the self-calibration of the temperature drift coefficient of NV color centers in this embodiment is valuable.
[0123] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0124] Based on the same inventive concept, this application also provides an adaptive temperature drift control device for NV color core magnetic sensors, which implements the aforementioned adaptive temperature drift control method for NV color core magnetic sensors. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more embodiments of the adaptive temperature drift control device for NV color core magnetic sensors provided below can be found in the limitations of the adaptive temperature drift control method for NV color core magnetic sensors described above, and will not be repeated here.
[0125] In one embodiment, such as Figure 6 As shown, an adaptive anti-temperature drift control device suitable for NV color core magnetometers is provided, including: a measurement data acquisition module 602 and a magnetic field temperature drift compensation module 604, wherein:
[0126] The measurement data acquisition module 602 is used to acquire the current magnetic field data and current temperature data of the NV color core magnetometer during the current measurement cycle.
[0127] The magnetic field temperature drift compensation module 604 performs temperature drift compensation processing on the current magnetic field data based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetometer in the first historical measurement cycle, to obtain the target magnetic field data in the current measurement cycle; the first historical measurement cycle is the measurement cycle before the current measurement cycle.
[0128] The first historical temperature drift coefficient is determined based on the first historical magnetic field data and the first historical temperature data of the NV color core magnetic sensor during the first historical measurement period, and the second historical temperature data and the second historical temperature drift coefficient of the NV color core magnetic sensor during the second historical measurement period; the second historical measurement period is the measurement period prior to the first historical measurement period.
[0129] In one embodiment, the adaptive anti-temperature drift control device for the NV color core magnetic sensor further includes a temperature drift coefficient update module, which is used to determine the current temperature drift coefficient of the NV color core magnetic sensor in the current measurement cycle based on the current magnetic field data, the current temperature data, the first historical temperature data, and the first historical temperature drift coefficient; the current temperature drift coefficient is used to perform temperature drift compensation processing on the magnetic field data in the next measurement cycle.
[0130] In one embodiment, the number of first historical temperature data is at least one.
[0131] The temperature drift coefficient update module is also used to determine the estimated temperature drift coefficient of the NV color core magnetometer in the current measurement cycle based on the current magnetic field data, the current temperature data, and the average value of each first historical temperature data; update the estimated temperature drift coefficient based on the first historical temperature drift coefficient to obtain the current temperature drift coefficient; the current temperature drift coefficient is used to perform temperature drift compensation processing on the magnetic field data in the next measurement cycle.
[0132] In one embodiment, the temperature drift coefficient update module is further configured to determine a first weight of the estimated temperature drift coefficient and a second weight of the first historical temperature drift coefficient; and to perform a fusion process on the estimated temperature drift coefficient and the first historical temperature drift coefficient according to the first weight and the second weight, so as to update the estimated temperature drift coefficient and obtain the current temperature drift coefficient.
[0133] In one embodiment, the temperature drift coefficient update module is further configured to determine the magnetic field difference between the current magnetic field data and the reference magnetic field data of the NV color core magnetic sensor; the reference magnetic field data is the magnetic field data measured by the NV color core magnetic sensor in a magnetic field-free environment; determine the temperature difference between the current temperature data and the average value of each first historical temperature data; and obtain the estimated temperature drift coefficient based on the ratio between the magnetic field difference and the temperature difference.
[0134] In one embodiment, the number of first historical temperature data is at least one.
[0135] The magnetic field temperature drift compensation module 604 is also used to determine the temperature drift magnetic field error in the current measurement cycle based on the current temperature data, the first historical temperature drift coefficient, and the average value of each first historical temperature data. The temperature drift magnetic field error refers to the error in the magnetic field data caused by temperature drift. Based on the temperature drift magnetic field error, the current magnetic field data is processed for temperature drift compensation to obtain the target magnetic field data.
[0136] In one embodiment, the magnetic field temperature drift compensation module 604 is further configured to determine the temperature difference between the current temperature data and the average value of each first historical temperature data; and to obtain the temperature drift magnetic field error based on the product of the temperature difference and the first historical temperature drift coefficient.
[0137] The modules in the aforementioned adaptive temperature drift control device for NV color core magnetic sensors can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.
[0138] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows. Figure 7As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores magnetic field data and temperature data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements an adaptive anti-temperature drift control method suitable for NV color core magnetometers.
[0139] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0140] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0141] Acquire the current magnetic field data and current temperature data of the NV color magnetocardiogram sensor within the current measurement cycle;
[0142] Based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetic sensor in the first historical measurement period, temperature drift compensation processing is performed on the current magnetic field data to obtain the target magnetic field data in the current measurement period; the first historical measurement period is the measurement period before the current measurement period.
[0143] The first historical temperature drift coefficient is determined based on the first historical magnetic field data and the first historical temperature data of the NV color core magnetic sensor during the first historical measurement period, and the second historical temperature data and the second historical temperature drift coefficient of the NV color core magnetic sensor during the second historical measurement period; the second historical measurement period is the measurement period prior to the first historical measurement period.
[0144] In one embodiment, when the processor executes the computer program, it further implements the following steps: determining the current temperature drift coefficient of the NV color core magnetosensor in the current measurement cycle based on the current magnetic field data, the current temperature data, the first historical temperature data, and the first historical temperature drift coefficient; the current temperature drift coefficient is used to perform temperature drift compensation processing on the magnetic field data in the next measurement cycle.
[0145] In one embodiment, the number of first historical temperature data is at least one.
[0146] When a processor executes a computer program, it also performs the following steps:
[0147] Based on the current magnetic field data, current temperature data, and the average value of each first historical temperature data, determine the estimated temperature drift coefficient of the NV color core magnetosensor in the current measurement cycle;
[0148] The estimated temperature drift coefficient is updated based on the first historical temperature drift coefficient to obtain the current temperature drift coefficient; the current temperature drift coefficient is used to perform temperature drift compensation processing on the magnetic field data in the next measurement cycle.
[0149] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0150] Determine the first weight for estimating the temperature drift coefficient and the second weight for the first historical temperature drift coefficient;
[0151] Based on the first weight and the second weight, the estimated temperature drift coefficient and the first historical temperature drift coefficient are fused to update the estimated temperature drift coefficient and obtain the current temperature drift coefficient.
[0152] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0153] Determine the magnetic field difference between the current magnetic field data and the reference magnetic field data of the NV color core magnetosensor; the reference magnetic field data is the magnetic field data measured by the NV color core magnetosensor in a magnetic field-free environment.
[0154] Determine the temperature difference between the current temperature data and the average value of each first historical temperature data point;
[0155] The estimated temperature drift coefficient is obtained based on the ratio between the magnetic field difference and the temperature difference.
[0156] In one embodiment, the number of first historical temperature data is at least one.
[0157] When a processor executes a computer program, it also performs the following steps:
[0158] Based on the current temperature data, the first historical temperature drift coefficient, and the average value of each first historical temperature data, determine the temperature drift magnetic field error within the current measurement cycle; the temperature drift magnetic field error refers to the error in the magnetic field data caused by temperature drift.
[0159] Based on the temperature drift magnetic field error, the current magnetic field data is compensated for to obtain the target magnetic field data.
[0160] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0161] Determine the temperature difference between the current temperature data and the average value of each first historical temperature data point;
[0162] The temperature drift magnetic field error is obtained by multiplying the temperature difference and the first historical temperature drift coefficient.
[0163] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0164] Acquire the current magnetic field data and current temperature data of the NV color magnetocardiogram sensor within the current measurement cycle;
[0165] Based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetic sensor in the first historical measurement period, temperature drift compensation processing is performed on the current magnetic field data to obtain the target magnetic field data in the current measurement period; the first historical measurement period is the measurement period before the current measurement period.
[0166] The first historical temperature drift coefficient is determined based on the first historical magnetic field data and the first historical temperature data of the NV color core magnetic sensor during the first historical measurement period, and the second historical temperature data and the second historical temperature drift coefficient of the NV color core magnetic sensor during the second historical measurement period; the second historical measurement period is the measurement period prior to the first historical measurement period.
[0167] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining the current temperature drift coefficient of the NV color core magnetosensor in the current measurement cycle based on the current magnetic field data, the current temperature data, the first historical temperature data, and the first historical temperature drift coefficient; the current temperature drift coefficient is used to perform temperature drift compensation processing on the magnetic field data in the next measurement cycle.
[0168] In one embodiment, the number of first historical temperature data is at least one.
[0169] When a computer program is executed by a processor, it also performs the following steps:
[0170] Based on the current magnetic field data, current temperature data, and the average value of each first historical temperature data, determine the estimated temperature drift coefficient of the NV color core magnetosensor in the current measurement cycle;
[0171] The estimated temperature drift coefficient is updated based on the first historical temperature drift coefficient to obtain the current temperature drift coefficient; the current temperature drift coefficient is used to perform temperature drift compensation processing on the magnetic field data in the next measurement cycle.
[0172] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0173] Determine the first weight for estimating the temperature drift coefficient and the second weight for the first historical temperature drift coefficient;
[0174] Based on the first weight and the second weight, the estimated temperature drift coefficient and the first historical temperature drift coefficient are fused to update the estimated temperature drift coefficient and obtain the current temperature drift coefficient.
[0175] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0176] Determine the magnetic field difference between the current magnetic field data and the reference magnetic field data of the NV color core magnetosensor; the reference magnetic field data is the magnetic field data measured by the NV color core magnetosensor in a magnetic field-free environment.
[0177] Determine the temperature difference between the current temperature data and the average value of each first historical temperature data point;
[0178] The estimated temperature drift coefficient is obtained based on the ratio between the magnetic field difference and the temperature difference.
[0179] In one embodiment, the number of first historical temperature data is at least one.
[0180] When a computer program is executed by a processor, it also performs the following steps:
[0181] Based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetometer within the first historical measurement period, temperature drift compensation processing is performed on the current magnetic field data to obtain the target magnetic field data within the current measurement period, including:
[0182] Based on the current temperature data, the first historical temperature drift coefficient, and the average value of each first historical temperature data, determine the temperature drift magnetic field error within the current measurement cycle; the temperature drift magnetic field error refers to the error in the magnetic field data caused by temperature drift.
[0183] Based on the temperature drift magnetic field error, the current magnetic field data is compensated for to obtain the target magnetic field data.
[0184] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0185] Determine the temperature difference between the current temperature data and the average value of each first historical temperature data point;
[0186] The temperature drift magnetic field error is obtained by multiplying the temperature difference and the first historical temperature drift coefficient.
[0187] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0188] Acquire the current magnetic field data and current temperature data of the NV color magnetocardiogram sensor within the current measurement cycle;
[0189] Based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetometer within the first historical measurement period, temperature drift compensation processing is performed on the current magnetic field data to obtain the target magnetic field data within the current measurement period; the first historical measurement period is the measurement period prior to the current measurement period.
[0190] The first historical temperature drift coefficient is determined based on the first historical magnetic field data and the first historical temperature data of the NV color core magnetic sensor during the first historical measurement period, and the second historical temperature data and the second historical temperature drift coefficient of the NV color core magnetic sensor during the second historical measurement period; the second historical measurement period is the measurement period prior to the first historical measurement period.
[0191] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining the current temperature drift coefficient of the NV color core magnetosensor in the current measurement cycle based on the current magnetic field data, the current temperature data, the first historical temperature data, and the first historical temperature drift coefficient; the current temperature drift coefficient is used to perform temperature drift compensation processing on the magnetic field data in the next measurement cycle.
[0192] In one embodiment, the number of first historical temperature data is at least one.
[0193] When a computer program is executed by a processor, it also performs the following steps:
[0194] Based on the current magnetic field data, current temperature data, and the average value of each first historical temperature data, determine the estimated temperature drift coefficient of the NV color core magnetosensor in the current measurement cycle;
[0195] The estimated temperature drift coefficient is updated based on the first historical temperature drift coefficient to obtain the current temperature drift coefficient; the current temperature drift coefficient is used to perform temperature drift compensation processing on the magnetic field data in the next measurement cycle.
[0196] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0197] Determine the first weight for estimating the temperature drift coefficient and the second weight for the first historical temperature drift coefficient;
[0198] Based on the first weight and the second weight, the estimated temperature drift coefficient and the first historical temperature drift coefficient are fused to update the estimated temperature drift coefficient and obtain the current temperature drift coefficient.
[0199] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0200] Determine the magnetic field difference between the current magnetic field data and the reference magnetic field data of the NV color core magnetosensor; the reference magnetic field data is the magnetic field data measured by the NV color core magnetosensor in a magnetic field-free environment.
[0201] Determine the temperature difference between the current temperature data and the average value of each first historical temperature data point;
[0202] The estimated temperature drift coefficient is obtained based on the ratio between the magnetic field difference and the temperature difference.
[0203] In one embodiment, the number of first historical temperature data is at least one.
[0204] When a computer program is executed by a processor, it also performs the following steps:
[0205] Based on the current temperature data, the first historical temperature drift coefficient, and the average value of each first historical temperature data, determine the temperature drift magnetic field error within the current measurement cycle; the temperature drift magnetic field error refers to the error in the magnetic field data caused by temperature drift.
[0206] Based on the temperature drift magnetic field error, the current magnetic field data is compensated for to obtain the target magnetic field data.
[0207] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0208] Determine the temperature difference between the current temperature data and the average value of each first historical temperature data point;
[0209] The temperature drift magnetic field error is obtained by multiplying the temperature difference and the first historical temperature drift coefficient.
[0210] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0211] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0212] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. An adaptive anti-temperature drift control method suitable for NV color core magnetic sensors, characterized in that, The method includes: Acquire the current magnetic field data and current temperature data of the NV color magnetocardiogram sensor within the current measurement cycle; Based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetic sensor within the first historical measurement period, temperature drift compensation processing is performed on the current magnetic field data to obtain the target magnetic field data within the current measurement period; the first historical measurement period is the measurement period prior to the current measurement period; the number of first historical temperature data is at least one; the first historical temperature drift coefficient is determined based on the first historical magnetic field data and first historical temperature data of the NV color core magnetic sensor within the first historical measurement period, and the second historical temperature data and second historical temperature drift coefficient of the NV color core magnetic sensor within the second historical measurement period; the second historical measurement period is the measurement period prior to the first historical measurement period; Based on the current magnetic field data, the current temperature data, and the average value of each of the first historical temperature data, the estimated temperature drift coefficient of the NV color core magnetic sensor in the current measurement cycle is determined; The estimated temperature drift coefficient is updated based on the first historical temperature drift coefficient to obtain the current temperature drift coefficient; the current temperature drift coefficient is used to perform temperature drift compensation processing on the magnetic field data in the next measurement cycle.
2. The method according to claim 1, characterized in that, The step of updating the estimated temperature drift coefficient based on the first historical temperature drift coefficient to obtain the current temperature drift coefficient includes: Determine the first weight of the estimated temperature drift coefficient and the second weight of the first historical temperature drift coefficient; Based on the first weight and the second weight, the estimated temperature drift coefficient and the first historical temperature drift coefficient are fused to update the estimated temperature drift coefficient and obtain the current temperature drift coefficient.
3. The method according to claim 1, characterized in that, The step of determining the estimated temperature drift coefficient of the NV color core magnetometer within the current measurement cycle based on the current magnetic field data, the current temperature data, and the average value of each of the first historical temperature data includes: Determine the magnetic field difference between the current magnetic field data and the reference magnetic field data of the NV color core magnetosensor; the reference magnetic field data is the magnetic field data measured by the NV color core magnetosensor in a magnetic field-free environment; Determine the temperature difference between the current temperature data and the average value of each of the first historical temperature data; The estimated temperature drift coefficient is obtained based on the ratio between the magnetic field difference and the temperature difference.
4. The method according to any one of claims 1 to 3, characterized in that, The number of the first historical temperature data is at least one; The step of performing temperature drift compensation processing on the current magnetic field data based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetometer within the first historical measurement period to obtain the target magnetic field data within the current measurement period includes: Based on the current temperature data, the first historical temperature drift coefficient, and the average value of each of the first historical temperature data, the temperature drift magnetic field error within the current measurement cycle is determined; the temperature drift magnetic field error refers to the error in the magnetic field data caused by temperature drift. Based on the temperature drift magnetic field error, the current magnetic field data is subjected to temperature drift compensation processing to obtain the target magnetic field data.
5. The method according to claim 4, characterized in that, The step of determining the temperature drift magnetic field error within the current measurement cycle based on the current temperature data, the first historical temperature drift coefficient, and the average value of each of the first historical temperature data includes: Determine the temperature difference between the current temperature data and the average value of each of the first historical temperature data; The temperature drift magnetic field error is obtained by multiplying the temperature difference and the first historical temperature drift coefficient.
6. An adaptive anti-temperature drift control device suitable for NV color core magnetic sensors, characterized in that, The device includes: The measurement data acquisition module is used to acquire the current magnetic field data and current temperature data of the NV color core magnetosensor during the current measurement cycle; A magnetic field temperature drift compensation module is used to perform temperature drift compensation processing on the current magnetic field data based on the current temperature data and the first historical temperature data and first historical temperature drift coefficient of the NV color core magnetic sensor within a first historical measurement period, to obtain the target magnetic field data within the current measurement period; the first historical measurement period is the measurement period prior to the current measurement period; the number of first historical temperature data is at least one; the first historical temperature drift coefficient is determined based on the first historical magnetic field data and first historical temperature data of the NV color core magnetic sensor within the first historical measurement period, and the second historical temperature data and second historical temperature drift coefficient of the NV color core magnetic sensor within a second historical measurement period; the second historical measurement period is the measurement period prior to the first historical measurement period; The temperature drift coefficient update module is used to determine the estimated temperature drift coefficient of the NV color core magnetometer in the current measurement cycle based on the current magnetic field data, the current temperature data, and the average value of each of the first historical temperature data; update the estimated temperature drift coefficient based on the first historical temperature drift coefficient to obtain the current temperature drift coefficient; the current temperature drift coefficient is used to perform temperature drift compensation processing on the magnetic field data in the next measurement cycle.
7. The apparatus according to claim 6, characterized in that, The temperature drift coefficient update module is further configured to determine a first weight of the estimated temperature drift coefficient and a second weight of the first historical temperature drift coefficient; and to perform a fusion process on the estimated temperature drift coefficient and the first historical temperature drift coefficient according to the first weight and the second weight, so as to update the estimated temperature drift coefficient and obtain the current temperature drift coefficient.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.