Next Article in Journal
Research and Application of an Improved Sparrow Search Algorithm
Previous Article in Journal
Modeling of Unmanned Aerial Vehicles for Smart Agriculture Systems Using Hybrid Fuzzy PID Controllers
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Error Model of a Measurement Chain Containing the Discrete Wavelet Transform Algorithm

Department of Measurement Science, Electronics and Control, Silesian University of Technology, ul. Akademicka 10, 44-100 Gliwice, Poland
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(8), 3461; https://doi.org/10.3390/app14083461
Submission received: 27 March 2024 / Revised: 17 April 2024 / Accepted: 18 April 2024 / Published: 19 April 2024

Abstract

:

Featured Application

Estimation of the error model parameters of a wavelet transform algorithm’s input quantities, which are required to calculate uncertainty of its output values.

Abstract

This paper presents an error model of a measurement chain containing a link that executes a discrete wavelet transform algorithm, which is most often the last stage of measurement signal processing. The goal is to determine the uncertainty budget of the input quantities of the wavelet transform algorithm. The error model takes into account parts of analog, analog-to-digital and digital processing, describing the properties of subsequent fragments of the chain using their transmittance and processing functions. The proposed model enables the description of both the deterministic and non-deterministic properties of signal errors. The proposed model was validated using an example measurement chain created for this purpose.

1. Introduction

Wavelet transform (WT) algorithms find their practical applications in many areas. They are used in finance, medicine, power engineering, geology and computer science computations, among others [1,2,3,4]. The continuous wavelet transform (CWT) algorithm, described in more detail in the textbook in [5], in the case of processing a time-varying signal x ( t ) , the implementations of which belong to the domain of real numbers, can be presented using the following equation:
w a , b = 1 a x t ψ t b a d t ,
where w a , b is a wavelet transform coefficient calculated for a scale parameter a and a time shift parameter b, where a ( 0 ; ) , b ( ; ) and ψ ( t ) is the mother wavelet function. In the case of a discrete wavelet transform (DWT) there is an additional limitation on the available scale and shift parameters values as a = 2 m , b = n 2 m for m , n N where m is scale number and n is shift number (window number) [5]. The contemporary literature describes many types of wavelets, but the equation for this function is not always defined explicitly for each mother wavelet function ψ ( t ) (usually the description of the family includes assumptions regarding the mutual relations of the scaling factors c n related to the selected wavelet [6,7]).
The wavelet transform algorithm is, therefore, a tool that allows signal analysis to be carried out simultaneously in the frequency and time domains. The possibility of using various wavelets enables the properties of this algorithm to be adjusted to the specificity of the analyzed phenomenon or process. Unfortunately, the above-mentioned features mean that an analysis of the properties of metrological measurement chains that use the discussed algorithms in their structure is not easy, which is why it is often omitted, as was the case, for example, in [8,9,10]. It should be noted that the person using these algorithms is usually an expert in the field of the phenomenon under study and does not have expert knowledge in the field of wavelet transform algorithms. Omitting the analysis of the metrological properties of the algorithm used, which constitutes a very important part of the measurement chain, makes it impossible to estimate the uncertainty budget of this chain, which means that decisions made on the basis of the value of the output values may be inappropriate.
Currently, no proposals for a unified error model have been presented in the literature that would adequately describe the metrological properties of measurement chains using the wavelet transform algorithm. The authors’ previous works assumed the presentation of the wavelet transformation algorithm in a matrix form and indicated how to identify the values of the transformation matrix in the case of an existing implementation of any algorithm. However, the proposed method requires the indication of the uncertainty budget for the input quantities of the algorithm used, and therefore it is necessary to present an error model for part of the measurement chain, which is the source of the input quantities of the wavelet transform algorithm. This algorithm is usually the last part of the measurement chain.
Taking into account the comments indicated above and the current state of knowledge, the article proposes a general error model that is suitable for measurement chains containing wavelet transform algorithms in their structure. This model is based on the definition of the error signal and assumes the division of error signals due to their properties. The purpose of using the proposed model is to enable the determination of the uncertainty budget for the input values of the WT algorithm in such a way that it is possible to apply the previously proposed description of the impact of this algorithm on the errors contained in the signal it processes and ultimately determine the uncertainty budget of the entire measurement chain. In addition to theoretical considerations describing the proposed error model, the paper also contains tips regarding the practical application of this model. For the purpose of this work, an exemplary measurement chain was created, for which the parameters of the indicated error model were identified and the uncertainty budget of the input quantities of the WT algorithm was determined.
The main aim of the work is to indicate how to quantitatively determine the metrological parameters of a measurement chain containing a block that performs WT. This action is intended to enable a quantitative description of the measure of inaccuracy in the output quantities of the analyzed measurement chain. The presented analysis then makes it possible to indicate which source of error is the most important, and therefore gives the designer of the measurement chain the opportunity to improve the metrological properties of this path. The considerations presented in this work are limited only to the identification of error sources and the identification of the parameters of the error model associated with them, which is necessary to determine the expanded uncertainty values of the output quantities of this chain.
The article is divided into six sections. The Section 1 is an introduction to the work and contains its most important assumptions. The Section 2 focuses on the definition and quantitative description of the properties of error signals. The Section 3 describes the error model for the measurement chain and presents the most important relationships between its subsequent fragments. The Section 4 contains an example of the application of the discussed analysis method using a measurement chain built for this purpose. The Section 5 discusses the results of the measurement experiment and indicates the reasons for the discrepancies between the results obtained using the discussed analysis method. The Section 6 contains the most important conclusions from the work.

2. Definition of the Signal Error and Its Properties

