• No results found

Implementation of FastICA on DSP for Blind Source Separation

N/A
N/A
Protected

Academic year: 2021

Share "Implementation of FastICA on DSP for Blind Source Separation"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

Procedia Engineering 29 (2012) 4228 – 4233

1877-7058 © 2011 Published by Elsevier Ltd. doi:10.1016/j.proeng.2012.01.648

Available online at www.sciencedirect.com Available online at www.sciencedirect.com

Procedia Engineering 00 (2011) 000–000

Procedia

Engineering

www.elsevier.com/locate/procedia

2012 International Workshop on Information and Electronics Engineering (IWIEE)

Implementation of FastICA on DSP for Blind Source

Separation

Zhang Min

*

, Zhu Mu, Ma Wenjie

School of Information Science and Technology.

Harbin Institute of TechnologyWeiHaiWeiHai,China

Abstract

Fast independent component analysis (FastICA) algorithm separates the independent sources from their mixtures by measuring non-Gaussian. However, it may lead to the slowing down of convergence speed in the algorithm with improper step, even non-convergence, To overcome these shortcomings and meet the needs of the separation of mixed sound signals, improved FastICA algorithm is used in this paper, which converges much faster and does not need to select the step size parameters manually. Moreover, a detailed description of blind source separation on DSP platform is concluded. Finally, the improved algorithm is applied to the voice signal separation, whose experimental results demonstrate the effectiveness of the presented hardware FastICA as expected.

© 2011 Published by Elsevier Ltd. Selection and/or peer-review under responsibility of Harbin University of Science and Technology

Key words: Blind Source Separation(BSS),DSP,FastICA,,voice signal separation;

1. Introduction

Independent Component Analysis (ICA)[1] originated in the cocktail party problem, with the statistically independent source signals and mixing matrix unknown, It recover the source signal only based on observed signal .in many ICA algorithms, the fixed point algorithm (FastICA) is widely used in signal processing for its fast convergence and good separation.it has a fourth-order cumulant based, based

*

* Corresponding author.

E-mail address: [email protected].

Open access under CC BY-NC-ND license.

(2)

on maximum likelihood, based on the largest form of negative entropy, which is appliced to data analysis, data compression, wireless communications, blind signal processing and other fields.

This paper is organized as follows. Section II describes the mathematical model and common algorithms. Section III presents The realization of blind source separation based on DSP .Section IV demonstrates experiment results. Finally, some conclusions are drawn in Section V.

2. Mathematical model and common algorithms

2.1. Mathematical model

In general, Content of BSS[2][3]can be divided into four parts. There are instantaneous linear blind

source separation, convolution blind source separation, nonlinear blind source separation and application of blind signal separation. When the mixing model is non-linear, it is difficult to recover the Source signals from the mixing data, unless a priori knowledge of the signals and mixing model is available. Here is the model of the instantaneous linear Blind Source Separation:

Fig.1 Schematic diagram of BSS

S = [s1(t), ..., sN(t)]T denote the unknown N-dimensional source signal vector, A is the mixing matrix which is also unknown, n = [n1 (t), ..., nN (t)]T is the M-dimensional noise vector, X = [x1(t), ..., xM(t)]T is the M-dimensional observed signals output from the sensor.

     X= AS+n      (1)  BSS algorithm only requires know X to determine the S or A. The goal of ICA is to find a separation matrix W, which makes each component of Y = [y1(t), ... ,yN(t)]T independent.

Y =WX         (2)

2.2. Principle and properties of FastICA

The basic principle of FastICA[4]-[7] algorithm is the central limit theorem.This theorem says that if Sn is the sum of n mutually independent random variables, then the distribution function of Sn is well-approximated by a certain type of continuous function known as a normal density function. Thus the mixed signals are closer to the gaussian distribution than the original signals. And according to the information theory we also know that in all of the random variables with the same variance, gaussian random variable has the biggest entropy .so we often use the negentropy to measure no-gaussian. With the above considered, we conclude that negentropy can indicate mutual independence of separated results. When it reached maximum, the process of separation has finished.

