Sensor signal interpolation method, sensor, terminal device, and storage medium
By using non-equidistant interpolation method in sensor signal interpolation, the interpolation point and functional relationship of sensor signal is calculated and established, the problem of Runge oscillation is solved and the measurement accuracy of the sensor is improved.
Patent Information
- Application Number
- PCT/CN2023/117111
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-09-05
- Publication Date
- 2025-03-13
AI Technical Summary
The prior art is prone to Runge oscillation during sensor signal interpolation, causing the processed data to deviate from the real data and affect the sensor performance.
The interpolation point of the sensor signal is calculated by using non-equidometric interpolation method, the measurement point is calculated by sine and cosine functions, and the non-equidometric interpolation point is formed, and the interpolation function is calculated by polynomial interpolation to establish the relationship between the electrical signal and the measured signal.
It effectively avoids Runge oscillation, improves fitting accuracy, reduces errors, enables the sensor to measure signals more accurately, and improves the sensor's accuracy.
Smart Images

Figure CN2023117111_13032025_PF_FP_ABST
Abstract
Description
Sensor signal interpolation method, sensor, terminal device and storage medium Technical Field
[0001] The present invention belongs to the technical field of sensors, and in particular relates to an interpolation method for sensor signals, and a sensor, a terminal device, and a storage medium using the interpolation method. Background Art
[0002] A sensor is a device or apparatus that senses a specified measured signal and converts it into a usable signal according to a specific pattern. It typically consists of a sensitive element or a combination of a sensitive element and a conversion element. The sensitive element directly senses the measured signal and outputs a physical or electrical signal that is related to the measured signal. The conversion element converts the physical signal output by the sensitive element into an electrical signal. The electrical signal output by the conversion element is then conditioned, amplified, and converted by a conversion circuit to produce a standardized voltage, current, or digital signal. Due to inconsistencies in the raw output signal, conditioning the output electrical signal is sometimes required during sensor fabrication to obtain a standardized voltage, current, or digital signal. Commonly specified current signals are 4-20 mA or voltage signals are 0.5-4.5 V. The measured signal corresponds to a specific current or voltage value. The measured signal x typically has a maximum value M, called the range. When the sensitive element is operating, the output electrical signal y has a functional relationship with x, which can be expressed as y = f(x). However, the functional relationship of y=f(x) is unknown or inaccurate before the sensor signal is conditioned, and needs to be determined through a finite number of sampling points x. i and its corresponding electrical signal value y i The functional relationship between y and x, y = f(x), is obtained. Based on y = f(x), the sensor's output signal y can then be adjusted (e.g., through nonlinear compensation) to generate a target signal that is more convenient for subsequent processing and use. Currently, polynomial interpolation is typically used to determine the functional expression for y = f(x).
[0003] The current interpolation or calibration theory basically adopts equal-interval sampling, that is, taking x i =iM / (N-1), where i=0, 1, ..., N-1, where N represents the number of sampling or interpolation points. Adjacent sampling points are spaced equally (equidistant interpolation), M / (N-1). The resulting sensor signal is primarily linear, approximating a straight line segment. While this sampling pattern is simple, it can exhibit Runge oscillations with complex signals. As N increases, the interpolation function value deviates significantly from the original signal, causing the processed data to deviate from the true value, thus affecting sensor performance.
[0004] Summary of the Invention
[0005] The present application provides a sensor signal interpolation method and a sensor, terminal device and storage medium using the interpolation method, which can make the signal output by the sensor more accurate.
[0006] In a first aspect, the present application provides a sensor signal interpolation method, comprising the following steps:
[0007] Calculate the N measurement points x of the measured signal x using non-equidistant interpolation method i , the calculation expression is:
[0008] In formula (1), “sin” represents the sine function, “cos” represents the cosine function, N is the number of measurement points, and M is the range of the sensor’s measured signal;
[0009] The N measurement points x obtained by formula (1) 0, x1,...,x N-1 Convert and obtain N corresponding electrical signals y i ;
[0010] x i and y i Form data pairs and obtain N interpolation points (x i ,y i ,), i=0,1,...,N-1;
[0011] According to the above N interpolation points (x i ,y i ) performs polynomial interpolation and calculates the interpolation function y = f(x):
[0012] In formula (2), “∑” represents summation and “∏” represents the multiplication symbol;
[0013] The sensor obtains the magnitude of the measured signal x by solving the equation for the electrical signal y according to the interpolation function y=f(x), and establishes a corresponding relationship between the electrical signal y and the measured signal x.
[0014] In a second aspect, the present application provides a sensor, applicable to the above-mentioned sensor signal interpolation method, comprising:
[0015] Sensitive element, used to sense the measured signal x and convert the measured signal x into an electrical signal y;
[0016] The interpolation point acquisition module calculates the N measurement points x of the measured signal x according to formula (1) i, (i=0,1,...,N-1), which is converted into N corresponding electrical signals y in the sensitive element i Then, x i and y i Form data pairs and obtain N interpolation points (xi ,y i ), i=0,1,...,N-1;
[0017] The interpolation function module is used to obtain the N interpolation points (x i ,y i ) Calculate the interpolation function y=f(x) according to the method shown in formula (2); then, based on the interpolation function y=f(x), solve the equation for the electrical signal y to obtain the size of the measured signal x, and establish the corresponding relationship between the electrical signal y and the measured signal x.
[0018] In a third aspect, the present application provides another sensor, which is also applicable to the above-mentioned sensor signal interpolation method, including:
[0019] Sensitive element, used to sense the measured signal x and output a physical quantity signal that has a definite relationship with the measured signal x;
[0020] A conversion element, used to convert the physical quantity signal output by the sensitive element into an electrical signal y;
[0021] The interpolation point acquisition module calculates the N measurement points x of the measured signal x according to formula (1) i, (i=0,1,...,N-1), which is converted into N corresponding electrical signals y in the conversion element i Then, x i and y i Form data pairs and obtain N interpolation points (x i ,y i ),i=0,1,...,N-1;
[0022] The interpolation function module is used to obtain the N interpolation points (x i ,y i ) Calculate the interpolation function y=f(x) according to the method shown in formula (2); then, based on the interpolation function y=f(x), solve the equation for the electrical signal y to obtain the size of the measured signal x, and establish the corresponding relationship between the electrical signal y and the measured signal x.
[0023] In a fourth aspect, the present application provides a terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the sensor signal interpolation method as described in the first aspect above is implemented.
[0024] In a fifth aspect, the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the sensor signal interpolation method as described in the first aspect above.
[0025] The sensor signal interpolation method provided in this application adopts the non-equidistant interpolation method to calculate the interpolation points, which overcomes the errors caused by the equidistant interpolation adopted in the prior art and effectively avoids the influence of the Runge oscillation phenomenon. It has higher fitting accuracy and smaller error, and can deeply restore the original signal collected by the sensor sensitive element, so that the sensor can obtain more accurate measurement values, thereby improving the sensor accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] FIG1 is a flow chart of a sensor signal interpolation method provided by the present application;
[0027] FIG2A is a comparison diagram of the original signal when N=15 in Example 1 and the isotropic interpolation function signal in the prior art;
[0028] FIG2B is a comparison diagram of the original signal when N=15 in Example 1 and the non-equidistant interpolation function signal of the present application;
[0029] FIG3A is a first comparison diagram of the original signal when N=16 in Example 2 and the isotropic interpolation function signal in the prior art;
[0030] FIG3B is a first comparison diagram of the original signal and the non-equidistant interpolation function signal of the present application when N=16 in Example 2;
[0031] FIG4A is a second comparison diagram of the original signal when N=16 in Example 2 and the isotropic interpolation function signal in the prior art;
[0032] FIG4B is a second comparison diagram of the original signal and the non-equidistant interpolation function signal of the present application when N=16 in Example 2;
[0033] FIG5A is a third comparison diagram of the original signal when N=16 in Example 2 and the isotropic interpolation function signal in the prior art;
[0034] FIG5B is a third comparison diagram of the original signal and the non-equidistant interpolation function signal of the present application when N=16 in Example 2;
[0035] FIG6A is a fourth comparison diagram of the original signal when N=16 in Example 2 and the isotropic interpolation function signal in the prior art;
[0036] FIG6B is a fourth comparison diagram of the original signal and the non-equidistant interpolation function signal of the present application when N=16 in Example 2;
[0037] FIG7 is a schematic diagram of a sensor embodiment provided by the present application;
[0038] FIG8 is a schematic diagram of another sensor embodiment provided by the present application;
[0039] FIG9 is a schematic diagram of an embodiment of a terminal device provided in this application. DETAILED DESCRIPTION
[0040] In the following description, specific technical features are provided for illustration rather than limitation and are intended to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific technical features. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary details.
[0041] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements, etc., but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements and / or their collections.
[0042] Referring to FIG1 , the present application first provides a sensor signal interpolation method, comprising the following steps:
[0043] S01 uses non-equidistant interpolation to calculate the N measurement points x of the measured signal x i .
[0044] The calculation expression is:
[0045] In formula (1), “sin” represents the sine function, “cos” represents the cosine function, N is the number of measurement points, and M is the range of the sensor’s measured signal x.
[0046] The sensor senses external information such as force, distance, temperature, light, sound, chemical composition and other information (measured signal x) through sensitive elements. According to the above calculation formula (1), the N measurement points x of the above measured signal x can be obtained. i , and each measurement point x i The information is input into the sensitive component.
[0047] The sensors include but are not limited to pressure sensors, displacement sensors, image sensors, speed sensors, strain sensors, temperature sensors, humidity sensors, and the like.
[0048] Taking the pressure sensor as an example, when N = 5, M (range) = 1 (MPa), using the above calculation expression (1), the following measurement point x can be obtained: i Approximate values: {0,0.190983,0.5,0.809017,1} {0,0.2,0.5,0.8,1} {0,0.19,0.5,0.81,1} {0,0.191,0.5,0.809,1} {0,0.19098,0.5,0.80902,1}
[0049] When N=6 and M is any, where M can be any physical quantity that can be measured by the sensor sensitive element, the above calculation expression (1) can be used to obtain the following measurement point x i Approximate values: {0,0.133975M,0.366025M,0.633975M,0.866025M,M} {0,0.13M,0.37M,0.63M,0.87M,M} {0,0.134M,0.366M,0.634M,0.866M,M} {0,0.13398M,0.36603M,0.63398M,0.86603M,M}.
[0050] When N=7 and M is any, where M can be any physical quantity that can be measured by the sensor sensitive element, the above calculation expression (1) can be used to obtain the following measurement point x i Approximate values: {0,0.0990311M,0.277479M,0.5M,0.722521M,0.900969M,M} {0,0.1M,0.3M,0.5M,0.7M,0.9M,M} {0,0.10M,0.28M,0.5M,0.72M,0.90M,M} {0,0.099M,0.277M,0.5M,0.723M,0.901M,M} {0,0.0990M,0.2775M,0.5M,0.7225M,0.9010M,M}.
[0051] S02 The N measurement points x obtained by the above formula (1) 0, x1,...,x N-1 By converting, we can get N corresponding electrical signals y i .
[0052] In this step, the N measurement points x obtained by the above calculation formula (1) can be converted into 0, x1,...,x N-1 Converted into the corresponding electrical signal y 0, y1,...,y N-1 ; Alternatively, a sensitive element can be used to convert the N measurement points x obtained by the above calculation formula (1) into 0, x1,...,x N-1 Initial conversion to x 0, x1,...,x N-1 The physical quantity signal with a certain relationship is converted into the corresponding electrical signal y by using a conversion element. 0, y1,...,y N-1 .
[0053] When the electrical signal y is very weak and may not be able to be directly used for acquisition, the signal can be amplified by an amplifier circuit.
[0054] S03 will x i and y i Form data pairs and obtain N interpolation points (x i ,y i ),i=0,1,...,N-1.
[0055] S04 According to the above N interpolation points (x i ,y i ) performs polynomial interpolation and calculates the interpolation function y = f(x).
[0056] The specific calculation formula is:
[0057] The “∑” represents summation, and the “∏” represents the multiplication symbol.
[0058] For ease of explanation, the following expression is used:
[0059] Still taking the pressure sensor as an example, when N=5, equation (3) is the following five 4th-order polynomial functions:
[0060] Then expression (2) is: y=y0l0(x)+y1l1(x)+y2l2(x)+y3l3(x)+y4l4(x) (4)
[0061] The S05 sensor obtains the size of the measured signal x by solving the equation of the electrical signal y according to the interpolation function y=f(x), and establishes a corresponding relationship between the electrical signal y and the measured signal x. Its purpose is to obtain the corresponding size of the measured object for any electrical signal y.
[0062] After the above interpolation method of the present application is completed, the electrical signal y can also be conditioned and converted into voltage, current or digital signal output as needed to improve the adaptability and availability of the sensor signal.
[0063] Specific conditioning includes but is not limited to nonlinear compensation, and / or no-load output nulling, and / or signal amplification, and / or conversion into a standard digital current or voltage. Various conditioning can be implemented individually or in combination as needed.
[0064] Sensor signal conditioning can also include isolation, protection and other processes.
[0065] The above method is suitable for interpolation of electrical signal outputs of sensors at various stages, and is applicable to both analog sensors and digital sensors.
[0066] In the above method of this application, the measurement point x is measured using formula (1). i The obtained polynomial interpolation function signal of formula (2) will no longer have the Runge oscillation phenomenon, and can truly restore the original signal collected by the sensor sensitive element, so that the sensor can obtain more accurate measurement values.
[0067] According to the above interpolation method, the final adjustment of the sensor can be achieved, the adjustment software can be designed and developed, and the detection equipment can be designed and manufactured, etc., which has broad application prospects.
[0068] It should be noted that the above description only represents some basic steps of the present application, and the order of the steps does not strictly represent the order of the steps of the method protected by the present application. Those skilled in the art may add certain steps based on actual conditions, and the order of the steps may also be exchanged, merged, and split, etc. The above steps are only an example of an order in the interpolation method.
[0069] The present application provides an application example of the interpolation method.
[0070] Example 1:
[0071] Take a signal source R(x) = 1 / (1+30(x-0.5) 2 ), for N=15, i.e. 15 interpolation points, when the existing technology is used for equidistant interpolation, the image of the original signal and the image of the interpolation function signal are shown in FIG2A ; when the interpolation points adopt the non-equidistant interpolation method of the present application, the image of the original signal and the image of the interpolation function signal are shown in FIG2B , in which the solid line represents the original signal R(x) and the dotted line represents the interpolation signal.
[0072] As can be seen from Figure 2A, when using equidistant interpolation, the interpolation function signal (dashed line) has obvious peaks at both ends of the original signal (solid line), that is, the equidistant interpolation function signal has a Rung oscillation phenomenon, and the interpolation function signal has a large gap with the original signal, causing the processed data to deviate from the real data. However, Figure 2B uses the non-equidistant interpolation function signal (dashed line) of the present application and the original signal (solid line) almost completely overlap, that is, the interpolation signal fitted by the non-equidistant interpolation function of the present application does not produce the Rung oscillation phenomenon and can basically restore the original signal.
[0073] Example 2:
[0074] In order to avoid the incomparable effects caused by measurement errors, we select four signal sources distributed in the interval [0,1].
[0075] Specifically, the following original signal is selected: f1(x)=3sin(2πx-π)-2.5cos(2πx-π)+2 (5)
[0076] In formula (5), sin represents the sine function, and cos represents the cosine function; f4(x)=arctan(10x-5) (8)
[0077] "arctan" in formula (8) represents the inverse tangent function.
[0078] When N=16, the original signal and the image using the equidistant interpolation function are shown in Figures 3A, 4A, 5A, and 6A, where the original signal of Figure 3A is f1(x) in equation (5), the original signal of Figure 4A is f2(x) in equation (6), the original signal of Figure 5A is f3(x) in equation (7), and the original signal of Figure 6A is f4(x) in equation (8). The solid line represents the original signal, and the dotted line represents the equidistant interpolation function signal. As can be seen from the figure, when the original signal is f1(x), the signal using the equidistant interpolation function is basically consistent with the original signal (see Figure 3A), and there is no Runge oscillation phenomenon; when the original signal is f2(x), f3(x)), and f4(x), the equidistant interpolation function signal has a large gap relative to the original signal, and the signal at both ends of the graph deviates and produces a certain peak value (see Figure 4A, Figure 5A and Figure 6A). That is, when the original signal is the above-mentioned f2(x), f3(x), and f4(x), a strong Runge oscillation phenomenon occurs, which reduces the accuracy of the sensor.
[0079] When N=16, the original signal and the image of the non-equidistant interpolation function of the present application are shown in Figures 3B, 4B, 5B and 6B. Similarly, the original signal of Figure 3B is f1(x) in formula (5), the original signal of Figure 4B is f2(x) in formula (6), the original signal of Figure 5B is f3(x) in formula (7), and the original signal of Figure 6B is f4(x) in (8). The solid line represents the original signal, and the dotted line represents the non-equidistant interpolation function signal. It can be seen from the figure that the original signals in Figures 3B, 5B and 6B are almost completely overlapped with the non-equidistant interpolation function signal, that is, the Runge oscillation phenomenon does not occur when the non-equidistant interpolation function signal is used. Although Figure 4B does not completely overlap with the original signal, it does not show the Runge oscillation phenomenon. Its non-equidistant interpolation function signal is very close to the original signal graph, and the value of deviation from the original signal is also very small.
[0080] Therefore, the measurement point x is measured using the formula (1) of this application. i The obtained polynomial interpolation function signal of formula (2) will no longer have the Runge oscillation phenomenon.
[0081] For N interpolation points, let L N (f) is the interpolation function, which is y in the above expression (2), and is expressed by Max|L N (f)-f(x)| represents the maximum error between the interpolation function signal and the original signal, which can be understood as the accuracy of the sensor. Based on the original signal expression (5) f1(x), (6) f2(x), (7) f3(x), and (8) f4(x), when N is 8, 12, 16, and 20, respectively, the calculation results are shown in Table 1.
[0082] Table 1: Maximum interpolation error
[0083] The “equidistant nodes” in Table 1 are the polynomial expressions L obtained by interpolation using the existing technology of equidistant sampling points. N (F), then calculate Max|L N (f)-f1(x)|); “non-equidistant nodes” are the measurement points x calculated using expression (1) i Interpolation is performed to obtain the polynomial expression L N (F), then calculate Max|L N (f)- f1(x)|).
[0084] As can be seen from Table 1, the data based on non-equidistant interpolation points are much better than the data based on equidistant interpolation points. Even for f1(x) without Runge oscillation phenomenon, as shown in Figure 3A and Figure 3B (N=16), although the difference between the two cannot be seen in the attached figures, from the results in Table 1, the results based on non-equidistant interpolation points are orders of magnitude higher than those based on equidistant interpolation points. For f2(x), f3(x) and f4(x) with Runge oscillation, when the equidistant interpolation function is used, the Runge oscillation phenomenon is more obvious, and the error is divergent; for non-equidistant interpolation points, the Runge oscillation phenomenon has been eliminated, and the error will gradually decrease as N increases. When the number of interpolation points N tends to infinity, the non-equidistant interpolation signal is completely consistent with the original signal. Therefore, the interpolation signal calculated using the non-equidistant interpolation function of this application can enable the sensor to obtain accurate measurement values.
[0085] Referring to FIG7 , this application also provides an embodiment of a sensor 10 constructed based on the above method. The modules included in the sensor 10 of this embodiment are used to perform the steps in the embodiment corresponding to FIG1 . For ease of illustration, only the portions relevant to this embodiment are shown.
[0086] The sensor 10 may include:
[0087] The sensitive element 101 is used to sense the measured information of the target object (measured signal x), such as physical, chemical, biological information, and then convert the measured signal x into a corresponding electrical signal y;
[0088] The interpolation point acquisition module 103 first calculates the N measurement points x of the measured signal x according to formula (1). i, (i=0,1,...,N-1), then select the N measurement points x calculated above i , which is converted into the corresponding electrical signal y in the sensitive element 101 i (i=0,1,...,N-1), then measure the point x i and electrical signals i Form data pairs and obtain N interpolation points (x i ,y i )i=0,1,...,N-1.
[0089] The interpolation function module 104 is used to convert the N interpolation points (x i ,y i ) The interpolation function y=f(x) is calculated according to the method shown in formula (2); then, based on the interpolation function y=f(x), the magnitude of the measured signal x is obtained by solving the equation for the electrical signal y to establish a corresponding relationship between the electrical signal y and the measured signal x.
[0090] Referring to FIG8 , this application also provides another embodiment of a sensor 11 constructed based on the above method. The modules included in the sensor 11 of this embodiment are used to perform the steps in the embodiment corresponding to FIG1 . For ease of illustration, only the parts relevant to this embodiment are shown.
[0091] The sensor 11 may include:
[0092] The sensitive element 111 is used to sense the measured information of the target object (measured signal x), such as physical, chemical, or biological information, and convert it into a physical quantity signal that has a definite relationship with the measured signal x;
[0093] The conversion element 112 converts the physical quantity signal output by the sensitive element 111 into an electrical signal y;
[0094] The interpolation point acquisition module 113 first calculates the N measurement points x of the measured signal x according to formula (1). i, (i=0,1,...,N-1), then select the N measurement points x calculated above i , through the sensitive element 111, the measuring point x i The signal is converted into a physical quantity signal, and then converted into N measurement points x by the conversion element 112 i The corresponding electrical signal y i(i=0,1,...,N-1), and finally measure the point x i and electrical signals i Form data pairs and obtain N interpolation points (x i ,y i ),i=0,1,...,N-1.
[0095] The interpolation function module 114 is used to convert the N interpolation points (x i ,y i ) The interpolation function y=f(x) is calculated according to the method shown in formula (2); then, based on the interpolation function y=f(x), the magnitude of the measured signal x is obtained by solving the equation for the electrical signal y, and the corresponding relationship between the electrical signal y and the measured signal x is established.
[0096] The above-mentioned sensors 10, 11 may also include a post-processing module, which may be a single module or a combination of multiple modules or circuits, for performing nonlinear compensation and / or no-load output zeroing on the electrical signal y and / or signal amplification and / or conversion into a standard digital current or voltage.
[0097] Figure 9 is a block diagram of a terminal device provided by this application. As shown in Figure 9, terminal device 20 of this embodiment includes: a processor 201, a memory 202, and a computer program 203 stored in memory 202 and capable of executing the aforementioned sensor signal interpolation method on processor 201. When processor 201 executes computer program 203, it implements the steps described in each embodiment of the aforementioned sensor signal interpolation method. Alternatively, when processor 201 executes computer program 203, it implements the functions of each module described in the embodiments corresponding to Figures 7 and 8.
[0098] It is understood that computer program 203 can be divided into one or more modules, one or more of which are stored in memory 202 and executed by processor 201 to implement the sensor signal interpolation method provided in this application. One or more modules can be a series of computer program instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of computer program 203 in terminal device 20. For example, computer program 203 can implement the sensor signal interpolation method provided in embodiments of this application.
[0099] The terminal device 20 includes but is not limited to a processor 201 and a memory 202. Those skilled in the art will appreciate that FIG9 is merely an example of the terminal device 20 and does not limit the terminal device 20. The terminal device 20 may include more or fewer components than shown in the figure, or may combine certain components or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0100] The processor 201 may be a central processing unit, or other general-purpose processors, digital signal processors, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0101] The memory 202 may be an internal storage unit of the terminal device 20 , such as a hard disk or a memory, or may be an internal storage unit and / or an external storage device equipped on the terminal device 20 .
[0102] The present application also provides a computer-readable storage medium, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the sensor signal interpolation method described in the above embodiments is implemented.
[0103] In addition, the present application may also provide a computer program product. When the computer program product is run on a terminal device, the terminal device executes the sensor signal interpolation method in each of the above embodiments.
[0104] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A sensor signal interpolation method, characterized in that: Includes steps: Calculate the N measurement points x of the measured signal x using non-equidistant interpolation method i , the calculation expression is: In formula (1), "sin" represents the sine function, "cos" represents the cosine function, N is the number of measurement points, and M is the range of the sensor signal. The N measurement points x0, x1, ..., x obtained by equation (1) are N-1 Convert and obtain N corresponding electrical signals y i ; x i and i Composed data pairs, get N interpolation points (x i ,y i ,), i=0,1,...,N-1; According to the above N interpolation points (x i ,y i ) performs polynomial interpolation and calculates the interpolation function y = f(x): In formula (2), "∑" represents summation, and "∏" represents the multiplication symbol; The sensor obtains the magnitude of the measured signal x by solving the equation for the electrical signal y according to the interpolation function y=f(x), and establishes a corresponding relationship between the electrical signal y and the measured signal x.
2. The sensor signal interpolation method according to claim 1, characterized in that: After the corresponding relationship between the electric signal y and the measured signal x is established, the electric signal y is conditioned.
3. The sensor signal interpolation method according to claim 2, characterized in that: The conditioning of the electrical signal y includes nonlinear compensation and / or no-load output zeroing and / or signal amplification and / or conversion into a standard digital current or voltage.
4. The sensor signal interpolation method according to any one of claims 1 to 3, characterized in that: According to the N measurement points x of the sensor measured signal x i Calculation formula (1), when N = 5, M = 1, the following measurement point x is obtained i Approximate values: {0,0.190983,0.5,0.809017,1} {0,0.2,0.5,0.8,1} {0,0.19,0.5,0.81,1} {0,0.191,0.5,0.809,1} {0,0.19098,0.5,0.80902,1}.
5. The sensor signal interpolation method according to any one of claims 1 to 3, characterized in that: According to the N measurement points x of the sensor measured signal x i Calculation formula (1), when N = 6, any M, the following measurement point x is obtained i Approximate values: {0,0.133975M,0.366025M,0.633975M,0.866025M,M} {0,0.13M,0.37M,0.63M,0.87M,M} {0,0.134M,0.366M,0.634M,0.866M,M} {0,0.13398M,0.36603M,0.63398M,0.86603M,M}.
6. The sensor signal interpolation method according to any one of claims 1 to 3, characterized in that: According to the N measurement points x of the sensor measured signal x i Calculation formula (1), when N = 7, any M, the following measurement point x is obtained i Approximate values: {0,0.0990311M,0.277479M,0.5M,0.722521M,0.900969M,M} {0,0.1M,0.3M,0.5M,0.7M,0.9M,M} {0,0.10M,0.28M,0.5M,0.72M,0.90M,M} {0,0.099M,0.277M,0.5M,0.723M,0.901M,M} {0,0.0990M,0.2775M,0.5M,0.7225M,0.9010M,M}.
7. A sensor, applicable to the sensor signal interpolation method according to any one of claims 1 to 6, characterized in that: include: Sensitive element, used to sense the measured signal x and convert the measured signal x into an electrical signal y; The interpolation point acquisition module calculates the N measurement points x of the measured signal x according to formula (1) i , (i=0,1,...,N-1), which is converted into N corresponding electrical signals y in the sensitive element i Then, x i and i Composed data pairs, get N interpolation points (x i ,y i ),i=0,1,...,N-1; The interpolation function module is used to obtain the N interpolation points (x i ,y i ) Calculate the interpolation function y=f(x) according to the method shown in formula (2); then, according to the interpolation function y=f(x), solve the equation for the electrical signal y to obtain the size of the measured signal x, and establish the corresponding relationship between the electrical signal y and the measured signal x.
8. A sensor, applicable to the sensor signal interpolation method according to any one of claims 1 to 6, characterized in that: include: The sensitive element is used to sense the measured signal x and output a physical quantity signal that has a definite relationship with the measured signal x; A conversion element, used to convert the physical quantity signal output by the sensitive element into an electrical signal y; The interpolation point acquisition module calculates the N measurement points x of the measured signal x according to formula (1) i , (i=0,1,...,N-1), which is converted into N corresponding electrical signals y in the conversion element i Then, x i and i Composed data pairs, get N interpolation points (x i ,y i ),i=0,1,...,N-1; The interpolation function module is used to obtain the N interpolation points (x i ,y i ) Calculate the interpolation function y=f(x) according to the method shown in formula (2); then, according to the interpolation function y=f(x), solve the equation for the electrical signal y to obtain the size of the measured signal x, and establish the corresponding relationship between the electrical signal y and the measured signal x.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the sensor signal interpolation method according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the sensor signal interpolation method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Nonlinear interpolation prediction method of radio signal propagation
CN101784064A
Digital signal processing method and system, terminal and storage medium
CN115833836A
Method and circuit for interpolating data
JP2002245028A