Next Article in Journal
Wearable Electrochemical Sensors in Parkinson’s Disease
Previous Article in Journal
Development of a Real-Time Pectic Oligosaccharide-Detecting Biosensor Using the Rapid and Flexible Computational Identification of Non-Disruptive Conjugation Sites (CINC) Biosensor Design Platform
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Linear Interval Approximation for Smart Sensors and IoT Devices

1
Faculty of Electronic Engineering and Technologies, Technical University of Sofia, 1756 Sofia, Bulgaria
2
Faculty of Industrial Technology, Technical University of Sofia, 1756 Sofia, Bulgaria
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(3), 949; https://doi.org/10.3390/s22030949
Submission received: 13 November 2021 / Revised: 13 January 2022 / Accepted: 21 January 2022 / Published: 26 January 2022
(This article belongs to the Section Internet of Things)

Abstract

:
In this work, we introduce and use an innovative approach for adaptive piecewise linear interval approximation of sensor characteristics, which are differentiable functions. The aim is to obtain a discreet type of inverse sensor characteristic, with a predefined maximum approximation error, with minimization of the number of points defining the characteristic, which in turn is related to the possibilities for using microcontrollers with limited energy and memory resources. In this context, the results from the study indicate that to overcome the problems arising from the resource constraints of smart devices, appropriate “lightweight” algorithms are needed that allow efficient connectivity and intelligent management of the measurement processes. The method has two benefits: first, low-cost microcontrollers could be used for hardware implementation of the industrial sensor devices; second, the optimal subdivision of the measurement range reduces the space in the memory of the microcontroller necessary for storage of the parameters of the linearized characteristic. Although the discussed computational examples are aimed at building adaptive approximations for temperature sensors, the algorithm can easily be extended to many other sensor types and can improve the performance of resource-constrained devices. For prescribed maximum approximation error, the inverse sensor characteristic is found directly in the linearized form. Further advantages of the proposed approach are: (i) the maximum error under linearization of the inverse sensor characteristic at all intervals, except in the general case of the last one, is the same; (ii) the approach allows non-uniform distribution of maximum approximation error, i.e., different maximum approximation errors could be assigned to particular intervals; (iii) the approach allows the application to the general type of differentiable sensor characteristics with piecewise concave/convex properties.

1. Introduction

1.1. Resource-Constrained Smart Sensor Devices—Definitions

In recent years, there has been a strong increase in the interest of scientists in smart, energy-saving sensor technologies. Many promising developments have been made in both sensor production and wireless communications. The implementation of complex sensor systems is already possible due to the high degree of miniaturization of the series of classical measurement methods. Research in the field of smart sensors and the Internet of Things (IoT) has been growing. Unfortunately, there is still a lack of clarity in the terminology used in the specialized literature [1].

1.1.1. Smart Sensors

It is often considered that the term ‘smart sensors’ was created along with the term IoT. However, IEEE introduced a definition of smart transducers (sensors and actuators) in 1997 in its IEEE 1451 standard [2,3]. For transducers to be smart, IEEE 1451 requires them to be supplemented with specific hardware components (memory/processor) and additional functionality. The Transducer Electronic Data Sheet (TEDS) stored in the memory, contains data related to identification, calibration, and correction, as well as manufacturing information.

1.1.2. IoT Devices

The emergence of IoT and the advances in the field of microcontrollers and the Internet allowed the industry to build smart devices integrating complex sensor and communication functions as well as signal processing algorithms.
The definitions of xconventional sensors, smart sensors according to the IEEE 1451 standard, and smart IoT sensors can be summarized as follows.
According to NIST, a sensor is a device that transforms physical, chemical, and biological parameters into electrical signals and converts them into analog and/or digital data. A smart sensor, according to the IEEE 1451 standard, adds functionality to the NIST definition: the device can store data for sensor identification, calibration, correction, manufacturer-related information, and serves as a communication interface or processor.
Additionally, at the next stage, the smart sensor/IoT includes additional computing resources to process and interpret data and make decisions locally. Thus “smart” functions are added successively to the conventional sensor [1,4].

1.2. Basic Resources of a Typical Smart Sensor/IoT Device and Their Limitations

Despite the nuances and differences in the definitions and characteristics of various devices, their main distinguishing feature is their limited resources.
A typical autonomously powered smart sensor/IoT device includes two basic groups of resources. Hardware resources: data storage, processing, and communication resources, as well as power supply. Software resources: operating systems, system software, preloaded applications, and lightweight services. The optimal distribution of these resources is crucial in most applications [5,6].

1.2.1. Limitations Based on Hardware

(1)
Energy and computational constraints:
Usually, IoT devices are battery-powered and typically use low-power processors. Therefore, computationally extensive algorithms that require significant resources cannot be transferred directly to such devices.
(2)
Memory constraints: IoT devices are made with limited RAM and Flash memory compared to conventional digital systems (e.g., desktop computers, laptops, etc.). They usually use mobile lightweight software tools and operating systems. Therefore, calculation schemes require approaches for efficient memory use. However, the traditional computational algorithms are not specifically designed for this purpose and that is why such algorithms cannot be used directly for IoT devices.

1.2.2. Limitations Based on Software

(1)
Firmware constraints: The sensor–IoT operating systems that are embedded in the devices have thin stacks of network protocols.
(2)
Flexibility: Remote reprogramming may not always be possible for devices, as the operating system may not be able to receive and integrate a new code.

1.3. Sensor Characteristics Linearization

1.3.1. Sensor Transfer Functions

A sensor device generates an output signal in response to a specific measurand/stimulus (input) by activating one or more physical effects (ergo, Seebeck’s effect, piezoresistive effect, etc.). The output from a sensor is usually an electrical quantity (e.g., voltage, current, frequency), denoted here by y , while the input, x , is some physical quantity of interest (e.g., temperature, chemical concentration, pressure). If the input–output function is time-invariant, it is commonly called a static transfer function/characteristic or simply a transfer function.
The sensors are parts of a measuring system. The main function of these systems is to derive the unknown value x from the measured value y . Thus, the measurement system shall employ an inverse sensor transfer function x = x ( y ) to obtain (calculate) the value of the stimulus x [7].
In the context of the system (control) theory, the dependence y = y ( x ) represents the nonlinear scalar-valued characteristic of the sensor while its inverse x = x ( y ) represents the inverse transfer function of the sensor (Figure 1a)

1.3.2. Approaches for Sensor Characteristics Linearization

Linearization is a major step in sensor signal processing. It can be considered as a nonlinearity correction between the output signal of the sensor and the associated measured quantity. The nonlinearity of the sensor can be reduced by using linearization schemes or a linearization algorithm [8]. Linearization methods can be grouped into three main classes:
  • analog hardware linearization circuits;
  • software-based algorithms for linearization;
  • analog–digital mixed approaches [9].
