CN109115257A - Modification method, device, equipment and the storage medium of sensor characteristic - Google Patents

Modification method, device, equipment and the storage medium of sensor characteristic Download PDF

Info

Publication number
CN109115257A
CN109115257A CN201710480766.8A CN201710480766A CN109115257A CN 109115257 A CN109115257 A CN 109115257A CN 201710480766 A CN201710480766 A CN 201710480766A CN 109115257 A CN109115257 A CN 109115257A
Authority
CN
China
Prior art keywords
sample point
straight line
fitting
point
deviation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710480766.8A
Other languages
Chinese (zh)
Other versions
CN109115257B (en
Inventor
李�杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201710480766.8A priority Critical patent/CN109115257B/en
Publication of CN109115257A publication Critical patent/CN109115257A/en
Application granted granted Critical
Publication of CN109115257B publication Critical patent/CN109115257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Indication And Recording Devices For Special Purposes And Tariff Metering Devices (AREA)

Abstract

The invention discloses a kind of modification method of sensor characteristic, device, equipment and storage mediums.Wherein this method comprises: obtaining the sample points evidence of sensor;According to sample points according to determining fitting a straight line;According to preset order, the starting point and cut off of the linearly interval of sensor characteristic are determined according to the deviation of current sample point and fitting a straight line, preset threshold;Fitting a straight line is modified according to the sample point between starting point and cut off, obtains revised sensor characteristic.The present invention can guarantee the accuracy of identified start-stop point, and then correct characteristic curve according to start-stop point, and revised characteristic curve can more precisely characterize sensor characteristics, provide accurate reference data for pick up calibration.

Description

Modification method, device, equipment and the storage medium of sensor characteristic
Technical field
The present embodiments relate to sensor technology more particularly to a kind of modification method of sensor characteristic, device, Equipment and storage medium.
Background technique
Sensor can obtain measured information as a kind of detection device, and it is transformed into electricity according to certain rules The output of the information of signal or other required forms, is wanted with transmission, processing, storage, display, record and the control etc. that meet information It asks.The description of the algebraic equation without time variable can be used in the static characteristic of sensor, or using input quantity as abscissa, The characteristic curve description that corresponding output quantity is drawn as ordinate.The major parameter of characterization Sensor's Static characteristic has: linear Degree, sensitivity, resolving power and sluggishness etc..
Under normal conditions, the practical static characteristic output of sensor is a curve and non-rectilinear, the characteristic curve of sensor For from low to high, finally tend towards stability (linearly interval), and linearly interval is the characterization of sensor characteristics, can use linear spy Data are levied to realize that calibration to sensor etc. operates.Therefore, the start-stop of the linearly interval of sensor characteristic is accurately found out Point, is modified characteristic curve, particularly important to the property of research sensor more precisely to characterize sensor characteristics.
Currently, generally by finding the lesser section of slope in characteristic curve as linearly interval, or deletion output Value is higher than the data of certain value, and curve corresponding to remaining data (or straight line) is used as linearly interval.But the above method is only It is only roughly determining linearly interval, accuracy is not high, may will affect the calibration of sensor.
Summary of the invention
The present invention provides modification method, device, equipment and the storage medium of a kind of sensor characteristic, can be more smart The start-stop point for really determining linearly interval, provides accurate reference data for pick up calibration.
In a first aspect, the embodiment of the invention provides a kind of modification methods of sensor characteristic, comprising:
Obtain the sample points evidence of sensor;
According to the sample points according to determining fitting a straight line;
According to preset order, sensor spy is determined according to the deviation of current sample point and the fitting a straight line, preset threshold The starting point and cut off of the linearly interval of linearity curve;
The fitting a straight line is modified according to the sample point between the starting point and the cut off, is corrected Sensor characteristic afterwards.
Second aspect, the embodiment of the invention also provides a kind of correcting devices of sensor characteristic, comprising:
Data acquisition module, for obtaining the sample points evidence of sensor;
Fitting a straight line determining module is used for according to the sample points according to determining fitting a straight line;
Start-stop point determining module is used for according to preset order, according to the deviation of current sample point and the fitting a straight line, in advance If threshold value determines the starting point and cut off of the linearly interval of sensor characteristic;
Curve amendment module, for according to the sample point between the starting point and the cut off to the fitting a straight line It is modified, using revised curve as the characteristic curve of the sensor.
The third aspect, the embodiment of the invention also provides a kind of equipment, the equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the modification method of the sensor characteristic as described in any embodiment of that present invention.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the amendment side of the sensor characteristic as described in any embodiment of that present invention when the program is executed by processor Method.
The present invention determines fitting a straight line according to sample point, then utilizes the inclined of sample point and fitting a straight line according to preset order Difference, preset threshold determine the start-stop point of linearly interval, rather than determine start-stop point simply by slope or threshold value, can guarantee The accuracy of identified start-stop point, so according to start-stop point correct characteristic curve, revised characteristic curve can more subject to Sensor characteristics really is characterized, provides accurate reference data for pick up calibration.
Detailed description of the invention
Fig. 1 is the flow chart of the modification method for the sensor characteristic that the embodiment of the present invention one provides;
Fig. 2 is the schematic diagram one for the linear sensor space start-stop point that the embodiment of the present invention three provides;
Fig. 3 is the schematic diagram two for the linear sensor space start-stop point that the embodiment of the present invention three provides;
Fig. 4 is the structural block diagram of the correcting device for the sensor characteristic that the embodiment of the present invention four provides;
Fig. 5 is the structural schematic diagram for the equipment that the embodiment of the present invention five provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart of the modification method for the sensor characteristic that the embodiment of the present invention one provides, and the present embodiment can Suitable for determining the start-stop point (including starting point and cut off) and amendment sensor of the linearly interval of sensor characteristic The case where characteristic curve, this method can be executed by the correcting device of sensor characteristic, for example, having processing and calculating The equipment of function.As shown in Figure 1, this method specifically comprises the following steps:
Step 110, the sample points evidence of sensor is obtained.
Wherein it is possible to obtain the input value and its corresponding output valve of sensor by testing sensor, sitting It marks input value in system (corresponding to X-coordinate) and its corresponding output valve (corresponding to Y coordinate) constitutes a point, sample points evidence is Refer to the coordinate data of sample point.According to these sample points according to can tentatively depict sensor characteristic, but the characteristic Curve may not necessarily accurate characterization sensor characteristic, need to be modified.
Step 120, according to sample points according to determining fitting a straight line.
Existing line fitting method can be used in this step, for example, using the most common least square method to sample point Data carry out straight line fitting, it is of course also possible to use other line fitting methods.Preferably, can first to sample points according into The preliminary pretreatment of row: first carrying out straight line fitting (least square method can be used) to sample point and obtain straight line, using point with The deviation of straight line excludes the biggish sample point of deviation, completes preliminary abnormal data and excludes, is then based on remaining sample point again Secondary carry out straight line fitting, obtains final fitting a straight line, it is possible thereby to eliminate the interference of abnormal data.
Step 130, according to preset order, sensing is determined according to the deviation of current sample point and fitting a straight line, preset threshold The starting point and cut off of the characteristic linearly interval of device.
Wherein, preset order is described on the basis of coordinate system, for example, from left to right or from right to left, it is specific suitable Sequence can according to it is to be determined be that starting point or cut off determine, for example, determining that preset order corresponding to starting point is From left to right, determine that preset order corresponding to cut off is from right to left.Preset threshold can be according to the value of all sample points Domain (Y-coordinate value) is configured, and the smaller precision of the value is higher, and the value is bigger, and precision is lower, for example, codomain is between 20 to 50, Then preset threshold can be set to 3;For another example, codomain is between 400 to 1000, then preset threshold can be set to 10.
Specifically, can determine start-stop point according to the size of deviation and preset threshold.Formula D=can be used | kxi+b-yi | calculate the deviation D of sample point and fitting a straight line, wherein fitting a straight line equation is the constant that y=kx+b, k and b are straight line, k ≠0;The coordinate of sample point i is (xi,yi).By taking sequence from left to right as an example, can by and fitting a straight line deviation be less than it is default First sample point of threshold value, the starting point as linearly interval;It, can will be with fitting a straight line by taking sequence from right to left as an example Deviation be less than preset threshold first sample point, the cut off as linearly interval.
Step 140, fitting a straight line is modified according to the sample point between starting point and cut off, is obtained revised Sensor characteristic.
Wherein it is possible to re-start straight line fitting according to the sample point between starting point and cut off, obtain revised It is special can to obtain revised sensor in conjunction with non-linear segment part in former characteristic curve for linearly interval, the linearly interval Linearity curve.
The technical solution of the present embodiment determines fitting a straight line according to sample point, then utilizes sample point according to preset order And deviation, the preset threshold of fitting a straight line determine the start-stop point of linearly interval, rather than determine simply by slope or threshold value Start-stop point can guarantee the accuracy of identified start-stop point, and then correct characteristic curve, revised characteristic according to start-stop point Curve can more precisely characterize sensor characteristics, provide accurate reference data for pick up calibration.
Embodiment two
On the basis of the above embodiment 1, it present embodiments provides and determines the one of linearly interval start-stop point in step 130 Kind preferred embodiment, includes the following steps:
(1) deviation of current sample point and fitting a straight line is calculated.
Preferably, the deviation D of sample point and fitting a straight line: D=can be calculated using the following equation | kxi+b-yi|, wherein Fitting a straight line equation is the constant that y=kx+b, k and b are straight line, k ≠ 0;The coordinate of sample point i is (xi,yi)。
(2) judge whether above-mentioned deviation is less than preset threshold.
(3) if above-mentioned deviation is less than preset threshold, first that current sample point presets side is obtained according to preset order The sample point of predetermined number.
Wherein, default side can be left side or right side, specifically can according to it is to be determined be that starting point is also off Point determines.First predetermined number can be configured according to the actual situation, can specifically be determined according to the number of all sample points, For example, one shares 40 sample points, the first predetermined number can be set to 10.For example, obtaining current sample when determining starting point 10 sample points in point right side;When determining cut off, 10 sample points on the left of current sample point are obtained.
(4) sample point of the first predetermined number and the deviation of fitting a straight line are obtained respectively, and statistic bias is less than default threshold The sample point number of value.
(5) size of comparative sample point number and the second predetermined number.
(6) if sample point number is more than the second predetermined number, determine current sample point as line according to preset order The starting point or cut off in property section.
Wherein, the second predetermined number is less than or equal to the first predetermined number, can be configured according to the actual situation, example Such as, the second predetermined number can be set to 8.If preset order is from left to right, it is determined that current sample point is as starting point; If preset order is from right to left, it is determined that current sample point is as cut off.
In this preferred embodiment, for current sample point, increase the judgement of its continuous position point, i.e. step (3) to (6) In current sample point preset side the first predetermined number sample point, thus can exclude the interference of noise, more accurately determine The start-stop point of linearly interval.
Embodiment three
The present embodiment provides in step 120 according to sample points on the basis of above-described embodiment one and two according to determination The preferred embodiment of fitting a straight line, fitting precision are higher.Specifically comprise the following steps:
(1) sample point that ordinate value is less than intermediate value is extracted in sample points.
Wherein, intermediate value can be the median of sample point Y-axis numerical value.Based on sensor characteristics data from low to high, stablize The characteristics of section is numerical value low section, this step can exclude the point in non-required section.
(2) sample point of extraction is segmented.
Wherein it is possible to sample point is segmented according to X-axis data, because the Y-axis data variation of linear space is too small, nothing Method is distinguished.It can be segmented according to sample point of the default piecewise interval to extraction, default piecewise interval is equal by stages or not Equal by stages.For equal by stages, default piecewise interval can be set into the number of segment divided, each section of packet also can be set into The sample point number contained.For not equal by stages, boundary position is can be set into default piecewise interval, specifically can by array into Row setting, such as characterize boundary position using aisplit [4]={ 8,15,28,35 }, this indicate 4 separations be respectively 8, 15,28,35, it is not divided into 5 sections.The number of segment of division is more, and precision is higher, but calculation amount is bigger, and the number of segment of division is fewer, calculates It is more coarse, but calculation amount is few, in practical applications, can weigh calculation amount and precision according to specific requirements.
(3) straight line fitting is carried out to every section of sample point respectively, obtains corresponding straight line.It is quasi- that existing straight line specifically can be used Conjunction method, such as least square method.
(4) it is directed to each straight line, calculates separately the deviation of each sample point and the straight line in every section of sample point, and unite Count the sample point number that the straight line lower deviation is less than preset threshold.Deviation is less than preset threshold, it is believed that sample point is fallen in directly On line.
(5) determine straight line corresponding to maximum sample point number as fitting a straight line.Specifically, if there is multiple maximums Value, then re-start straight line fitting according to the corresponding all sample points of maximum value, as final fitting a straight line.
According to above-described embodiment one to three it is found that the present invention presets four control parameters: default piecewise interval, default threshold Value, the first predetermined number and the second predetermined number.Control parameter can be configured according to different sensor situations.Pass through tune Whole control parameter can change the precision for searching start-stop point.As shown in Figures 2 and 3, to use determined by different control parameters The linearly interval start-stop point of same sensor, start-stop point is as shown in circle in figure, and abscissa indicates input value, ordinate table in figure Show output valve.By Fig. 2 and Fig. 3 it is found that same sensor uses different control parameters, determining start-stop position is different. The present embodiment can change control parameter according to specific sample data, so as to be suitable for searching the linear zone of various sensors Between start-stop point.
The characteristic modification method of the sensor is illustrated below with reference to preferred embodiment.
Control parameter is provided that ilen=8;Idelta=10;Ilenlast=10;Ifitnum=8.Wherein, ilen Indicate by stages length;Idelta indicates preset threshold, i.e. control parameter of the sample point with the deviation of fitting a straight line;ilenlast Indicate the first predetermined number;Ifitnum indicates the second predetermined number.
Step 1: being segmented to sensor characteristics data (i.e. sample point).
Step 2: carrying out straight line fitting to every segment data, then to all sample points, it is full on every section of straight line to count it The number of the point of the following condition of foot, the characteristic value as the straight line:
1) deviation of sample point and straight line is less than idelta;Wherein the abscissa x of sample point can be substituted into linear equation, Y value is sought, the absolute value of the difference of the ordinate y of Y and sample point, the deviation as sample point and straight line are then calculated;
2) ordinate value of sample point (median of sample point maximum value and average value) below intermediate value, can exclude non-institute Need the point in section.
Step 3: maximum that section of straight line of characteristic value is as the straight line being finally fitted in selecting step two.
Step 4: from left to right searching starting point.Judge whether current sample point meets following condition:
1) deviation of current sample point and fitting a straight line is less than idelta;
2) meet condition 1 in ilenlast point on the right side of current sample point) the number of point be more than threshold value ifitnum.
If meeting above-mentioned condition, it is determined that current sample point is starting point.
Step 5: searching cut off from right to left.Judge whether current sample point meets following condition:
1) deviation of current sample point and fitting a straight line is less than idelta;
2) meet condition 1 in ilenlast point on the left of current sample point) the number of point be more than threshold value ifitnum.
If meeting above-mentioned condition, it is determined that current sample point is cut off.
Step 6: straight line fitting is carried out again according to the sample point between start-stop point, it is hereby achieved that modified sensing Device characteristic curve.For example, every section has 8 sample points, the fitting a straight line that step 3 determines be also obtained according to 8 points, if There are 20 points between start-stop point, be then fitted again according to this 20 points, so as to obtain more accurate straight line.
Example IV
The correcting device for present embodiments providing a kind of sensor characteristic, can be used to implement above-described embodiment one to The modification method of sensor characteristic described in three.As shown in figure 4, the device includes: data acquisition module 410, is fitted directly Line determining module 420, start-stop point determining module 430 and curve amendment module 440.
Data acquisition module 410, for obtaining the sample points evidence of sensor;
Fitting a straight line determining module 420 is used for according to sample points according to determining fitting a straight line;
Start-stop point determining module 430 is used for according to preset order, according to the deviation of current sample point and fitting a straight line, in advance If threshold value determines the starting point and cut off of the linearly interval of sensor characteristic;
Curve amendment module 440, for being modified according to the sample point between starting point and cut off to fitting a straight line, Using revised curve as the characteristic curve of sensor.
The technical solution of the present embodiment determines fitting a straight line according to sample point, then utilizes sample point according to preset order And deviation, the preset threshold of fitting a straight line determine the start-stop point of linearly interval, rather than determine simply by slope or threshold value Start-stop point can guarantee the accuracy of identified start-stop point, and then correct characteristic curve, revised characteristic according to start-stop point Curve can more precisely characterize sensor characteristics, provide accurate reference data for pick up calibration.
Preferably, start-stop point determining module 430 may include:
Deviation computing unit, for calculating the deviation of current sample point and fitting a straight line;
Judging unit, for judging whether the deviation is less than preset threshold;
Sample point acquiring unit, for obtaining current sample according to preset order in the case where deviation is less than preset threshold This point presets the sample point of the first predetermined number of side;
Number statistic unit for obtaining the sample point of the first predetermined number and the deviation of fitting a straight line respectively, and counts Deviation is less than the sample point number of preset threshold;
Comparing unit, the size for comparative sample point number and the second predetermined number;
Start-stop point determination unit is used in the case where sample point number is more than the second predetermined number, according to preset order Determine starting point or cut off of the current sample point as linearly interval.
Wherein, start-stop point determination unit is specifically used for: in the case where preset order is from left to right, determining current sample Point is used as starting point;And in the case where preset order is from right to left, determine current sample point as cut off.
Preferably, deviation computing unit can specifically be calculated using the following equation the deviation D of sample point and fitting a straight line: D =| kxi+b-yi|, wherein fitting a straight line equation is the constant that y=kx+b, k and b are straight line, k ≠ 0;The coordinate of sample point i For (xi,yi)。
In addition, fitting a straight line determining module 420 may include:
Sample point extraction unit, for extracting the sample point that ordinate value is less than intermediate value in sample points;
Sample point segmenting unit, for being segmented to the sample point of extraction;
Line fitting unit obtains corresponding straight line for carrying out straight line fitting to every section of sample point respectively;
Computing unit calculates separately each sample point and the straight line in every section of sample point for being directed to each straight line Deviation, and count the straight line lower deviation be less than preset threshold sample point number;
Fitting a straight line determination unit, for determining straight line corresponding to maximum sample point number as fitting a straight line.
Wherein, sample point segmenting unit is specifically used for being segmented according to sample point of the default piecewise interval to extraction, In, default piecewise interval is equal by stages or does not wait by stages.
Any embodiment of that present invention institute can be performed in the correcting device of sensor characteristic provided by the embodiment of the present invention The modification method of the sensor characteristic of offer has the corresponding functional module of execution method and beneficial effect.
Embodiment five
Fig. 5 is the structural schematic diagram for the equipment that the embodiment of the present invention five provides, as shown in figure 5, the equipment includes: processor 510, memory 520, input unit 530 and output device 540;The quantity of processor 510 can be one or more in equipment, In Fig. 5 by taking a processor 510 as an example;Processor 510, memory 520, input unit 530 and output device 540 in equipment It can be connected by bus or other modes, in Fig. 5 for being connected by bus.
Memory 520 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, such as the corresponding program instruction of the modification method of the sensor characteristic in the embodiment of the present invention/module (example Such as, the data acquisition module 410 in the correcting device of sensor characteristic, fitting a straight line determining module 420, start-stop point determine Module 430 and curve amendment module 440.).Processor 510 is by running the software program being stored in memory 520, instruction And module realizes above-mentioned sensor characteristic thereby executing the various function application and data processing of equipment Modification method.
Memory 520 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This Outside, memory 520 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 520 can be into one Step includes the memory remotely located relative to processor 510, these remote memories can pass through network connection to equipment.On The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 530 can be used for receiving the number or character information of input, and generate with the user setting of equipment with And the related key signals input of function control.Output device 540 may include that display screen etc. shows equipment.
Embodiment six
The embodiment of the present invention six provides a kind of computer readable storage medium, is stored thereon with computer program, the program For executing a kind of modification method of sensor characteristic when being executed by processor, this method comprises:
Obtain the sample points evidence of sensor;
According to sample points according to determining fitting a straight line;
According to preset order, sensor characteristics song is determined according to the deviation of current sample point and fitting a straight line, preset threshold The starting point and cut off of the linearly interval of line;
Fitting a straight line is modified according to the sample point between starting point and cut off, it is special to obtain revised sensor Linearity curve.
Certainly, a kind of computer readable storage medium provided by the embodiment of the present invention, program, which is performed, to be not limited to Method operation as described above, can also be performed the modification method of sensor characteristic provided by any embodiment of the invention In relevant operation.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, in the embodiment of the characteristic correcting device of the sensor, included each unit It is only divided according to the functional logic, but is not limited to the above division with module, as long as can be realized corresponding function Energy;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, the guarantor being not intended to restrict the invention Protect range.
In conclusion the technical solution of the embodiment of the present invention is not related to complicated algorithm, simple, time complexity is calculated It is low.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of modification method of sensor characteristic characterized by comprising
Obtain the sample points evidence of sensor;
According to the sample points according to determining fitting a straight line;
According to preset order, sensor characteristics song is determined according to the deviation of current sample point and the fitting a straight line, preset threshold The starting point and cut off of the linearly interval of line;
The fitting a straight line is modified according to the sample point between the starting point and the cut off, is obtained revised Sensor characteristic.
2. the method according to claim 1, wherein according to the deviation of current sample point and the fitting a straight line, Preset threshold determines the starting point and cut off of the linearly interval of sensor characteristic, comprising:
Calculate the deviation of the current sample point and the fitting a straight line;
Judge whether the deviation is less than the preset threshold;
If the deviation is less than the preset threshold, the current sample point is obtained according to the preset order and presets side The sample point of first predetermined number;
The sample point of first predetermined number and the deviation of the fitting a straight line are obtained respectively, and statistic bias is less than described pre- If the sample point number of threshold value;
Compare the size of the sample point number and the second predetermined number;
If the sample point number is more than second predetermined number, the current sample is determined according to the preset order Starting point or cut off of the point as the linearly interval.
3. according to the method described in claim 2, it is characterized in that, determining that the current sample point is made according to the preset order For the starting point or cut off of the linearly interval, comprising:
If the preset order is from left to right, it is determined that the current sample point is as starting point;
If the preset order is from right to left, it is determined that the current sample point is as cut off.
4. the method according to claim 1, wherein according to the sample points according to determining fitting a straight line, comprising:
The sample point that ordinate value is less than intermediate value is extracted in the sample points;
The sample point of extraction is segmented;
Straight line fitting is carried out to every section of sample point respectively, obtains corresponding straight line;
For each straight line, the deviation of each sample point and the straight line in every section of sample point is calculated separately, and is counted The straight line lower deviation is less than the sample point number of preset threshold;
Determine straight line corresponding to maximum sample point number as the fitting a straight line.
5. according to the method described in claim 4, it is characterized in that, the sample point to extraction is segmented, comprising:
It is segmented according to sample point of the default piecewise interval to the extraction, wherein the default piecewise interval is equal subregions Between or not equal by stages.
6. according to the method described in claim 2, it is characterized in that, being calculated using the following equation the inclined of sample point and fitting a straight line Poor D:
D=| kxi+b-yi|,
Wherein, fitting a straight line equation is the constant that y=kx+b, k and b are straight line, k ≠ 0;The coordinate of sample point i is (xi,yi)。
7. a kind of correcting device of sensor characteristic characterized by comprising
Data acquisition module, for obtaining the sample points evidence of sensor;
Fitting a straight line determining module is used for according to the sample points according to determining fitting a straight line;
Start-stop point determining module, for according to the deviation of current sample point and the fitting a straight line, presetting threshold according to preset order It is worth the starting point and cut off for determining the linearly interval of sensor characteristic;
Curve amendment module, for being carried out according to the sample point between the starting point and the cut off to the fitting a straight line Amendment, using revised curve as the characteristic curve of the sensor.
8. device according to claim 7, which is characterized in that the start-stop point determining module includes:
Deviation computing unit, for calculating the deviation of the current sample point and the fitting a straight line;
Judging unit, for judging whether the deviation is less than the preset threshold;
Sample point acquiring unit, for being obtained according to the preset order in the case where the deviation is less than the preset threshold The current sample point is taken to preset the sample point of the first predetermined number of side;
Number statistic unit, for obtaining the sample point of first predetermined number and the deviation of the fitting a straight line respectively, and Statistic bias is less than the sample point number of the preset threshold;
Comparing unit, the size for the sample point number and the second predetermined number;
Start-stop point determination unit is used in the case where the sample point number is more than second predetermined number, according to described Preset order determines starting point or cut off of the current sample point as the linearly interval.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now modification method of the sensor characteristic as described in any in claim 1 to 6.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The modification method of the sensor characteristic as described in any in claim 1 to 6 is realized when execution.
CN201710480766.8A 2017-06-22 2017-06-22 Method, device, equipment and storage medium for correcting sensor characteristic curve Active CN109115257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710480766.8A CN109115257B (en) 2017-06-22 2017-06-22 Method, device, equipment and storage medium for correcting sensor characteristic curve

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710480766.8A CN109115257B (en) 2017-06-22 2017-06-22 Method, device, equipment and storage medium for correcting sensor characteristic curve

