CIRA Guide to Custom Loss Functions for Neural Networks in Environmental Sciences – Version 1

06/17/2021
by   Imme Ebert-Uphoff, et al.
19

Neural networks are increasingly used in environmental science applications. Furthermore, neural network models are trained by minimizing a loss function, and it is crucial to choose the loss function very carefully for environmental science applications, as it determines what exactly is being optimized. Standard loss functions do not cover all the needs of the environmental sciences, which makes it important for scientists to be able to develop their own custom loss functions so that they can implement many of the classic performance measures already developed in environmental science, including measures developed for spatial model verification. However, there are very few resources available that cover the basics of custom loss function development comprehensively, and to the best of our knowledge none that focus on the needs of environmental scientists. This document seeks to fill this gap by providing a guide on how to write custom loss functions targeted toward environmental science applications. Topics include the basics of writing custom loss functions, common pitfalls, functions to use in loss functions, examples such as fractions skill score as loss function, how to incorporate physical constraints, discrete and soft discretization, and concepts such as focal, robust, and adaptive loss. While examples are currently provided in this guide for Python with Keras and the TensorFlow backend, the basic concepts also apply to other environments, such as Python with PyTorch. Similarly, while the sample loss functions provided here are from meteorology, these are just examples of how to create custom loss functions. Other fields in the environmental sciences have very similar needs for custom loss functions, e.g., for evaluating spatial forecasts effectively, and the concepts discussed here can be applied there as well. All code samples are provided in a GitHub repository.

READ FULL TEXT

page 15

page 16

page 21

page 23

page 24

page 26

page 29

page 32

research
03/21/2022

Can we integrate spatial verification methods into neural-network loss functions for atmospheric science?

In the last decade, much work in atmospheric science has focused on spat...
research
05/27/2019

Improved Training Speed, Accuracy, and Data Utilization Through Loss Function Optimization

As the complexity of neural network models has grown, it has become incr...
research
10/21/2020

ComboLoss for Facial Attractiveness Analysis with Squeeze-and-Excitation Networks

Loss function is crucial for model training and feature representation l...
research
05/11/2023

Adaptive Graduated Nonconvexity Loss

Many problems in robotics, such as estimating the state from noisy senso...
research
06/04/2021

Improving Computer Generated Dialog with Auxiliary Loss Functions and Custom Evaluation Metrics

Although people have the ability to engage in vapid dialogue without eff...
research
07/05/2020

Alpha-Net: Architecture, Models, and Applications

Deep learning network training is usually computationally expensive and ...
research
04/21/2023

Multivariate and Multi-step Traffic Prediction for NextG Networks with SLA Violation Constraints

This paper focuses on predicting downlink (DL) traffic volume in mobile ...

Please sign up or login with your details

Forgot password? Click here to reset