Design and Research of Adaptive Filter Based on LabVIEW

Similar documents
Adaptive Filtering using Steepest Descent and LMS Algorithm

A liquid level control system based on LabVIEW and MATLAB hybrid programming

TRACKING PERFORMANCE OF THE MMAX CONJUGATE GRADIENT ALGORITHM. Bei Xie and Tamal Bose

A Kind of Wireless Sensor Network Coverage Optimization Algorithm Based on Genetic PSO

Noise Canceller Using a New Modified Adaptive Step Size LMS Algorithm

Design of Multichannel AP-DCD Algorithm using Matlab

Performance of Error Normalized Step Size LMS and NLMS Algorithms: A Comparative Study

Performance Analysis of Adaptive Filtering Algorithms for System Identification

Serial Communication Based on LabVIEW for the Development of an ECG Monitor

Advanced Digital Signal Processing Adaptive Linear Prediction Filter (Using The RLS Algorithm)

Application of Co-simulation Technology Based on LabVIEW and Multisim in Electronic Design

Adaptive Signal Processing in Time Domain

THE KALMAN FILTER IN ACTIVE NOISE CONTROL

Research on function and design of virtual instrument based on LabVIEW Technology

Research on Design and Application of Computer Database Quality Evaluation Model

Research on QR Code Image Pre-processing Algorithm under Complex Background

Fault Diagnosis of Wind Turbine Based on ELMD and FCM

manufacturing process.

Qingdao, , China. China. Keywords: Deep sea Ultrahigh pressure, Water sound acquisition, LabVIEW, NI PXle hardware.

Design of Adaptive Filters Using Least P th Norm Algorithm

Numerical Robustness. The implementation of adaptive filtering algorithms on a digital computer, which inevitably operates using finite word-lengths,

A Design of Remote Monitoring System based on 3G and Internet Technology

Research on Power Quality Monitoring and Analyzing System Based on Embedded Technology

ISSN (Online), Volume 1, Special Issue 2(ICITET 15), March 2015 International Journal of Innovative Trends and Emerging Technologies

Research on Full-text Retrieval based on Lucene in Enterprise Content Management System Lixin Xu 1, a, XiaoLin Fu 2, b, Chunhua Zhang 1, c

result, it is very important to design a simulation system for dynamic laser scanning

Effects of Weight Approximation Methods on Performance of Digital Beamforming Using Least Mean Squares Algorithm

UAV Motion-Blurred Image Restoration Using Improved Continuous Hopfield Network Image Restoration Algorithm

Adaptive Filter Analysis for System Identification Using Various Adaptive Algorithms Ms. Kinjal Rasadia, Dr. Kiran Parmar

A Data Classification Algorithm of Internet of Things Based on Neural Network

Temperature Calculation of Pellet Rotary Kiln Based on Texture

Design of the Power Online Monitoring System Based on LabVIEW

5th International Conference on Information Engineering for Mechanics and Materials (ICIMM 2015)

Restoration of Images Corrupted by Mixed Gaussian Impulse Noise with Weighted Encoding

Optimized Variable Step Size Normalized LMS Adaptive Algorithm for Echo Cancellation

The Research of Delay Characteristics in CAN Bus Networked Control System

Hardware Implementation for the Echo Canceller System based Subband Technique using TMS320C6713 DSP Kit

SYSTEM OF PREVIEW AND DETECTION BASED ON NETWORK VIRTUAL EXPERIMENT

Comprehensive analysis and evaluation of big data for main transformer equipment based on PCA and Apriority

Convex combination of adaptive filters for a variable tap-length LMS algorithm

Robust Lossless Image Watermarking in Integer Wavelet Domain using SVD

Optical Beam Jitter Control for the NPS HEL Beam Control Testbed

Analysis and Realization of Digital Filter in Communication System

Design of Liquid Level Control System Based on Simulink and PLC

Adaptive Combination of Stochastic Gradient Filters with different Cost Functions

Research on Computer Network Virtual Laboratory based on ASP.NET. JIA Xuebin 1, a

High Level Architecture and Agent Technology based Astronautics Simulation Platform and Cluster Computing Environment s Construction

Forest Fire Smoke Recognition Based on Gray Bit Plane Technology

