Skip to main content

Weather Categorization Using Foreground Subtraction and Deep Transfer Learning

  • Chapter
  • First Online:

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 103))

Abstract

We propose a novel foreground subtraction algorithm to extract the Sky pixels and use transfer learning on these processed images using pre-trained ResNet-50 and DenseNet-161 models to classify them. For this study, the Image2Weather’s 2 category weather dataset having 1500 images, is used. By using transfer learning and training, only the last layer by freezing rest of the layers, we have found that the proposed ResNet-50 and DenseNet-161 architectures achieved the classification accuracies of 94.3% and 92.68%, respectively, on the test images and outperformed the state-of-art methods. These results are extremely good as there is a significant improvement of 6–8% in accuracy over the existing models due to foreground subtraction. The proposed method can be implemented in real-time applications to help farmers plan their cropping cycle and for efficient weather forecast activities.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   99.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   129.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD   199.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. LeCun Y, Bengio Y, Hinton G (2015) Deep learning. Nature 521(7553):436

    Article  Google Scholar 

  2. Felzenszwalb P, McAllester D, Ramaman D (2008) A discriminatively trained, multiscale, deformable part model. In: Proceedings of the IEEE CVPR

    Google Scholar 

  3. Dalal N, Triggs B (2005) Histograms of oriented gradients for human detection. In: Proceedings of the IEEE CVPR

    Google Scholar 

  4. Lowe DG (2004) Distinctive image features from scale-invariant keypoints. Int J Comput Vis

    Google Scholar 

  5. Lu C, Lin D, Jia J, Tang C-K (2014) Two-class weather classification. In: IEEE conference on computer vision and pattern recognition (CVPR), pp. 3718–3725

    Google Scholar 

  6. Roser M, Moosmann F (2008) Classification of weather situations on single color images. In: IEEE intelligent vehicles symposium, pp 798–803

    Google Scholar 

  7. Yan X, Luo Y, Zheng X (2009) Weather recognition based on images captured by vision system in vehicle. In: Advances in neural networks, pp 390–398

    Chapter  Google Scholar 

  8. Chen Z, Yang F, Lindner A, Barrenetxea G, Vetterli M (2012) How is the weather: automatic inference from images. In: IEEE international conference on image processing (ICIP), pp 1853–1856

    Google Scholar 

  9. Oliva A, Torralba A (2001) Modeling the shape of the scene: a holistic representation of the spatial envelope. Int J Comput Vision 42(3):145–175

    Article  Google Scholar 

  10. He K, Zhang X, Ren S, Sun J (2016) Deep residual learning for image recognition. In: Proceedings of IEEE conference on computer vision and pattern recognition

    Google Scholar 

  11. Huang G, Liu Z, Van Der Maaten L, Weinberger KQ (2017) Densely connected convolutional networks. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 4700–4708

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Singapore Pte Ltd.

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Challa, S.V.D.M., Vaishnav, H.K. (2020). Weather Categorization Using Foreground Subtraction and Deep Transfer Learning. In: Saini, H., Sayal, R., Buyya, R., Aliseri, G. (eds) Innovations in Computer Science and Engineering. Lecture Notes in Networks and Systems, vol 103. Springer, Singapore. https://doi.org/10.1007/978-981-15-2043-3_64

Download citation

  • DOI: https://doi.org/10.1007/978-981-15-2043-3_64

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-15-2042-6

  • Online ISBN: 978-981-15-2043-3

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics