How to label an RBG image consisting of 8 bits/ data points and each point represents a certain power value to use the image as an input to CNN for forecasting
3 views (last 30 days)
Show older comments
I have a set of power values recorded each hour, then created RGB images of those power values so each image represents 8 hours. The image attached represents 8 different power values (since each hour represents a single power value). I want to use those images as an input to CNN, but don't know how to because I can't label the image.
How can I label the images so I use them as an input to the CNN? Is there a code to do that on MATLAB?
8 Comments
Pratham Shah
on 5 Apr 2023
Hi Danya,
I have few questions regarding your problem statement.
1- What kid of labels you want to give to your image?
2- As you said, you want to predict the future power value; which parameter are you going to give in the ML model for prediction?
3- If your model is going to predict the power value based on some numerical data, can't you use regression technique? Means is it necessary to use CNN?
Answers (1)
Shreeya
on 25 Aug 2023
Edited: Shreeya
on 25 Aug 2023
Hello Danya
To my understanding, you want to forecast power outputs represented as RGB values. Instead of labelling the dataset, you can use LSTMs since they are best suited for forecasting. A possible solution is:
- Using a CNN Network to extract the essential image features and output a 1D vector, followed by an LSTM network.
- Image Regeneration using Up Convolution method.
- Segment the image vertically in 8 parts to predict the power values based on the colour gradient.
You can refer to the LSTM, CNN and up convolution documentations linked below respectively.
Hope this helps.
0 Comments
See Also
Categories
Find more on Recognition, Object Detection, and Semantic Segmentation 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!