Errors contained in the processed measurement signal can be divided in many ways, but in the most general case, random and deterministic errors can be distinguished [11]. Random errors result from the implementation of a stochastic process, the operation of which cannot be described in a deterministic way. Such errors can, therefore, only be described using a probabilistic description, since the course of the error signal is unknown. The second group of errors is deterministic errors, the origin of which usually results from the nonideal transmittance of a fragment of the measurement chain located in front of the wavelet transformation algorithm. These errors can be described by an appropriate equation, which can be derived by knowing the model of the measurement chain and the estimated spectrum of the processed signal.
A slightly more detailed division in the literature includes groups of static, dynamic and random errors [12]. This division refers to the nature of the error from the size of the point of view of the measurement window. The realizations of the static error within the measurement window do not change (or change slightly), and therefore the transmittance of subsequent fragments of the measurement chain does not affect the propagation of these errors. In the case of dynamic and random errors, their implementation changes within the measurement window, while, unlike random errors, dynamic errors can be described in a deterministic way.
In the general case, the error signal e x , Σ ( t ) for the quantity x ( t ) can be defined as the difference between the ideal x ˙ ( t ) and the actual x ˜ ( t ) course of this quantity:
e x , Σ t = x ˜ t x ˙ t .
In addition to the time course of the presented error signal, which it may not always be possible to indicate, this signal will also be associated with parameters such as variance, expected value, the probability density distribution of obtaining the indicated value of the realization of this signal and expanded uncertainty, depending on the adopted confidence level [13]. Each fragment of the measurement chain, by processing the signal in question, can modify the indicated parameters in accordance with its properties. Additionally, the analyzed signals may be mutually correlated, which should also be taken into account during the analysis. From the point of view of the process of creating the uncertainty budget, the most important information will be the signal variance σ x , Σ 2 , the associated standard uncertainty σ x , Σ and the expanded uncertainty U x , Σ , depending on the value of the standard uncertainty σ x , Σ and the expansion coefficient c x , Σ , depending on the shape of the density function of the probability of the occurrence of selected error signal values e x , Σ ( t ) [13]. Therefore, it can be noted that the course of the e x , Σ ( t ) signal itself does not have to be known to be able to develop an uncertainty budget.
As wavelet transform algorithms constitute a set of filters with a specific transmittance resulting from the adopted algorithm parameters, the parameters of signal errors should be analyzed in the frequency domain [14,15,16]. In the case of non-deterministic signals, the relationship between the variance values of these signals as a function of pulsation should be determined, as presented, among others, in [17], while in the case of deterministic signals, the resultant value of the variance in the selected pulsation of the resulting deterministic error signal should be indicated. We assume that x ( t ) can be described as the sum of the successive harmonics x ( t , ω ) of this signal and x ˙ ( t ) is described by the equation:
x ˙ t = i = 0 x ˙ t , ω x , i ,
x ˙ t , ω = E x , o ω sin ω t + φ x , o ω ,
where ω x , i is pulsation of i-th harmonic of this signal, E x , o ( ω ) is the amplitude and φ x , o ( ω ) is the phase shift in the harmonic corresponding to pulsation ω . In the real case, however, it is assumed that the signal x ( t ) disturbed by the resultant error signal e x , Σ ( t ) can be presented as:
x ˜ t = x ˙ t + e x , Σ t = e x , r t + i = 0 s ˜ t , ω x , i ,
x ˜ t , ω = x ˙ t , ω + E x , e ω sin ω t + φ x , e ω .
According to Equation (5), the resultant error signal e x , Σ ( t ) related to the signal x ( t ) can be divided into components related to the share of random errors e x , r ( t ) (non-deterministic) and a component related to deterministic errors which, in turn, can be divided into static e x , s ( t ) and dynamic e x , d ( t ) . Due to the above assumptions, describing the single n-th harmonic of the error signal e x , d ( t ) with the equation:
e x , d , n t = E x , e , n sin ω x , e , n t + φ x , e , n ,
the variance of the analyzed error component in the case when ω x , e , n > 0   rad / s can be determined according to the relation [18,19]:
σ x , d , n 2 = E x , e , n 2 2 .
In the absence of a correlation between the successive components of the error signal, the resulting error variance is equal to the sum of the error variances [13]. However, under certain conditions these waveforms are correlated with each other, and therefore these correlations should be taken into account, which is discussed in the next section, presenting the method of determining the parameters of the resultant error, which is the result of all partial error waveforms.
Based on Equation (7), it is possible to introduce an additional division due to the nature of the error waveform. For a pulsation value close to zero, successive realizations of the error within a single measurement window will not change. Therefore, this error can be classified into the group of static errors described as:
e x , s t = e x , d , 0 t = E x , e , 0 ,
assuming that φ x , e , 0 = π . In cases where subsequent implementations will change significantly, these waveforms should be classified as dynamic errors. For errors of a static nature, attention should be paid to the fact that their variance within a single measurement window will be zero, while for subsequent measurement implementations within multiple measurement windows, it will be nonzero when these errors occur. Therefore, this group of errors can be analyzed separately. In further considerations, it is assumed that, in the case of a dynamic error signal e x , d ( t ) , all harmonics of this signal with non-zero pulsation will be analyzed, while the role of the constant component E x , e , 0 in this signal, the value of which may change for subsequent window numbers measurement, will be analyzed within the static error signal e x , s ( t ) .
According to the properties of WT algorithms, described earlier in [17], in the case of random error signals, the only important information is the value of the variance σ x , r 2 in the resulting random error signal e x , r ( t ) contained in the input quantities x ( t ) of the algorithm used. This value can be determined by knowing the variance values of the subsequent components of the random error signal and the values of the correlation coefficients of these signals based on equation [13]:
σ Σ 2 = σ 0 σ 1 σ N 1 T 1 r 0 , 1 r 0 , N 1 r 1 , 0 1 r 1 , N 1 r N 1 , 0 1 σ 0 σ 1 σ N 1 ,
where σ i 2 is the variance of the i-th random error signal e i ( t ) and r i , j = r j , i is the Pearson correlation coefficient of the pair of signals e i ( t ) and e j ( t ) , equal to:
r i , j = r j , i = σ i , j 2 σ i 2 σ j 2 2 σ i σ j ,
where σ i , j 2 is variance in signal e i , j ( t ) = e i ( t ) + e j ( t ) . This indicated property of WT algorithms results from the assumptions of the central limit theorem and the fact that these algorithms process many samples of the same input quantity [3,12,13,17,20].
In the case of deterministic error signals, each component of these signals should be analyzed separately, but in the case of dynamic error signals, it is possible to determine the resulting variance value for the selected pulsation value. The first case considered is a situation where there are several error components with the same pulsation, but with different phase shifts and amplitudes. The papers [14,20] propose a way to determine the variance of the resultant error in this case, while the presented method does not allow the resultant phase shift to be determined, the knowledge of which is sometimes necessary in the case of analyzing subsequent fragments of the measurement chain. Therefore, the paper proposes the use of the description of successive N harmonics of the error signal with the same pulsation in the vector form:
e i = e i , a e i , b = E i cos φ i E i sin φ i ,
on the basis of which the resultant vector for the error signal can be determined in the form
e Σ = e Σ , a e Σ , b = i = 0 N 1 e i , a i = 0 N 1 e i , b .
Then, the resultant amplitude and phase shift of the error signal with the analyzed pulsation can be determined in the form
E Σ = e Σ , a 2 + e Σ , b 2 ,
φ Σ = arctan e Σ , b e Σ , a .
The correlation coefficient of successive error signals composed in this way can be determined on the basis of their phase shift, which is described by the equation [19]:
r i , j = cos φ j φ i ,
where i and j are the harmonic indexes of the error signal for which the correlation coefficient r i , j is determined, assuming that ω i = ω j .
It is also necessary to consider the combination of the received error signals with different pulsations, where ω i ω j occurs. In this case, there is no need to consider the correlation of the successive components of the error signal, because they are linearly independent of each other and therefore uncorrelated [14] unless they are caused by the same phenomena. A universal way to determine the variance in the resultant error, which proves the above thesis, is the method described by the following equation [14,18]:
σ Σ 2 = lim T 1 2 T T T i = 0 N 1 E e , i sin ω e , i t + φ e , i 2 d t ,
where N is the number of components in the error signal. To determine the variance of the resultant error e x , d ( t ) of all its harmonics, it is also possible to apply Equation (10) in which the correlation coefficients are equal to
r i , j = cos φ j φ i where   ω i = ω j 0 where   ω i ω j .
Assuming that these quantities represent the variances in the successive harmonics of the dynamic error signal, determined in accordance with Equation (8), the values of successive correlation coefficients are zero, which results from the previously described linear independence of these waveforms [19]. It should be noted that, according to Equation (10), it is possible to determine the resultant variance in the error signal composed of both signals with identical and different pulsations: for the same pulsation value, the value of the correlation coefficient is determined according to Equation (16), while for a different pulsation value, the value of the correlation coefficient is equal to zero, as described in Equation (18).
From the point of view of analyzing the metrological properties of the WT algorithm and its impact on the identified error signals, it is necessary to determine:
  • The value of the variance σ x , r 2 in the resultant random error signal e x , r ( t ) ;
  • The values of the variances σ x , s , i 2 in the subsequent components e x , s , i ( t ) of the static error signal e x , s ( t ) , and, if it is necessary, to determine the expanded uncertainty, the shape of the distribution of the realization of these signals should be indicated;
  • The variance values σ x , d , i 2 of subsequent components e x , d , i ( t ) of the dynamic error e x , s ( t ) .