Definition of negentropy: ) ( ) ( ) ( g Y H Y H Y N = Gauss − (3)

(3)

Author name / Procedia Engineering 00 (2011) 000–000 3

YGauss Is gaussian random variable with the same variance of Y, H(.) is differential entropy of random variable ξ ξ ξ ) lg p y ( )d ( p -H(Y) =

y (4)

If the variable Y is a gaussian random variable, then negentropy will be zero ; If non-gaussian properties of Y is stronger, its differential entropy is smaller and the value ofNg

( )

Y is bigger, So

( )

Y Ng

can be a measure of no-gaussian for random variables. According to the formula (2) in order to calculate the differential entropy, we need to know the probability density function, and it is obviously impractical, so we often use the following approximate formula

2

( ) [ { ( ) } { ( ) } ]

J yE G yE G v (5) In this formula, E

[ ]

⋅ is the mean expression; G is a nonlinear function, such as

( )

1 ta n h ( 1 ) G y = a y (6)

( )

(

2

)

2 e x p / 2 G y = yy (7) ( ) 3 3 G y = y (8)

According to Lagrange theorem and its constraint condition, we can come up with its cost function:

2

( ) { ( T )} [ { ( T ) } 1

i i i

F w = E G w zE w z

To get value of wi when t F reaches maximum,we should let

( ) ( ) i i i F w f w w ∂ = ∂

be zero, and then solve it using Newton iteration and get Iterative formula

( ( ) ) ( 1 ) ( ) ( ( ) ) i i i i f w k w k w k f w k + = − ′ ( 1) { ( T( ) )} { ( T( ) )} ( ) i i i i w k+ =E zg w k zE g w k z w k (9) 2.3. improved FastICA learning algorithm

If the inappropriate choice of initial point .FastICA does not guarantee that (9) with the objective function when iterating iteration became smaller and smaller until the progressive convergence, To solve this problem We introduce the factor λ.

)

(

)}

)

(

(

{

)}

)

