Can I use Convolution Neural Network (CNN) as a two class classifier?

2 views (last 30 days)
I have two class data sets of 1D signal. I want to classify them using Convolution Neural Network.Is it possible? * Is there any build in functions available?

Answers (1)

Zuber Khan
Zuber Khan on 27 Sep 2024
Hi,
Yes, you can apply Convolution Neural Network (CNN) to 1-D data as well for classification. CNNs are not limited to 2D images; they can be effectively applied to 1D data such as time series, audio signals, or any sequential data.
You can use 1D convolutional layers (Conv1D), followed by pooling layers (MaxPooling1D), and fully connected layers for the same.
A 1-D convolutional layer applies sliding convolutional filters to 1-D input. In MATLAB, you can create this layer by invoking "convolution1dLayer" method present in Deep Learning Toolbox. For more information, refer to the following documentation:
Similarly, a 1-D max pooling layer performs downsampling by dividing the input into 1-D pooling regions, then computing the maximum of each region. To know more about "maxPooling1dLayer" method, please refer to the following documentation:
You can use both these layers while creating the network architecture. Apart from building network, you would need to preprocess your signal data in a format appropriate for training deep learning networks.
Although, there is no direct resource but you can have a look at the following example as reference which shows how to create and train a simple convolutional neural network for deep learning based classification.
I hope it will answer your query.
Regards,
Zuber

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!