Determining the resultant parameters for subsequent groups of error signals or determining the parameters of the resultant error signal e x , Σ ( t ) is not necessary, but the analysis of the impact of the WT algorithm on the resultant error signal e x , Σ ( t ) is impossible without knowledge of the component parameters of this signal.

3. Measuring Chain Error Model

Considering the properties of the measurement chain that depend on the transmittance of fragments of this chain, it is worth analyzing these properties in the frequency domain. This approach enables a deterministic description of the influence of the transmittance on the input and processing of errors, while this description takes into account the spectrum of the processed measurement signal [18]. Let us assume that the analyzed measurement chain processes a physical quantity that changes over time, marked as s ( t ) . This quantity is converted by the analog part of this circuit into a voltage signal y ( t ) , which in the quantization process is converted into its discrete representation. Subsequent samples of this signal are marked with the symbol x ( i ) . The y ( t ) signal is sampled with the frequency f s , and N samples of this signal are taken in the measurement window, and then applied to the input of the stage computing the discrete wavelet transform algorithm. The algorithm discussed provides the output of the measuring chain which is a vector of M output quantities, marked as X ( j ) . A block diagram of the measuring chain is shown in Figure 1.
Further, the signal s ( t ) processed by the measurement chain is described as:
s ˙ t = i = 0 s ˙ t , ω s , i ,
s ˙ t , ω = E s , o ω sin ω t + φ s , o ω ,
where ω s , i is the pulsation of the i-th harmonic of this signal, E s , o ( ω ) is the amplitude and φ s , o ( ω ) is the phase shift of the selected harmonic of this signal with pulsation ω . In the real case, the signal s ( t ) that is disturbed by the resultant error signal e s , Σ ( t ) can be represented as:
s ˜ t = s ˙ t + e s , Σ t = e s , r t + i = 0 s ˜ t , ω s , i ,
s ˜ t , ω = s ˙ t , ω + E s , e ω sin ω t + φ s , e ω ,
where E s , e ( ω ) is the amplitude and φ s , e ( ω ) is the phase shift in the selected harmonic of the error signal, and e s , r ( t ) is the signal associated with a random error. It is assumed that, in Equations (19) and (21), the constant component of the described signals constitutes harmonics with index i = 0 , where ω s , 0 = 0   rad / s and φ s , 0 = π rad . The properties of the signal in question must be determined at the stage of designing the measurement chain or identified in the case of an existing chain, which will be presented in an example later in this paper.

3.1. Analog Part of the Measurement Chain

The analog part of the measurement circuit, which converts the signal s ( t ) into its voltage representation, marked as y ( t ) , can be described by a model using the transmittance G y ( j ω ) and the processing function f y ( x ) in accordance with the diagram shown in Figure 2. Based on the proposed scheme, the output quantity y ( t ) of the object can be described as:
y ˙ t = f ˙ y u ˙ t ,
y ˜ t = y ˙ t + e y , Σ t ,
where e y , Σ ( t ) is the resultant error signal included in the output quantity y ( t ) which will be discussed in more detail later in this paper.
Knowing the transmittance G y ( j ω ) makes it possible to determine the gain K y ( ω ) and the phase shift φ y ( ω ) as a function of pulsation:
K y ω = G y j ω = G y j ω 2 + G y j ω 2 ,
φ y ω = arctan G y j ω G y j ω ,
and, based on the gain K y ( ω ) , it is possible to determine the variation σ u 2 in the processed signals at the output of the fragment representing the dynamic properties of the object in accordance with the relationship [19]:
σ u 2 ω = K y 2 ω σ s 2 ω ,
where σ s 2 ( ω ) is the variance in the signal s ( t ) as a function of pulsation. The presented relationship can be used to determine the variance in both random and deterministic signals. According to the diagram presented in Figure 2, the quantity u ( t ) can be described as:
u ˙ t = i = 0 u ˙ t , ω u , i ,
u ˜ t = u ˙ t + e u , Σ t ,
where subsequent harmonics of this quantity are described by the following equations:
u ˙ t , ω = K ˙ y ω E s , o ω sin ω t + φ s , o ω + φ ˙ y ω ,
u ˜ t , ω = K ˜ y ω E s , o ω sin ω t + φ s , o ω + φ ˜ y ω + K ˜ y ω E s , e ω sin ω t + φ s , e ω + φ ˜ y ω ,
where K ˙ y ( ω ) is the ideal and K ˜ y ( ω ) the real gain value, while φ ˙ y ( ω ) is the ideal and φ ˜ y ( ω ) the real phase shift. Analyzing Equation (31), two components of this equation can be distinguished. The first component corresponds to the propagation of the ideal signal s ( t ) through the analyzed fragment and, due to the imperfection of this object (i.e., the discrepancy between the ideal G ˙ y ( j ω ) and the real G ˜ y ( j ω ) transmittance of the object), is responsible for its own signal error being introduced into the signal u ( t ) . The second component is related to the propagation of the error signal contained in the processed quantity s ( t ) through the analyzed part of the object.
In the case of static error signals, which are part of the resultant error signal e u , Σ ( t ) , whose subsequent realization values do not change during a single measurement window, the following relationships can be written:
e u , s w t = K ˜ y 0 K ˙ y 0 E s , o 0 ,
e u , s p t = K ˜ y 0 E s , e 0 ,
where e u , s w ( t ) is the own static error signal and e u , s p ( t ) is the static error signal propagated by the part of the object related to its dynamic properties. The dynamic error self signal e u , d w ( t ) introduced into the u ( t ) signal can be expressed as the sum of the subsequent harmonics of this signal as
e u , d w t = i = 1 K ˜ y ω s , i E s , o ω s , i sin ω s , i t + φ s , o ω s , i + φ ˜ y ω s , i i = 1 K ˙ y ω s , i E s , o ω s , i sin ω s , i t + φ s , o ω s , i + φ ˙ y ω s , i .
The dynamic error signals contained in the input signal s ( t ) are propagated to the output of the analyzed part of the object in such a way that they are amplified and shifted, which is described by the following equation:
e u , d p t = i = 1 K ˜ y ω s , i E s , e ω s , i sin ω s , i t + φ s , e ω s , i + φ ˜ y ω s , i ,
where e u , d p ( t ) is the dynamic error signal propagated from the input to the output of the fragment representing the dynamic properties of the analyzed fragment of the object. For propagated random error signals e u , r p ( t ) , it is impossible to determine the deterministic form of these signals, and therefore only their variances should be determined based on Equation (27). In order to determine the average value of the variance σ u , r p 2 in the signals of propagated random errors in the pulsation interval ω [ b ; a ] , it is possible to use the following equation [18]:
σ u , r p 2 = 1 a b b a K ˜ y 2 ω σ s , r 2 ω d ω ;
however, this activity should be carried out only at the last stage of the analysis, where subsequent fragments of the measurement chain will not affect the spectrum of the processed random error signals. The error signals contained in the quantity u ( t ) described so far constitute the resultant error signal e u , Σ ( t ) associated with this quantity, with
e u , Σ t = e u , s w t + e u , s p t + e u , d w t + e u , d p t + e u , r w t + e u , r p t .
The symbol e u , r w ( t ) denotes an additional component constituting a random error introduced by the object, the variance of which is marked with the symbol σ u , r w 2 .
Next, the signal u ( t ) is processed according to the object processing function f y ( x ) ; therefore
y ˙ t = f ˙ y u ˙ t .
It should be noted that the real form f ˜ y ( x ) of the discussed function may actually differ from the ideal form f ˙ y ( x ) assumed by the designer of the measurement chain. In the real case we can write
y ˜ t = f ˜ y u ˙ t + e u , Σ t + f z z t = y ˙ t + e y , Σ t ,
where f z ( z ) is a function that takes into account selected quantities disturbing the process of determining the value of quantity y ( t ) (e.g., environmental parameters). Based on Equation (39), one can distinguish the own error signal e y , f w ( t ) , which results directly from the imperfection of the object processing function, and the own error signal e y , z w ( t ) , which results from the participation of disturbing factors. These signals can be described as:
e y , f w t = f ˜ y u ˙ t f ˙ y u ˙ t ,
e y , z w t = f z z t .
The error signal e y , f w ( t ) will be deterministic if the form of the function f ˜ y ( x ) is known. Otherwise, it is possible to describe its parameters in a probabilistic category. The nature of the error signal e y , z w ( t ) will depend on the properties of the analyzed object. In the case of the influence of environmental parameters on the measurement process, it can be assumed that these values will be slowly changing, hence this signal will usually be included in the group of static error signals. The variance in the signal at the output of the fragment representing the static properties of the object can, in general, be described by the equation [19]:
σ y 2 = Var f y e u t = E f y e u t E f y e u t 2 ,
where E [ e ( t ) ] is the expected value of signal realization e ( t ) . If the processing function of the object is a linear equation in the form f ( x ) = a x + b , this analysis is simplified. By denoting the slope coefficient of the presented equation with the symbol s y , which can be identified with the sensitivity of the analyzed object, Equation (42) takes the form [19]:
σ y 2 = s y 2 σ u 2 .
It is important that the shift parameter b has no effect on the variance in the object’s output signal. If the processing function described is additive (when f y ( a + b ) = f y ( a ) + f y ( b ) occurs for any parameters a and b belonging to the domain of this function), it is possible to analyze each of the error signals e u , i ( t ) included in the signal e u , Σ ( t ) separately. In this case it may be written as:
e y , Σ ( t ) = f ˜ y e u , i t .
If the actual form of the processing function f y ( x ) is not known, the ideal form of this function should be used in the calculations. This operation will result in an incorrect estimation of the error signal parameters, but is not possible in any other way.
The presented relationships make it possible to determine the parameters of error signals at the output of the analyzed object, both when the object processes errors that already exist in the input signal and when it introduces its own errors resulting from the imperfections of its properties. It should be noted that direct knowledge of the transmittance of the object is not necessary to perform the analysis, it is enough to estimate the actual gain and phase shift related to the dynamic properties of the object as a function of pulsation.

