How would I use Classification algorithms to identify waveforms and assign them a label?

3 views (last 30 days)
Hello, I have data with waves and inverse waves, how would I use a classification algorithm to differentiate which is which? I would like to show that negative to positive is going 'up' and positive to negative is going 'down'. I attempted to use MATLAB's Classification Learner App, but I did not get the results I had wanted. I have attached pictures below of the waveform, the data I seperately have for 'Up' and 'Down' and the result of the Classification algorithm when I use the complex waveform as the response and the up and down data as predictors.
I am able to solve this problem manually by using selection structures, but I would like to know if it would be possible to carry out with a ML algorithm. I'm admittedly not as well versed in them as I would like to be so I would greatly appreciate it if you could tell me what steps I should take.

Answers (1)

Drew
Drew on 19 Oct 2022
To fully answer your question would require more info about your application and data. From what you wrote, perhaps you have a two-class classification problem where you want to classify a set of waves into one of two classes: "waves" and "inverse-waves". In that case, you will need training data consististing of a set of waves with class labels, and a separate test set of wavs with class labels. For each wave observation, you will need to extract a feature vector, or feature vectors, from the waves.
There are lots of ways to extract feature vectors from timeseries data. To make the feature extraction process interactive you can use an app such as Signal Labeler or Diagnostic Feature Designer. Once you have extracted features, you can send the extracted features to the Classification Learner app:

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!