An analog hardware method of linearization is performed by connecting a nonlinear analog circuit between the sensor and the ADC [10].
Software-based methods require the use of PCs or DSPs with significant computing resources [11]. Using these methods on low-cost controllers that support only simple mathematical operations is a major challenge due to the limited resources of the controller. Various software-based linearization methods are discussed in the literature. The most applied method is linearization based on the traditional look-up table (LUT), which can be implemented on any microcontroller [12]. In this method, the result of digital processing is used as an index in an array that stores the corrected data points [9,13].
The linearized sensor characteristics can greatly simplify the design, calibration, and measurement accuracy. This work elaborates further on the method presented in [14], used for the adaptive linear approximation of sensor characteristics.
In general, a scalar-valued inverse sensor transfer function is mathematically represented by a nonlinear regression model (e.g., exponential, power-law, or polynomial) constructed through least-squares error minimization (fit) of a statistically representative experimental data set. The identification of the inverse transfer function is often complicated and unreliable due to uncertainty in the choice of the analytic form of the function and reductions in its parametrization. This of course leads to unwanted errors in the calibrated sensor response and hence should be avoided [15].
A way to avoid the uncertainty issues emerging from nonlinear regression-based identification of the inverse sensor response is provided by piecewise linearization (segmentation) of its transfer function. The latter is essentially a (simplified) polygonal approximation of x = x ( y ) with algorithmic control of the approximation error (Figure 1b).

1.3.3. Piecewise Linear Approximation of Sensor Transfer Functions

Analog methods for linear approximation are still popular in engineering practice. However, thanks to advances in digital technology, the implementation of software methods can be completed easily, fast, at a low cost, and with a guarantee of high accuracy. Therefore, digital methods combined with software technologies solve linearization problems with better flexibility and efficiency.
Over the last two decades, different piecewise linear approximation (PLA) techniques have been proposed for the representation of sensor transfer functions. These techniques are reported in various application areas of sensor technology, such as data mining [16], data collection in wireless sensor networks [17,18], and activity recognition applications with wearable sensor nodes [19,20,21].
PLA algorithms for data volume reduction by approximating the signals collected in wireless sensor networks (WSN) are presented in [16,17]. These algorithms use buffers, and the calculation time depends on the length of the buffer. In [22], a fast alternative for time series segmentation is considered, in which the reduction in the calculation time significantly increases at the expense of the used memory. This is not an appropriate approach for resource-constrained architectures such as mobile sensor nodes. In contrast, the proposed approach has constant computation and memory complexity.
The SWAB (Sliding Window and Bottom-Up) algorithm is proposed in [16]. The approach is a combination of two steps, the first of which is offline segmentation. Based on this segmentation, in the second step, an online algorithm is created. An optimization of this algorithm, called mSWAB, is presented in [19]. A further improved implementation (called emSWAB) for limited resources, especially suitable for mobile sensor systems is presented in [20]. These approaches are based on linear interpolation, while the approach proposed in the paper is based on linear regression and can also be performed in offline and online modes.
In [23] another segmentation approach was introduced, based on polynomial least-squares approximation with polynomials of arbitrary order. From the presented experiments with this approach when first-order polynomials are used, results like the Sliding Window (SW) method are obtained in terms of the approximation error and the degree of data compression.
Another buffer-based PLA algorithm is presented in [24]. The proposed approach is a combination of either connected or disconnected segments. In contrast, the proposed algorithm for approximating the sensor characteristics uses connected segments, which is a more appropriate solution to be implemented in architectures with constraint memory and processing resources.
In addition to providing a reliable representation of transfer function, PLA approaches have two more attractive features:
a.
They create a simple and fast-to-identify characteristic shape of the transfer function (see [19,21,25]) that could be used for just-in-time classification purposes in large-scale control systems.
b.
They require a reduced amount of memory for data storage of the signal from the sensor device and hence possess significant economic potential for realization in smart sensors with reliable, low-cost microcontrollers. This is a crucial issue for two application domains: data mining when huge amounts of sensor data should be preprocessed under the constraint of short system-response times; and acquisition followed by wireless transmission of long-term sensor data.

1.4. Main Error Components of the Smart Sensor/IoT Device

As already mentioned, the goal of this study is to limit the memory footprint without violating system accuracy requirements. The basic structure of the smart sensor and its main components are shown in Figure 2. To achieve the required accuracy levels for a smart sensor, the main components of the compound must be considered. They can be divided into error components from the analog part δ A S and components from the digital part δ D P . Details are given in [26].
Here δ A S —relative compound analog sensor error; δ D P —relative compound digital processing error caused by the digital domain signal; δ A P R = Δ x x F S —relative approximation error; Δ x —predefined absolute approximation error; x F S —full scale of microcontroller output value x*; δ A D C —relative analog–digital conversion error. Based on the considered serial structure, the total system error budget can be determined as:
δ S S = δ A S 2 + δ D P 2 .
The main components of the digital processing error δ D P can also be attributed to δ A D C and δ A P R . When an analog sensor and ADC are selected, the error levels δ A S and δ A D C cannot be affected. High-resolution ADCs are most often used in smart sensors and IoT implementation and therefore the δ A D C the component is negligibly small which proves δ A P R to be a key component through which the total error levels can be managed, which will be discussed below.
To achieve typical goals in system design, where δ S S δ A S , the aim is to have: δ A S > ( 3 ÷ 10 ) δ D P .
Published look-up tables, which are used in several applications, are often limited in the number of digits and this can be an additional source of rounding errors [26].

1.5. Proposed Approach

The proposed approach can be used for piecewise adaptive linearization of piecewise convex/concave sensor characteristics. As the name suggests, a typical piecewise convex/concave sensor response is characterized by a function consisting of a finite number of linked convex/concave segments with a strictly monotonous slope and hence a constant sign of the second derivative. Within the full measurement range of the sensor, the bounds of these segments can be identified from the condition of removing the second derivative, i.e., as the inflection points of the sensor characteristics.
The specificity of the proposed approach in comparison with the approach presented in [11] is illustrated in Figure 3.
An example of such a sensor characteristic is the relationship between resistance and temperature in the platinum temperature sensors set by the Callendar–van Dusen equation.
In [11,27,28], a linearization approach to sensor characteristics was developed in cases where the characteristic is a differentiable function. Its inverse feature is determined in a discrete form (freeform) based on an iterative algorithm with defined sensor characteristics and maximum approximation error. After that, based on the developed adaptive approach with a defined maximum approximation error, the discrete inverse sensor characteristic is replaced by a new discrete characteristic (also freeform), aimed at minimizing the number of points defining the characteristic, which in turn is related to the possibilities of using cheaper microcontrollers.
With the specified sensor, the transfer characteristic is of the type y = y ( x ) and the first task is to determine the inverse transfer sensor characteristic x = x ( y ) . In cases where the inverse function cannot be obtained in an explicit form, due to the nonlinear relation between y ( x ) and x , using a discrete linear change of x , the corresponding values of y ( x ) are obtained, which upon receipt of the inverse function results in a discrete relationship between y ( x ) and x , but with a nonlinear discrete change of argument s . This problem can be solved by the splitting method [3], the Newton method [29], as well as by the iterative algorithm proposed in [11,30]. As a result, given a maximum approximation error, the inverse sensor characteristic is obtained in a discrete form x i = x i ( y i ) , i = 1 , n ¯ , with a uniform changing step of the argument s .
The second task is related to the approximation of the obtained discrete inverse sensor characteristic in the form of x i = x i ( y i ) , i = 1 , n ¯ , a new characteristic x j = x j ( y j ) , j = 1 , k ¯ with a specified maximum approximation error and minimization of k . One approach for solving the problem was developed in [2,11].
The purpose of the present work is to develop a new approach for solving the task of linearization of sensor characteristics (differentiable functions with a non-changing sign of curvature), which simultaneously solves the tasks of finding the inverse sensor characteristic and its linearization.