3.2. Properties of the Analog-to-Digital Converter

The analog-to-digital converter (ADC) has a discrete set of possible output values, and therefore introduces an error e A C , q ( x ) related to quantization into the output signal x ( i ) (where i = n T s , n N and T s = 1 f s ). This error can be described in the form [21]:
e A C , q x = x u ˘ A C x = x q x q + 0.5 ,
where q is the value of a single quantum and u ˘ A C ( x ) is the value of the ADC output for the input voltage value equal to x, expressed in the unit of the input quantity. It can be noticed that the realization values of the discussed error signal depend on the realization values of the ADC input quantities. According to the research results presented in [12,21,22,23], this correlation can be neglected. Therefore, we propose describing the signal e x , q ( i ) associated with the i-th realization of the quantization error using an uncorrelated additive noise model with the same probability of obtaining each of the possible realization values in the interval:
q 2 e ^ x , q i q 2 ,
therefore, the variance in this signal can be determined according to the relationship [13]:
σ x , q 2 = q 2 12 .
Given the above assumptions, in the ideal case the output value x ( i ) of the ADC can be given by the equation:
x ˙ i = y ˙ t i ,
where t i is the selected time at which the input signal y ( t ) was sampled. In the real case, the quantity x ( i ) can be described as:
x ˜ i = x ˙ i + e x , Σ i .
The resulting error signal e x , Σ ( i ) at the output of the ADC can therefore be described as:
e x , Σ i e y , Σ t i + e x , q i + e x , w i ,
where e x , q ( i ) is the error signal related to the rounding operations introduced in accordance with Equation (45), the variances of which are described by Equation (47), while e x , w ( i ) is an additional self-error signal. Moreover, for an ideal quantizer system e x , w ( i ) = 0 . Therefore, the variance σ x 2 in the signals at the output of the A/D converter can be described by the equation:
σ x 2 σ y 2 ,
where σ y 2 is the variance in the signal at the object input. These assumptions allow us to assume that the analyzed object has no influence on the form of processed error signals:
e x i e y t i ,
where e x ( i ) is the error signal at the output of the ADC related to the error signal e y ( t ) at its input. The validity of the adopted assumptions was demonstrated, among others, in [17,21].
In the case of a real ADC, it is necessary to determine the parameters of the self-error signal, and this error most often results from ADC integral nonlinearity, differential nonlinearity, gain error, zero error, the heterogeneity of the internal structure of the converter or the imperfection of the reference voltage source [24,25]. Additionally, parameters related to the sample-and-hold circuit (S/H) should be considered separately. In this case, the model proposed for the analog part of the measurement chain, the parameters of which will be appropriate for the S/H circuit, will be used.

3.3. Digital Part of the Measurement Chain

If the input values of the wavelet transformation algorithm are processed by an additional object implementing digital-to-digital (D/D) or simply purely digital processing, it is proposed to describe the properties of this object in the same way as for the analog part of the measurement chain. The transmittance of the object H x ( z ) in the Z domain should be transformed by substituting z = e j ω T s , as described in [14]. The further part of the analysis is analogous to the described case of the analog part of the measurement chain, so it will not be considered further in this article.

4. Application of the Proposed Analysis Method

