FranciscoLozDataScience commited on
Commit
5fef2e6
·
1 Parent(s): eda0038

added dataset description

Browse files
README.md CHANGED
@@ -12,3 +12,43 @@ dataset_info:
12
  download_size: 14234112
13
  dataset_size: 13466250
14
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  download_size: 14234112
13
  dataset_size: 13466250
14
  ---
15
+ # Estimating Solar Irradiance
16
+ - **Homepage:** [Sage Continuum](https://sagecontinuum.org/)
17
+ - **Author:** Alex Shen, Northwestern University
18
+ - **Mentors:** Bhupendra Raut, Seongha Park
19
+ - **Repository:** [GitHub Repository](https://github.com/waggle-sensor/summer2023/tree/main/Shen)
20
+
21
+ # Goal and Importance
22
+ Our goal was to create a model to estimate solar irradiance in the sky based on ground images taken from waggle nodes. This could help in the following ways:
23
+ - Solar energy generation: It could help in predicting energy generation more accurately resulting in improved efficiency and grid management
24
+ - Weather forecasting- Could assist meteorologists in predicting weather patterns using solar irradiance levels, and in analyzing current weather conditions
25
+ - Climate change: Would help with modeling climate change, could contribute to understanding and assist in mitigating global warming
26
+ - Smart Homes: Would be able to help smart homes manage energy more efficiently (control certain devices based on irradiance levels)
27
+
28
+ # Data Preprocessing
29
+ In the data preprocessing stage we created a csv file that stored all the images to their matching solar irradiance values. The images were taken from the Sage Waggle Node's top camera and the solar irradiance values were taken from the Argonne National Laboratory tower readings. We made sure to exclude night time photos since there is no sun and we exclusively used summer-time photos as we wanted to stick to a seasonal model that would be able to make estimates more consistently. Furthermore we also eventually downsized the images original 2000x2000 images to 500x500 images since the training was taking a bit too long when the images were larger.
30
+
31
+ ![alt text](md_images/top_camera.jpg)
32
+ *Example training image taken from waggle node W039*, 2000x2000 pixels
33
+
34
+ # Training and Model
35
+ In our training, before the image was transformed to a tensor, the image was resized down to 224x224 to stay consistent with the pre-trained models. The image was also randomly flipped with a 50% chance and rotated randomly between 0-359 degrees so the model would be able to generalize better. For our model we compared all of the pretrained ResNet models and the VGG-16 model. However we replaced the last fc layer so that the model would give us a continuous value as an estimate instead of a range. We found that the ResNet 50 model performed the best with the lowest mean absolute error of 82. All in all, I think that the error was small enough to justify creating the plugin. In the plugin the waggle node simply snaps an image of the sky using its top camera, and notes the solar irradiance that the model predicts and publishes it to the Beehive Repository.
36
+
37
+ # Graphs
38
+ ![alt text](md_images/Occurance_graph.png)
39
+
40
+ <br>
41
+
42
+ _Graph showing the # of times that each margin of error appeared in our tesing images. For example, the model predicting 10 when the irradiance is 20 would result in an error of 10, raising the first bar of the bar graph 1 occurence higher_
43
+
44
+ <br>
45
+
46
+ ![alt text](md_images/predvsactual.png)
47
+
48
+ _This graph plots the predicted irradiance of a test image against its actual irradiance value. The dots are centering mostly around the y=x line meaning the model is predicting accurately on average. Also since there are points both above and below the line the model is not biased towards either overestimating or underestimating also causing it to predict well on average_
49
+
50
+ # Future Directions
51
+ - Increase training data to decrease MAE
52
+ - Work around identifying through the thin cloud layers since it causes mistakes in the model by severely underestimating the irradiance value due to thin clouds covering the image
53
+ - Work on identifying correct irradiance values during sunsets and sunrises. The model occasionally overestimates irradiance when the sun is at its perimeter due to greater light exposure in the image
54
+ - Implement a feature to forecast solar irradiance levels based on the patterns of data gathered
md_images/Occurance_graph.png ADDED

Git LFS Details

  • SHA256: 2bde6290c936941269b67b75bfe9b0fbf46889ce138e1c72db9313b2ec6ed9b2
  • Pointer size: 130 Bytes
  • Size of remote file: 47.6 kB
md_images/predvsactual.png ADDED

Git LFS Details

  • SHA256: f03063c4743463603523d6250cdedf4cf9e55f2e906ffc1db11acccca0c729e6
  • Pointer size: 131 Bytes
  • Size of remote file: 120 kB
md_images/top_camera.jpg ADDED

Git LFS Details

  • SHA256: 061ca8ccbb74ae35e3fa2724c9b059a12792c958cd8b55e2bd005539150c71e8
  • Pointer size: 131 Bytes
  • Size of remote file: 443 kB