Elsevier

Measurement

Volume 42, Issue 9, November 2009, Pages 1370-1379
Measurement

Comparison of impedance measurements in a DSP using ellipse-fit and seven-parameter sine-fit algorithms

https://doi.org/10.1016/j.measurement.2009.05.005Get rights and content

Abstract

In this paper, two DSP implemented algorithms for impedance measurements are compared. Previously published results demonstrate the usefulness of sine-fit algorithms and ellipse-fit algorithms for impedance measurements where two channels are simultaneously acquired with analog to digital converters. The comparison between the two implemented algorithms is done by analyzing the average execution time, memory requirements and experimental standard deviation of the estimated impedance parameters.

For the first time, the seven-parameter sine-fit algorithm is adapted so that it does not need the construction and manipulation of its largest matrix thus requiring less overall memory. This improvement can be used to acquire and process more samples (leading to reduced experimental standard deviations of the estimated parameters) with the same memory size.

Introduction

Traditional impedance measurement techniques are being improved [1] due to the development of highly efficient analog to digital converters, the use of digital signal processing techniques and the rapid development of new, more powerful digital signal processors that can now perform millions of operations per second. Impedance measurements are a relevant topic with many new developments published recently. Some works focus on impedance sensor measurements [2] while others make use of recently published signal processing algorithms to improve impedance estimation [3], [4]. In [5] a high impedance spectroscopy probe is analyzed and in [6] a novel method to estimate the individual parameters of the components from an impedance model was presented.

A simple impedance measurement technique presented in [7] and improved in [8] minimizes the analog front-end circuitry to reduce the influence of its frequency dependence. This technique is based on the volt-ampere method where a reference impedance and an unknown impedance are placed in series and supplied with the same current from a sine generator. The voltage across each impedance is simultaneously acquired with a two-channel analog to digital converter and the impedance’s magnitude and phase are extracted using digital signal processing algorithms.

Sine-fit algorithms are an option to estimate the sine signal parameters from a set of acquired samples. Since the ratio between the sine frequency and the sampling rate is, most of the times, not accurately known, the algorithms must also estimate the sine frequency. This makes the problem a nonlinear regression that is solved using an iterative procedure which is called the four-parameter sine-fit algorithm [9]. For impedance measurements, this algorithm can be applied to each channel separately, however the overall experimental uncertainty can be reduced by forcing the common frequency in what is called the seven-parameter sine-fit algorithm [10]. Nevertheless, the iterative nature of the sine-fit algorithms results in a large number of operations that the processor must execute. Another issue that can affect the performance of sine-fit algorithms implemented in DSP devices is the memory requirements. In fact, the seven-parameter algorithm as proposed in [10] must build a matrix with seven columns and 2N rows, corresponding to the total number of samples acquired in both channels. This large matrix and its manipulation together with the limited memory available in the DSP restricts the number of samples that can be processed. In this paper, the algorithm proposed in [10] is shown to be applicable in a memory restricted system by bypassing the need to build the 2N × 7 matrix. This modification allows the DSP to process more samples to estimate the sinewave parameters with the seven-parameter sine-fit.

Although the frequency must be accurately known for a correct estimation of the sine signals’ amplitudes, phases and dc components by the sine-fit algorithms, in impedance measurements an accurate frequency value is not needed. The time information, and thus the sine signals frequency, can be removed from the problem by making an XY plot of the two waves. The result is an ellipse whose parameters can be estimated by ellipse-fit algorithms such as the one presented in [11] and then improved in [12]. The sine signals’ parameters can then be extracted from the ellipse parameters as proposed in [13]. This algorithm has been recently adapted and optimized for use in DSP based impedance measurements [14]. In the modified ellipse-fit method published in [14] there is no limit on the number of samples that can be used since only nine values must be stored and the samples themselves can be discarded after their contribution to the nine stored values is taken into account. These characteristics make the algorithm a prime candidate for efficient implementation in a DSP based impedance measurement instrument.

In this paper, the performance of the DSP implementation of the ellipse-fit algorithm and the seven-parameter sine-fit algorithm is compared through the evaluation of the memory requirements, speed of execution and experimental uncertainty of both algorithms. The system used for the comparison is based on a commercial floating-point DSP kit, with few external electronics, for baseline assessment and requirements definition. The performance tests were executed at frequency f = 1 kHz, for impedances with magnitudes from 100 Ω to 15 kΩ and phases in the ±90° range.

The paper is divided into four sections including the introduction (Section 1) and the conclusions (Section 4). The description of the two algorithms is presented in Section 2 together with the measurement setup and the algorithms DSP implementation details. The performance comparison is performed in Section 3 where the experimental results are shown and analyzed. The conclusions are presented in Section 4.

