Skip to the content.
CV LinkedIn Badge GoogleScholar Badge ResearchGate Badge ORCID Badge GitHub Badge Twitter Badge YouTube Badge Academia.edu Badge buymeacoffee Badge

You can contact me at: kamilazdybal at gmail dot com

Hi, I’m Kamila, welcome to my personal website!

I’m a postdoctoral researcher in the Computational Engineering lab at Empa 🇨🇭. In my research, I combine machine learning and data-driven modeling with fluid dynamics. I develop tools and algorithms that help understand high-dimensional datasets and model high-dimensional systems with computational efficiency. Check out the recent interview with me!

This website is a collection of tutorials, articles, coding projects, and study notes that are the product of most of my passions that I have for life, the universe, and everything else. Many of the materials gathered here are related to my research work, and I have hopes that by sharing them, you might find pursuing science fascinating! When it comes to learning, I believe in the quote of Einstein: You do not really understand something unless you can explain it to your grandmother. My aim is to implement that level of understanding into the documents I write (although many times I will assume certain prerequisites that your grandmother should have!). Of course, if you wish to profit from the materials presented here, you will need to incorporate them into your journey. I have hopes that you will find doing science fascinating, rewarding, and inspiring!

about-me

That’s me at the Capilano suspension bridge
in Vancouver, Canada, 2022.


Science blog & thoughts


Introduction to machine learning and artificial neural networks

Check out my invited lecture on machine learning and artificial neural networks at the University of Utah. Thanks to Professor Tony Saad for inviting me!

ML-lecture

Improving reduced-order models through nonlinear decoding of projection-dependent outputs

Large datasets are abundant in various scientific and engineering disciplines. Multiple physical variables are frequently gathered into one dataset, leading to high data dimensionality. Visualizing and modeling multivariate datasets can be achieved through dimensionality reduction. However, in many reduction techniques to date, there is no guarantee that the reduced data representation will possess certain desired topological qualities. We show that the quality of reduced data representations can be significantly improved by informing data projections by target quantities of interest (QoIs), some of which are functions of the projection itself. The target QoIs can include closure terms required in modeling, important physical variables, or class labels in the case of categorical data. This work can have particular relevance in data visualization and efficient modeling of dynamical systems with many degrees of freedom, as well as in fundamental research of representation learning.

K. Zdybał, A. Parente, J. C. Sutherland. Improving reduced-order models through nonlinear decoding of projection-dependent outputs, Patterns 4 (2023)

nonlinear-decoding

How to complete a Ph.D.

Doing a Ph.D. has been an immensely rewarding journey for me. It has been really difficult at times, and I mean sobbing-at-my-desk difficult. And at other times, I felt like conquering the top of the world! I’m grateful for every experience from my Ph.D. Those experiences taught me so much, made me more resilient and more confident. This note is a collection of items that helped me complete my Ph.D. and thrive in a Ph.D. program. I’m sharing those with you in hopes that they will help you complete your own journey! You can absolutely end your Ph.D. with a smile on your face and a great sense of accomplishment!

how-to-phd

Introducing PCAfold 2.0! Novel tools and algorithms for low-dimensional manifold assessment and optimization

We describe an update to our open-source Python package, PCAfold, designed to help researchers generate, analyze and improve low-dimensional data manifolds. In the current version, PCAfold 2.0, we introduce novel tools and algorithms for assessing and optimizing low-dimensional manifolds. This includes a method that generates a “map” of local feature sizes that can help pinpoint researchers to problematic regions on a manifold. We introduce a novel cost function that characterizes the quality of a manifold topology with a single number. We develop two algorithms for feature selection based on principal component analysis (PCA) that use the cost function as an objective function to minimize. We introduce a quantity of interest (QoI)-aware dimensionality reduction strategy where data projections are computed using an artificial neural network and are directly optimized towards representing various projection-independent and projection-dependent QoIs. We also introduce an implementation of partition of unity networks (POUnets) for efficient reconstruction of QoIs from low-dimensional manifolds based on combining neural network classification with localized polynomial regression. Our software can be broadly applicable in all domains of science and engineering that aim to reduce data dimensionality, as well as in the fundamental research on representation learning.

PCAfold

Check out PCAfold video tutorials!

PCAfold is our open-source Python library for handling high-dimensional datasets and modeling high-dimensional systems with computational efficiency. In this new series of videos, I provide an overview of possible functionalities in generating, analyzing, and improving low-dimensional data projections, as well as building efficient regression models based on those projections. Stay tuned for more!

PCAfold

Python for academics

I’m launching a series of YouTube tutorials called “Python for academics” where I teach how to automate the everyday academic life with Python!