To verify the presented thesis, a prototype of a measuring circuit processing a time-varying voltage signal s ( t ) from the range s ^ ( t ) [ 0 ; 1 ] V was built. The first part of the measurement chain is an amplifier which adjusts the parameters of the processed signal s ( t ) to the operating range of the ADC. This amplifier has a transmittance of G y ( j ω ) , which is responsible for introducing dynamic errors into the processed signal which can be described in a deterministic way. The output signal y ( t ) of the amplifier is processed by the ADC, whose successive output samples x ( i ) are processed by the discrete wavelet transform algorithm. A diagram of the measurement circuit is shown in Figure 3. The target gain of the analog part is K ˙ y ( ω ) = 3.29 V/V, and the phase shift φ ˙ y ( ω ) should be zero. The processed signal is sampled with a constant frequency of f s = 48 kHz, and, on the basis of N = 128 samples of the input value, M = 128 samples of the output values of the measurement chain are determined. The additional D/D conversion element converts the original output signal c ( i ) of the ADC into output samples x ( i ) where x ^ ( i ) [ 0 ; 1 ] V , which in effect eliminates the static gain of the measuring amplifier. According to presented assumptions the x ( i ) quantity, which is a data source for the DWT algorithm, can be described as:
x ˙ i = s s , x s ˙ i T p = s ˙ i T p ,
x ˜ i = s ˙ i T p + e x , Σ i ,
where static gain s s , x = 1 V/V and e x , Σ ( i ) is described in next part of paper.
The exemplary measurement circuit was built on the basis of the STM32F411 microcontroller and the 12 bit built-in ADC [26]. The DWT algorithm was implemented using the DSP instruction and the “CMSIS DSP” library [27]. The amplifier was based on the MCP 6002 operational amplifier [28], operating in a non-inverting configuration with a gain of 3.29 V/V. The reference voltage source for the ADC, and, at the same time, the power source of the operational amplifier, was the LD33CV integrated circuit [29]. The reference voltage was additionally filtered to reduce noise.

4.1. Deterministic Errors Sources

The first step of analysis is to determine static and dynamic error signals parameters. In the case of constant environment parameters (temperature, pressure, humidity) it can be assumed that static errors do not exists in the presented system. In the case of any possible change in the described parameters it is necessary to describe how the analyses’ parameters impact the measurement chain. In the case of a dynamic error, the origin of this error will be the real transmittance G ˜ y ( j ω ) of the measuring amplifier, which is different from the transmittance G ˙ y ( j ω ) . Therefore, this transmittance must be determined or the parameters marked with Equations (25) and (26) should be determined by experiments. As the exact model of the operational amplifier used was unknown, an experiment was carried out in which a sinusoidal signal was applied to the input of the amplifier its gain and the phase shift was measured. The source of the s ( t ) signal was an RIGOL DG1011 arbitrary waveform generator [30], while the s ( t ) and y ( t ) signals’ parameters were measured with an RIGOL DS5062MA DSO [31] using mean value of 256 subsequent samples. For the experiment described here, the frequency of input signal s ( t ) was within range f ^ s , o [ 0.1 ; 48 ] kHz . The measurements enable the determination of the relationship between the gain and the phase shift introduced by the applied measuring amplifier as a function of pulsation.
As none of the typical filter models were applicable in the described situation, on the basis of the obtained values, approximations of the tested characteristics were carried out using polynomials, using the least squares method, whereby:
K ˜ y ω 3.29 ,
φ ˜ y ω 6.26 · 10 13 ω 2 5.73 · 10 7 ω ,
where K ˜ y ( ω ) is the gain, while φ ˜ y ( ω ) is the phase shift in the selected harmonic of the processed signal. The relationships presented will enable the description of the waveform of the output signal of the measuring amplifier and, as a result, the determination of the waveform of the error signal introduced by this element.
Another dynamic error source is the S/H circuit at the input of the ADC. According to the manufacturer’s data, the S/H circuit can be described as a two-stage low-pass passive RC filter [25,26]. The first filter stage is formed by the internal impedance of the input voltage source and circuit capacitance. As the output impedance of the amplifier is relatively low, the influence of the first filter stage can be omitted [13,24,25]. The second filter is formed by the ON resistance of the internal S/H switch and a capacitance of typical values 5 k Ω and 6 pF, respectively [25,26]. The resulting cutoff frequency of this filter is relatively high in comparison to the bandwidth of the amplifier so influence of the second filter can be neglected as well.

4.2. Random Errors Sources

In the case of random error signals, there are many more sources related to them and they occur in the whole measurement chain. It must be noticed that all phenomena for which a deterministic description is not possible must be considered as random error sources. These phenomena are, e.g., noise present in the input signal, the reference voltage and supply voltage, quantization errors, internal structure heterogeneity, integral errors and differential errors. As the analysis of all these phenomena separately is not possible without detailed knowledge of the parameters and the internal structure of the components used, we propose estimating the parameters of the resulting random error signal by performing the experiment described next.
In the experiment, a nominally constant voltage s ( t ) was applied to the input of the measurement chain from a voltage source. Then, for the selected input voltage value, many implementation values of the quantity c ( i ) were taken. Based on the average obtained values of the realization of the quantity c ( i ) , it is possible to determine the static characteristics of the part of the measurement circuit which includes the amplifier and the measuring transducer, as well as to determine the inverse function for it, which will enable the reconstruction of the quantity s ( t ) in the form of the quantity x ( i ) . To allow this, it is necessary to repeat the experiment for subsequent input voltage values.
The described experiment was carried out in each k-th measurement series of 30,000 values for the realization of the quantity c ( i ) of the input voltage values in the range s ^ ( k ) [ 25 ; 975 ] mV , where this value changed by Δ s ^ ( k ) = 25 mV for each measurement series. Based on values obtained for the realization of the quantity c ( i ) , the average value of these realizations c ¯ ( k ) was determined for the k-th measurement series. Then, on the basis of the obtained results, a linear approximation of the characteristics of the processing of the quantity s ( t ) to the quantity c ( i ) was performed:
c ¯ k = f c f y s ^ k 4093.1 · s ^ k + 0.4519 ,
where s ^ ( k ) is the set voltage value for the analyzed series of measurements. Assuming that the sensitivity of quantity x ( i ) with respect to quantity s ( t ) is 1 V/V, the estimated average value of x ¯ ( k ) as a function of the value of s ^ ( k ) can be described as:
x ¯ k = f x c ¯ k = f x f c f y s ^ k = c ¯ k 0.4519 4093.1 s ^ k .
The voltage source for the s ( t ) signal used in the experiment was the RIGOL DG1011 arbitrary waveform generator [30]. It was assumed that the errors introduced by the generator are negligible in relation to the errors arising in the analyzed section of the measurement chain.
It can be noticed that the static characteristic described by Equation (58) is a processing function for the part of the measurement chain that converts the quantity s ( t ) into the quantity x ( i ) . By determining the standard deviation of the differences between the measured realization values c ¯ ( k ) and the values determined in accordance with Equation (58), the standard uncertainty value related to the nonlinearity of the discussed characteristic is obtained. Additionally, on the basis of all the realization values of the quantity c ( i ) , it is possible to determine a histogram of the realization of the random error signal of this quantity, obtained under the experimental conditions.
Assuming that there were no non-random sources of error during the experiment (constant ambient conditions, constant input voltage for the analyzed series of measurements), the random error signal e x , r ( i ) related to quantity x ( i ) can be described as:
e x , r i = x ˜ i s ˙ i T p ,
while the random error signal e c , r ( i ) of quantity c ( i ) can be described in the form:
e c , r i = c ˜ i f c f y s ˙ i T p .
Hence, based on the subsequent values of the error signal e c , r ( i ) and Equations (57) and (58), the parameters of the error signal e x , r ( i ) can be estimated. Figure 4a shows a graph of the characteristics given by Equation (57) obtained for the measurements, while Figure 4b shows a histogram of the error signal realization values e x , r ( i ) calculated in accordance with Equation (59). Based on the indicated histogram, it is possible to estimate the variance in this signal equal to σ x , r 2 = 0.13 μ V and the associated standard uncertainty σ x , r = 0.36 mV. Based on the shape of the histogram, it can be concluded that the distribution of the error signal in question is a normal distribution with an expected value of zero.