A paralleled algorithm based on multimedia retrieval

Research on Heterogeneous Communication Network for Power Distribution Automation

A Kind of Fast Image Edge Detection Algorithm Based on Dynamic Threshold Value

Dynamic Analysis of Structures Using Neural Networks

Application of Theory and Technology of Wireless Sensor Network System for Soil Environmental Monitoring

FUZZY C-MEANS ALGORITHM BASED ON PRETREATMENT OF SIMILARITY RELATIONTP

An Efficient Nonlinear Least Square Multisine Fitting Algorithm

Study on Digitized Measuring Technique of Thrust Line for Rocket Nozzle

Adaptive Filters Algorithms (Part 2)

An ELM-based traffic flow prediction method adapted to different data types Wang Xingchao1, a, Hu Jianming2, b, Zhang Yi3 and Wang Zhenyu4

Power Load Forecasting Based on ABC-SA Neural Network Model

Application Research of Wavelet Fusion Algorithm in Electrical Capacitance Tomography

Wavelength Estimation Method Based on Radon Transform and Image Texture

Analysis of the Power Consumption for Wireless Sensor Network Node Based on Zigbee

The Pennsylvania State University. The Graduate School. Department of Electrical Engineering

The Establishment of Large Data Mining Platform Based on Cloud Computing. Wei CAI

The Design Of Private Cloud Platform For Colleges And Universities Education Resources Based On Openstack. Guoxia Zou

Stripe Noise Removal from Remote Sensing Images Based on Stationary Wavelet Transform

Research on Software Scheduling Technology Based on Multi-Buffered Parallel Encryption

A method of three-dimensional subdivision of arbitrary polyhedron by. using pyramids

REAL-TIME DIGITAL SIGNAL PROCESSING

Design and Implementation of Inspection System for Lift Based on Android Platform Yan Zhang1, a, Yanping Hu2,b

ANN-Based Modeling for Load and Main Steam Pressure Characteristics of a 600MW Supercritical Power Generating Unit

Design of student information system based on association algorithm and data mining technology. CaiYan, ChenHua

Research on the Application of Digital Images Based on the Computer Graphics. Jing Li 1, Bin Hu 2

Research on Adaptive Control System of Robot Arm with Six Degrees of Freedom

Advance Convergence Characteristic Based on Recycling Buffer Structure in Adaptive Transversal Filter

Framework Research on Privacy Protection of PHR Owners in Medical Cloud System Based on Aggregation Key Encryption Algorithm

Lightning Protection Performance Assessment of Transmission Line Based on ATP model Automatic Generation

An Indian Journal FULL PAPER. Trade Science Inc.

Improvements and Implementation of Hierarchical Clustering based on Hadoop Jun Zhang1, a, Chunxiao Fan1, Yuexin Wu2,b, Ao Xiao1

An Optimization Algorithm of Selecting Initial Clustering Center in K means

Sensor Modeling Realization Based on Fruit Fly Optimization Algorithm

Face Recognition Based on LDA and Improved Pairwise-Constrained Multiple Metric Learning Method

Dynamics Response of Spatial Parallel Coordinate Measuring Machine with Clearances

Design of Soybean Milk Machine Control System based on STC89C52. Ya-gang SUN, Yue ZHANG, Zhi-gang YANG, Rui-cheng ZHANG and Xiao-wei SHEN

Fingerprint Ridge Distance Estimation: Algorithms and the Performance*

Design of Navel Adaptive TDBLMS-based Wiener Parallel to TDBLMS Algorithm for Image Noise Cancellation

The Comparative Study of Machine Learning Algorithms in Text Data Classification*

International Conference on Information Sciences, Machinery, Materials and Energy (ICISMME 2015)

A Non-Iterative Approach to Frequency Estimation of a Complex Exponential in Noise by Interpolation of Fourier Coefficients

Experimental Data and Training

Video Inter-frame Forgery Identification Based on Optical Flow Consistency

An algorithm of lips secondary positioning and feature extraction based on YCbCr color space SHEN Xian-geng 1, WU Wei 2

Open Access Research on the Prediction Model of Material Cost Based on Data Mining

Research Article. Three-dimensional modeling of simulation scene in campus navigation system

