Abstract
Reconstructing the complex internal structures of porous media is essential for predicting physical properties but often suffers from data scarcity and high computational costs. This paper proposes a Conditional Generative Adversarial Network (CGAN) framework capable of reconstructing full 2D microstructures from as little as 4% of the original image data. By incorporating custom pattern and porosity loss functions, the model ensures physical consistency and statistical accuracy. The proposed method achieves a 20x speedup compared to traditional Direct Sampling algorithms, offering a robust solution for rapid material characterization.
Introduction
Understanding the microstructure of porous media—such as soil, rock, and battery electrodes—is critical for modeling fluid flow and electrical conductivity. However, high-resolution imaging techniques like Scanning Electron Microscopy (SEM) are often limited by a small field of view, capturing only a fraction of the sample. Traditional reconstruction methods, such as Multi-Point Statistics (MPS) or Direct Sampling (DS), are computationally intensive and often struggle with extremely sparse inputs, leading to unnatural artifacts.
Methodology
The core of the proposed system is a CGAN "conditioned" on partial image data. Unlike standard GANs that generate images from noise, this model uses a small fragment of real data to guide the generation process.
Architecture
The generator follows a U-Net-based architecture (specifically the BicycleGAN design). It utilizes an encoder to compress the input into a latent code and a decoder to expand it back into a full 128x128 image. Skip connections are employed to preserve fine-grained spatial details from the input fragment.
Loss Functions and Stochasticity
To ensure the reconstructions are scientifically valid rather than just visually plausible, the network is trained using a composite loss function:
- Adversarial Loss: Encourages the discriminator to perceive the output as "real."
- L1 Loss: Ensures the reconstructed image exactly matches the provided "hard data" fragment.
- Pattern Loss: A novel metric that aligns the distribution of local textures with the target material.
- Porosity Loss: Constrains the void-to-solid ratio to match the physical properties of the source material.
To account for the many possible ways a blank area can be filled, the researchers injected Gaussian noise into the network. This allows the tool to act as a probabilistic engine, generating multiple statistically valid realizations from a single input.
Results and Discussion
The model was evaluated on four distinct datasets: silica material, battery material, sandstone, and an anisotropic medium.
- Efficiency: Once trained, the model generates a 128x128 image in approximately 0.08 seconds on a standard CPU, representing a ~20x speedup over conventional Direct Sampling methods.
- Accuracy: Morphological benchmarks, including two-point correlation ($S_2$) and lineal-path ($L$) functions, confirmed that the AI-generated pores behave like real structures.
- Handling Sparse Data: The model successfully reconstructed silica material using only a 26x26 pixel fragment to generate a 128x128 image—effectively "guessing" 96% of the data correctly.
Conclusion
The CGAN-based approach provides a significant advancement in porous media reconstruction, combining high speed with physical accuracy. While performance on anisotropic materials (where pores have a specific orientation) shows room for improvement, the framework's ability to handle extreme data loss makes it a powerful tool for material science. Future work will focus on extending this architecture to 3D-to-3D reconstructions.
Summary updated