2. The Analytical Framework of the Proposed Approach for Linearization of Sensor Characteristics

Let a differentiable sensor characteristic of the type y = y ( x ) , x [ x A i , x B ] , i = 1 , n 1 ¯ , be given. For each such sensor, the characteristic is fulfilled y ( x ) 0 , as the function y = y ( x ) is strictly monotonous ( y ( x ) > 0 or y ( x ) < 0 ).
In the case considered here, if the sign of curvature remains unchanged, one of the following two conditions should be satisfied: s i g n ( y ( x ) ) > 0 or s i g n ( y ( x ) ) < 0 .
Under linear approximation of the function within the specified range, the error Δ i y ( x ) is determined by
Δ i y ( x ) = y ( x ) ( y A i + y B y A i x B x A i ( x x A i ) ) = y ( x ) y A i k i ( x x A i ) ,
where k i = y B y A i x B x A i is the slope of the straight line A i B (Figure 4).
From the necessary condition for extremum, [ Δ i y ( x E i ) ] = 0 the following is obtained:
y ( x E i ) k i = 0 ,
as the condition is also sufficient, y ( x ) 0 .
The extremum always exists (Role Theorem [31]— Δ i y ( x A i ) = Δ i y ( x B ) = 0 ), as at the same time it is unique—the function ( y ( x ) k i ) is monotonous and has different signs at the ends of the range.
With Equation (1), when x = x E i , the extremum value is obtained
Δ i y ( x E i ) = y ( x E i ) y A i k i ( x E i x A i ) .
The extremum of the error Δ i x ( y ) at a linear approximation of the inverse function x ( y ) in the given range is determined by
Δ i y ( x E i ) Δ i x ( x E i ) = tan α i = k i ,
under which
Δ i x ( x E i ) = Δ i y ( x E i ) k i = x E i x A i y ( x E i ) y A i k i .
In the context of this work, of practical interest is the following problem case—the maximum approximation error Δ x is specified, the absolute value of which is less than the absolute value of the defined by Equation (3) error in the given range [ x A i , x B ] . The goal is to find a subrange [ x A i , x A i + 1 ] , where Δ i x ( x E i ) = Δ x is fulfilled.
From Equations (2) and (3) it follows that
Δ i x ( x E i ) = Δ x = x E i x A i y ( x E i ) y A i k i = x E i x A i y ( x E i ) y A i y ( x E i ) ,
respectively,
y ( x E i ) y ( x E i ) y A i x E i x A i Δ x = 0.
The last equation defines x E i , then the right end x A i + 1 of the range is determined by the equation
y ( x A i + 1 ) = y A i + y ( x E i ) ( x A i + 1 x A i ) .

3. Essence of the Proposed Approach for Linearization of Sensor Characteristics

Let a differentiable sensor characteristic in the form y = y ( x ) , x [ x A i , x B ] , i = 1 , n 1 ¯ be given as the sign of curvature does not change ( s i g n ( y ( x ) ) > 0 or s i g n ( y ( x ) ) < 0 ). The aim is to obtain the inverse sensor characteristic x ( y ) in the linearized form at a specified maximum approximation error Δ x .
The approach is realized in the following way. With Equation (3) the extremum value of the Δ 1 x in the range x [ x A 1 , x B ] is determined. If | Δ 1 x | < | Δ x | then the function is approximated throughout the range with segment A 1 B and the procedure ends. In the opposite case with Equations (4) and (5), the subrange x [ x A 1 , x A 2 ] , where Δ 1 x = Δ x is determined.
Then, through Equation (3), the extremum value of Δ 2 x in the range x [ x A 2 , x B ] is determined. If | Δ 2 x | < | Δ x | , then the function is approximated throughout the range with the segment A 2 B and the procedure ends, or otherwise through Equations (4) and (5) the subrange x [ x A 2 , x A 3 ] , where Δ 2 x = Δ x , is determined, etc.
The inverse sensor characteristic x ( y ) is approximated by the broken line A 1 A 2 A 3 A n 1 B A n , A i ( y A i , x A i ) , i = 1 , n 1 ¯ , A n ( y B , x B ) , as
x ( y ) = x A i + ( y y A i ) x A i + 1 x A i y A i + 1 y A i ,   y [ y A i , y A i + 1 ] ,   i = 1 , n 1 ¯ .
Generally, in all intervals, except for the last one, the maximum approximation errors are equal and equal to the maximum specified approximation error Δ x . The error Δ i x ( x ) in each of the intervals is determined by the following equation:
Δ i x ( x ) = x x A i ( y ( x ) y A i ) x A i + 1 x A i y A i + 1 y A i ,     x [ x A i , x A i + 1 ] ,   i = 1 , n 1 ¯ .
Considering the next equation
Δ i x [ y ( x ) ] = Δ i x ( x ) ,   x [ x A i , x A i + 1 ] ,   i = 1 , n 1 ¯ ,
and Equation (7) the error Δ i x ( y ) can be found.
Illustrative example: At a specified maximum approximation error Δ x , find the linearized inverse characteristic of the characteristic y ( x ) = a 1 + a 2 ( x a 3 ) 2 , x [ x A , x B ] , when Δ x = 2 ,   a 1 = 2 ,   a 2 = 0.02 , a 3 = 2 , x A = 3 , x B = 51 .
Then y ( x ) = 2 + 0.02 ( 3 2 ) 2 = 2.02 , and y ( x ) = 0.04 ( x 2 ) , y ( x ) = 0.04 . So y ( x A i ) = 2 + 0.02.
From (4) follows
0.04 ( x E i 2 ) 2 + 0.02 ( x E i 2 ) 2 2.02 x E i 3 2 = 0 ,  
respectively, x E i 2 10 x E i + 17 = 0
The first of the two solutions 2.171572875 does not belong to the considered interval ( 2.171572875 < x A i = 3 ). Only the second solution 7.828427125 belongs to the considered interval. Therefore, x E i = 7.828427125 .
From (5) follows
2 + 0.02 ( x A i + 1 2 ) 2 = 2.02 + 0.04 ( 7.828427125 2 ) ( x A i + 1 3 ) ,  
Respectively,
x A i + 1 2 15.65685425 x A i + 1 + 37.97056275 = 0 .
The first of the two solutions (3 and 12.65685425) corresponds to the starting point. Therefore, x A i = 3 and x A i = 12.65685425 .
As a result of this approach, the inverse sensor characteristic x ( y ) is approximated by the broken line A 1 A 2 A 3 B , as shown in Table 1, where the coordinates of the points are given, also the corresponding intervals of the argument variation, the values of the argument in the extrema in the corresponding interval (as a result of the properties of the square parabola they are always in the middle of the interval) and the corresponding error Δ i x . The illustrative example is selected to enable good graphical visualization of the results shown in Figure 5.