Design and Implementation of Full Text Search Engine Based on Lucene Na-na ZHANG 1,a *, Yi-song WANG 1 and Kun ZHU 1

Research on software development platform based on SSH framework structure

Construction and Application of Cloud Data Center in University

Simultaneous Online Modeling of the Secondary Path and Neutralization of the Feedback Path in an Active Noise Control System

A Novel Extreme Point Selection Algorithm in SIFT

International Conference on Electromechanical Control Technology and Transportation (ICECTT 2015)

Transcription:

Sensors & ransducers, Vol. 158, Issue 11, November 2013, pp. 363-368 Sensors & ransducers 2013 by IFSA http://www.sensorsportal.com Design and Research of Adaptive Filter Based on LabVIEW Peng ZHOU, Gang XU, Xu-Dong GUO, Yuan-Sheng LIN Anhui Provincial Key Laboratory of Electric and Control, Anhui Polytechnic University, Wuhu 241000, China E-mail: zhpytu@163.com Received: 27 September 2013 /Accepted: 25 October 2013 /Published: 30 November 2013 Abstract: LabVIEW is a figural virtual instrument program language, which has powerful digital signal processing function. As traditional tools such as MALAB and Simulink are inconvenient to produce application systems. In order to solve the complex programming problem of adaptive filters, the Least Mean Square (LMS) and Recursive Least Square (RLS) algorithms based adaptive filters are designed based on adaptive filter toolkit of LabVIEW 2011. he parameters which can affect these two algorithms are carried on the analysis to filters' sensitivity. he simulation results show the function comprehensive characteristic of the adaptive filters with the good man- machine interface. It can be convenient for engineers to develop efficiently, So, the system developed in this paper has good practical engineering value. Copyright 2013 IFSA. Keywords: LabVIEW, Adaptive filter, LMS algorithm, RLS algorithm. 1. Introduction Adaptive filter is an optimal filtering method, which is developed on the basis of the linear filters, such as the Wiener filter at the end of 1950's. his filter can achieve the best value through making the automatic adjustment parameters of adaptive filtering system. And in the design, little or no prior knowledge is required about the signal and noise [1]. herefore, the adaptive filtering theory has the wide range of applications such as communication, remote sensing and telemetry, automatic control, radar and electronic jamming, pattern recognition, noise cancellation, channel equalization, echo cancellation, speech signal processing, biomedical and other aspects of access. he core of the adaptive filter is the adaptive algorithms. At present, the realization of the adaptive filter is used by MALAB, Simulink, DSP, FPGA and so on. Although this method can effectively realize the function of filtering, but the disadvantage is more complex programming and not friendly interface. At the same time, it is difficult to achieve the filter in practical engineering applications. Based on the mixed language programming of MALAB and LabVIEW, the design of adaptive filter needs to use the MALAB script node to invoke the complicated procedure. When the filter has higher accuracy requirements, the program will become quite complex, and it is not conducive to the rapid and effective design of adaptive filter [1]. Aiming at the shortcoming in the design of adaptive filter, his paper will use the toolkit of adaptive filter in LabVIEW 2011, which has realized the value of engineering application based on the least mean square(lms) algorithm and recursive least square algorithm (RLS) of two kinds of adaptive filter. Its design is simpler in structure, and has good man-machine interface, which can be easily adjusted according to different requirements. It adapts to the actual signal analysis and processing for different occasions, and can bring very big convenient for the most optimal solution to the problem of research or engineering design. Article number P_1513 363

