Академический Документы
Профессиональный Документы
Культура Документы
Group No: 2
Go PSD curve
1
0.8
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35
0.8
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35
Pyulear is a MATLAB built-in function where we put data in time domain and it converts it to frequency domain
and gives us power spectrum density (PSD).
Process of Implementation (Cont….)
• We stored the data of each samples as reference.
The test data was also converted to PSD using pyulear and then normalized.
Then we took the difference of the normalized test data from both reference, ‘GO’ and ‘STOP’.
Difference = Normalized average data (reference) – Normalized test data
diffg = g_avg - test_dataNr;
(For both ‘GO’ and ‘STOP’)
Then we take the average of both difference for ‘GO’ and ‘STOP’
average data =
gad = 0 ;
for j = 1: length(diffg)
gad = gad + diffg(j);
end
gad= gad / length(diffg);
Process of Implementation (Cont….)
If the difference is minimum for test data and trained ‘GO’ data then it
will display ‘GO’. Otherwise it will show ‘STOP’.
if (sad<=gad) disp('STOP');
else disp('GO');
end
Where,
sad = averaged stop difference
gad = averaged go difference
Accuracy
Taking normalized average PSD of 128 ‘GO’ samples and 145 ‘STOP’
samples-
‘GO’ detection accuracy = 90%
‘STOP’ detection accuracy = 40%