Section snippets

Measurement method

This section describes the measurement setup and method as well as the two signal processing algorithms used. The measurement method is based on measuring the voltages across two impedances placed in series and supplied with a current from a sine generator that sets the measurement frequency. This method is also commonly called the series comparison method. The voltages are simultaneously acquired by two differential input acquisition channels and the samples are then transmitted to the DSP in

Measurement results

The impedance measurement system was tested for both algorithms with the measurement of 105 different impedances at a frequency of 1 kHz with magnitudes from 100 Ω up to 15 kΩ and phases in the ±90 ° range.

Conclusions

The comparison of signal processing algorithms for DSP based impedance measurements was described. Two algorithms were implemented: ellipse-fit and seven-parameter sine-fit. The two algorithms were compared in terms of the experimental standard deviation of the estimated impedance parameters, their execution speed and also memory requirements. Major improvements regarding execution speed and memory requirements are reported here. Speed improvements are caused by the use of a 32-bit

Acknowledgement

This work was sponsored by the Portuguese national research project reference PTDC/EEA-ELC/72875/2006.

References (20)

  • H.P. Hall, How electronics changed impedance measurements, IMTC 2004 – Instrum. Meas. Technol. Conf., Italy, May 2004,...
  • F. Caetano et al.

    Viscosity measurements of liquid toluene at low temperatures using a dual vibrating-wire technique

    Int. J. Thermophys.

    (2004)
  • T. Radil et al.

    Impedance measurement with sine-fitting algorithms implemented in a DSP portable device

    IEEE Trans. Instrum. Meas.

    (2008)
  • P. Arpaia et al.

    An instrument for prosthesis osseointegration assessment by electrochemical impedance spectrum measurement

    Measurement

    (2008)
  • J. Hoja et al.

    An analysis of a measurement probe for a high impedance spectroscopy analyzer

    Measurement

    (2008)
  • J. Hoja et al.

    Method using bilinear transformation for measurement of impedance parameters of a multielement two-terminal network

    IEEE Trans. Instrum. Meas.

    (2008)
  • A. Carullo, A. Vallan, Impedance measurement technique based on sine-fit, XVI IMEKO World Congress, Vienna, Austria,...
  • P.M. Ramos et al.

    Low frequency impedance measurement using sine-fitting

    Measurement

    (2004)
  • IEEE Std. 1057-1994, Standard for Digitizing Waveform Records, The Institute of Electrical and Electronics Engineers,...
  • Pedro M. Ramos et al.

    A new sine-fitting algorithm for accurate amplitude and phase measurements in two channel acquisition systems

    Meas. Elsevier

    (2008)
There are more references available in the full text version of this article.

Cited by (29)

  • Threshold estimation for least-squares fitting in impedance spectroscopy

    2018, Measurement: Journal of the International Measurement Confederation
    Citation Excerpt :

    Until recently, it relied on specialized equipment [11–13] and software [14]. However, the advent of low-cost and reliable data acquisition systems along with powerful signal processing algorithms such as sine-fitting algorithms [15,16] has boosted the interest in impedance spectroscopy applications and developments. Examples of signal processing algorithms include the adaptation of evolutionary methods such as genetic algorithms [17] and gene expression programming [18], or the use of bilinear transformation [19] for impedance parameter identification.

  • Automated system for determining frequency dependent parameter model of transmission line in a laboratory environment

    2016, Measurement: Journal of the International Measurement Confederation
    Citation Excerpt :

    Statistical techniques allow for evaluation of confidence levels and confidence intervals of the transmission line model parameters. Some examples applied to impedance measurements can be seen in [5,7] Many trials are necessary in order to increase confidence in results. Thus, automation facilitates the experimental trials.

  • Impedance frequency response measurements with multiharmonic stimulus and estimation algorithms in embedded systems

    2014, Measurement: Journal of the International Measurement Confederation
    Citation Excerpt :

    It finds applications both in the scientific domain, such as corrosion analysis [5], fuel cell characterization [6], biomedical applications [7,8], and in everyday applications such as weight scales that use the same principle to measure the body impedance and infer parameters such as body mass index and water percentage, among others [9]. Impedance spectroscopy has been continuously improved [10], especially with the advent of analog to digital data acquisition systems that improved the quality of the measurements and reduced the cost of implementing this technique [11–13]. However, the most recent advances in IS have been in the soft computing area where genetic algorithms have been used to search for the component values of a circuit model [14].

View all citing articles on Scopus
View full text