How to do feature extraction using wavelet scattering and then perform neural network classification?

9 visualizaciones (últimos 30 días)
% I want to do feature extraction for signals and then apply ANN classification on them,, can you help please?
Fs = 50; sf = waveletScattering('SignalLength', 4950, 'SamplingFrequency', Fs) ;
s = cell(120,1); parfor j = 1:120; r = featureMatrix(sf, f(j, :)) ; s{j, 1} = r; end
h = cell2mat(s) ; b = cell2table(s) ; c = table2dataset(b);
%the single signal was in one row, but after this it becomes 202rows×10columns, and I can't apply ANN like this Any ideas?

Respuestas (1)

Suraj Kumar
Suraj Kumar el 7 de Oct. de 2024
Hi Mustafa,
To perform feature extraction using wavelet scattering on signals and then apply ANN classification, you can refer to the following steps:
1. After storing the features in cell array "s", you can convert them into a matrix "featureVectors" suitable for ANN.
% Convert cell array to feature matrix
for i = 1:numSignals
featureVectors(i, :) = s{i}(:)';
end
2. Configure and train the neural network using fitcnetfunction specifying the required parameters. % Train the neural
network net = fitcnet(featureVectors, targetsCategorical, ...
'LayerSizes', hiddenLayerSize, ...
'Standardize', true, ...
'Options', options);
To learn more about fitcnetfunction in MATLAB, refer the below mentioned documentation:
Hope this resolves your query!

Categorías

Más información sobre AI for Signals and Images en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by