Publications (2)

Publication Number Publication Date
CN109115257A true CN109115257A (en) 2019-01-01
CN109115257B CN109115257B (en) 2021-10-08

Family

ID=64732824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710480766.8A Active CN109115257B (en) 2017-06-22 2017-06-22 Method, device, equipment and storage medium for correcting sensor characteristic curve

Country Status (1)

Country Link
CN (1) CN109115257B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007087A (en) * 2019-04-12 2019-07-12 三诺生物传感股份有限公司 A kind of measurement blood glucose method based on chargeable blood glucose meter
CN110852652A (en) * 2019-11-20 2020-02-28 中国南方电网有限责任公司 Hydroelectric characteristic curve correction method and device
CN111855003A (en) * 2020-07-31 2020-10-30 青岛海信电子产业控股股份有限公司 Temperature determination method and device
CN113108959A (en) * 2021-04-13 2021-07-13 辽宁瑞华实业集团高新科技有限公司 Power prediction method and device for transport tool and transport tool
CN113447042A (en) * 2021-05-20 2021-09-28 深圳大学 Method, device, terminal and storage medium for detecting data mileage registration
CN113624929A (en) * 2021-10-12 2021-11-09 成都千嘉科技有限公司 Full-range automatic calibration method for gas sensor
CN114636827A (en) * 2022-05-11 2022-06-17 深圳市帝迈生物技术有限公司 Method, device, equipment and medium for eliminating abnormal points of reaction curve
CN115329148A (en) * 2022-08-19 2022-11-11 重庆德明尚品电子商务有限公司 Data screening and integrating method and system based on multiple big data processing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793380A (en) * 1995-02-09 1998-08-11 Nec Corporation Fitting parameter determination method
CN103063247A (en) * 2013-01-10 2013-04-24 重庆市恩睿斯科技有限责任公司 Detection method and detection device of transmission-type sensor balance midpoint
CN103366095A (en) * 2013-07-22 2013-10-23 北京理工大学 Least square fitting signal processing method based on coordinate transformation
CN103743427A (en) * 2013-12-31 2014-04-23 江苏嘉钰新能源技术有限公司 Linear calibration method
CN103926578A (en) * 2014-04-16 2014-07-16 中国科学技术大学 Linear feature extraction method for indoor environment
CN104181214A (en) * 2014-08-21 2014-12-03 华南农业大学 Small-signal sectional fitting temperature compensation method of water quality sensor
CN106032975A (en) * 2016-07-08 2016-10-19 天津大世自动化科技有限公司 Magnetic-strip detection sensor fitting algorithm

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793380A (en) * 1995-02-09 1998-08-11 Nec Corporation Fitting parameter determination method
CN103063247A (en) * 2013-01-10 2013-04-24 重庆市恩睿斯科技有限责任公司 Detection method and detection device of transmission-type sensor balance midpoint
CN103366095A (en) * 2013-07-22 2013-10-23 北京理工大学 Least square fitting signal processing method based on coordinate transformation
CN103743427A (en) * 2013-12-31 2014-04-23 江苏嘉钰新能源技术有限公司 Linear calibration method
CN103926578A (en) * 2014-04-16 2014-07-16 中国科学技术大学 Linear feature extraction method for indoor environment
CN104181214A (en) * 2014-08-21 2014-12-03 华南农业大学 Small-signal sectional fitting temperature compensation method of water quality sensor
CN106032975A (en) * 2016-07-08 2016-10-19 天津大世自动化科技有限公司 Magnetic-strip detection sensor fitting algorithm

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007087A (en) * 2019-04-12 2019-07-12 三诺生物传感股份有限公司 A kind of measurement blood glucose method based on chargeable blood glucose meter
CN110852652A (en) * 2019-11-20 2020-02-28 中国南方电网有限责任公司 Hydroelectric characteristic curve correction method and device
CN110852652B (en) * 2019-11-20 2022-05-10 中国南方电网有限责任公司 Hydroelectric characteristic curve correction method and device
CN111855003A (en) * 2020-07-31 2020-10-30 青岛海信电子产业控股股份有限公司 Temperature determination method and device
CN113108959A (en) * 2021-04-13 2021-07-13 辽宁瑞华实业集团高新科技有限公司 Power prediction method and device for transport tool and transport tool
CN113108959B (en) * 2021-04-13 2022-10-11 辽宁瑞华实业集团高新科技有限公司 Power prediction method and device for transport tool and transport tool
CN113447042A (en) * 2021-05-20 2021-09-28 深圳大学 Method, device, terminal and storage medium for detecting data mileage registration
CN113624929A (en) * 2021-10-12 2021-11-09 成都千嘉科技有限公司 Full-range automatic calibration method for gas sensor
CN113624929B (en) * 2021-10-12 2022-01-25 成都千嘉科技有限公司 Full-range automatic calibration method for gas sensor
CN114636827A (en) * 2022-05-11 2022-06-17 深圳市帝迈生物技术有限公司 Method, device, equipment and medium for eliminating abnormal points of reaction curve
CN115329148A (en) * 2022-08-19 2022-11-11 重庆德明尚品电子商务有限公司 Data screening and integrating method and system based on multiple big data processing
CN115329148B (en) * 2022-08-19 2023-12-22 北京罗格数据科技有限公司 Data screening and integrating method and system based on multiple big data processing