4.3. Model Application for a Monoharmonic Input Signal

Analyzing Equations (34) and (35) in the case of the non-ideal dynamic properties of the measurement chain, it can be noticed that the parameters of the described signals will depend on the spectrum of the signal s ( t ) processed by the measurement chain. The first example of the application of the proposed model concerns a case in which this circuit processes a sinusoidal input signal with a given frequency f s , o = ω s , o 2 π , amplitude E s , o and direct-current (DC) component D s , o . This signal can be described by the equation:
s ˙ t = E s , o sin ω s , o t + φ s , o ,
whereas in the experiment it is assumed that φ s , o = 0 rad . According to the assumptions that the environmental conditions do not change during subsequent measurement series and that the errors introduced by the arbitrary waveform generator used are negligibly small in relation to those introduced by the measurement chain, it can be assumed that the s ( t ) signal is not disturbed by any error signals, therefore s ˜ ( t ) s ˙ ( t ) .
Based on Equation (55), it can be noted that, in the frequency range f ^ [ 0 ; 1 2 f s ] , the value of the amplification introduced by the measuring amplifier is constant and is compensated by the static playback algorithm, in accordance with Equation (58). It can therefore be concluded that the only important parameter from the point of view of the error model will be the value of the phase shift introduced by the measuring amplifier, which is the cause of the dynamic self-error signal, depending on the pulsation of the input signal. The signal in question can be defined based on Equation (34):
e x , d i = E s , o ω s , o sin ω s , o i T s + φ s , o + φ ˜ y ω s , o E s , o ω s , o sin ω s , o i T s + φ s , o + φ ˙ y ω s , o ,
where φ s , o = 0 rad , φ ˙ y ( ω ) = 0 rad and the value of φ ˜ y ( ω ) is estimated according to polynomial (56). The form of the error signal described in Equation (62) consists of two factors with the same frequency, the resultant parameters of which can be be estimated in accordance with the content of equations from (12) to (18). By transforming the indicated equations and taking into account the components of Equation (62), the variance in the dynamic error signal e x , d ( i ) can be determined in accordance with the relationship:
σ x , d 2 = E s , o cos φ ˜ y ω s , o E s , o 2 + E s , o sin φ ˜ y ω s , o 2 2 .
It can, therefore, be seen that the variance in the described signal depends on the signal frequency s ( t ) and its amplitude.
To summarize the considerations, the resultant error signal e x , Σ ( i ) of the input quantity of the DWT algorithm in the discussed case will consist of the random error signal e x , r ( i ) , the parameters of which were estimated previously, and the dynamic error signal e x , d ( i ) , whose parameters are estimated according to Equation (63) for the given signal parameters s ( t ) . As the analyzed error signals are not correlated with each other, the variance of the resulting error signal e x , Σ ( i ) can be estimated according to equation [13]:
σ x , Σ 2 = σ x , r 2 + σ x , d 2 .
To verify the validity of the indicated relationships, a Monte-Carlo measurement experiment was carried out, in which 30,000 values of the x ( i ) signal realization were collected each time. During the experiment, the source of the signal s ( t ) was the RIGOL DG1011 arbitrary waveform generator [30], and the initial phase of this signal was randomized from the interval [ π ; π ] , and the generator’s synchronizing output was used to determine it. The frequency of the signal s ( t ) was in the range f ^ s , o [ 1 ; 21 ] kHz , while the parameters of this signal were constant and were D s , o = 0.5 V, E s , o = 0.475 V. Based on the obtained values of the realization of the quantity x ( i ) , in accordance with Equation (54), the values of the error signal e x , Σ ( i ) were determined and the variances in this signal were calculated on their basis. The measured variance value σ m 2 was compared with the value σ c 2 determined according to Equation (64) and the relative error in estimating this value was calculated. The results for selected values of signal s ( t ) pulsation are summarized in Table 1, while calculated relative error values are also presented in Figure 5.

4.4. Model Application for Poliharmonic Input Signal

In this section we assume that s ( t ) is a triangle signal. According to the assumptions, the processed signal s ( t ) can be described in the form:
s ˙ t = D s , o + E s , o π 8 i = 1 1 i 1 2 i 1 2 sin ω s , o t 2 i 1 + φ s , o ,
where D s , o is a DC component of the signal, E s , o is the amplitude of the fundamental harmonic, φ s , o = 0 rad is signal phase, ω s , o is fundamental harmonic pulsation. In the experiment it was assumed that s ˜ ( t ) s ˙ ( t ) .
According to the previous assumptions, the parameters of the random error signal e x , r ( i ) remain identical to those of the monoharmonic signal. However, a significant difference is in the parameters of the dynamic error signal e x , d ( i ) , for which, according to Equation (34), the subsequent harmonics taken into account in Equation (65) should be analyzed. Therefore, for each harmonic e x , d , i ( i ) of the error signal e x , d ( i ) , its variance should be determined, similarly to the case of the monoharmonic signal. In the discussed case, for the i-th harmonic it occurs that:
σ x , d , i 2 = E s , o , i cos φ ˜ y ω s , o , i E s , o , i 2 + E s , o , i sin φ ˜ y ω s , o , i 2 2 ,
wherein the amplitude for the i-th harmonic is determined according to the relationship:
E s , o , i = π 8 2 i 1 2 E s , o .
The value of variance for the resultant error signal e x , Σ ( i ) in the analyzed case can be determined according to the relationship:
σ x , Σ 2 = σ x , r 2 + i = 1 σ x , d , i 2 ;
however, we propose analyzing only those harmonics for which it occurs that k f s , o 1 2 f s for k = ( 2 i 1 ) (all harmonic components for which the frequency is less or equal to the Nyquist frequency).
In order to verify the presented considerations, a measurement experiment using the Monte-Carlo method was carried out. In this case s ( t ) was a triangle signal with a given frequency f s , o in the range f ^ s , o [ 1 ; 5 ] kHz with parameters D s , o = 0.5 V, E s , o = 0.475 V and a random initial phase. For the selected signal frequency values, 30,000 samples of x ( i ) were taken in order to determine the value of the error signal e x , Σ ( i ) based on Equation (54). Based on the obtained measurement results, the actual value of the variance σ m 2 in the analyzed error signal was determined and compared with the value σ c 2 estimated on the basis of Equation (68). The obtained results are summarized in Table 2. The source of the s ( t ) signal was an RIGOL DG1011 arbitrary waveform generator [30].

5. Reasons for Discrepancies in Results