Sensors & ransducers, Vol. 158, Issue 11, November 2013, pp. 363-368 2. Software of LabVIEW LabVIEW is the abbreviation of Laboratory Virtual Instrument Engineering Workbench and is the graphical programming software which is launched by National Instruments Corp. LabVIEW is a graphical development environment which can produce the best code with compiler, and the operating speed equals to the compiled C or C++ program. It has the modular characteristics, which facilitates the reusability of the program. he knack of LabVIEW that it uses a graphical programming language to create the source in the block diagram. he diagram of program takes the place of the traditional code. So it is convenient and intuitive interface [2]. LabVIEW gives full play to the advantages of graphical language, which can greatly short of the virtual instrument development cycle, and eliminate the complex process of the virtual instrument programming [3]. convergence time requires the period of automatic adjustment to achieve the best filtering effect. Adaptive filter has an algorithm according to the input, output, and parameter values, which modifies the filter parameters according to certain rules, so that it can effectively track the change of external signals. herefore, an important aspect of the study on the adaptive filter theory is adaptive algorithm. 3. he Principle and Algorithm of Adaptive Filter 3.1. he Principle of Adaptive Filter he block diagram of adaptive digital filter is shown in Fig. 1. It is mainly composed of digital filter of adjustable parameters (also known as adaptive processor) and the adaptive filtering algorithm. he digital filter of adjustable parameters is FIR digital filter or IIR digital filter, and also is a lattice digital filter. he adaptive filter is divided into the linear adaptive filter and the nonlinear adaptive filter, where the nonlinear adaptive filter has better ability in signal processing, but the computation is complex, which is greatly limited in the practical engineering application. herefore, the linear adaptive filter is more common in practical application. It has the advantages of simple structure and easy calculation algorithm. In Fig. 1, x (n) represents the input of n moments, the output signal y(n) is generates by digital filter of adjustable parameters, so y (n) and the reference signal d (n) are compared to generate an error signal e (n). he error signal e (n) controls the impulse response of adaptive digital filter, which can be automatically controlled according to the e (n) value, and the input x (n+1) of the next moment (n+1) is suitable and in order to make the output y (n+1) is closer to d (n+l), until the error signal e (n) reaches to the minimum value, the y(n) is the best approximation of d (n), which enables the system to fully adapt to the two external added signals. he input signal x (n) and d(n) can be determined or random signal, and can also be a stationary random process or non - stationary random process [4]. he difference of adaptive filter and other filter is impulse response or filtering parameter which is changed with the external signal changes. he Fig. 1. he block diagram of adaptive digital filter. 3.2. he Algorithm of Adaptive Filter he least mean square (LMS) and the recursive least square (RLS) are two basic algorithms of adaptive filter [4]. 3.2.1. he Algorithm of the Least Mean Square (LMS) In 1976 Widrow et al proposed the adaptive filtering algorithm of LMS, and due to the use of a special gradient estimation method, it avoids the disadvantages brought by general gradient estimation. Assuming the noise signal s (n) is zero, then the expected signal: dn ( ) = h( nxn ) ( ) (1) he estimation signal is described below. yn ( ) = w( nxn ) ( ) (2) Form (1) and (2), where x(n) is the input vector of the adaptive filter and xn ( ) = [ xn ( ), xn ( 1),..., xn ( L+1) ] ; h(n) is the vector of the unknown system impact response and hn ( ) = [ h0( n), h1( n),..., h 1( )] L n ; wn ( ) is the coefficient vector and wn ( ) = [ w0( n), w1( n),..., w 1( )] L n ;d(n) is the ' expected signal and dn ( ) = d( n) + sn ( ). When the S (n) is zero, then d ' ( n) = d( n). Where e(n) is the error signal and 364