My goal is to provide you with extra tools and ideas that you haven’t thought about using or implementing before. The best use of these tutorials, as I see it, is that you take those tools and ideas and start building your own Python toolbox that can help you in your everyday academic life. My hope is that you’ll find pieces of useful advice that can help you automate your work, your own way! The audience I think will benefit a lot from these tutorials are Ph.D. students, especially at the beginning of their Ph.D. I believe that the earlier you learn how to automate dull tasks the better! My motivation is to teach you things that I wish I had learned early in my Ph.D. But, of course, academics at all stages of their careers are welcome to join along!

PyforAc

My Ph.D. dissertation

On 17 April 2023 I defended my Ph.D. thesis titled “Reduced-order modeling of turbulent reacting flows using data-driven approaches”! My Ph.D. work has recently been awarded the 18th ERCOFTAC da Vinci prize.

about-me

My dissertation is freely available for download below:

PhD-dissertation

Reduced-order modeling of reacting flows using data-driven approaches

Data-driven modeling of complex dynamical systems is becoming increasingly popular across various domains of science and engineering. This is thanks to advances in numerical computing, which provides high fidelity data, and to algorithm development in data science and machine learning. Simulations of multicomponent reacting flows can particularly profit from data-based reduced-order modeling (ROM). The original system of coupled partial differential equations that describes a reacting flow is often large due to high number of chemical species involved. While the datasets from reacting flow simulation have high state-space dimensionality, they also exhibit attracting low-dimensional manifolds (LDMs). Data-driven approaches can be used to obtain and parameterize these LDMs. Evolving the reacting system using a smaller number of parameters can yield substantial model reduction and savings in computational cost. In this chapter, we review recent advances in ROM of turbulent reacting flows. We demonstrate the entire ROM workflow with a particular focus on obtaining the training datasets and data science and machine learning techniques such as dimensionality reduction and nonlinear regression. We present recent results from ROM-based simulations of experimentally measured Sandia flames D and F. We also delineate a few remaining challenges and possible future directions to address them. This chapter is accompanied by illustrative examples using the recently developed Python software, PCAfold. The software can be used to obtain, analyze and improve low-dimensional data representations. The examples provided herein can be helpful to students and researchers learning to apply dimensionality reduction, manifold approaches and nonlinear regression to their problems.

K. Zdybał, M. R. Malik, A. Coussement, J. C. Sutherland, A. Parente, Reduced-order modeling of reacting flows using data-driven approaches, In N. Swaminathan, A. Parente, editors, Lecture notes in Energy: Machine Learning and its Application to Reacting Flows, Springer, 2023

Springer-book-chapter

Advancing reacting flow simulations with data-driven models

The use of machine learning algorithms to predict behaviors of complex systems is booming. However, the key to an effective use of machine learning tools in multi-physics problems, including combustion, is to couple them to physical and computer models. The performance of these tools is enhanced if all the prior knowledge and the physical constraints are embodied. In other words, the scientific method must be adapted to bring machine learning into the picture, and make the best use of the massive amount of data we have produced, thanks to the advances in numerical computing. The present chapter reviews some of the open opportunities for the application of data-driven reduced-order modeling of combustion systems. We provide examples of feature extraction in turbulent combustion data, empirical low-dimensional manifold (ELDM) identification, classification, regression, and reduced-order modeling.

K. Zdybał, G. D’Alessio, G. Aversano, M. R. Malik, A. Coussement, J. C. Sutherland, A. Parente, Advancing reacting flow simulations with data-driven models, In M. A. Mendez, A. Ianiro, B. R. Noack, S. L. Brunton, editors, Data-Driven Fluid Dynamics: Combining First Principles and Machine Learning, Cambridge University Press, 2023

CUP-book-chapter

Cost function for low-dimensional manifold topology assessment

In reduced-order modeling, complex systems that exhibit high state-space dimensionality are described and evolved using a small number of parameters. These parameters can be obtained in a data-driven way, where a high-dimensional dataset is projected onto a lower-dimensional basis. A complex system is then restricted to states on a low-dimensional manifold where it can be efficiently modeled. While this approach brings computational benefits, obtaining a good quality of the manifold topology becomes a crucial aspect when models, such as nonlinear regression, are built on top of the manifold. Here, we present a quantitative metric for characterizing manifold topologies. Our metric pays attention to non-uniqueness and spatial gradients in physical quantities of interest, and can be applied to manifolds of arbitrary dimensionality. Using the metric as a cost function in optimization algorithms, we show that optimized low-dimensional projections can be found. We delineate a few applications of the cost function to datasets representing argon plasma, reacting flows and atmospheric pollutant dispersion. We demonstrate how the cost function can assess various dimensionality reduction and manifold learning techniques as well as data preprocessing strategies in their capacity to yield quality low-dimensional projections. We show that improved manifold topologies can facilitate building nonlinear regression models.