Also Published As

Publication number Publication date
CN109115257B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN109115257A (en) Modification method, device, equipment and the storage medium of sensor characteristic
US20210372654A1 (en) Ventilation device, and constant air volume control method therefor
US20180073894A1 (en) Angle detection method and electronic device using same
CN111811567B (en) Equipment detection method based on curve inflection point comparison and related device
US20210312194A1 (en) Method and apparatus of matching lane line data, device and storage medium
CN104198976A (en) Correction method for Hall voltage sensor measuring voltage
CN113988723A (en) User behavior locking method and system based on power consumption data anomaly analysis
CN117892246B (en) Data processing method for intelligent switch cabinet
US11438994B2 (en) Filament current control method and apparatus
KR102534577B1 (en) Gas analysis system and gas analysis method
CN109580549B (en) Method and device for calculating and calibrating material content
KR102575917B1 (en) IoT sensor abnormality diagnosing method and system using cloud-based virtual sensor
CN110680297A (en) Fault detection method, device and equipment of blood pressure monitor
KR102006029B1 (en) Method and Apparatus for calculation azimuth
CN102523286A (en) Method and device for obtaining credit degree of service
CN108171425B (en) Power quality partitioning method and device and storage medium
US11531429B2 (en) Touch sensing device with a circular display and method of detecting touch coordinates thereof
CN112415141B (en) Compensation method and compensation device for formaldehyde measurement concentration display value
CN107229621B (en) Method and device for cleaning difference data
CN110687543A (en) Ranging power determination method, device, equipment and storage medium
US9746961B2 (en) Background signal processing system and background signal processing method
KR102126796B1 (en) news preference determining apparatus based on staying time using deep running and method therefor
CN104062326A (en) Environment detection method and device
CN108693164B (en) Temperature demodulation method, device and system based on optical fiber Raman scattering signal
US10601571B2 (en) Method for adjusting time stamps during the acquisition of sensor data

Legal Events

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