# Introduction to Uncertainty Quantification in Machine Learning
A course during the 2024 Helmholtz Summer Academy: https://events.hifis.net/event/1590/timetable/
- slides are [here](https://events.hifis.net/event/1590/contributions/10492/attachments/2585/5509/240925slides-UQworkshop-Steinbach.pdf)
# Warm-Up
## You and Your field of Expertise
Please share below some hints about your field of experitse
- Peter Steinbach, trained particle physicist, HPC engineer and data scientist
- Sebastian Starke, mathematician/statistician, now working mostly on image-based deep learning applications (segmentation, outcome predictions)
- Christoph Egerland, physics, machine learning for spectroscopic data @ DLR-OS
- Josephine Grau, trained mathematician, now working at KIT in traffic engineering
- Felicitas Kindel, biologist, bioinformatics (working with machine learning to identify gene regions)
- Sanghyun Yoo, trained aerospace engineer and working towards digitalisation of material testing @ DRL
- Daniel Collin, trained mathematician, now doing research in solar physics using machine learning
- merle stein, plant biologist
- Christian Schmidt, trained physicist, doing Software Engineering and Data Science in the field of process engineering
- Milos Petrovic, trained mathematician, Associate Professor of Mathematics interested in Data Science;
- Leonardo Marconi, Aerospace engineer working on numerical crashworthiness analysis
- Felix Laufer, KIT, trained electrical engineer, ML for next-generation photovoltaics
- Solange Gonzalez, clinical epidemiologist, MDC;
- Oliver Kunc, jet engine design and mathematician @DLR
- Cornelia Inauen, geophysicist, currently using machine learning for segmenting remote sensing imagery @awi
- Pascal Wetzel, bioinformatician specialized on predicting transcription factor activity @MDC
- Xenia Kobeleva, computational neurologist, focusing on whole-brain models
- Eugen Gazenbiller, Material Scientist focusing on damage simulations, predictive modelling, ML for decision support
- Tamadur Albaraghtheh, computer aided design Scientist, focusing on digital twins, uncertainty quantification and surrogate modelling
- Dawit Hailu, ML for solving phase retrieval problem
## You and Uncertainty (reconvene by 9:50')
Join in pairs, take 5' each and explain to the other person what you need uncertainties in your machine learning models for. At the end, share a concise description below.
- Jane Doe, predict dinner happiness *regression task*
- I have a tabular data of dinner ingredients (17 columns)
- I predict the happiness of my guests (1 real number, continuous scale from 1 to 10)
- I would like to know the uncertainty of my prediction
- Leonardo Marconi *classification task*
- Has a numerical model that predicts aircraft crashworthiness properties and injury criteria (the dummies survive the crash or not)
- I have sources of uncertainties come from the input set: material parameters, geometry, load case
- I would like to integrate the current deterministic results with uncertainty coming from the input set to find a spectrum of possible outcomes.
- Christoph Egerland, *regression task*
- I have a laser spectrum (2D array of wavelengths and intensities)
- I predict the elemental concentrations of the probe (e.g. 50% iron, 20.3% copper)
- (using several methods: 1) monte-carlo matching of experiment-simulation, 2) neural network)
- I want to know uncertainties
- Tamadur (classification)
- FEM models combined with surrogate model
- uncertainty quantification required for validation of surrogate model, sensitivity analysis
- biodegradable implants
- aim: learn more about bridging knowledge between UQ and application
- Pascal Wetzel *regression task*
- I am working with sequencing data
- The dimensionality is the number of open chromatin regions times the number of single cells (~100,000 x 10,000)
- PS: what is the dimensionality?
- I want to predict the activity of transcription factors (tf) for gene regulation
- For this we try to predict the probability of tf binding per position as a continues score
- As well as the overall probability ofa specific tf to be active in a certain cell
- PS: can you be more specific how such a prediction looks like? Is this a probility per gene for example?
- I would like to understand the reliability of my prediction and also maybe the sources of uncertainty
- Felix Laufer *regression task*
- goal: predicting efficiency of solar cells already early during the fabrication process
- input: 4 time-series of sensor signals acquired during material formation
- output: efficiency of final solar cell
- ML model always outputs a prediciton, but I want to get the additional information of how confident the model is with its prediction
- Milos Petrovic *classification task*
- working as mathematician;
- additional way to compare different machine learning architectures.
- Sanghyun (regression)
- working on digitalisation of material testing for aerospace structure development;
- interested in development of surrogate modelling to correlate manufacturing parameters and mechanical properties;
- compare different models (sensitivity analysis).
- Christian Schmidt (regression)
- plans to use machine learing to improve filtering processes of raw ore material
- he wants to be able to estimate uncertainties
- I have a tabular data of 5 columns containing real numbers, a few more containing categorical data and one to two containing images (that need to be processed into data such as mean bubble size, number of bubbles, etc.)
- I predict the filtering efficiency
- I would like to know the uncertainty of my prediction
- Cornelia (classification)
- use segmentation to quentify permafrost degradatio in polar regions
- segmentatiton is based on historical and recent panchromatic imagery to detect long-term changes
- predict 6 different classes of different degradation structures
- want to quantify uncertainties of predictions
- Felicitas Kindel (classification)
- improve machine learning algorithm to predict genes, input: DNA sequence (numerically encoded) in chunks of at least 20000 base pairs, output: 3 genic classes (UTR, CDS, Intron) and one intergenic class (one-hot encoded vector)
- find areas where the network is uncertain how a gene looks like, especially why it is uncertain when changing from one class to the next (transition areas)
- Eugen (regression)
- Predictions of machenical or corrosive damage in light metal alloys needs uncertaqinty to be trusted
- Uncertainty in FEM-data trained ML surrogate models (e.g. 10 parameters, prediction is time dependent material deteoriation)
- Oliver Kunc (DLR) (regression)
- Predictive design of jet engine components: input constraints (10-20 reals), output mass-minimal geometry (10-20 reals (parameters))
- Uncertainty is unknown, unreliability is definitely there
- merle, (classification)
- improve DL model for single cell cluster identification
- cannot be more precise as I just started this project
- Xenia, prediction of neural time series, *regression*
- I have high-dimensional, stochastic neural time series data (100 patients with 100 brain regions x 1200 time points) that are usually undergoing some kind of dimensionality reduction (e.g., ICA)
- I simulate these neural data using SDE models and I want to estimate the underlying model parameters
- I would like to know the uncertainty of the model parameters and in case of several models, of the underlying models (i.e., model comparison)
- Solange, regression task
- A study with only 2 time points rather far apart (5 years), 2500 participants
- She wants to know how precise the data is
- Determination of the uncertainty in both measurements
- Gudrun, regression
- Several 100.000 images with with structrual imformation
- Needs to extract parameters and would like to know how to deal with uncertainity
- Daniel (regression)
- I have images of the Sun in multiple wavelengths in 4096x4096 resolution and want to use them to predict properties of the solar wind at Earth, i.e. from one until a few values
- These predictions are always very uncertain, and I want to quantify this uncertainty
- Josephine (classification)
- my model shall predict the states of a freeway control system (dynamic speed restirctions on motorways)
- input are speed and traffic volume data for trucks and cars for several cross-sections and possibly several timesteps (four x #cross-sections x size timewindow dimensions)
- output are the speed restrictions for every cross section (dim = #cross-sections)
Total numbers, 18 contributions:
- `11` regression tasks
- `7` classification tasks
## Setting up the notebook environment
Please download the notebook zipfile and set them up on your computer. The zip file can be obtained from [here](https://events.hifis.net/event/1590/contributions/10492/attachments/2585/5508/20240925-intro2uq-notebooks.zip).
To check that everything is working, run notebook `00_explore_mnist1d_dataset.ipynb`.
## Pair Programming: `01_mcdropout_1D_regression.ipynb`
- join a room as a pair
- one learner shares screen and types, the other helps
- switch roles in between notebooks
- dynamic pairing
benefits:
+ reduced cognitive load
+ increased focus
+ improved communication
+ knowledge exchange
+ it's more fun
# Collaborative Notes
Use the space below to collect notes if need be. These notes will later be shared among all learners on the event page of the summer academy.