Based on the results presented in Table 1 and Table 2, as well as on the basis of Figure 5, it can be noticed that the results obtained from the measurement experiment are not perfectly consistent with those obtained analytically. The main reason for the discussed discrepancies is the inaccurate determination of the parameters of the error model of the input quantities of the WT algorithm.
The measurement experiment carried out, the aim of which was to identify the static properties of the analyzed section of the measurement chain, assumed that the input values of the measurement chain were not encumbered with any errors. This simplification is inappropriate, and its elimination would require an identification of the properties of the arbitrary waveform generator used, which has not been carried out. Unfortunately, due to insufficient information being contained in the instrument documentation, the properties of the generator have to be determined experimentally.
In the case of dynamic properties, a discrepancy between the actual and estimated value of the phase shift φ y introduced by the analyzed measurement amplifier can be noticed. Figure 6 shows the measured and estimated values of the quantity in question based on Equation (56). In order to improve the obtained results, a higher order polynomial or a better model describing the properties of the measurement amplifier should be used.
The last simplification requiring discussion is the omission of the analysis of static error signals. As the experiment was performed under constant ambient conditions, the error signals in question did not occur. In reality, however, an appropriate measurement experiment should be carried out to identify them. For example, in the case of zero drift of the measurement amplifier and ADC converter, the influence of the ambient temperature on the introduced drift should be determined. Determining the parameters of the error signal in question enables its analysis in accordance with the method presented earlier in the work.
As the aim of the work was to indicate how to quantitatively describe the metrological properties of the measurement chain using the proposed error model, the work did not focus on a very precise determination of the parameters of the discussed model. In fact, the designer of the measurement chain should identify all error sources and indicate their parameters as precisely as possible. As there are works devoted to the analysis of subsequent fragments of the measurement path (e.g., in case of ADC works such as [22,24,25]), this work focused on an example with a minimum degree of complexity, while presenting results with an acceptable error.

6. Conclusions

Based on the results listed in Table 1 and Table 2 it can be seen that the estimated values of the variance in the resulting error signal of the input quantities of the DWT algorithm are close to those obtained by measurement. The proposed error model for the measurement chain allows to describe both deterministic and random error signals, and the parameters of these signals can be identified by measurement, as shown in the example presented. The example of a monoharmonic signal presented in this paper is the most simplified case, due to the presence of only one component of the dynamic error signal (in the discussed case, the dynamic error signal contains only one harmonic component). In the case of a polyharmonic signal, an example is presented in which a triangular signal was processed to indicate how to analyze many harmonics of the dynamic error signal and, therefore, many components of the resultant error signal of the output quantities. The presented analysis is performed identically for signals with any spectrum.
The application of the error model described in the article is simplified and does not take into account, among other things, error signals occurring in the input value of the measurement chain. The presented error model allows for a full analysis, while the adopted simplifications were justified by the need to present an example with a minimum degree of complexity. For the same reason, the analysis of static error signals was omitted. The mean of the absolute relative error values of the analyzed error signal was less than 10%, which means that a standard uncertainty value of relative error should be less than 5%. To improve accuracy of estimating discussed values a more precise measurement chain model parameter values must be obtained.
The example provided may constitute a set of guidelines for designers of measurement chains using WT algorithms on how to describe the metrological properties of the measurement chain so that a further analysis of the impact of these algorithms on the identified error signals is possible. The last step necessary to determine the uncertainty value of the output quantity of the measurement path presented in this work is to indicate how the analyzed WT algorithm affects the error signals identified in this article and present in the input quantities of this algorithm. The mentioned analysis was not presented in the current paper and is a separate issue, which will be discussed in subsequent works. Regardless of the number of error signals analyzed and the number of subsequent processing stages occurring in the measurement chain, the application of the presented error model is identical and its level of complexity does not change.

Author Contributions

Methodology, M.K.; Software, Ł.D.; Validation, M.K. and J.R.; Formal analysis, M.K.; Investigation, Ł.D.; Resources, Ł.D.; Data curation, Ł.D.; Writing—original draft, Ł.D.; Writing—review & editing, M.K. and J.R.; Visualization, Ł.D.; Supervision, J.R.; Project administration, M.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially funded by the Polish National Science Centre (NCN) grant number 2022/47/B/ST7/00047 and by Rector of Silesian University of Technology grant number 05/020/RGJ24/0084.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ADCAnalog-to-Digital Converter
CWTContinuous wavelet transform
DCDirect Current
D/DDigital-to-Digital
DWTDiscrete wavelet transform
S/HSample-and-hold
WTWavelet transform

References

  1. Unser, M.; Aldroubi, A. A review of wavelets in biomedical applications. Proc. IEEE 1996, 84, 626–638. [Google Scholar] [CrossRef]
  2. Ahmad, K. Wavelet Packets and Their Statistical Applications; Springer: Berlin/Heidelberg, Germany, 2018. [Google Scholar]
  3. Lord, G.J.; Pardo-Igúzquiza, E.; Smith, I.M. A Practical Guide to Wavelets for Metrology; National Physical Laboratory: London, UK, 2000. [Google Scholar]
  4. Akujuobi, C.M. Wavelets and Wavelet Transform Systems and Their Applications; Springer: Berlin/Heidelberg, Germany, 2022. [Google Scholar]
  5. Addison, P.S. The Illustrated Wavelet Transform Handbook: Introductory Theory and Applications in Science, Engineering, Medicine and Finance; CRC Press Inc.: Boca Raton, FL, USA, 2017. [Google Scholar]
  6. Wei, D. Coiflet-Type Wavelets: Theory, Design, and Applications; The University of Texas at Austin: Austin, TX, USA, 1998. [Google Scholar]
  7. Vonesch, C.; Blu, T.; Unser, M. Generalized Daubechies Wavelet Families. IEEE Trans. Signal Process. 2007, 55, 4415–4429. [Google Scholar] [CrossRef]
  8. An, P. Application of multi-wavelet seismic trace decomposition and reconstruction to seismic data interpretation and reservoir characterization. In SEG Technical Program Expanded Abstracts 2006; Society of Exploration Geophysicists: Houston, TX, USA, 2006; pp. 973–977. [Google Scholar]
  9. Hasan, O. Automatic detection of epileptic seizures in EEG using discrete wavelet transform and approximate entropy. Expert Syst. Appl. 2009, 36, 2027–2036. [Google Scholar]
  10. Yan, R.; Gao, R.X.; Chen, X. Wavelets for fault diagnosis of rotary machines: A review with applications. Signal Process. 2014, 96, 1–15. [Google Scholar] [CrossRef]
  11. Ruhm, K.H. Deterministic, Nondeterministic Signals; Institute for Dynamic Systems and Control: Zurich, Switzerland, 2008. [Google Scholar]
  12. Jakubiec, J. The error based model of a single measurement result in uncertainty calculation of the mean value of series. Probl. Prog. Metrol 2015, 20, 75–78. [Google Scholar]
  13. JCGM. Evaluation of Measurement Data—Guide to the Expression of Uncertainty in Measurement; JCGM: Paris, France, 2008; Available online: https://www.bipm.org/documents/20126/2071204/JCGM_100_2008_E.pdf/ (accessed on 16 April 2024).
  14. Oppenheim, A.V.; Buck, J.R.; Schafer, R.W. Discrete-Time Signal Processing; Prentice Hall: Hoboken, NJ, USA, 2001; Volume 2. [Google Scholar]
  15. Dieck, R.H. Measurement Uncertainty: Methods and Applications; ISA: Portland, OR, USA, 2007. [Google Scholar]
  16. Peretto, L.; Sasdelli, R.; Tinarelli, R. On uncertainty in wavelet-based signal analysis. IEEE Trans. Instrum. Meas. 2005, 54, 1593–1599. [Google Scholar] [CrossRef]
  17. Dróźdź, L.; Roj, J. Propagation of Random Errors by the Discrete Wavelet Transform Algorithm. Electronics 2021, 10, 764. [Google Scholar] [CrossRef]
  18. Proakis, J.G.; Manolakis, D.G. Digital Signal Processing: Principles, Algorithms and Applications; Prentice Hall: Hoboken, NJ, USA, 1996. [Google Scholar]
  19. Oppenheim, A.V.; Willsky, A.S.; Nawab, S.H. Signals & Systems, 2nd ed; Pearson: London, UK, 1996. [Google Scholar]
  20. Topór-Kaminski, T.; Jakubiec, J. Uncertainty modelling method of data series processing algorithms. In Proceedings of the IMEKO TC-4 Symposium on Development in Digital Measuring Instrumentation and 3rd Workshop on ADC Modelling and Testing, Naples, Italy, 17–18 September 1998; pp. 17–18. [Google Scholar]
  21. Gray, R.M.; Neuhoff, D.L. Quantization. IEEE Trans. Inf. Theory 1998, 44, 2325–2383. [Google Scholar] [CrossRef]
  22. Arpaia, P.; Baccigalupi, C.; Martino, M. Metrological characterization of high-performance delta-sigma ADCs: A case study of CERN DS-22. In Proceedings of the 2018 IEEE International Instrumentation and Measurement Technology Conference (I2MTC), Houston, TX, USA, 14–17 May 2018; pp. 1–6. [Google Scholar]
  23. Widrow, B. Statistical analysis of amplitude-quantized sampled-data systems. Trans. Am. Inst. Electr. Eng. Part II Appl. Ind. 1961, 79, 555–568. [Google Scholar] [CrossRef]
  24. Baker, B.C. Optimize Your SAR ADC Design; Texas Instruments Inc.: Dallas, TX, USA, 2019. [Google Scholar]
  25. STMicroelectronics. Application note AN1636; STMicroelectronics: Geneva, Switzerland, 2003. [Google Scholar]
  26. STMicroelectronics. Datasheet DS10314; STMicroelectronics: Geneva, Switzerland, 2017. [Google Scholar]
  27. ARM Limited. CMSIS-DSP; ARM Limited: Cambridge, UK, 2023. [Google Scholar]
  28. Microchip Technology Inc. Datasheet DS20001733L; Microchip Technology Inc.: Chandler, AZ, USA, 2019. [Google Scholar]
  29. STMicroelectronics. Datasheet DS2572; STMicroelectronics: Geneva, Switzerland, 2020. [Google Scholar]
  30. RIGOL Technologies Inc. User’s Guide DG1-070518; RIGOL Technologies Inc.: Beijing, China, 2007. [Google Scholar]
  31. Rigol Electronic Co., Ltd. User Manual DS5-040501; Rigol Electronic Co., Ltd.: Beijing, China, 2004. [Google Scholar]