Sensors & ransducers, Vol. 158, Issue 11, November 2013, pp. 363-368 en ( ) = dn ( ) y( n) = d( n) w ( n) x( n) (3) he objective function is described below. 2 2 Jn ( ) = Ee [ ( n)] = E[( dn ( ) w( nxn ) ( )) ] (4) For simplicity, usually in the definition of the objective function, the mean square error is replaced by the square error, which can prove that the error square is the unbiased estimate of mean square error. he objective function is also described below. 1 λ Pn ( 1) xn ( ) k( n) = 1 1 + λ x ( n) P( n 1) x( n) en ( ) = dn ( ) x ( nwn ) ( 1) wn ( ) = wn ( 1) + knen ( ) ( ) Pn = λ Pn λ knx npn 1 1 ( ) ( 1) ( ) ( ) ( 1) (9) Form (9), during the initialization, δ is the small positive integer which is to ensure that the matrix is nonsingular and prevents the inverse of the matrix overflow. J = e 2 ( n) (5) he objective function can be obtained by derivation. 2 [ e ( n)] J ( n) = = 2 x( n) e( n), (6) [ wn ( )] where it is available by the steepest descent method: wn ( + 1) = wn ( ) + µ [ J ( n)] = wn ( ) + 2 µ xnen ( ) ( ) (7) Form (7) is the iterative formula of LMS algorithm, where n=1, 2, 3, is time series; x (n) represents the input of n moments; e (n) is the output error signal and the output signal of the system; w( n ) is the weight vector of adaptive filter in n time. 3.2.2. he Algorithm of the Recursive Least Square (RLS) Least square (LS) algorithm was as early as put forward by Gauss in 1795. But the computing amount of LS is big, therefore the recursive least square (RLS) algorithm is used in adaptive filtering, which is a recursive method for optimal solution of the algorithm, because RLS algorithm is better easily than LS and it is widely applied. In 1994, Sayed and Kailath established the relationship between Kalman filter and RLS algorithm, which proved that the RLS algorithm is actually a special case of the Kalman filter, and had the further understandings of the RLS algorithm. he large number of research results of Kalman filter can be applied to adaptive filtering, which played an important role in adaptive filtering technology [4]. RLS is a kind of least squares method of the most commonly fast algorithm. It is described below. Initialization is below: P 1 (0) δ I, w(0) 0 = = (8) On each sampling point of n = 1,2,... for iteration: 4. he Design and Implementation of Adaptive Filter Based on LabVIEW he toolkit of adaptive filter is provided in LabVIEW 2011, which has been designed by using various algorithms function VI and it can be very convenient to design the adaptive filter system which has practical engineering value. his method which is based on the graphical programming does not need complex programming, at the same time it can be more convenient and flexible to allow users to quickly develop adaptive filter. his paper gives the examples of adaptive filter which are based on the algorithms of LMS and RLS in LabVIEW 2011. If the input simulation signal is set to the Sine wave signal which is superimposed by Gaussian white noise: x( n) = Asin(2 π f n) + v( n) (10) Form (10), where A is the amplitude of Sine wave signal, f 0 is frequency of the signal, vn ( ) is Gaussian white noise with the mean value of zero, n is the length of the input signal, and σ is the amplitude of noise. Where the initial values are A = 2.0, f0 = 10 Hz, σ = 0.1. he reference input signal is a sine wave signal, and it is described below. 0 x( n) = Asin(2 π f n) (11) Form (11), where the initial values are A = 2.0, f0 = 10 Hz. In addition to the RLS algorithm in the initial value, it is x (0) = 0. he rest is similar with the LMS algorithm which w (0) = 0 is initial value of the weight vector. he parameters of the filter can be set on the front panel, such as the length, the iteration step and forgetting factor. his paper gives the design of block diagram based on LabVIEW of graphical programming language. hrough the input parameters are adjusted on front panel so that the filter output effect achieves 0 365

Sensors & ransducers, Vol. 158, Issue 11, November 2013, pp. 363-368 the best effect. Fig. 2 and Fig. 3 show respectively the adaptive filters design and implementation of the above conditions based on the algorithms of LMS and RLS. hese experimental parameters are described below: the length of filter=128, step =0.0008, forgetting factor =0.995. From the simulation of Fig. 2 and Fig. 3 can show that the output effect of filter is more effective and the system's error is smaller. 5. he Parameters' Analysis of Algorithms of LMS and RLS 5.1. he Parameters' Analysis of LMS Algorithm 1) Where µ is the step factor. he theoretical range of µ is 0 < µ < 1 to keep the stability of λ max the system. Where λ max is the biggest feature value of correlation matrix R. When µ is smaller, the system is more stable and offset is smaller, so the adaptive time will be longer. So in considering the accuracy requirements, the user selects the appropriate step size factor to reduce the adaptive time [5]. 2) In LMS algorithm, the fixed step size µ has the decisive impact on the performance of algorithm. It is used to describe the error adjustment according to the factor coefficients of digital filter. he convergence speed and the steady-state misadjustment size depend on the step size µ. For constant of µ, adaptive convergence speed and steady-state misadjustment size is a pair of contradiction. Getting a faster convergence speed can be increased the value of µ, but this will lead to increases of imbalance quantity. (a) he front panel of adaptive filter based on LMS algorithm. (b) he block diagram of adaptive filter based on LMS algorithm. Fig. 2. he design and implementation of adaptive filter based on LMS algorithm. 366