4. Linearization of the Inverse Sensor Characteristics of Temperature Sensors

The relation between the resistance and the temperature in the platinum temperature sensors is set by the equation of Callendar–van Dusen [32,33]. Using the proposed approach, the task of interval linearization of the inverse characteristic will be solved.

4.1. Linearization of the Inverse Sensor Characteristics of the Platinum Temperature Sensors in the Range T [ 0   ,   661   ]   ° C

The Callendar–van Dusen equation in the case under consideration is given by
R T = R 0 ( 1 + A T + B T 2 ) ,
where
  • T, °C—temperature;
  • R T —measured resistance at temperature T ;
  • R 0 —measured resistance at temperature T = 0   ° C ;
  • A = 3.908310 3 ; B = 5.77510 7 —coefficients according to ITS 90/IEC 60751 [34,35].
Under the denotations R ( T ) = R T R 0 and a 3 = A ( 2 B ) , Equation (9) takes the form
R ( T ) = 1 A 2 4 B + B [ T + A 2 B ] 2 = 1 A 2 4 B + B ( T a 3 ) 2 .
Differentiating (10) twice, concerning temperature T , leads to the first and second derivatives, respectively,
R ( T ) = 2 B ( T a 3 ) ,
R ( T ) = 2 B .
The graphs of function R ( T ) , its first derivative R ( T ) , and its second derivative R ( T ) in the range T [ 0 ,   661 ]   ° C defined by Equations (10)–(12), respectively, are shown in Figure 6.
Since R ( T ) does not change its sign (the curve is concave in the considered range), the proposed approach for linear interval linearization can be applied because the function T ( R ) can be found in the linearized form.
Equations (2)–(5) and (7), required for the approach, accordingly take the form:
R ( T E i ) k i = 2 B ( T E i a 3 ) R B R A i T B T A i = 0   or   T E i = T A i + T B 2 ;  
Δ i T ( T E i ) = Δ i R ( T E i ) k i = T E i T A i R ( T E i ) R A i k i = T E i T A i ( R ( T E i ) R A i ) ( T B T A i ) R B R A i = ( T B T A i ) ( 1 2 1 4 T B + 3 T A i 4 a 3 T B + T A i 2 a 3 ) ;
T E i = Δ T + T A i + ( Δ T + T A i ) 2 T A i 2 2 a 3 Δ T ;
T A i + 1 = 2 T E i T A i .
Δ i T ( T ) = T T A i ( R ( T ) R A i ) T A i + 1 T A i R A i + 1 R A i ,   x [ T A i , T A i + 1 ] ,   i = 1 , n 1 ¯ .
The numerical results from the application of the approach, when Δ T = 0.375   ° C in the given temperature range T A 1 = 0   ° C , T B = 661   ° C , are shown in Table 2 and in graphical form in Figure 7. The graph of the function Δ T ( T ) from (17) is shown in Figure 8.

4.2. Linearization of the Inverse Sensor Characteristics of the Platinum Temperature Sensors in the Range T [ 200 , 0 ]   ° C

The Callendar–van Dusen equation when considering the case is given by
R T = R 0 ( 1 + A T + B T 2 100 C T 3 + C T 4 ) ,
where
  • T ,   ° C —temperature;
  • R T —measured resistance at temperature T;
  • R 0 —measured resistance at temperature T = 0 °C;
  • A = 3.908310 3 ; B = 5.77510 7 ; C = 4.18310 12 —coefficients according to ITS 90/IEC 60751 [34].
Under the denotation, R ( T ) = R T R 0 , the Equation (18) takes the form
R ( T ) = 1 + A T + B T 2 100 C T 3 + C T 4 .
Differentiating (19) twice, concerning the temperature T , leads to the first and second derivatives, respectively,
R ( T ) = A + 2 B T 300 C T 2 + 4 C T 3 ;
R ( T ) = 2 B 600 C T + 12 C T 2 .
The graphs of R ( T ) , R ( T ) , and R ( T ) are shown in Figure 9.
Since R ( T ) does not change its sign (the curve is concave in the range considered), the proposed approach for linear interval linearization can be applied because function T ( R ) can be found in the linearized form.
Equations (2)–(5) needed for the implementation of the approach take the form, respectively,
A + 2 B T E i 300 C T E i 2 + 4 C T E i 3 R B R A i T B T A i = 0 ,
Δ i T ( T E i ) = Δ i R ( T E i ) k i = T E i T A i R ( T E i ) R A i k i = T E i T A i ( A ( T E i T A i ) + B ( T E i 2 T A i 2 ) 100 C ( T E i 3 T A i 3 ) + C ( T E i 4 T A i 4 ) ) T B T A i R B R A i .
R ( T E i ) R ( T E i ) R A i T E i T A i Δ T = A + 2 B T E i 300 C T E i 2 + 4 C T E i 3 A ( T E i T A i ) + B ( T E i 2 T A i 2 ) 100 C ( T E i 3 T A i 3 ) + C ( T E i 4 T A i 4 ) T E i T A i Δ T = 0.
1 + A T A i + 1 + B T A i + 1 2 100 C T A i + 1 3 + C T A i + 1 4 = 1 + A T A i + B T A i 2 100 C T A i 3 + + C T A i 4 + ( A + 2 B T E i 300 C T E i 2 + 4 C T E i 3 ) ( T A i + 1 T A i ) .
The proposed approach will be applied when Δ T = 0.375   ° C in the temperature range T A 1 = 0   ° C , T B = 200   ° C .
Using Equation (22), the value of the argument T E 1 is determined, under which the function Δ 1 T ( R E ) (23) has an extremum in the range T B = 200   ° C < T < T A 1 = 0   ° C .
The third power Equation (22) has two complex and one real root T E 1 = 110 . 583   ° C . When T E 1 = 110 . 583   ° C , Δ 1 T = 2 . 472   ° C is obtained through Equation (23). As | Δ 1 T | > | Δ T | , Equations (24) and (25) determine the subrange T [ T A 2 , T A 1 ] where Δ 1 T = Δ T . The fourth power Equation (24) has two real and two complex roots as the real root T E 1 = 47 . 977   ° C belongs to the range [ T B , T A 1 ] . The Equation (25) is also a fourth power equation and has two real and two complex roots as one of the real roots is T A 1 and the other one is T A 2 = 92 . 292   ° C .
Then the same steps are applied to the range T B = 200   C < T < T A 2 = 92 . 292   ° C . The Equation (22) has two complex and one real root T E 2 = 149 . 314   ° C . When T E 2 = 149 . 314   ° C , Δ 2 T = 0 . 915   ° C is obtained by Equation (23). As | Δ 2 T | > | Δ T | , Equations (24) and (25) define the subrange T [ T A 3 , T A 2 ] where Δ 2 T = Δ T . Equation (24) has two real and two complex roots as one of the real roots belongs to the range [ T B , T A 2 ] is T E 2 = 130 . 207   ° C . Equation (25) has two real and two complex roots as one of the real roots is T A 2 and the other one is T A 3 = 165 . 17   ° C .
Then, the same consecution is applied to the range T B = 200   ° C < T < T A 3 = 165 . 178   ° C . The real root of Equation (22) is T E 3 = 182 . 909   ° C . When T E 3 = 182 . 909   ° C , Equation (23) Δ T 3 = 0 . 117   ° C is obtained. As | Δ T | < | Δ T | , the procedure ends.
The numerical results of the application of the approach when Δ T = 0.375   ° C are shown in Table 3 and in graphical form in Figure 10. The graph of the function Δ T ( T ) (17) is shown in Figure 11.