Figure 1. Scheme of an exemplary measuring chain.
Figure 1. Scheme of an exemplary measuring chain.
Applsci 14 03461 g001
Figure 2. Model of a fragment of the analog part of the measurement chain.
Figure 2. Model of a fragment of the analog part of the measurement chain.
Applsci 14 03461 g002
Figure 3. Schematic representation of the prototype of the measuring chain, being the object of the experiment.
Figure 3. Schematic representation of the prototype of the measuring chain, being the object of the experiment.
Applsci 14 03461 g003
Figure 4. (a) Approximation of mean c ¯ ( k ) of the ADC output quantity c ( i ) values obtained for k-th measures series (calculated according to Equation (57)); (b) a histogram of the DWT input quantities random error e x , r ( i ) values obtained during the experiment (calculated according to Equation (59)).
Figure 4. (a) Approximation of mean c ¯ ( k ) of the ADC output quantity c ( i ) values obtained for k-th measures series (calculated according to Equation (57)); (b) a histogram of the DWT input quantities random error e x , r ( i ) values obtained during the experiment (calculated according to Equation (59)).
Applsci 14 03461 g004
Figure 5. Relative error of estimated σ c 2 values of the variance of the resultant error signal e x , Σ ( i ) (in the case of a monoharmonic input signal).
Figure 5. Relative error of estimated σ c 2 values of the variance of the resultant error signal e x , Σ ( i ) (in the case of a monoharmonic input signal).
Applsci 14 03461 g005
Figure 6. Measured and estimated (according to the Equation (56)) values of phase shift φ y ( ω ) introduced by amplifier.
Figure 6. Measured and estimated (according to the Equation (56)) values of phase shift φ y ( ω ) introduced by amplifier.
Applsci 14 03461 g006
Table 1. Experimentally determined σ m 2 and estimated σ c 2 values of the variance in the resultant error signal e x , Σ ( i ) , where the symbol δ denotes the relative error of estimating the variance of the analyzed error signal (in the case of a monoharmonic input signal).
Table 1. Experimentally determined σ m 2 and estimated σ c 2 values of the variance in the resultant error signal e x , Σ ( i ) , where the symbol δ denotes the relative error of estimating the variance of the analyzed error signal (in the case of a monoharmonic input signal).
Frequency f s , o , HzMeasured σ m 2 , μVCalculated σ c 2 , μVRelative Error δ , %
10001.901.64−13.93
20006.466.24−3.35
300013.1614.087.01
400021.8625.2615.58
500039.0739.932.21
600054.2058.217.39
700068.9480.2216.37
8000107.02106.12−0.85
9000132.80136.022.43
10,000158.17170.077.52
11,000212.81208.40−2.07
12,000262.00251.15−4.14
13,000276.89298.477.79
14,000338.18350.493.64
15,000394.60407.373.24
16,000502.38469.24−6.60
17,000509.94536.265.16
18,000565.03608.577.71
19,000748.86686.33−8.35
20,000670.62769.6714.77
21,000777.45858.7710.46
Mean of absolute relative error values is equal to 7.17%
Table 2. Experimentally determined σ m 2 and estimated σ c 2 values of the variance in the resultant error signal e x , Σ ( i ) , where the symbol δ denotes the relative error of estimating the variance of the analyzed error signal (in the case of a polyharmonic input signal).
Table 2. Experimentally determined σ m 2 and estimated σ c 2 values of the variance in the resultant error signal e x , Σ ( i ) , where the symbol δ denotes the relative error of estimating the variance of the analyzed error signal (in the case of a polyharmonic input signal).
Frequency f s , o , HzMeasured σ m 2 , μVCalculated σ c 2 , μVRelative Error δ , %
10001.201.319.23
20005.314.95−6.75
300010.0611.069.93
400021.2019.49−8.08
500034.3429.58−13.85
Mean of absolute relative error values is equal to 9.57%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Kampik, M.; Roj, J.; Dróżdż, Ł. Error Model of a Measurement Chain Containing the Discrete Wavelet Transform Algorithm. Appl. Sci. 2024, 14, 3461. https://doi.org/10.3390/app14083461

AMA Style

Kampik M, Roj J, Dróżdż Ł. Error Model of a Measurement Chain Containing the Discrete Wavelet Transform Algorithm. Applied Sciences. 2024; 14(8):3461. https://doi.org/10.3390/app14083461

Chicago/Turabian Style

Kampik, Marian, Jerzy Roj, and Łukasz Dróżdż. 2024. "Error Model of a Measurement Chain Containing the Discrete Wavelet Transform Algorithm" Applied Sciences 14, no. 8: 3461. https://doi.org/10.3390/app14083461

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