K. Zdybał, E. Armstrong, J. C. Sutherland, A. Parente, Cost function for low-dimensional manifold topology assessment, Scientific Reports 12 (2022) 14496

Cost-function-seminar

Manifold-informed state vector subset for reduced-order modeling

Reduced-order models (ROMs) for turbulent combustion rely on identifying a small number of parameters that can effectively describe the complexity of reacting flows. With the advent of data-driven approaches, ROMs can be trained on datasets representing the thermo-chemical state-space in simple reacting systems. For low-Mach flows, the full state vector that serves as a training dataset is typically composed of temperature and chemical composition. The dataset is projected onto a lower-dimensional basis and the evolution of the complex system is tracked on a lower-dimensional manifold. This approach allows for substantial reduction of the number of transport equations to solve in combustion simulations, but the quality of the manifold topology is a decisive aspect in successful modeling. To mitigate manifold challenges, several authors advocate reducing the state vector to only a subset of major variables when training ROMs. However, this reduction is often done ad hoc and without giving detailed insights into the effect of removing certain variables on the resulting low-dimensional data projection. In this work, we present a quantitative manifold-informed method for selecting the subset of state variables that minimizes unwanted behaviors in manifold topologies. While many authors in the past have focused on selecting major species, we show that a mixture of major and minor species can be beneficial to improving the quality of low-dimensional data representations. The desired effects include reducing non-uniqueness and spatial gradients in the dependent variable space. Finally, we demonstrate improvements in regressibility of manifolds built from the optimal state vector subset as opposed to the full state vector.

K. Zdybał, J. C. Sutherland, A. Parente, Manifold-informed state vector subset for reduced-order modeling, Proceedings of the Combustion Institute 39 (2022) 1-10

This publication has received the Distinguished Paper Award for Numerical Combustion from The Combustion Institute.

local-manifold-learning

Local manifold learning and its link to domain-based physics knowledge

In many reacting flow systems, the thermo-chemical state-space is known or assumed to evolve close to a low-dimensional manifold (LDM). Various approaches are available to obtain those manifolds and subsequently express the original high-dimensional space with fewer parameterizing variables. Principal component analysis (PCA) is one of the dimensionality reduction methods that can be used to obtain LDMs. PCA does not make prior assumptions about the parameterizing variables and retrieves them empirically from the training data. In this paper, we show that PCA applied in local clusters of data (local PCA) is capable of detecting the intrinsic parameterization of the thermo-chemical state-space. We first demonstrate that utilizing three common combustion models of varying complexity: the Burke-Schumann model, the chemical equilibrium model and the homogeneous reactor. Parameterization of these models is known a priori which allows for benchmarking with the local PCA approach. We further extend the application of local PCA to a more challenging case of a turbulent non-premixed n-heptane/air jet flame for which the parameterization is no longer obvious. Our results suggest that meaningful parameterization can be obtained also for more complex datasets. We show that local PCA finds variables that can be linked to local stoichiometry, reaction progress and soot formation processes.

K. Zdybał, G. D’Alessio, A. Attili, A. Coussement, J. C. Sutherland, A. Parente, Local manifold learning and its link to domain-based physics knowledge, Applications in Energy and Combustion Science, Special issue: Machine learning methods for reactive flows (2023)

local-manifold-learning

multipy - Python library for multicomponent mass transfer

Check out the beta version of our educational Python library intended to support your learning of multicomponent mass transfer! Our goal was to create a set of functions that are the essential building blocks with which you can play to get more intuition and understanding of quantities involved in multicomponent flows. With these tools you can set-up your own problems such as the Stefan tube problem or the two-bulb diffusion without a whole lot of coding. We wish you a lot of joy in studying multicomponent mass transfer!

This library is developed with the help of Professor James C. Sutherland from the University of Utah.

multipy

PCAfold - Low-dimensional PCA-derived manifolds and everything in between!

Check out PCAfold, our Python software for generating, analyzing and improving low-dimensional manifolds. It can be used for data clustering and sampling, dimensionality reduction, nonlinear regression and assessing the quality of low-dimensional manifolds. PCAfold is published in the SoftwareX journal:

K. Zdybał, E. Armstrong, A. Parente, J. C. Sutherland, PCAfold: Python software to generate, analyze and improve PCA-derived low-dimensional manifolds, SoftwareX 12, 2020, 100630

Reach out to the documentation for many illustrative tutorials! You can also run the tutorials as interactive Jupyter notebooks by clicking below:

MyBinder Badge

This work has been produced during my PhD at Université libre de Bruxelles and my research stay at the University of Utah.

PCAfold
PCAfold