(

(

{

)

1

(

k

E

zg

w

k

z

E

g

'

w

k

z

w

k

w

i T i T i i

+

=

λ

(10) ) ( )} ( { / )} ( { ' i T i T i i E zg w z E g w z G w w − λ = (11) When the iteration converges

) ( * i w G w = (12)

(4)

G'(w*)= (1−λ)I (13) 1 )) ( ( ' * < w G

ρ ,by the theory of Ostrowsky[8],When

0

<

λ

<

1

,The absolute value of

)} ) ( ( {zg w k z E T

i will continue to become smaller, and this method can improve the stability of

convergence. To further improve the speed, we assume that the calculation has been through

k k w w =0 (14) m i w F J w F w w i k k i k i k ( )/ ( ( )), 1,2 , 0 1 1= = L = − − (15) m k k w w = (16)

Update the new ( ( 0))

k

w F

J after every m iterations, Contrast in having to have each iteration

originally , thus reducing the amount of computation . Enhances algorithm speed.

3. The realization of blind source separation based on DSP

3.1. matlab simulation

First,gain two ways of mixed signal from the selected Audio files.Secondly,making the available mixed data zero mean and whitening the data. Thirdly, choose an initial wight vector w of unit nom. Fourthly, computing the data through the FastICA algorithm. Data output at last. The flow chart is as follows :

Figure .2 flow chart Figure.3 system diagram

3.2. Hardware Structure of the System

when the simulation based on MATLAB is successful, we device , for an example , ADSP_ BF533.Here there will be a brief introduction of the BF533. As to the BF533.,it provides a high performance, power-efficient processor choice for today's most demanding convergent signal processing applications. The high performance 16-bit/32-bit Blackfin® embedded processor core, the flexible cache architecture, the enhanced DMA subsystem, and the dynamic power management (DPM) functionality allow system designers a flexible platform to address a wide range of applications including consumer, communications, automotive, and industrial/instrumentation. The hardware system includes BF533

(5)

Author name / Procedia Engineering 00 (2011) 000–000 5

processor, 32MB SDRAM, 2 MB Flash, ADVl836 audio codec, external 4 input / 6 output audio interface. System block diagram is shown in Fig.3

The two channel of audio signal sampled by AD1836 are temporarily stored in the SDRAM. And then the signal will pass through the system programmed by the blind signal separation algorithm, and finally be exported in audio form.

3.3. Implementation of FastICA algorithms on DSP

(1) In order to make human ear to recognize different types of sounds, the observing time should be long enough. In this article the sampled sound last about 22 seconds. And the sampling frequency of AD1836 is 48 KHz, so the amount of data is 48K × 22, about one million. That means we need a array whose length is one million which will exceed the capacity of the memory. The feasible solution .here is access (including read and write) the data stored in SDRAM. This will reform the original array arithmetic into scalar arithmetic. Because every single element is handled by direct accessing SDRAM, there is no need to transport the data which stored in SDRAM to the memory. We sacrifice time to save the memory.

(2)The input and output width of AD1836 is 24 bits. for the sake of improving the speed of operation. First, we use the solution listed below to conversion 24 bits signed integer to 32 bits integer. Secondly. In order to maintain the accuracy, we convert data to floating point[9] format.

(3) After the processing, the magnitude of data is very small, how to playback?

After the processing, the zone of the samples is relatively small, and we must utilize a DA to play, so the rounding error becomes much larger, the signal to noise ratio can’t satisfy our very needs. The solution is multiply the data by a large factor. By this means, the relations between samples do not change and the effect of playing is much better. This is a common method of handling analog signals using DSP,FPGA and so on.

4. Experimental results

The following is the time domain chart from simulation experiments. And fig 5 is about the two original signals obtained by recording.Fig.6 is the result of the instantaneous linear mixture of the original signals Fig. 7 is the signals obtained after separation algorithm based on FastICA. We found that the performance of the FastICA algorithm is good and we can clearly get what the original signals are.

0 1 2 3 4 5 6 7 8 9 10 x 104 -2 -1 0 1 2 fig ure o f o rig in al s ig na ls1 0 1 2 3 4 5 6 7 8 9 10 x 104 -1 -0.5 0 0.5 1 fi gu re o f o rig in al s ig na ls2  

(6)

0 1 2 3 4 5 6 7 8 9 10 x 104 -1 -0.5 0 0.5 1 figur e of m ix ed s ign al s1 0 1 2 3 4 5 6 7 8 9 10 x 104 -1 -0.5 0 0.5 1 figu re of m ix ed si gnal s2 0 1 2 3 4 5 6 7 8 9 10 x 104 -10 -5 0 5 10 Fi gur e of s ignal 1 af te r Fas tI C A 0 1 2 3 4 5 6 7 8 9 10 x 104 -5 0 5 Fi gur e of s ignal 2 a ft er Fas tI C A

Figure.6 two mixed signals Figure.7 signals after separation algorithm

5. Conclusion

In this paper we introduce the mathematic model of blind separation, and commonly used algorithms. And then we described the concrete steps of realizing blind separation using ADSP BF533, and the solution of problems appeared in the system. This solution is much less time consuming, highly efficient and it needs less memory.

Referrence

[1] Sergey Kirshner and Barnbàs Pòczos, “ICA and ISA Using Schweizer-Wolff Measure of Dependence,” Proceedings of the 25th International Conference on machine Learning, Helsinki, Finland, 2008.

[2] YANG H A. Adaptive on-line learning algorithms for blind separation-maximum entropy and minimum mutual information . Neural Computation, 1997, 9: 1457-1482.

[3] BELL A, SEJNOWSKI J.An information maximization approach to blind separation and blind deconvolution .Neural Computation, 1995, 7:1129-1159.

[4] T. W. Lee, Independent Component Analysis: Theory and Applica-tions. Boston, MA: Kluwer, 1998.

[5] A.Hyvärinen and E. Oja, “Independent component analysis: Algo-rithms and applications,” Neural Netw., vol. 13, pp. 411– 430, May2000.

[6] A. Hyvärinen, J. Karhunen, and E. Oja, Independent Component Analysis. New York: Wiley, 2001.

[7] A. Hyvärinen and E. Oja, “A fast fixed-point algorithmfor independent component analysis,” Neural Comput., vol. 9, pp. 1483–1492, 1997.

[8] Amari S I. Natural Gradient Works Efficiently in Learning.NeuralComputation,1998,10. [9] IEEE Standard for Binary Floating Point Arithmetic, ANSI/IEEE Stan-dard 745-1985, Aug. 1985.

References

Related documents

External 1 input This BNC input connector accepts a ±1 V peak signal for AM, FM, pulse, burst, and phase modulation.. For all these modula- tions, ±1 V peak produces the

To recap from Chapter 5: the networks of teachers, pupils, and TAs tended to be clearly identified figurations whilst there was the less-well figured network of

To this end, through the Design space (figure 1, section C) the artist gains access to a range of facilities for creating compositions: (a) a digital sketchbook,

Significant negative changes on the participants’ cognitive domain (higher levels of learning) out- comes subscale focusing on the school profession- als’ role in EE (Annex 2, Table

The Solution 6000 Integrated Access Control &amp; Alarm System offers an extensive feature listing including integrated proximity, numerous wire free options, high speed

With the study undertaken we look forward to the concrete reasons for attrition and strong retention management to stop this leakage. It has been observed that this is more a