Reaction diffusion system prediction based on convolutional neural network

Angran Li, Ruijia Chen, Amir Barati Farimani, Yongjie ZhangScientific 2020

Abstract

The reaction-diffusion system is naturally used in chemistry to represent substances reacting and diffusing over the spatial domain. Its solution illustrates the underlying process of a chemical reaction and displays diverse spatial patterns of the substances. Numerical methods like finite element method (FEM) are widely used to derive the approximate solution for the reaction-diffusion system. However, these methods require long computation time and huge computation resources when the system becomes complex. In this paper, we study the physics of a two-dimensional one-component reaction-diffusion system by using machine learning. An encoder-decoder based convolutional neural network (CNN) is designed and trained to directly predict the concentration distribution, bypassing the expensive FEM calculation process. Different simulation parameters, boundary conditions, geometry configurations and time are considered as the input features of the proposed learning model. In particular, the trained CNN model manages to learn the time-dependent behaviour of the reaction-diffusion system through the input time feature. Thus, the model is capable of providing concentration prediction at certain time directly with high test accuracy (mean relative error <3.04%) and 300 times faster than the traditional FEM. Our CNN-based learning model provides a rapid and accurate tool for predicting the concentration distribution of the reaction-diffusion system.

Introduction

Reaction-diffusion (RD) systems are fundamental mathematical frameworks for describing the interaction and spatial spread of substances. Governed by partial differential equations (PDEs), these systems model diverse phenomena ranging from chemical reactions and combustion to biological pattern formation like animal fur markings.

Traditionally, solving these equations relies on numerical methods such as the Finite Element Method (FEM). While accurate, FEM is computationally intensive, requiring spatial discretization into fine meshes and iterative time-stepping. This "brute force" approach becomes a significant bottleneck as system complexity or simulation duration increases, hindering real-time design and rapid scenario testing.

Methodology

To address the computational limitations of traditional solvers, this study proposes a machine learning surrogate model. An encoder-decoder convolutional neural network (CNN) was developed to map system parameters directly to concentration distributions.

Workflow Comparison

The proposed workflow replaces the iterative loops of FEM with a direct prediction path. By training on high-fidelity data, the CNN learns to approximate the solution manifold of the RD system.

Comparison of the traditional FEM workflow and the proposed machine learning workflow.

Model Architecture and Features

The CNN architecture utilizes an encoder-decoder structure. The encoder compresses input features into a latent representation, while the decoder reconstructs the high-resolution concentration map.

Key innovations include:

  • Time as an Input Feature: Unlike iterative solvers, the model includes time ($t$) as an input channel. This enables "instantaneous" prediction at any specific time point without calculating intermediate states.
  • Parametric Mapping: To handle non-square physical domains (e.g., an arc pipe), the researchers mapped the geometry into a parametric unit square, making it compatible with standard CNN operations.
  • Multi-Channel Input: The network processes a 4-channel tensor representing geometry (including internal obstacles), boundary conditions, diffusion coefficients ($D$), and reaction rates ($K$).
Detailed architecture of the encoder-decoder CNN for reaction-diffusion prediction.

Data Generation and Training

A dataset of 1,050,000 samples was generated using a high-fidelity FEM solver. The simulations were performed on a 2D one-fourth arc pipe geometry. To ensure robustness, 21 different geometric configurations were used, including variations with a rectangular "hole" at different locations to simulate complex boundary interactions. The model was trained on 75% of the data, with the remaining 25% reserved for testing generalization to unseen parameters.

Results

The CNN-based model demonstrated exceptional performance in both speed and accuracy:

  • Computational Efficiency: The CNN achieved a prediction time of 0.155 seconds, compared to 46 seconds for the FEM solver—a speedup of approximately 300x.
  • Accuracy: The model achieved a mean relative error (MRE) of less than 3.04%. It remained stable even during rapid shifts in chemical distribution.
  • Robustness: The system accurately captured concentration profiles across various $K/D$ ratios, though a slight decrease in accuracy was noted in highly reaction-dominant regimes.

Discussion and Conclusion

This research highlights the potential of deep learning as a powerful "shortcut" for complex physical simulations. By treating time and geometry as visual features, the CNN effectively learns the underlying physics of PDEs.

Future work will focus on extending the model to 3D spaces and multi-component systems. Additionally, exploring more complex architectures to improve stability in high $K/D$ ratio scenarios and handling more intricate geometries remains a priority. In conclusion, the proposed CNN model offers a rapid, accurate, and scalable tool for predicting reaction-diffusion dynamics.

Summary updated

BibTeX
@inproceedings{li2020reaction,
  author = {Angran Li and Ruijia Chen and Amir Barati Farimani and Yongjie Zhang},
  title = {{Reaction diffusion system prediction based on convolutional neural network}},
  booktitle = {Scientific},
  year = {2020},
  doi = {10.1038/s41598-020-60853-2},
}
Figure