The tensor necessity - a short story about momentum transport in fluids

At first encounter, tensors can seem like strange mathematical objects. It can be challenging to grasp their meaning and their relevance might not be immediately obvious. At the same time, tensors are indispensable when studying fluid dynamics. So what’s with the tensors and why do we need them?

Tensor-necessity

Steady-state heat conduction

A computational example of steady-state heat conduction in a lengthwise-insulated rod with internal heat production spiced up with a bit of Python!

Heat-transfer

The linear algebra of Principal Component Analysis (with Python examples)

These are notes on the linear algebra aspects of Principal Component Analysis (PCA) with a little bit more insight then you would typically get when reading about PCA from online tutorials. The notes are accompanied by several Python computational examples.

PCA sample

Notes on Dynamic Mode Decomposition

These are notes on Dynamic Mode Decomposition (DMD), a data-driven method for finding low-rank structures in high-dimensional data sets. These notes come mainly from two lectures by Prof. Nathan Kutz from the University of Washington but also from other sources and my own previous study of DMD.

This is a beta version of an article. You can help me make it better by spotting errors or suggesting improvements!

DMD

Objectif Morse - an Arduino and C++ journey through transmitting messages in Morse

Have you ever wondered what if there were two computers talking to each other using Morse code? One would send a message with light signals and the other would collect the light and understand the message? No cable connecting the computers. The information simply carried by light that travels through the air.

Well, here it is! In the Objectif Morse project you will make an interesting use of Arduino, electronic circuits and C++ while transmitting messages in Morse alphabet between computers.

This work has been produced as part of the Arduino Study Group meetings at the Jagiellonian University.

objectif_morse

POD and DMD decomposition of numerical and experimental data

Using two data decomposition methods: Proper Orthogonal Decomposition (POD) and Dynamic Mode Decomposition (DMD), as well as concepts from linear algebra and dynamical systems within Matlab scripts, I searched for low-rank structures in the pulsating Poiseuille flow and in the velocity field of the flow behind a cylinder.

This work has been produced as part of the Short Training Programme at the von Karman Institute for Fluid Dynamics, under supervision of Professor Miguel A. Mendez.

POD_DMD

Proof of the associative law for matrices

I was reviewing the amazing MIT 18.06 course on linear algebra. When the associative law appeared on the blackboard, Professor Strang said: It’s not that easy to prove that this is correct. You have to go into the gory details of matrix multiplication, do it both ways and see that you come out the same.

So I said: let’s do it!

MIT-G-Strang

Notes on Gaussian Process Regression

Following a great lecture by Professor Anna Scaife I decided to reproduce her figures and write a small note on Gaussian Process Regression (GPR).

transport_phenomena

Thermal properties of coffee containers and Newton’s law of cooling

How do different coffee containers compare in keeping your coffee warm? We perform experimental measurements using Arduino and fit the results with Newton’s theoretical model for describing cooling. This article is published in Neutrino, a popular science magazine issued by the Physics department at the Jagiellonian University:

K. Zdybał, Badanie własności izolacyjnych termosów. Zastosowanie prawa stygnięcia Newtona, Neutrino, 33 (2016) 13-18

neutrino

Under construction

Fluid Toolbox

Fluid Toolbox is a collection of human-readable, pseudo-random study notes. It contains descriptions and explanations of various fluid mechanics concepts. It is meant to be used complimentary to the regular textbook since it may provide additional insights but it will not substitute the thoroughness of the standard course in the subject. I believe that working side by side with the course, it can become a useful toolbox of concepts that are ready-to-use and ready-to-understand.

This document is still under construction… Would you like to help in completing it?

transport_phenomena

Computational examples in transport phenomena with Python

I collected a few interesting computational examples in transport phenomena in a form of a tutorial and created a set of Python codes to accompany a better understanding of the results.

This tutorial has been produced after taking two great courses offered by TU Delft: The Basics of Transport Phenomena and Advanced Transport Phenomena.

This document is still under construction… Would you like to help in completing it?

transport_phenomena

Condensed notes on combustion

These are dense notes on combustion concepts. They are a collection of knowledge that I acquired at the beginning of my PhD, being completely unfamiliar with the combustion science. They start from the preliminary notions that are needed in understanding the combustion language. Next, they introduce the elements of thermodynamics relevant to the study of combustion, and finally present the governing differential relations for reactive flows in various systems.

This document is still under construction… Would you like to help in completing it?

combustion

Tools

Standard Atmosphere Calculator


Keep calm and

\(\frac{\partial \rho Y_i}{\partial t} = - \nabla \cdot (\rho Y_i \mathbf{v}) - \nabla \cdot \mathbf{j}_i + \omega_i\)

Jump to the top of the page ^