4.3. Microcontroller Implementation of the Inverse Sensor Characteristics Linearization of Platinum Temperature Sensors in the Range T [ 0 ,   661 ]   ° C

This design uses a Lolin 32 development board based on Espressif Systems’ ESP32 microcontroller. Its main features include integrated Wi-Fi, flash memory, and USB communication, and is often used for IoT designs [36].
The linearization is performed by segmentation, in which the range is divided into the corresponding number of segments (from 1 to End) to guarantee the requirement for the maximum approximation error. The linearization algorithm for low-cost microcontrollers is presented in a pseudo-code form below (see Algorithm 1).
Algorithm 1 Linearization
Input: Measured RTD resistance, R_T, floating-point type
Output: Calculated temperature, Temperature, floating-point type
Initialization: defining the coordinates of the points bounding each interval Ra_1, Ra_2... Ra_End and Ta_1, Ta_2... Ta_End
1: Determine the interval (n) in which the measured resistance is located, and whether it is in the respective temperature range
      If ((R_T > Ra_n) and (R_T ≤ Ra_(n + 1)))
2: Calculate the temperature according to the formula
      Temperature = (R_T − Ra_n) ∗ ((Ta_(n + 1) − Ta_n)/(Ra_(n + 1) − Ra_n)) + Ta_n;
3: Return Temperature
The algorithm is implemented as a function in the Lolin D32 development system for the ESP32 microcontroller. When variables and constants are represented with a floating-point data type, the memory footprint of the function is 36 bytes of flash and 8 bytes of the system’s RAM. The function is compiled with both Os and g3 optimizations—for size and debug information, respectively.
For comparison, in an implementation based on an optimized lookup table using an unsigned integer, the occupied program memory is about 3k bytes and 8 bytes of RAM [37].

4.4. An Illustrative Example of Linearization of the Inverse Sensor Characteristics of K-Type Thermocouples in the Temperature Range T [ 200 ,   0 ]   ° C and Maximum Approximation Error Δ T = 0.04   ° C

The thermoelectric voltage E in microvolts, as a function of temperature T in degrees Celsius, is defined by:
E ( t ) = 1 10 c i   T i   ,
where the coefficients c i are specified in NIST ITS-90 [38].
The graphs of function E ( T ) , its first derivative E ( T ) , and its second derivative E ( T ) in the range, T [ 270 ,   0 ]   ° C , are shown in Figure 12.
Since E ( T ) does not change sign (the curve is convex in the considered range), the proposed approach for linear interval linearization can be applied and the sensor characteristic can be determined in linearized form.
The numerical results from the application of the approach, when Δ T = 0.04   ° C in the given temperature range T A 1 = 0   ° C , T B = T A 48 = 200   ° C , are shown in Table 4 and in graphical form in Figure 13. The graph of the function Δ T ( T ) is shown in Figure 14.
The linearization of the k-type thermocouple in the range [ 200 ,   0 ]   ° C is implemented in the Lolin D32 development system for the ESP32 microcontroller. Variables and constants are represented by floating-point data type, the memory footprint of the function is about 145.3 kB, with activated size optimization “ O s ”. This is about 10% of the system’s resources.

5. Conclusions

This paper presented an approach for linear interval approximation of sensor characteristics y = y ( x ) where the characteristics are differentiable functions in which the sign of curvature does not change, i.e., they are either “concave” or “convex” functions. The aim is to obtain a discreet type of inverse sensor characteristic x i = x i ( y i ) , i = 1 , n ¯ , with a predefined maximum approximation error Δ x , with minimization of the number of points defining the characteristic, which in turn is related to the possibilities for using cheaper microcontrollers. The approach is characterized by the fact that when the maximum approximation error Δ x under the linearization of the inverse sensor characteristic is given, the inverse sensor characteristic x i = x i ( y i ) , i = 1 , n ¯ is found directly in the linearized form. The advantages of the developed approach are as follows:
  • the approach is applied at intervals, with each subsequent step (each successive interval) resulting in a similar solution of the problem under the new initial conditions to obtain the directly sought solution, which in turn contains the initial conditions for the next step;
  • the maximum error under linearization of the inverse sensor characteristic at all intervals, except in the general case of the last one, is the same;
  • the approach allows that different maximum approximation errors are set at each subsequent interval;
  • the approach allows the application to general types of differentiable sensor characteristics with piecewise concave/convex properties.
The proposed approach is verified through linearization of the inverse sensory characteristics of the Pt100 sensor and k-type thermocouple. The proposed approach to linear interval approximation of sensor characteristics y = y ( x ) , which are differentiable functions, can be also extended to sensor characteristics with inflection points (characteristics where the sign of curvature changes, in some subintervals they are “concave”, and in others, they are “convex” functions). A typical example of such a sensor characteristic is the Type K Thermocouple.
To overcome the problems arising from resource constraints, appropriate algorithms are needed that allow efficient connectivity and intelligent management of the measurement processes. Although the discussed computational examples are aimed at building adaptive approximations for temperature sensors, the algorithm can be applied easily to many other sensor types.

Author Contributions

Conceptualization, M.B.M., N.N. and S.D.; methodology, N.N., S.D. and T.T., software, N.N., G.T.N. and Y.S.; investigation, M.B.M., N.N.; resources, G.T.N., N.N. and M.B.M.; writing—original draft preparation, N.N., M.B.M. and S.D.; writing—review and editing, M.B.M., N.N. and S.D.; visualization, N.N. and Y.S. All authors have read and agreed to the published version of the manuscript.

Funding

The APC was funded by the Research and Development sector at the Technical University of Sofia.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

