mlsanityData to 7 Oct 2026

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

arXiv 2106.09757 ↗First posted 17 Jun 2021cs.LG cs.AI physics.ao-phcited by 8

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 15 of its 44 references that are in the map. First posted on arXiv 17 Jun 2021.

Builds on

15 of 44 references.

References · 15

  1. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  2. 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
  3. 2016Image-to-Image Translation with Conditional Adversarial Networkscited by 4,510
  4. 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,678
  5. 2017A General and Adaptive Robust Loss Functioncited by 236
  6. 2016Theory-guided Data Science: A New Paradigm for Scientific Discovery from Datacited by 169
  7. 2017A Review on Deep Learning Techniques Applied to Semantic Segmentationcited by 122
  8. 2018Anticipating Traffic Accidents with Adaptive Loss and Large-scale Incident DBcited by 51
  9. 2019An Alternative Probabilistic Interpretation of the Huber Losscited by 43
  10. 2020Development and Interpretation of a Neural Network-Based Synthetic Radar Reflectivity Estimator Using GOES-R Satellite Observationscited by 17
  11. 2020CoPhy-PGNN: Learning Physics-guided Neural Networks with Competing Loss Functions for Solving Eigenvalue Problemscited by 11
  12. 2020Tropical and Extratropical Cyclone Detection Using Deep Learningcited by 10
3 more
  1. 2021Controlled abstention neural networks for identifying skillful predictions for regression problemscited by 9
  2. 2021Controlled abstention neural networks for identifying skillful predictions for classification problemscited by 3
  3. 2020Adaptive Loss Function for Super Resolution Neural Networks Using Convex Optimization Techniquescited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 3; 2023: 2; 2024: 1; 2025: 1; 2026: 1.

8 papers.