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 Ansichten (letzte 30 Tage)
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 Kommentare
Pratham Shah
Pratham Shah am 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?
Danya
Danya am 5 Apr. 2023
Hi Pratham,
1- I want to label it in such a way that each colour represents a power value. So when the labelled image is used as an input to the CNN, the CNN can read 8 different power value for each image.
2- I will predict the future power by using the labelled images as an input to CNN
3- It is possible to use regression (tried that before) but my task is to test if image-based prediction using CNN is more accurate than the regression thechnique, since CNN works well with images

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Shreeya
Shreeya am 25 Aug. 2023
Bearbeitet: Shreeya am 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.

Kategorien

Mehr zu Recognition, Object Detection, and Semantic Segmentation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by