The authors would like to thank the Research and Development sector at the Technical University of Sofia for the financial support. The authors acknowledge the support of project BG05M2OP001-1.001-0008 “National Center for Mechatronics and Clean Technologies” Operational Program Executive Agency, Ministry of Education and Science, Bulgaria.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Liu, X.; Baiocchi, O. A comparison of the definitions for smart sensors, smart objects, and Things in IoT. In Proceedings of the IEEE 7th Annual Information Technology Electronics and Mobile Communication Conference (IEMCON), Vancouver, BC, Canada, 13–15 October 2016. [Google Scholar]
  2. NIST. Definitions—Sensors, National Institute of Standards and Technology. 2009. Available online: http://www.nist.gov/el/isd/ieee/definitions.cfm (accessed on 13 January 2022).
  3. IEEE. The IEEE 1451.4 Standard for Smart Transducers. 2004. Available online: https://standards.ieee.org/content/dam/ieee-standards/standards/web/documents/tutorials/1451d4.pdf (accessed on 12 October 2021).
  4. Oriwoh, E.; Conrad, M. Things’ in the Internet of Things: Towards a definition. Int. J. Internet Things 2015, 4, 1–5. [Google Scholar]
  5. Hossain, M.M.; Fotouhi, M.; Hasan, R. Towards an Analysis of Security Issues, Challenges, and Open Problems in the Internet of Things; IEEE: New York, NY, USA, 2015. [Google Scholar]
  6. Zahoor, S.; Mir, R. Resource management in pervasive Internet of Things: A survey. J. King Saud Univ.–Comput. Inf. Sci. 2018, 33, 921–935. [Google Scholar] [CrossRef]
  7. Fraden, J. Handbook of Modern Sensors; Springer: Cham, Switzerland; Heidelberg, Germany; New York, NY, USA; Dordrecht, The Netherlands; London, UK, 2016. [Google Scholar]
  8. Attari, M. Methods for linearization of non-linear sensors. In Proceedings of the CMMNI-4, Fourth Maghrebin Conference on Numerical Methods of Engineering, Algiers, Algeria; 1993; Volume 1, pp. 344–350. [Google Scholar]
  9. Erdem, H. Implementation of software-based sensor linearization algorithms on low-cost microcontrollers. ISA Trans. 2010, 49, 552–558. [Google Scholar] [CrossRef] [PubMed]
  10. Johnson, C. Process Control Instrumentation Technology, 8th ed.; Pearson Education Limited: London, UK, 2013. [Google Scholar]
  11. Marinov, M.; Dimitrov, S.; Djamiykov, T.; Dontscheva, M. An Adaptive Approach for Linearization of Temperature Sensor Characteristics. In Proceedings of the 27th International Spring Seminar on Electronics Technology, ISSE 2004, Bankya, Bulgaria, 13–16 May 2004. [Google Scholar]
  12. Brignell, J. Software techniques for sensor compensation. Sens. Actuators A Phys. 1990, 25, 29–35. [Google Scholar] [CrossRef]
  13. Flammini, A.; Marioli, D.; Taroni, A. Transducer output signal processing using an optimal look-up table in mi-crocontroller-based systems. Electron. Lett. 2010, 33, 552–558. [Google Scholar]
  14. Grützmacher, F.; Beichler, B.; Hein, A.; Kirste, T.; Haubelt, C. Time and Memory Efficient Online Piecewise Linear Approximation of Sensor Signals. Sensors 2018, 18, 1672. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  15. Islam, T.; Mukhopadhyay, S. Linearization of the sensors characteristics: A review. Int. J. Smart Sens. Intell. Syst. 2019, 12, 1–21. [Google Scholar] [CrossRef] [Green Version]
  16. Keogh, E.; Chu, S.; Hart, D.; Pazzani, M. An online algorithm for segmenting time series. In Proceedings of the IEEE International Conference on Data Mining, ICDM2001, San Jose, CA, USA, 29 November–2 December 2001. [Google Scholar]
  17. Liu, C.; Wu, K.; Pei, J. An energy-efficient data collection framework for wireless sensor networks by exploiting spatiotemporal correlation. IEEE Trans. Parallel Distrib. Syst. 2007, 18, 1010–1023. [Google Scholar] [CrossRef] [Green Version]
  18. Pham, N.; Le, T.; Choo, H. Enhance exploring temporal correlation for data collection in WSNs. In Proceedings of the IEEE International Conference on Research, Innovation and Vision for the Future, RIVF 2008, Ho Chi Minh City, Vietnam, 13–17 July 2008. [Google Scholar]
  19. Van Laerhoven, K.; Berlin, E.; Schiele, B. Enabling efficient time series analysis for wearable activity data. In Proceedings of the International Conference on Machine Learning and Applications, ICMLA’09, Miami Beach, FL, USA, 13–15 December 2009. [Google Scholar]
  20. Berlin, E.; van Laerhoven, K. An on-line piecewise linear approximation technique for wireless sensor networks. In Proceedings of the 2010 IEEE 35th Conference on Local Computer Networks (LCN), Denver, CO, USA, 11–14 October 2010. [Google Scholar]
  21. Berlin, E.; van Laerhoven, K. Detecting leisure activities with dense motif discovery. In Proceedings of the 2012 ACM Conference on Ubiquitous Computing, Pittsburgh, PA, USA, 5–8 September 2012. [Google Scholar]
  22. Lemire, D. A better alternative to piecewise linear time-series segmentation. In Proceedings of the 2007 SIAM International Conference on Data Mining, Minneapolis, MN, USA, 26–28 April 2007. [Google Scholar]
  23. Fuchs, E.; Gruber, T.; Nitschke, J.; Sick, B. Online segmentation of time series based on polynomial least-squares approximations. IEEE Trans. Pattern Anal. Mach. Intell. 2010, 32, 2232–2245. [Google Scholar] [CrossRef] [PubMed]
  24. Luo, G.; Yi, K.; Cheng, S.; Li, Z.; Fan, W.; He, C.; Mu, Y. Piecewise linear approximation of streaming time-series data with max-error guarantees. In Proceedings of the 2015 IEEE 31st International Conference on Data Engineering (ICDE), Seoul, Korea, 13–17 April 2015. [Google Scholar]
  25. Junker, H.; Amft, O.; Lukowicz, P.; Tröster, G. Gesture spotting with body-worn inertial sensors to detect user activities. Pattern Recognit. 2008, 41, 2010–2024. [Google Scholar] [CrossRef]
  26. Chevrier, M. TI Designs. Optimized Sensor Linearization for Thermocouple; TIDUA11A; Texas Instruments Incorporated: Dallas, TX, USA, June 2015; Revised September 2015. [Google Scholar]
  27. van der Horn, G.; Huijsing, J. Integrated Smart Sensors: Design and Calibration; Springer: New York, NY, USA, 2012. [Google Scholar]
  28. Pereira, J.M.D.; Postolache, O.; Girao, P.M.B.S. PDF-Based Progressive Polynomial Calibration Method for Smart Sensors Linearization. IEEE Trans. Instrum. Meas. 2009, 58, 3245–3252. [Google Scholar] [CrossRef] [Green Version]
  29. Kincaid, D.; Kincaid, D.; Cheney, E. Numerical Analysis: Mathematics of Scientific Computing; American Mathematical Society: Washington, DC, USA, 2009. [Google Scholar]
  30. Šturcel, J.; Kamenský, M. Function approximation and digital linearization in sensor systems. ATP J. 2006, 2, 13–17. [Google Scholar]
  31. Marsden, J.; Weinstein, A. Calculus I; Springer: New York, NY, USA, 2012. [Google Scholar]
  32. Fluke. How to Calibrate an RTD or Platinum Resistance Thermometer (PRT) AN; Fluke Corporation, Hart Scientific Division: American Fork, UT, USA, 2009. [Google Scholar]
  33. Cejer, M. Resistive Temperature Detectors: An Alternative to Thermocouples for Precise, Repeatable Temperature Measurements; Keithley Instruments, Inc.: Cleveland, OH, USA, 2004. [Google Scholar]
  34. Yang, I.; Gam, K.; Joung, W. Modeling the calibration of the industrial platinum-resistance thermometers according to GUM. Accredit. Qual. Assur. 2013, 18, 359–362. [Google Scholar] [CrossRef]
  35. Fernicola, V.C.; Iacomini, L. Approximating the ITS-90 Temperature Scale with Industrial Platinum Resistance Thermometers. Int. J. Thermophys. 2008, 29, 1817–1827. [Google Scholar] [CrossRef]
  36. Nabto. ESP32 for IoT: A Complete Guide. 2020. Available online: https://www.nabto.com/guide-to-iot-esp-32/ (accessed on 13 January 2022).
  37. Haney. Library for Accurate Pt100 RTD Ohms-to-Celsius Conversion. 2018. Available online: https://github.com/drhaney/pt100rtd/tree/master/examples/pt100_temperature (accessed on 13 January 2022).
  38. Candela, G. TI Designs. Isolated Loop Powered Thermocouple Transmitter; TIDU449B; Texas Instruments Incorporated: Dallas, TX, USA, October 2014; Revised July 2016. [Google Scholar]