Sensors & ransducers, Vol. 158, Issue 11, November 2013, pp. 363-368 (a) he front panel of adaptive filter based on RLS algorithm. (b) he block diagram of adaptive filter based on RLS algorithm. Fig. 3. he design and implementation of adaptive filter based on RLS algorithm. If it wants to meet the requirements of the misalignment, the convergence process will be restricted. he convergence speed and steady-state misadjustment's error are two indicators which can not have both. he previous research on the performance of LMS algorithm has been made a lot of work, but it is still an important research topic. 5.2. he Parameters' Analysis of RLS Algorithm 1) RLS is an iterative algorithm for each step in the adaptive iteration requires. It is based on the least square criterion as the basis, the least squares criterion LS (Least Square) is to make a range of k+ m 1 2 error square, i.e. e ( n) is the minimum. he i= k basic idea of least squares algorithm is to make the weighted least square error signal by adjusting the coefficients of filter. 2) he forgetting factor is smaller, then the timevarying parameters of the tracking ability are stronger, but also more sensitive to noise. In the design of filter, selecting the appropriate value of forgetting factor is very important. So some documents require that the value is 0.95 forgetting factor 0.995 [6, 7]. 3) he aspect of initial convergence speed, RLS algorithm is faster than LMS algorithm, and execution algorithm is more stability. But the computation of data is larger and more complex, at the same time the amount of storage required is larger, and timely effect is poor. If using the computer to store the mass data processing can bring greater convenience. 6. Conclusion 1) In this paper, it has achieved the design of adaptive filter based on LMS and RLS algorithm by using the toolkit of adaptive filter in LabVIEW 2011. Comparing to MALAB, DSP, FPGA and other 367

Sensors & ransducers, Vol. 158, Issue 11, November 2013, pp. 363-368 software, the operation of adaptive filter in LabVIEW 2011 has good man-machine interface, and saves a lot of time for the engineering and technical personnel. 2) he simulation results show that the effect of filtering is good and strong practicability. In the design of LMS and RLS adaptive filter, this paper uses the signals which are superimposed by sinusoidal signal and Gaussian white noise. It can also choose other types of noise, and has good filtering effect. 3) But in the actual engineering application, the test environment is different so that the actual signal filtering is also different. he engineering and technical personnel choose the filter according to the actual situation of the parameters to achieve the filtering requirements. At the same time comparing with the traditional analysis method, it has obvious advantages in accuracy and operability etc. Acknowledgements he authors would like to thank of the Youth Foundation of Anhui Polytechnic University (NO.2007YQ035), the National College Students' innovation and entrepreneurship training program (NO.201210363130), the Key Project of teaching and research of Anhui Polytechnic University (NO.2013jyxm07), and the Foundation of quality engineering teaching and research project of Anhui Province (NO.KJ2011A035). References [1]. Shu-Ping Wei, Yu-Long Bai, Guo-Wei Xu, Design and study of adaptive filter with LabVIEW, Microcomputer Applications, Vol. 32, Issue 3, 2011, pp. 12-17. [2]. Peng Zhou, he research of virtual instrument system based on DSP and LabVIEW, Yanai University, 2007. [3]. Peng Zhou, Gang Xu, Xiao-Yu Ma, Shi-Nong Wang, Ming-Yan Zhang, Proficient signal processing in LabVIEW, singhua University Press, P. R. China, July 2013. [4]. Yao-Huan Gong, Adaptive filtering-time domain adaptive filtering and smart antenna, Publishing House of Electronics Industry, P. R. China, 2003. [5]. Kuan He, ao Huang, Adaptive filter design based on Matlab, Journal of WU (Information & Management Engineering), Vol. 30, Issue 1, 2008, pp. 70-73. [6]. Yu-Mei Ding, Yong-Hong Kuo, Xin-Bo Gao, Digital signal processing-time domain discrete random signal processing, XiDian University Publishing House, P. R. China, 2002. [7]. Jian-Guo Han, A model-free method based on Kalman filtering process for time-interval-variable sequences with application to astronomic surveying, Engineering and Electronics, Vol. 14, Issue 2, 2003, pp. 29-33. 2013 Copyright, International Frequency Sensor Association (IFSA). All rights reserved. (http://www.sensorsportal.com) 368