Figure 1. Graphical representation of inverse sensor transfer functions: (a) inverse sensor transfer function x = x ( y ) and its linear approximation x = k y + x 0 ; (b) inverse sensor transfer function x = x ( y ) and its piecewise linear approximation x = P L A ( y ) .
Figure 1. Graphical representation of inverse sensor transfer functions: (a) inverse sensor transfer function x = x ( y ) and its linear approximation x = k y + x 0 ; (b) inverse sensor transfer function x = x ( y ) and its piecewise linear approximation x = P L A ( y ) .
Sensors 22 00949 g001
Figure 2. The basic structure and main error components of the smart sensor/IoT (after piecewise linear approximation and analog–digital conversion; x*—microcontroller output value).
Figure 2. The basic structure and main error components of the smart sensor/IoT (after piecewise linear approximation and analog–digital conversion; x*—microcontroller output value).
Sensors 22 00949 g002
Figure 3. Graphical illustration of (a) the method in [11] and (b) the proposed approach.
Figure 3. Graphical illustration of (a) the method in [11] and (b) the proposed approach.
Sensors 22 00949 g003
Figure 4. Graphical representation of the proposed approach.
Figure 4. Graphical representation of the proposed approach.
Sensors 22 00949 g004
Figure 5. Graphical results of the solution of the illustrative example.
Figure 5. Graphical results of the solution of the illustrative example.
Sensors 22 00949 g005
Figure 6. Graphs of the functions R ( T ) , R ( T ) , and R ( T ) in the range T [ 0 ,   661 ]   ° C .
Figure 6. Graphs of the functions R ( T ) , R ( T ) , and R ( T ) in the range T [ 0 ,   661 ]   ° C .
Sensors 22 00949 g006
Figure 7. Graphical results of the solution in the range T [ 0 ,   661 ]   ° C .
Figure 7. Graphical results of the solution in the range T [ 0 ,   661 ]   ° C .
Sensors 22 00949 g007
Figure 8. Graph of the function Δ T ( T ) in the range T [ 0 ,   661 ]   ° C .
Figure 8. Graph of the function Δ T ( T ) in the range T [ 0 ,   661 ]   ° C .
Sensors 22 00949 g008
Figure 9. Graphs of the functions R(T), R ( T ) , and R ( T ) in the range T [ 200 , 0 ]   ° C .
Figure 9. Graphs of the functions R(T), R ( T ) , and R ( T ) in the range T [ 200 , 0 ]   ° C .
Sensors 22 00949 g009
Figure 10. Graphical results of the solution in the range T [ 200 ,   0 ]   ° C .
Figure 10. Graphical results of the solution in the range T [ 200 ,   0 ]   ° C .
Sensors 22 00949 g010
Figure 11. Graph of the function Δ T ( T ) in the range T [ 200 ,   0 ]   ° C .
Figure 11. Graph of the function Δ T ( T ) in the range T [ 200 ,   0 ]   ° C .
Sensors 22 00949 g011
Figure 12. Graphs of the functions E ( T ) , E ( T ) , and E ( T ) in the range T [ 270 ,   0 ]   ° C .
Figure 12. Graphs of the functions E ( T ) , E ( T ) , and E ( T ) in the range T [ 270 ,   0 ]   ° C .
Sensors 22 00949 g012
Figure 13. Graphical results of the solution in the range T [ 200 ,   0 ]   ° C .
Figure 13. Graphical results of the solution in the range T [ 200 ,   0 ]   ° C .
Sensors 22 00949 g013
Figure 14. Graph of the function Δ T ( T ) in the range T [ 200 ,   0 ]   ° C .
Figure 14. Graph of the function Δ T ( T ) in the range T [ 200 ,   0 ]   ° C .
Sensors 22 00949 g014
Table 1. Results of the solution of the illustrative example.
Table 1. Results of the solution of the illustrative example.
A 1 A 2 A 2 A 3 A 3 B
A 1 3.000 ,   2 . 020 A 2 12 . 657 ,   4 . 271 A 3 30 . 314 ,   18 . 033
A 2 12 . 657 ,   4 . 271 A 3 30 . 314 ,   18 . 033 B 51 . 000 ,   50 . 020
x 3.000 ,   12 . 657 x 12 . 657 ,   30 . 314 x 30 . 314 ,   51 . 000
x E 1 = 7 . 828 x E 2 = 21 . 485 x E 3 = 43 . 142
Δ 1 x = 2 Δ 2 x = 2 Δ 3 x = 1.384
Table 2. Results in the range T [ 0 ,   661 ]   ° C .
Table 2. Results in the range T [ 0 ,   661 ]   ° C .
A 1 A 2 A 2 A 3 A 3 A 4 A 4 A 5
A 1 0 , 1 A 2 100 . 007 ,   1 . 385 A 3 198 . 514 ,   1 . 753 A 4 295 . 521 ,   2 . 105
A 2 100 . 007 ,   1 . 385 A 3 198 . 514 ,   1 . 753 A 4 295 . 521 ,   2 . 105 A 5 391 . 028 ,   2 . 440
T 0 ,   100 . 007 T 100 . 007 ,   198 . 514 T 198 . 514 ,   295 . 521 T 295.521 ,   391.028
T E 1 = 50.0035 T E 2 = 149.261 T E 3 = 247.018 T E 4 = 343.275
Δ 1 T = 0.375 Δ 2 T = 0.375 Δ 3 T = 0.375 Δ 4 T = 0.375
A 5 A 6 A 6 A 7 A 7 A 8
A 5 391.028 ,   2.440 A 6 485.035 ,   2.760 A 7 577.543 ,   3.065
A 6 485.035 ,   2.760 A 7 577.543 ,   3.065 A 8 B 661 ,   3.331
T 391.028 ,   485.035 T 485.035 ,   577.543 T 577.543 ,   661
T E 5 = 438.032 T E 6 = 531.289 T E 7 = 619.271
Δ 5 T = 0.375 Δ 6 T = 0.375 Δ 7 T = 0.315
Table 3. Results in the range T [ 200 ,   0 ] °C.
Table 3. Results in the range T [ 200 ,   0 ] °C.
A 1 A 2 A 2 A 3 A 3 A 4
A 1 ( 0 , 1 ) A 2 ( 92.292 , 0.634 ) A 3 ( 165 . 178 ,   0.334 )
A 2 ( 92.292 , 0.634 ) A 3 ( 165 . 178 ,   0 . 334 ) A 4 B ( 200 ,   0 . 185 )
T [ 92 . 292 , 0 ] T [ 165.178 , 92.292 ] T [ 200 , 165 . 178 ]
T E 1 = 47 . 977 T E 2 = 130 . 207 T E 3 = 182 . 909
Δ T 1 = 0.375 Δ T 2 = 0.375 Δ T 3 = 0.117
Table 4. Results in the range T [ 200 ,   0 ]   ° C .
Table 4. Results in the range T [ 200 ,   0 ]   ° C .
A 1 A 2 A 2 A 3 A 3 A 4 A 4 A 5
A 1 0 , 0 A 2 14 . 596 , 569 . 9626 A 3 27.626 , 1066 . 926 A 4 39 . 819 , 1520 . 303
A 2 14 . 596 , 569 . 9626   A 3 27.626 , 1066 . 926 A 4 39 . 819 , 1520 . 303 A 5 51 . 342 , 1937 . 358
T 14 . 596 ,   0 T 27.626 ,   14 . 596 T 39 . 819 ,   27.626 T 51 . 342 ,   39 . 819
T E 1 = 7 . 494 T E 2 = 21 . 181929 T E 3 = 33 . 769 T E 4 = 45 . 620
Δ T = 0.04 Δ T = 0.04 Δ T = 0.04 Δ T = 0.04
A 5 A 6 A 6 A 7 A 7 A 8 A 8 A 9
A 5 51 . 342 , 1937 . 358 A 6 62 . 267 , 2321 . 642 A 7 72 . 653 , 2676 . 126 A 8 82 . 554 , 3003 . 567
A 6 62 . 267 , 2321 . 642 A 7 72 . 653 , 2676 . 126 A 8 82 . 554 , 3003 . 567 A 9 92 . 019 , 3306 . 423
T 62 . 267 ,   51 . 342 T 72 . 653 ,   62 . 267 T 82 . 554 ,   72 . 653 T 92 . 019 ,   82 . 554
T E 5 = 56 . 839 T E 6 = 67 . 489 T E 7 = 77 . 628 T E 8 = 87 . 308
Δ T = 0.04 Δ T = 0.04 Δ T = 0.04 Δ T = 0.04
A 9 A 10 A 10 A 11 A 11 A 12 A 12 A 13
A 9 92 . 019 , 3306 . 423 A 10 101 . 091 , 3586 . 812 A 11 109 . 801 , 3846 . 531 A 12 118 . 178 , 4087 . 117
A 10 101 . 091 , 3586 . 812 A 11 109 . 801 , 3846 . 531 A 12 118 . 178 , 4087 . 117 A 13 126 . 243 , 4309 . 902
T 101 . 091 ,   92 . 019 T 109 . 801 , 101 . 091 T 118 . 178 ,   109 . 801 T 126 . 243 ,   118 . 178
T E 9 = 96 . 573 T E 10 = 105 . 461 T E 11 = 114 . 003 T E 12 = 122 . 223
Δ T = 0.04 Δ T = 0.04 Δ T = 0.04 Δ T = 0.04
A 13 A 14 A 14 A 15 A 15 A 16 A 16 A 17
A 13 126 . 243 , 4309 . 902 A 14 134 . 015 , 4516 . 065 A 15 141 . 507 , 4706 . 668 A 16 148 . 733 , 4882 . 674
A 14 134 . 015 , 4516 . 065 A 15 141 . 507 , 4706 . 668 A 16 148 . 733 , 4882 . 674 A 17 155 . 704 , 5044 . 969
T 134 . 015 ,   126 . 243 T 141 . 507 , 134 . 015 T 148 . 733 ,   141 . 507 T 155 . 704 ,   148 . 733
T E 13 = 130 . 140 T E 14 = 137 . 770 T E 15 = 145 . 129 T E 16 = 152 . 227
Δ T = 0.04 Δ T = 0.04 Δ T = 0.04 Δ T = 0.04
A 17 A 18 A 18 A 19 A 19 A 20 A 20 A 21
A 17 155 . 704 , 5044 . 969 A 18 162 . 428 , 5194 . 366 A 19 168 . 912 , 5331 . 618 A 20 175 . 162 , 5457 . 422
A 18 162 . 428 , 5194 . 366 A 19 168 . 912 , 5331 . 618 A 20 175 . 162 , 5457 . 422 A 21 181 . 181 , 5572 . 431
T 162 . 428 ,   155 . 704 T 168 . 912 , 162 . 428 T - 175 . 162 ,   168 . 912 T 181 . 181 ,   175 . 162
T E 17 = 159 . 073 T E 18 = 165 . 677 T E 19 = 172 . 043 T E 20 = 178 . 177
Δ T = 0.04 Δ T = 0.04 Δ T = 0.04 Δ T = 0.04
A 21 A 22 A 22 A 23 A 23 A 24 A 24 A 25
A 21 181 . 181 , 5572 . 431 A 22 186 . 973 , 5677 . 260 A 23 192 . 540 , 5772 . 495 A 24 197 . 884 , 5858 . 704
A 22 186 . 973 , 5677 . 260 A 23 192 . 540 , 5772 . 495 A 24 197 . 884 , 5858 . 704 A 25 B 200 , 5891 . 404
T 186 . 973 , 181 . 181 T 192 . 540 , 186 . 973 T 197 . 884 ,   192 . 540 T 200 ,   197 . 884
T E 21 = 184 . 083 T E 22 = 189 . 762 T E 23 = 195 . 217 T E 24 = 198 . 943
Δ T = 0.04 Δ T = 0.04 Δ T = 0.04 Δ T = 0.00666
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Marinov, M.B.; Nikolov, N.; Dimitrov, S.; Todorov, T.; Stoyanova, Y.; Nikolov, G.T. Linear Interval Approximation for Smart Sensors and IoT Devices. Sensors 2022, 22, 949. https://doi.org/10.3390/s22030949

AMA Style

Marinov MB, Nikolov N, Dimitrov S, Todorov T, Stoyanova Y, Nikolov GT. Linear Interval Approximation for Smart Sensors and IoT Devices. Sensors. 2022; 22(3):949. https://doi.org/10.3390/s22030949

Chicago/Turabian Style

Marinov, Marin B., Nikolay Nikolov, Slav Dimitrov, Todor Todorov, Yana Stoyanova, and Georgi T. Nikolov. 2022. "Linear Interval Approximation for Smart Sensors and IoT Devices" Sensors 22, no. 3: 949. https://doi.org/10.3390/s22030949

APA Style

Marinov, M. B., Nikolov, N., Dimitrov, S., Todorov, T., Stoyanova, Y., & Nikolov, G. T. (2022). Linear Interval Approximation for Smart Sensors and IoT Devices. Sensors, 22(3), 949. https://doi.org/10.3390/s22030949

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop