원시데이터 수집 시스템
선정목록으로

Accurately predicting transport properties of porous fibrous materials by machine learning methods

직접 관련 수소연료전지 · (7) MEA(막전극접합체) (5) 연료전지용 수분제어장치(가습기)(6) PEM(고분자전해질막)

기본 정보

저자
  1. Taylr Cawte — Department of Mechanical and Industrial Engineering, Thermofluids for Energy and Advanced Materials Laboratory, Faculty of Applied Science and Engineering, University of Toronto, Toronto, Canada
  2. Aimy Bazylak — Department of Mechanical and Industrial Engineering, Thermofluids for Energy and Advanced Materials Laboratory, Faculty of Applied Science and Engineering, University of Toronto, Toronto, Canada
DOI
10.1002/elsa.202100185
저널
Electrochemical Science Advances
발행년도
2022
발행기관
Wiley
피인용수
11
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1002/elsa.202100185
토픽
Electrocatalysts for Energy Conversion
OpenAlex ID
W4224119702

평가 내용

관련도
직접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(5) 연료전지용 수분제어장치(가습기), (6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
1.00
근거 용어
gas diffusion layer, PEM fuel cells, porous fibrous materials, machine learning, transport properties
판단 근거
이 논문은 PEMFC의 핵심 구성 요소인 가스확산층(GDL)의 다공성 섬유 구조와 그에 따른 물질 전달 특성(투과도, 확산도)을 머신러닝으로 예측하는 연구를 다루고 있습니다.
R&D 활용 포인트
PEMFC용 GDL 및 가스확산층 소재 설계 시, 머신러닝 모델을 활용하여 섬유의 구조적 파라미터에 따른 성능을 사전에 예측함으로써 R&D 효율성을 높일 수 있습니다.
평가 입력
본문 85,012자 중 30,032자 발췌

초록

Abstract Machine learning algorithms trained on data gathered from stochastically generated gas diffusion layers (GDLs) were used to predict key transport properties that govern effective mass transport behaviour in polymer electrolyte membrane fuel cells. Specifically, we present the largest database in the present literature of stochastically generated fibrous GDL substrates (containing over 2000 unique materials) and the associated structural and transport properties determined via pore network modelling. Seven established machine learning algorithms were trained to predict the effective single‐phase permeability ( k sp ) and diffusivity ( D sp ), and the relative permeability ( k r ) and diffusivity ( D r ) of the generated materials using well‐defined material properties as input features. Gradient boosting regression (GBR), artificial neural network, and support vector regression were the best performing predictors of the single‐phase properties, all of which exhibited statistically insignificant differences in error. GBR provided the best prediction accuracy of relative transport properties.

본문 85,012자

본문 펼치기
g/ / Received: 17 October 2021 Revised: 22 December 2021 Accepted: 24 December 2021 # Accurately predicting transport properties of porous fibrous materials by machine learning methods Taylr Cawte Aimy Bazylak Department of Mechanical and Industrial Engineering, Thermofluids for Energy and Advanced Materials Laboratory, Faculty of Applied Science and Engineering, University of Toronto, Toronto, Canada Correspondence Aimy Bazylak, Department of Mechanical and Industrial Engineering, Faculty of Applied Science & Engineering, University of Toronto, 5 King’s College Road Toronto, ON M5S 3G8, Canada. [Email: aimy.bazylak@utoronto.ca](mailto:aimy.bazylak@utoronto.ca) Funding information Natural Sciences and Engineering Research Council of Canada, Grant/Award Number: Discovery Grant 1 INTRODUCTION Abstract Machine learning algorithms trained on data gathered from stochastically gen erated gas diffusion layers (GDLs) were used to predict key transport proper ties that govern effective mass transport behaviour in polymer electrolyte mem brane fuel cells. Specifically, we present the largest database in the present liter ature of stochastically generated fibrous GDL substrates (containing over 2000 unique materials) and the associated structural and transport properties deter mined via pore network modelling. Seven established machine learning algo <u>rithms were trained to predict the effective single-phase permeability (</u> _<u>k</u>_ _~~sp~~_ <u>) and</u> diffusivity ( _Dsp_ ), and the relative permeability ( _kr_ ) and diffusivity ( _Dr_ ) of the gen erated materials using well-defined material properties as input features. Gra dient boosting regression (GBR), artificial neural network, and support vector regression were the best performing predictors of the single-phase properties, all of which exhibited statistically insignificant differences in error. GBR provided the best prediction accuracy of relative transport properties. K E Y WO R D S fuel cell, gas diffusion layer, machine learning, multiphase flow, polymer electrolyte membrane Porous materials are integral in the design and operation of renewable energy devices, such as batteries, electrolyzers, and fuel cells. For polymer electrolyte membrane (PEM) fuel cells, in particular, the gas diffusion layer (GDL) is a porous fibrous material, which facilitates several key functions in the cell. The GDL enables electron transport, ensures PEM hydration, and controls the delivery of reactant gasses to, and removal of byproduct water from, reaction sites within the cell. The latter is intrinsically linked with the overall performance of the fuel cell, understanding the dynamics of chemical species transport is vital in order to optimize GDL and fuel cell design. Researchers have several tools at their disposal to evaluate the transport of chemical species within PEM fuel cells and the GDL. Traditionally, these tools have included empirical models, direct numerical simulation, and pore network modelling. Empirical models are well established in porous media analysis and have been used to determine the permeability and diffusivity of porous materials from experimentally determined parameters. <sup>[1,2]</sup> Computational fluid dynamics (CFD) is used to directly solve the Navier-Stokes equations using bulk average properties to approximate the fuel cell layers such as the GDL. CFD has been used to predict water distribution within an operating fuel cell, <sup>[3]</sup> exploring the impacts of GDL compression on species transport, <sup>[4,5]</sup> and predicting the consumption [This is an open access article under the terms of the Creative Commons Attribution-NonCommercial-NoDerivs License, which permits use and distribution in any medium,](http://creativecommons.org/licenses/by-nc-nd/4.0/) provided the original work is properly cited, the use is non-commercial and no modifications or adaptations are made. © 2022 The Authors. _Electrochemical Science Advances_ published by Wiley-VCH GmbH. of reactant species during operation. <sup>[6]</sup> Lattice-Boltzmann modelling has been used to simulate two-phase flow within the GDL by modelling streaming and collision processes of fluid densities mapped to a lattice. <sup>[7–9]</sup> Pore network modelling is a favourite among fuel cell researchers concerned with multiphase transport in the GDL, as this method resolves pore-scale physics to determine the impact of porous media structure on the transport of chemical species. <sup>[10–17]</sup> More recently, machine learning methods have emerged as useful tools in the characterization of several classes of porous materials. <sup>[18–25]</sup> Machine learning is a branch of artificial intelligence that uses statistics and a variety of computational techniques to find patterns in large amounts of data. Supervised machine learning specifically, uses labelled datasets of input-output pairs to perform regression (real value prediction) or classification tasks (assigning a group based on shared qualities). In supervised regression, a machine learning algorithm maps inputs to outputs directly by observing the input-output pairs in a given dataset and constructing a function that minimizes the error in every prediction made on the data. <sup>[26]</sup> A subfield of machine learning is deep learning, which specifically refers to the use of algorithms based on artificial neural networks (ANNs). ANNs are a computational framework inspired by the human brain, which uses feedforward propagation, <sup>[27]</sup> backpropagation, <sup>[28]</sup> and gradient descent algorithms to optimize nodes and edges in a graph. The nodes are non-linear activation functions that output a nonlinearly transformed signal if the input signal meets a given threshold (i.e. the node is activated). <sup>[29–31]</sup> Signals from each node are transmitted to other nodes in the graph via weighted edges. The weight of an edge scales the value being transmitted and is learned during the optimization process (also called training). Typically, these nodes and edges are arranged in layers. Signals are transmitted along the edges of the graph from the nodes in the input layer, through the hidden layers where the signals are non-linearly transformed by the nodes, to the output layer where a prediction is made (feed-forward propagation). <sup>[27]</sup> The weights in the graph are optimized by minimizing the prediction error with respect to every edge in the graph (backpropagation). <sup>[28]</sup> The resultant graph (now a trained model) is a non-linear function that maps inputs directly to outputs. Machine learning and deep learning are capable of learning functions that map inputs to outputs producing minimal error and could provide porous media researchers with deeper insights into the complex relationship between structure and transport in renewable energy devices. While machine learning and deep learning are closely related fields, each has unique advantages over one another. Some machine learning models such as lin g ear regression, decision trees, and k-nearest neighbours offer increased interpretability over deep learning methods. Decision trees, for example, are highly interpretable machine learning models which learn simple decision rules that best split data into smaller subsets. These rules can be directly interpreted by a user to determine how a given decision tree model arrived at a particular prediction. Deep learning models, by comparison, are much more opaque, and while interpretability of deep learning models is a subject of interest, <sup>[32,33]</sup> the non-linear computations of an ANN make it exponentially more difficult to determine how a deep learning model arrived at a prediction. Understanding how a model arrived at a given prediction is important in many contexts, especially when the algorithm involves interactions with people, thus interpretable models are desirable. A significant advantage of deep learning is the ability to reduce the degree of feature engineering required. For traditional machine learning algorithms, it is imperative that features be properly engineered to achieve acceptable prediction quality and stable training. These engineered features may be completely new features made from raw data, or simply transformed values. For deep learning models, the non-linear transformations in each hidden layer are able to perform these feature engineering tasks after learning them completely independently in the training process. This significantly simplifies the degree of required feature engineering to train a successful model. <sup>[34]</sup> Both machine learning and deep learning are powerful tools that have been used to predict transport properties of granular porous media like sintered powders, packed sphere beds, soils, and sponges. <sup>[18–25]</sup> The focus of current literature using machine learning in porous media has been to predict the transport properties of granular porous media in a single-phase condition, that is, when the transport of only one phase (water, air, oil etc.) is considered. Wu et al. used convolutional neural networks (CNNs, a special type of neural network which uses image data) to predict the diffusivity of chemical species in two-dimensional (2D) images of porous media (generated via the quartet structure generation set (QSGS) algorithm). <sup>[18]</sup> The researchers showed improved results when the CNNs were supplemented with field knowledge, such as material porosity. <sup>[18]</sup> Kamrava et al. solved the Navier-Stokes equations with a combined CNN and recurrent neural network for flow through a porous membrane from nano-computed tomography images. <sup>[25]</sup> Wei et al. showed that the use of CNNs and conventional machine learning methods are more accurate when predicting thermal conductivity in 2D porous media than using the empirical models like the Maxwell-Euken or Bruggeman models. <sup>[19]</sup> Wei et al. found that using physical descriptors, such as shape factor and perpendicular anisotropy, significantly improved the accuracy of conventional machine learning models when predicting thermal conductivity. <sup>[20]</sup> Similarly, the permeability and structural characteristics of granular porous media and digital rocks have been predicted with CNNs, <sup>[21,22]</sup> conventional machine learning methods, <sup>[22,23]</sup> and traditional feed-forward neural networks. <sup>[23,24]</sup> Despite the usefulness of machine learning in general porous media, these tools have yet to be applied to porous fibrous materials. Machine learning adoption in the field of porous media is nascent, but it is imperative that the porous media community take advantage of these powerful tools. Current modelling techniques, such as pore network modelling and CFD, use approximations of governing physical equations to determine species transport while machine learning methods have the capability of solving these governing equations directly. The underlying governing equations for species transport in porous materials are the NavierStokes equations. Machine learning has been combined with physical models to solve the Navier-Stokes equations for specific flow configurations in hybrid physical models. <sup>[35–37]</sup> These methods must be used to investigate the transport of chemical species in fibrous materials like the GDL, as they could provide greater insight into the evolution of water and transport of gaseous species in operating fuel cells. Further, the data-driven material discovery has become a topic of great import <sup>[38–40]</sup> and presents an opportunity for rapid development and prototyping of novel materials which may serve to increase the efficiency of renewable energy devices such as the PEM fuel cell. The work herein provides a benchmark study that evaluates the ability of a variety of established machine learning methods to predict the permeability and diffusivity of water and air in the GDL, under single-phase and multiphase flow conditions. Further, we investigate the impact of feature importance on model prediction error using permutation feature importance. The data provided to the machine learning algorithms (which was used to facilitate the learning process) was created via stochastic material generation and pore network modelling and is regarded as the ground truth for the investigation. The results of this investigation highlight the characteristics of the generated data, the best performing machine learning models, and the training conditions required to achieve said results. 2 METHODS In this work, we are the first to apply machine learning algorithms to predict the transport properties of PEM fuel cell GDLs. A database of GDL materials was stochastically generated, and their transport properties were subsequently calculated to provide training and evaluation data g for selected algorithms. The algorithms were trained and optimized via a 5-fold cross-validated grid search, and a final model evaluation was conducted using the best performing models. All computations were conducted on a consumer-grade desktop computer using a Ryzen 5 2600 Six-core processor at 3.4 GHz, 32.0 GB of RAM, and an Nvidia 2070 Super graphics processing unit (used specifically for training the artificial neural network, discussed in Section 2.2). 2.1 Database generation The database of materials was generated in three steps. First, a three-dimensional (3D) GDL substrate material was stochastically generated. The 3D volume of the generated material was segmented using the SNOW algorithm proposed by Gostick, <sup>[13]</sup> and the pore network was extracted. Ordinary percolation and transport simulations were conducted on the extracted pore network to determine the single-phase and multiphase transport properties. A database of 2280 materials was generated to train and evaluate the machine learning algorithms. 2.1.1 Material generation Binary images of GDL materials were generated using an open-source python package (PoreSpy, <sup>[41]</sup> cylinder generator), an example rendering is shown in Figure 1a. To create this binary image, a number of cylinders ( _ncyl_ ) of a defined radius ( _rcyl_ ) were stochastically placed in a domain of 1000 × 1000 × 250 voxels (vx). Cylinders extending past the domain boundaries were truncated. Each cylinder was placed in the domain with in- and out-of-plane rotations, ? and ? (Figure 1b,c), respectively, to maximum values of Θ? and Φ?. Each material was assigned a randomly selected fluid contact angle (using a uniform distribution from ∈ [100 <sup>o</sup>, 140 <sup>o</sup> ]), to represent the variation of hydrophobic treatments applied to commercially available GDLs. <sup>[42]</sup> The generation constraints (outlined in Table 1) were selected to create materials with a broad set of transport properties that were physically representative of commercial GDL materials. The selected range of cylinder radii was based on several commercial GDL characterizations which found the mean fibre diameter to range between 5 and 10 _μ_ m. <sup>[43–46]</sup> The porosity of the generated materials could not be directly controlled so the range of ncyl was restricted to ensure the generated materials conformed to a range of porosities exhibited by commercial materials. Any generated material with porosity outside the range of 0.50–0.95 was rejected, to ensure that the materials reflected commercial GDL substrates. <sup>[43,47]</sup> g F I G U R E 1 (a) A 3D rendering of an example stochastically generated material with 1000 × 1000 × 250 voxel domain size (at 1E-6 m px <sup>−1</sup> resolution), the overlapping cylinder structure is designed to mimic a carbonaceous gas diffusion layer substrate (b) In-plane rotation (Θ) and c. out of plane rotation (Φ) of a single fibre TA B L E 1 Generation constraints for gas diffusion layer substrates where _R_ is a random variable sampled from the uniform distribution over the interval indicated in square brackets ~~Parameter~~ ~~Constraint~~ Domain size ( _x_, _y_, _z_ ) (1000, 1000, 250) vx ~~Resolution~~ ~~1E-6 m voxel~~ <sup><u>−1</u></sup> ΘM (Maximum in-plane fibre rotation) ?∈[0, 90] <sup>◦</sup> ~~Φ~~ ? ~~(Maximum out-plane fibre rotation)~~ ~~?∈[0,~~ ~~90]~~ <sup><u>◦</u></sup> Cylinder radius ( _rcyl_ ) ?∈[1, 12] vx ~~Number of cylinders (~~ _~~n~~_ _cyl_ ~~)~~ ~~?∈[100,~~ ~~600]~~ Contact angle (Θ?) ?∈[100, 140] <sup>◦</sup> 2.1.2 Network extraction An extracted pore network describes the spatial and connective properties of the void spaces in a porous material. By extracting the pore network from a binary image, the complex pore space is mapped onto a simpler irregular lattice of pores (approximated as spheres) connected by throats (approximated as 2D cylinders, i.e. cylinders of 0 volume). The geometric information (volume, connectivity, spatial position, etc.) of the pore space is conserved, and pore-scale physics is used to resolve transport phenomena using pore network modelling. In this work, the pore networks of each generated binary image were extracted using a custom marker-based watershed algorithm (i.e. the SNOW algorithm) implemented using the PoreSpy python package developed by Gostick et al. <sup>[13,41]</sup> The SNOW algorithm was designed specifically for use with highly porous materials, such as the GDL of a PEM fuel cell. <sup>[12,14,48]</sup> To prepare the extracted network for percolation and transport simulations, boundary pores were added to the network, and disconnected clusters were removed using the open-source python pore network modelling package, OpenPNM. <sup>[48]</sup> Boundary pores are synthetic pores, with zero volume, added to the original extracted pore network to facilitate the application of boundary conditions used for percolation and transport simulations. <sup>[15]</sup> Boundary pores are computationally necessary to ensure that the hydraulic conductance of all real pores in the network is included in pore network modelling calculations (further elaborated on in Section 2.1.3). Some authors have presented methods of adding boundary pores that use image processing techniques <sup>[15,49]</sup> ; however, we chose a simpler method that was employed in [14, 50]. For completeness, the method of adding boundary pores is described here. Boundary pores were added to the top and bottom faces of the extracted networks by first identifying the top and bottom surfaces of the material. The top and bottom surfaces of the material were defined as _xy_ -planes located at the maximum and minimum pore _z_ coordinate (respectively), and each pore that intersected these _xy_ -planes was identified as a “surface pore”. Each surface pore was assigned a boundary pore (in a 1:1 ratio) and connected via uniformly long throats. After boundary pores were added, disconnected clusters (isolated pores or groups of pores) were removed. The reader is referred to the following resources for an in-depth discussion of the network extraction, <sup>[10,49,50]</sup> the SNOW algorithm, <sup>[13]</sup> and pore network modelling/manipulation with OpenPNM. <sup>[48]</sup> With a fully prepared network, percolation and transport simulations were performed to determine the material transport properties. 2.1.3 Percolation and transport simulations The single-phase permeability ( _ksp_ ) and the single-phase diffusivity of air ( _Dsp_ ) were calculated using the extracted pore network of each generated material. Since an operating fuel cell is generally partially saturated, <sup>[16,51]</sup> we also evaluated the transport properties of pore networks that were numerically invaded with liquid water using the ordinary percolation algorithm. The relative permeability of water ( _kr_ ) and relative diffusivity of air ( _Dr_ ) were calculated to determine how the percolation of water through the network impacted the transport of water and air through the network at varying saturations. Herein all references to relative permeability are with respect to water, and all references to relative diffusivity are with respect to air. To numerically invade a generated material, ordinary percolation (implemented in OpenPNM), was performed on each extracted network. Ordinary percolation in pore network modelling is analogous to the experimental technique of porosimetry, where a non-wetting fluid is forced into the pore space of a porous medium by gradually increasing applied pressure. In ordinary percolation, the ability of the fluid to intrude into the pore space is based on whether or not the applied pressure is greater than the capillary pressure ( _PC_ [N m <sup>–2</sup> ]) of each pore, as defined by the Washburn equation. <sup>[52]</sup> ?? = − <sup><u>2?cos (Θ?)</u></sup> (1) ? where ? [N m <sup>–1</sup> ] is the water-air interfacial tension, Θ? [ <sup>o</sup> ] is the contact angle (between the liquid–air and the liquid-solid interface), and _r_ [m] is a throat radius. In this investigation, bond (throat) based ordinary percolation was applied using the top and bottom boundary pores as percolation inlets and outlets respectively (reflecting the percolation of water from the catalyst layer to a flow field in an operating fuel cell). The _PC_ of all throats in the network were iteratively compared to the applied pressures (100 logarithmically spaced pressures from lowest to highest _PC_ in the network). Throats (and connecting pores) were converted from uninvaded to invaded if a) the applied pressure exceeded the throat _PC_ and b) the throat was connected to the percolation inlet via a continuous path of invaded throats. The invasion sequence representing discrete states of saturation was then used to calculate the transport properties of the generated material under partially saturated conditions. To calculate permeability, the flow through the network was modelled as flow through a series of conduits, where a conduit is composed of half a pore connected by a full throat to another half pore, further elaborated in [48, 53]. The net flow rate through each pore in the network (?? [m <sup>3</sup> s <sup>−1</sup> ]) was then determined by using the conservation of mass equation for a given pore _i_ g where pore _i_ has _n_ neighbour pores, ?ℎ,?? [m <sup>4</sup> s kg <sup>−1</sup> ] is the conduit hydraulic conductance, and _Pi_ and _Pj_ [kg m <sup>−1</sup> s <sup>−2</sup> ] are the pressure in pores _i_ and neighbouring pore _j_ . The conduit hydraulic conductance ?ℎ,??, which describes the ease with which a fluid moves through a conduit was calculated using the Hagen-Poiseuille model (Equation (3)) <sup>[54]</sup> and linear resistor theory ?ℎ = <sup><u>??4</u></sup> (3) 8?? where _R_ [m] is the conduit element radius, _L_ [m] is the conduit element length, and ? [kg m <sup>−1</sup> s <sup>−1</sup> ] is the dynamic viscosity of the fluid (water). By using linear resistor theory, the hydraulic conductance for each element in the conduit geometry can be found according to <u>1</u> + ?ℎ, ? <u>1</u> + ?ℎ,? <u>1</u> ?ℎ,?? <u>1</u> = ?ℎ,? (4) ?? −?? = 0 (2) ) where ?ℎ,?, ?ℎ, ?, and ?ℎ,? are the hydraulic conductances calculated using the Hagen-Poiseuille model for pore _i_, throat _t_, and pore _j_, respectively. By applying Equation (2) to every pore in the network, a system of linear equations was established of the form ??= ? (5) where _A_ is a matrix of all calculated values of hydraulic conductance, _X_ is a matrix of the unknown pressures in each pore, and _B_ is a matrix of the net flow through each pore. By inverting the matrix A and solving the system of linear equations, the net flow rate through the entire network _Q_ [m <sup>3</sup> s <sup>−1</sup> ] can be determined. The effective permeability _k_ [m <sup>2</sup> ] was then calculated using Darcy’s law <u>???</u> ?= (6) ?(???? −???) Where _Q_ [m <sup>3</sup> s <sup>−1</sup> ] is the net flow through the network, ? [kg m <sup>−1</sup> s <sup>−1</sup> ] is the dynamic viscosity, _L_ [m] is the domain length ( _z_ -direction), _A_ [m <sup>2</sup> ] is the domain area ( _xy_ -plane), and ???? and ??? are prescribed boundary pressures. Boundary pressures for the permeability calculations were 101325 Pa at the flow field side and 0 Pa at the catalyst layer side, to represent an imposed pressure difference of 1 atm across the GDL. The permeability calculation for an example network is provided in the appendix. To calculate the single-phase permeability _ksp_, Equation (6) was employed when saturation was 0, that is, prior to invasion with the ordinary percolation algorithm. Subsequently, the relative permeability _kr,i_ was calculated by applying Equation (7) at every increment of pressure (i.e. saturation ≠ 0) in ordinary percolation (100 instances ?? = ∑? ?=1 ?ℎ,?? ( between the minimum and maximum network _PC_ ), and normalizing the calculated effective permeability (Equation (6), _ki_ ) by the single-phase permeability for that material, according to ??, ? = <sup><u>??</u></sup> ??? (7) g is, prior to invasion with the ordinary percolation algorithm. Subsequently, the _Dr,i_ was calculated by applying Equation (12) at every increment of pressure (i.e. saturation ≠ 0) in ordinary percolation (100 instances between the minimum and maximum network _PC_ ), and normalizing the calculated effective diffusivity (Equation (11), _Di_ ) by the single-phase diffusivity for that material, according to where _i_ denotes the _i_ <sup>_th_</sup> step of percolation that the relative/effective permeability was calculated for. Similarly, diffusivity was determined by first calculating the net molar flow (?? [mol s <sup>−1</sup> ]) through each pore in the network using the conservation of mass equation for a given pore _i_ ??,? = <sup><u>??</u></sup> ??? (12) ?? −?? = 0 (8) ) ?? = ∑? ?=1 ??,?? ( where pore _i_ has _n_ neighbour pores, the conduit diffusive conductance is ??, ??[m <sup>3</sup> s <sup>−1</sup> ] and ?? and ?? [mol m <sup>−3</sup> ] are the concentrations of air in pores _i_ and _j_ . The conduit diffusive conductance was defined as ?? = ???? (9) Where ? [m] is the shape factor for the conduit element and ??? [m <sup>2</sup> s <sup>−1</sup> ] is the diffusion coefficient for species A diffusing through species B. Again, through linear resistor theory, the conduit hydraulic conductance can be found according to <u>1</u> + ??, ? <u>1</u> + ??,? <u>1</u> ??,?? <u>1</u> = ??,? (10) where _i_ denotes the _i_ <sup>_th_</sup> step of percolation that the relative/effective diffusivity was calculated for. The influence of boundary pores on percolation and transport simulation accuracy is described as follows. During percolation, inlet pores are initially set as invaded. If surface pores were used as inlets, an initial saturation of 0 would not be achievable, which is necessary to calculate single-phase transport properties. By using boundary pores with zero volume as inlets, there is no contribution to the saturation when they are initially invaded during ordinary percolation. This enables an initial saturation of 0, and therefore the accurate calculation of the single-phase transport properties. Boundary pores are also required to include flow resistance from surface pores. Since a conduit is defined as a half pore connected by a full throat to another half pore, without the added boundary pores, the conductance of the half pore at the surface of the network would not be included in any pore network modelling calculations. By adding zero volume boundary pores to the network, we account for the conductance of surface pores without any influence of the boundary pores on the transport calculations. The process of generating material, extracting the pore network, and calculating the transport properties was repeated 2280 times to create a robust dataset of GDL materials with saturation profiles from 0% to 100% and associated transport properties. This dataset was used to train and evaluate the selected machine learning algorithms. 2.2 Model training and evaluation First, in Section 2.2.1, we will discuss in detail how, prior to training, the data was cleaned, separated into training and test sets, and transformed to increase learnability by the algorithms. All algorithms were trained and optimized via a 5-fold cross-validated grid search to predict _Dsp_, _ksp_, _Dr_, and _kr_, that is, the target variables. The optimized models were evaluated on the test set data. Then in Section 2.2.2, we discuss permutation feature importance; a method of elucidating how important certain features are for accurate predictions for a given model. where ??,?, ??, ?, and ??,? are the diffusive conductances calculated using Equation (9) for pore _i_, throat _t_, and pore _j_, respectively. By applying Equation (8) to every pore in the network, the system of linear equations can be solved for the net mass flow through the entire network ?[mol s <sup>−1</sup> ], which can then be used to calculate the diffusivity ? [m <sup>2</sup> s <sup>−1</sup> ] using Fick’s first law <u>??</u> ?= (11) ?(??? −????) where _L_ [m] is the domain length ( _z_ -direction), _A_ [m <sup>2</sup> ] is the domain area ( _xy_ -plane), and ??? and ???? [mol m <sup>−3</sup> ] are prescribed boundary concentrations. Boundary conditions for the diffusivity calculations were 1 mol m <sup>−3</sup> at the flow field side and 0 mol m <sup>−3</sup> at the catalyst layer, to represent a 1 mol m <sup>−3</sup> imposed concentration difference across the GDL. To calculate the effective single-phase diffusivity _Dsp_, Equation (11) was employed when saturation was 0, that g F I G U R E 2 The relative diffusivity (green) and permeability (blue) were calculated at each step of saturation (black) by normalizing the absolute diffusivity/permeability by its single-phase counterpart. The dashed black lines indicate where water infiltration begins (left) and when the material is fully saturated (right). The sample window for each material and its corresponding multiphase transport properties were determined by omitting data points corresponding to data instances less than 1% saturation or greater than 99% saturation (greyed area) in an effort to reduce redundancy in the collected data 2.2.1 Model training and optimization To predict the transport properties of the generated materials and determine if a specific machine learning algorithm was best suited to predict transport in GDLs, a suite of supervised learning algorithms were evaluated. The implemented algorithms were support vector regression (SVR), decision tree regression (DTR), gradient boosting regression (GBR), random forest regression (RFR), K-neighbours regression (KNR), an artificial neural network (ANN), and elastic net (ELN). All models were available through the SciKit-Learn python package except for the ANN, which was constructed through TensorFlow’s Keras API. <sup>[55,56]</sup> Data cleaning was required to reduce redundancy in the dataset for relative transport properties. While algorithms predicting the single-phase transport properties ( _ksp_, _Dsp_ ) had 2280 learning examples (one per material, referred to henceforth as the single-phase dataset), the relative transport properties were calculated 100 times per material, resulting in an unprocessed dataset size of 228,000 examples. Owing to the method of percolation, a large fraction (73.5%) of the multiphase transport properties were calculated for saturations <1% and >99% (greyed areas, Figure 2). Since commercial fuel cells do not typically operate in this range, any example that had a saturation of <1% or >99% (Sample Window, Figure 2) was removed. The result was a processed dataset of 60,489 examples for the relative transport properties (referred to henceforth as the multiphase dataset). The saturation profile (black), relative diffusivity (green), and relative permeability (blue) of an example material from the dataset is shown in Figure 2. The sample selection window (highlighted) was identified as representing regular operating conditions of a fuel cell. The data outside of this sample window was removed to promote a dataset that was less heavily skewed towards the extremes of the saturation curve. After cleaning, the data was split into training (70%) and test (30%) sets. The training set was used strictly in the cross-validated grid search to train and optimize the machine learning algorithms while the test set was not used until the final evaluation was performed. The training and test sets (for both the single and multiphase datasets) were organized into discrete learning examples with features (independent variables) that corresponded to a given target variable (dependent variable). The features used in this investigation represent details that could be measured experimentally or specified during stochastic generation. To predict single-phase properties, the features used were the number of cylinders ( _ncyl_ ), cylin F I G U R E 3 An input-output workflow; The input features which were used during the single-phase investigations (green) and multiphase (green and blue) of features and used to train each model (centre) to predict each output target variable (right) der radius ( _rcyl_ ), average porosity (ε), maximum out-plane rotation (??), maximum in-plane rotation (??), and the water contact angle (Θ?) (Figure 3). Additional features for the multiphase transport predictions were the saturation and corresponding applied pressures. The target variables were the previously calculated transport properties ( _Dsp_, _ksp_, _Dr_, _kr_ ) (Figure 3). These features are well defined and present a favourable training scenario for all evaluated models. Data gathered from experimental sources will inherently be noisier, complicating the training procedure and requiring additional feature engineering and feature selection protocols, which are beyond the scope of this paper. Minimal feature engineering was required to preprocess this data as features and targets were well defined. Each of the features and target variables was independently transformed according to the below to improve learnability by the algorithms. The data was first scaled and subsequently translated according to <u>?−min (?)</u> ??????? = (13) max (?) −min (?) ?????? = ??????? (?−?) + ? (14) g where _X_ is the set of a given variable (feature or target) in the training data, _x_ is a data point to be transformed, and _b_ and _a_ are the upper and lower bounds of the desired range (1 and 0 for this investigation). <sup>[55]</sup> Using the training data set to determine _Xscaled_ ensures that test set variables are not biased during transformation. All references to data/features/target variable henceforth refer to the transformed data. With data processing completed, the machine learning algorithms were trained. In this investigation, all models were trained and optimized using a _k_ -fold cross-validated grid search, for which the hyperparameter grid is outlined in Table 2. To create the hyperparameter grid for the machine learning models (all models except the ANN), hyperparameter sets for a given continuous hyperparameter (e.g. GBR, learning rate) were constructed based on suggested values outlined in [55]. Values within each set were chosen such that the hyperparameter set spanned a wide range of values but did not result in undue computational burden. The hyperparameter set for a given discrete hyperparameter (e.g. SVR, kernel) was constructed by using all possible values for a given discrete hyperparameter outlined in [55]. Initially, the ANN was hand-tuned to achieve modest prediction error, and the hyperparameter sets outlined in Table 2 were then constructed based on the results of the initial hand-tuning. The optimizer, learning rates, and activation functions were chosen based on their strong consensus in literature for providing stable training conditions. <sup>[30,57]</sup> The mean absolute error (MAE) loss function was chosen to ensure a straightforward comparison between the machine learning models and the ANN, and significant differences were not found between results using similar loss functions, such as the mean squared error (determined during the initial hand tuning). The original training set data was first split into _k_ = 5 equal folds, where, in one iteration, four folds were designated as training folds, and one fold was designated as a validation fold. For all combinations of hyperparameter values in the hyperparameter sets, a given algorithm was trained on the training folds and evaluated on the validation fold. This process was repeated such that each fold was used as a validation fold once. The set of optimal hyperparameters was selected based on whichever produced the minimum average error over the validation folds. The error was quantified for each validation fold using the MAE ∑? ???= <u>?=1</u> <sup>|??</sup> <sup>−̂ ??|</sup> (15) ? where ?? is the predicted values of the validation fold from a trained model and̂ ?? is the corresponding true value of the target variable from that validation fold. This process was repeated for each target variable separately. A description g TA B L E 2 Parameter grid used in the cross-validated grid search optimization of each of the models ~~Model~~ ~~Hyperparameter~~ ~~Hyperparameter set~~ GBR learning_rate (0.001, 0.01, 0.1) ~~n_estimators~~ ~~(250, 1000, 2500)~~ subsample (0.1, 0.5, 1) ~~min_samples_split~~ ~~(3, 10, 50)~~ min_samples_leaf (1, 3, 10) ~~max_depth~~ ~~(1, 3, 10)~~ ANN Neurons (hidden layers), (regression layer) (4, 4, 4), (1) ~~(16, 16, 16), (1)~~ (128, 128, 128), (1) ~~(128, 32, 4), (1)~~ (128, 128, 128, 128, 128, 128), (1) ~~(256, 256, 256, 256, 256, 256), (1)~~ (256, 128, 64, 32, 16, 4), (1) ~~Activation functions (hidden layers), (regression layer)~~ ~~(ReLU), (Linear)~~ learning_rate (1E-3, 1E-4) ~~epochs~~ ~~200~~ batch_size (10, 30, 90) ~~loss function~~ ~~mean absolute error~~ optimizer adam ~~SVR~~ ~~gamma~~ ~~(‘scale’, ‘auto’)~~ C (1, 10, 100) ~~epsilon~~ ~~(1E-4, 0.001, 0.01, 0.1)~~ kernel (‘linear’, ‘rbf’, ‘sigmoid’, ‘poly’) ~~RFR~~ ~~n_estimators~~ ~~(250, 1000, 2500)~~ max_depth (1, 3, 10, None) ~~max_features~~ ~~(‘auto’, ‘sqrt’)~~ min_samples_split (1, 3, 10) ~~min_samples_leaf~~ ~~(1, 3, 10)~~ KNR algorithm (‘ball_tree’, ‘auto’) ~~weights~~ ~~(‘uniform’, ‘distance’)~~ n_neighbours (2, 5, 50) ~~leaf_size~~ ~~(30, 180, 360)~~ p (1, 2) ~~DTR~~ ~~max_depth~~ ~~(50, 100, 200, None)~~ min_samples_split (2, 0.001, 0.01, 0.1, 0.5) ~~min_samples_leaf~~ ~~(1, 0.01, 0.1, 0.5)~~ max_features (‘auto’, ‘sqrt’, ‘log2’) ~~ELN~~ ~~alpha~~ ~~(0, 0.5, 1)~~ L1_ratio (0, 0.5, 1) ~~max_iter~~ ~~2000~~ Abbreviations: ANN, artificial neural network; DTR, decision tree regression; ELN, elastic net; GBR, gradient boosting regression; KNR, K-neighbours regression; RFR, random forest regression; SVR, support vector regression. of the statistical methods for training the selected machine learning algorithms is provided in [26], [55], and for the ANN in [56]. Finally, the performance of each trained model (using the optimal hyperparameters) was evaluated on the test set data. 2.2.2 Permutation feature importance To evaluate the trained models’ generalizability and behaviour, permutation feature importance was used. Permutation feature importance measures the increase in prediction error of a given model when a feature value is permuted. A feature is important if the permutation increases prediction error, indicating that the model relied on that feature for accurate predictions. <sup>[58,59]</sup> A larger increase in prediction error means that the model relied upon that feature more heavily, and thus it is a more important feature. Feature permutation is ideal for small dimensional datasets as the results are more interpretable when fewer features are compared. To implement permutation feature importance in this investigation we used the trained and optimized models from Section 2.2.1 and the test set data. First, a reference score (the MAE) for each test set target variable ( _Dsp_, _ksp_, _Dr_, and _kr_ ) was calculated using each trained and optimized model. For each feature ( _ncyl_, _rcyl_, etc.) used to predict a given target variable, all instances of a given feature were randomly shuffled. Using the single shuffled feature and remaining unshuffled features the score for a given model was recalculated and compared to the original reference score according to the below. ?? = ?− <sup><u>1</u></sup> ? ∑? ?=1 ??,? (16) g als, that is, a random selection of 30% of the data set aside and not used in training, as detailed in Section 2.2. 3.1 Analysis of generated material properties 3.1.1 REV analysis A REV of a porous material is the smallest volume subset that retains the same properties as the bulk material. <sup>[60–62]</sup> REVs have been used classically to ensure that continuum models developed from small subsets of porous material are applicable to all subsets of that material. <sup>[63]</sup> REVs are particularly well adopted in continuum models for geologic formations <sup>[62]</sup> and more recently in pore network modelling of fuel cell materials. <sup>[60,61,64]</sup> To reflect the conventional GDL REV size of 1mm <sup>2</sup> × GDL thickness (mm), <sup>[60,61,64]</sup> a domain size of 1000 × 1000 × 250 vx (at 1 μm vx <sup>−1</sup> resolution) was chosen for the generated materials. Fishman et al. <sup>[61]</sup> found a 1 mm <sup>2</sup> × GDL thickness (mm) was required to obtain repeatable through-plane porosity profiles for Toray type GDLs. Similarly, Zenyuk et al. <sup>[60]</sup> evaluated the pore size distributions of several Sigracet and Toray type carbon fibre paper GDLs and found that a minimum of 1 mm <sup>2</sup> × GDL thickness (mm) was required to obtain a representative sample. GarciaSalaberri et al. provided a rigorous analysis on the existence of REVs for structural and transport properties of carbon fibre paper GDLs in [64]. The authors determined that a REV could not be defined for the permeability and diffusivity of the examined GDLs and that a minimum of 1– 2 mm <sup>2</sup> × GDL thickness (mm) was required to achieve a REV for the average pore size. All stochastically generated materials used in our investigation were subjected to a REV analysis of porosity. A square window centred on the material with depth equal to the depth of the material was expanded in increments of 50 vx in the ±? and ±? direction until the REV window encompassed the entire generated material with a similar procedure to the one presented in [65]. After each incremental window enlargement, the porosity of the volume encompassed by the window was defined as the ratio of the number of void vx to the total number of vx. The volume encompassed by the window was deemed to be a REV if the calculated porosity was within 4% of the true porosity of the generated material porosity (defined as the ratio of void vx to the total number of vx). More broadly, if the REV was consistently within 4% of the true porosity for windows sizes 700, 800, 900 vx <sup>2</sup> then the generated material was considered representative of the larger (sampled) material. A similar 4% criterion was used in [61]. It was found that 2276 of the 2280 generated materials were where ?? is the importance of feature _j_, ? is the score of the model with unpermuted features, and ??,? is the score of the model evaluated using the permuted feature j on the kth repeated permutation. In this investigation, we repeated the permutation 30 times (i.e. _K_ = 30) for each feature j. 3 RESULTS AND DISCUSSION We first analyze the properties of the generated data including a representative elementary volume (REV) analysis of all materials and an evaluation of the target variable distributions. The results of the trained models outlined in Section 2.2.1 are then presented, and finally, we investigate the interpretability of some models. References to predictions specifically refer to predictions on the test set materi F I G U R E 4 The representative elementary volume (REV) analysis for 10 randomly selected materials. A REV subsample was taken in the centre of all materials from window sizes of 100–1000 vx <sup>2</sup> by the depth of the gas diffusion layer (GDL), the materials were determined to be REVs if the subsample window sizes 700, 800, and 900 were within 4% of the porosity of the entire material (i.e. the window of 1000 vx <sup>2</sup> ). All but four materials (of 2280) were determined to exhibit REVs. The black dotted line indicates the cutoff where materials must exhibit <4% variation from the true porosity (inclusive) REVs for porosity. The results of a REV analysis of porosity for 10 randomly selected materials are shown in Figure 4. REV status was not a criterion for this investigation. All materials that were generated and met the constraints in Section 2.1.1 were subjected to further analyses. The inclusion of non-REV materials increased the heterogeneity of the dataset. Researchers investigating this area should adopt this approach so that models have the capability to analyze material properties regardless of the sample size. 3.1.2 Porosity The porosity of the GDL is directly proportional to the diffusivity of chemical species in the material. <sup>[1,66]</sup> The empirical Bruggeman equation (Equation (17)) is used to calculate the effective diffusivity ( _D_ ) in porous media using the binary diffusion ( _DAB_ ) coefficient and porosity (?). <sup>[1]</sup> ?= ??? ? <sup>1.5</sup> (17) More specifically, for diffusion in fibrous materials, Tomadakis et al., determined the diffusion of a chemical species could be modelled according to ?= <sup><u>?</u></sup> (18) ? <sup>??</sup> where ? is the tortuosity and ?? is the self-diffusion coefficient, that is, the effective displacement of atoms caused g by random vacancy movement. <sup>[66]</sup> Both the Bruggeman equation and the equation for diffusion in fibrous media presented by Tomadakis et al. show the importance porosity plays in the diffusivity of chemical species in porous materials. <sup>[45]</sup> Similarly, the Kozeny-Carman equation is used to relate porosity of a material (?) to permeability (?) in low porosity materials (Equation (19)) <sup>[2]</sup> ?= <sup><u>?̄?2</u></sup> (19) 8? wherē ? is the mean intercept half-length of the pore space, and ? is the tortuosity factor. Tomadakis et al. <sup>[67]</sup> further showed that the below equation (Equation (22)) introduced by Schwartz et al., <sup>[68]</sup> performed particularly well for predicting viscous permeability in 3D randomly oriented fibre structures ?= <sup><u>???</u></sup> (20) ? where ? is the material porosity, ? is the tortuosity, ? is the diffusivity, and ? is the form factor. Again, the porosity of the material is integral when calculating the material permeability. The distribution of porosity among 2280 generated GDL materials is shown in Figure 5. The median material porosity is 0.880 (white dot) with an IQR that spans from 0.818 to 0.920. The generated material database had a mean and standard deviation (̄?± ?) of 0.860 and 0.076, respectively. The materials in the generated database exhibit similar porosities to high porosity GDL materials, such as SGL25BA and SGL34BA, while also retaining examples similar to lower porosity GDLs, such as Toray090. <sup>[47]</sup> The probability distribution (turquoise) shows the relative likelihood of a given material having a given porosity within the generated dataset. The generated dataset is skewed towards more highly porous materials (0.8–0.95), which was attributed to the method of stochastic generation used in this work. The materials were stochastically generated with design constraints defined in Table 1, and porosity was evaluated after material generation. Only materials within the porosity range of 0.50–0.95 were retained to reflect commercial GDLs. The skew in material porosity was a motivation for cross-validating all models to ensure that the reported prediction accuracies were consistent regardless of how the data was split. The results of the crossvalidated models are discussed in Section 3.2. 3.1.3 Transport properties The calculated transport properties _Dsp,_ _ksp,_ _Dr_, and _kr_, were the target variables in this investigation. Understand g order to ensure the data represents commercial GDL materials, the IQR should reflect diffusivities found in the literature. Conventionally, the diffusivity of air in a GDL is reported in the literature as normalized effective diffusivity ( _DN,eff_ ), where the effective single-phase diffusivity (i.e. Dsp) is normalized by the diffusivity of the species in free space ( _DAB_ ) according to Equation (22). ??, ??? = ??? ??? . (22) F I G U R E 5 The violin plot above illustrates the probability density function (turquoise), median value (white dot), interquartile range (IQR, grey box), and 1.5 times the IQR (grey line) of the porosity of the 2280 generated materials (parentheses, below). The IQR and median value are labelled to the right of the boxplot; 50% of the materials exhibit porosities between 0.818 and 0.922 which is in good agreement with conventional materials like SGL and Toray ing the distribution of the target variables is important for crafting a robust training regime, such that the bias of a trained model does not significantly favour one subset of the training data over another. If a dataset is heavily skewed towards a particular range of data, a trained model may not be able to accurately predict the target variable if it lies outside that particular range. The distribution of _Dsp_ in the generated materials is highlighted in Figure 5. The _Dsp_ of the generated materials has a mean, median, and standard deviation of 9.36E6, 9.63E-6, and 2.72E-6 m <sup>2</sup> s <sup>–1</sup>, respectively. Using this, the Pearson mode skew ( _Sk_ ) of the generated data is calculated as: ??= <sup><u>3 (̄?−̃ ?)</u></sup> (21) ? wherē ? is the mean,̃ ? is the median, and ? is the standard deviation. _Dsp_ is minimally skewed with, an _Sk_ = −0.297, a normally distributed dataset has _Sk_ = 0. The IQR defines the range in which 50% of the data is found, and the generated data has an IQR spanning 7.56E-6 to 1.14E-5 m <sup>2</sup> s <sup>–1</sup> . In For the purposes of comparison to the literature, we used a _DAB_ of 1.81E-5 m <sup>2</sup> s <sup>–1</sup> for oxygen diffusivity in stagnant nitrogen at room temperature. <sup>[69]</sup> Using Equations (17) and (22), the IQR in Figure 6a corresponds to a range of normalized effective diffusivity from 0.418 to 0.779. This range of normalized effective diffusivity is in good agreement with literature values for carbon paper GDLs, such as SGL and Toray. <sup>[69–71]</sup> Henceforth, we will not refer to the normalized effective diffusivity to avoid confusion with the relative diffusivity (which is also normalized), but rather we will only refer to single-phase diffusivity ( _Dsp_ ). The distribution of _k_ sp in the generated materials is shown in Figure 6b. The permeabilities are positively skewed (Pearson mode skew of 1.433) with an IQR that ranges from 1.66E-11 to 4.65E-11 m <sup>2</sup> and a mean, median, and standard deviation of 3.46E-11, 2.92E-11, and 2.45E11 m <sup>2</sup>, respectively. These permeabilities are in good accordance with the literature. <sup>[14,72,73]</sup> The distribution of relative transport properties ( _Dr_ and _kr_ ) as a function of water saturation (incremented from 1% to 99%) is shown using violin plots in Figure 7. In general, the relative diffusivity decreases while relative permeability increases with increasing saturation. The highest density of learning examples can be found in the 10%– 20% saturated and 90%–99% saturated levels. Since saturation values and associated transport properties below 1% and above 99% saturation were removed, the dataset was reduced from 228,000 learning examples to 60,498 learning examples. The extremely flooded condition (>99%) is seldom encountered by an operating fuel cell and the dry condition was captured using single-phase transport simulations, so their removal was pertinent. Rather than provide the relative permeability and diffusivity curves for a select set of materials, the violin plots in Figure 7 show the distribution of all the learning examples in the dataset. The materials generated for this investigation and their associated transport properties are representative of carbon paper type GDLs without microporous layers. The generated volumes were determined to be REVs using a 4% criteria and the transport properties were representative of both experimental and numerical modelling studies in the g F I G U R E 6 The violin plots for the single-phase diffusivity ( _Dsp_, (a)) and permeability ( _ksp_, (b)) show the distribution of the single-phase target variables in the generated dataset. 50% of the generated materials exhibit diffusivities between 7.56E-6 and 1.14E-5 m <sup>2</sup> s <sup>–1</sup> and permeabilities between 1.66E-11 and 4.65E-11 m <sup>2</sup>, which agree with literature values <sup>[69–73]</sup> F I G U R E 7 Violin plots show the distribution of relative diffusivity (a) and relative permeability (b) as network saturation increases, with the number of learning examples, per range of saturation, in parentheses below. In general, the relative diffusivity decreases while permeability increases with increasing saturation and the highest density of learning examples can be found in the 10%–20% saturated and 90–99% saturated levels. Note, ‘(‘ indicates exclusive bound while ‘[‘ is inclusive literature. The materials discussed above were used to train and evaluate the selected machine learning algorithms discussed in Section 3.2. 3.2 Model evaluation 3.2.1 Model accuracy The GBR, ANN, SVR, RFR, KNR, DTR, and ELN models were trained using a 5-fold cross-validated grid search. The grid search was used to determine the hyperparameters which produced the best performing models, that is, the models that yielded the minimum average validation score across all validation folds. Cross-validation was used to reduce the variance in trained models and ensure that skewed training data did not negatively impact model performance. <sup>[74]</sup> The hyperparameters that yielded the best prediction performance are highlighted in the appendix in Tables A1–A4, while their corresponding validation fold scores are shown in Tables A5–A8, also in the appendix. After optimizing each model using the cross-validated grid search the models were evaluated on the test set data (30% of the total generated data for a given target variable). The distribution of the MAE from the prediction of the test sets for _Dsp_, _ksp_, _Dr_, and _kr_ are shown in the boxplots in Figure 8. It was found that for predicting the single-phase diffusivity GBR, ANN, and SVR performed best with statistically similar average residuals of 3.58E-7 m <sup>2</sup> s <sup>–1</sup> while for singlephase permeability, GBR and ANN performed best with statistically similar residuals of 2.89E-12 m <sup>2</sup> . The observed errors for each single-phase target variable represent first decimal place accuracy. GBR performed best when predicting both of the relative transport properties, _Dr_ and _kr_, with average residuals of 0.0118 and 0.0119, respectively, representing first digit accuracy. Gradient boosting regression is a type of ensemble method used to construct a nonlinear model based on decision trees and gradient descent optimization. Decision trees use greedy learning to create a set of rules through which features can be used to make a prediction of the real value of a target variable. In GBR a number of decision trees are successively added together, each successive addition is optimized using gradient descent to decrease the overall prediction error. By combining decision trees with gradient descent an optimized GBR model can far outperform a single decision tree, as evidenced by the superior performance of GBR when compared to DTR in the results highlighted in Figures 8–10. Gradient boosting is discussed in detail in [75]. While statistically different from the results produced by GBR, the ANN was also able to predict the relative trans g port properties (Figure 9, right) with low error, achieving an average residual of 0.0127 and 0.0130 for _Dr_ and _kr_, respectively. It should be noted that statistical significance was determined by using the non-parametric MannWhitney U test to compare the residuals produced by predictions from each model on the test set (the results for which are shown in Figure 9). Using a 5% significance level (?= 0.05), any cell in the heat map (i.e. Figure 9) with P > 0.05 indicates that the mean residual produced by the predictions of the two compared models is not statistically different. ELN is a linear regression model which is optimized by minimizing a loss function that compares predicted to true values during training. The loss function used by ELN is the sum of the squared error loss function and is penalized by both the L1 and L2 penalties. The L1 penalty eliminates the impact of variables that are not correlated to the target variable while the L2 penalty reduces the sensitivity of the model to the training data. The purpose of both penalties is to reduce the variance in the resulting trained models, ultimately increasing model generalizability and overall model accuracy. The proportion of L1 and L2 penalty used by the ELN model is controlled by the parameter ?, a constant which multiplies the penalty terms in the loss function. The trained and optimized ELN model used an ?= 0 for all target variables (shown in Tables A1–A4 in the appendix). Using an ?= 0 corresponds to an ordinary least square’s regression with no L1 or L2 loss, indicating that the optimal linear regression model to predict the multiphase and single-phase transport properties of the GDL is a simple ordinary least square’s regression. Interestingly, ELN, KNR, and DTR share similarly poor accuracy when predicting _Dsp_, despite the fact that the decision tree and kneighbours models are nonlinear. Understandably, using a linear model, such as ELN, to predict the complex relationship between the structural features as inputs and the target transport properties did not perform well and is not advised. The relationship between the true value and the predicted target value for each model is presented in Figure 10. It should be noted that _Dsp_ and _ksp_ were predicted on the interval [0, 1] because all input target variables were scaled to the interval [0, 1] during training (see Section 3.1.2, Equations (11) and (14)). For simplicity the target variables and their corresponding predictions remained scaled (on [0, 1]) and plotted in black in Figure 10, the red dotted line corresponds to a 1:1 relationship between the predicted and true value, that is, a perfect prediction. GBR, ANN, and SVR were able to predict _Dsp_, _ksp_, and _Dr_ with equivalent coefficients of determination ( _R_ <sup>2</sup> ) of 0.96, 0.95, and 0.99 respectively. GBR and ANN slightly outperformed SVR when predicting _kr_ with an _R_ <sup>2</sup> of 0.99 compared to 0.97. Performance generally decreased from left to right g F I G U R E 8 The boxplot above shows the absolute error for the predictions of (a) the single-phase diffusivity, (b) the relative diffusivity predictions, (c) the single-phase permeability predictions, and (d) the relative permeability predictions. The mean (square marker), median (line), interquartile range (IQR) (box body), and 1.5 times IQR (whisker) for each model highlight the range of prediction errors for each model. Gradient boosting regression (GBR) performed best with the lowest mean error for all target variables and the smallest error range, while the elastic net model performed worst F I G U R E 9 The residual errors from the model predictions on the test sets for the 4 target variables ( _Dsp_, _ksp_, _Dr_, _kr_ ) were compared using the Mann-Whitney _U_ test, and the resulting _p_ -values are shown in the heatmaps above. For ? ≥ ? where ?= 0.05 there is no significant difference between the means of the residuals; therefore, the models can be considered equivalent. (left) shows the _p_ -values for _Dsp_ in green (lower right triangle) and _ksp_ in blue (upper right triangle) while (right) shows the _p_ -values for _Dr_ in green (lower left triangle) and _kr_ in blue (upper right triangle) g F I G U R E 1 0 The correlation between ground truth and the predicted value of each target variable is illustrated above. It should be noted here that the model predictions (vertical axis) are compared to the ground truths (horizontal axis) and remain scaled on ∈[0, 1]. Due to the scaling of the predictions and ground truths, a 1:1 correlation between prediction and ground truth indicates an exact prediction; all exact predictions lie along the red line in each plot in Figure 10 with GBR achieving the highest _R_ <sup>2</sup> and ELN achieving the lowest. As the ground-truth value of _ksp_ increases, the predictions of all models become significantly less accurate. This is illustrated in the _ksp_ graphs in Figure 10 by the deviation from the line of the markers at values of _x_ (i.e. ground truth) >0.5. This is likely due to limited data present at higher ranges of permeability, from Figure 6b it is shown that the distribution of material permeabilities is positively skewed, indicating the lower frequency of learning examples that occur above 6E-11 m <sup>2</sup> . Since the values of permeability were scaled linearly the skew present in Figure 6b will be translated onto the interval [0, 1]. The best performing models were still able to achieve high accuracy. Generally, the performance of machine learning models improves ( _R_ <sup>2</sup> increases) from the single-phase to the multiphase dataset, which was attributed primarily due to increased learning examples for the multiphase dataset. 3.2.2 Permutation feature importance The permutation feature importance results for GBR and ANN (some of the better performing models) are discussed below. All permutation feature importance results are tabulated in Table A9 in the appendix. Permutation feature importance provides global insight into model behaviour and is an easily interpretable metric. It is important to understand the impact a given feature has on the model performance. In future studies, these machine learning algorithms should be applied to materials with experimentally gathered data rather than only generated data. Experimentally collected data is inherently variable. Features with higher importance scores should be given preference during data collection to ensure that the most important features are collected most accurately. For predicting _Dsp_, both models were found to be sensitive to the porosity and fibre orientation features, which have high importance scores (>0.05) shown in Figure 11. This is intuitive as material porosity has been empirically shown to significantly impact transport within porous materials. <sup>[1,2]</sup> The max out of plane rotation (??) generally has a more prominent effect than the max in plane rotation (??). Since, however, the transport simulations were conducted in the z direction (Figure 1), it follows that the maximum out of plane fibre rotation would significantly impact pore structure in the _z_ -direction and therefore have a greater impact on transport in the _z_ -direction. This is similar to the experimental findings of [76] who showed using synchrotron X-ray imaging that fibres acted like channels in the GDL and that local fibre orientation strongly impacts liquid water transport. Similarly, when predicting _ksp_ the models are sensitive to the porosity g F I G U R E 11 The boxplots above show the distribution of important values for the gradient boosting regression (GBR) and artificial neural network (ANN) models, for _Dsp_, _Ksp_, _Dr_, and _Kr_ . Features with higher importance impact model performance more significantly. It can be seen that porosity is an important feature to both models when predicting the single-phase properties as it is a top-three feature in each case. Further, saturation is clearly the most important feature for all models when considering multiphase transport conditions (i.e. _kr_, and _Dr_ ) and ??, and additionally are much more sensitive to the number of cylinders than for the models predicting _Dsp_ . For single phase properties, the most important features (as discussed above) are the porosity, fibre orientation, and a number of cylinders (for _ksp_ ). To use these models effectively on non generated data, it is vital to ensure accurate collection of these important features. Further, errors in the collection of less important features (i.e. features with importance scores <0.02) will not significantly impact the prediction performance of the trained models. When considering the relative transport properties ( _Dr_, _kr_ ), saturation is uniformly the most important feature scoring above 0.4 for _kr_ and above 0.25 for _Dr_ . This is intuitive as the transport pathways within the material are significantly impacted by the presence or absence of water. Model prediction performance is not significantly impacted by permuted features other than the saturation; therefore, it is vital to ensure accurate collection of saturation data for accurate predictions using the models outlined in this study. Further, it highlights the importance of experimental methods that are capable of measuring accurate saturations, such as operando X-ray imaging. 4 CONCLUSIONS The work herein provides the first investigation of porous fibrous materials using machine learning methods and highlights the ability of several different algorithms to accurately predict key material transport properties, which are vital in the successful design of the GDL in a PEM fuel cell. The database of stochastically generated GDL materials was used to train several of the selected algorithms to a high degree of accuracy ( _R_ <sup>2</sup> ≥ 0.95) and represents the largest database of stochastically generated porous fibrous materials to date. The most successful algorithm was GBR which achieved a minimum error of 3.58E-7 m <sup>2</sup> s <sup>–1</sup> for _Dsp_, 2.89E-12 m <sup>2</sup> for _ksp_, 0.0118 for _Dr_, and 0.0119 for _kr_ . The ANN and SVR performed similarly well to GBR when predicting the single-phase transport properties. Physical descriptors such as the porosity of the material and the fibre orientation were found to be the most important features determined using permutation feature importance for the best performing models (GBR and ANN). Machine learning methods are a powerful tool that can be used to accurately predict the transport properties of porous fibrous materials like the GDL in a PEM fuel cell. Machine learning analysis of porous media like the GDL provides an alternative to traditional simulation methods that is accurate, fast, and user friendly. Using these methods will increase the tools available to porous media researchers, allowing for new insights into the design and analysis of g renewable energy materials and ultimately increasing the adoption of renewable energy devices. AC K N OW L E D G E M E N T S Financial support from the Natural Sciences and Engineering Research Council of Canada (NSERC) Discovery Grants Program, the Canada Research Chairs Program, and the Canada Foundation for Innovation are gratefully acknowledged. Additional support provided to T. Cawte by the Hatch Ltd. Graduate Scholarship for Sustainable Energy Research, the Ron D. Ventner Graduate Fellowship, C.W. Bowman Graduate Scholarship, and David Sanborn Scott Graduate Fellowship is also gratefully acknowledged. Finally, the authors would like to acknowledge Pranay Shrestha and Eric Chadwick for their helpful direction and discussions. C O N F L I C T O F I N T E R E S T The authors declare no conflict of interest. DATA AVA I L A B I L I T Y S TAT E M E N T The data that support the findings of this study are available from the corresponding author upon reasonable request. O RC I D _Aimy Bazylak_ [https://orcid.org/0000-0002-9594-4930](https://orcid.org/0000-0002-9594-4930) R E F E R E N C E S 1. V. D. Bruggeman, _Ann. Phys._ 1935, _416_, 636. 2. J. Kozeny, Uber kapillare leitung der wasser in boden, Royal Academy of Science, Vienna, Proc. Class I. 1927, _136_, 271. 3. S. Shimpalee, S. Greenway, D. Spuckler, J. W. Van Zee, _J. Power_ _Sources_ 2004, _135_, 79. 4. T. G. Tranter, A. D. Burns, D. B. Ingham, M. Pourkashanian, _Int._ _J. Hydrogen Energy_ 2015, _40_, 652. 5. P. Chippar, K. Oh, D. Kim, T. Hong, W. Kim, H. Ju, _Int. J. Hydro-_ _gen Energy_ 2013, _38_, 7715. 6. Y. Amadane, H. Mounir, A. Elmarjani, E. M. Karim, _Mediterr. J._ _Chem._ 2019, _7_, 396. 7. Y. Gao, X. Zhang, P. Rama, R. Chen, H. Ostadi, K. Jiang, _Comput._ _Math. Appl._ 2013, _65_, 891. 8. F. Jinuntuya, M. Whiteley, R. Chen, A. Fly, _J._ _Power_ _Sources_ 2018, _378_, 53. 9. Y. Gao, Z. Hou, X. Wu, P. Xu, _Int. J. Heat Mass Transfer._ 2018, _118_, 1325. 10. S. Chevalier, J. Hinebaugh, A. Bazylak, _J. Electrochem. Soc._ 2019, _166_, F3246. 11. J. K. Lee, C. H. Lee, A. Bazylak, _J._ _Power_ _Sources_ 2019, _437_, 226910. 12. J. K. Lee, A. Bazylak, _J. Electrochem. Soc._ 2020, _167_, 013541. 13. J. T. Gostick, _Phys. Rev. E_ 2017, _96_, 023307. 14. J. T. Gostick, M. A. Ioannidis, M. W. Fowler, M. D. Pritzker, _J._ _Power Sources_ 2007, _173_, 277. 15. T. G. Tranter, P. Boillat, A. Mularczyk, V. Manzi-Orezzoli, P. R. Shearing, D. Brett, J. Eller, J. T. Gostick, A. Forner-Cuenca, _J._ _Electrochem. Soc._ 2020, _167_, 114512. 16. A. K. C. Wong, R. Banerjee, A. Bazylak, _J. Electrochem. Soc._ 2019, _166_, F3009. 17. E. F. Médici, J. S. Allen, _Transp. Porous Media_ 2016, _115_, 435. 18. H. Wu, W. Fang, Q. Kang, W. Tao, R. Qiao, _Sci. Rep._ 2019, _9_, 1. 19. H. Wei, S. Zhao, Q. Rong, H. Bao, _Int. J. Heat Mass Transfer._ 2018, _127_, 908. 20. H. Wei, H. Bao, X. Ruan, _Int._ _J._ _Heat_ _Mass_ _Transfer_ 2020, _160_, 120176. 21. K. M. Graczyk, M. Matyka, _Sci. Rep._ 2020, _10_, 1. 22. O. Sudakov, E. Burnaev, D. Koroteev, _Comput. Geosci._ 2019, _127_, 91. 23. M. Ahmadi, Z. Chen, _J. Pet. Explor. Prod. Technol._ 2020, _10_, 2873. 24. J. Tian, C. Qi, Y. Sun, Z. M. Yaseen, B. T. Pham, _Eng. Comp._ 2020, 1. 25. S. Kamrava, P. Tahmasebi, M. Sahimi, _J. Membr. Sci._ 2021, _622_, 119050. 26. G. James, D. Witten, T. Hastie, R. Tibshirani, _An Introduction to_ _Statistical Learning_, Springer, 2013 . 27. D. Svozil, V. Kvasnicka, J. Pospichal, _Chemometr._ _Intellig._ _Lab._ _Syst._ 1997, _39_, 43. 28. R. Hecht-Nielsen, _Anonymous_ _Neural_ _Networks_ _for_ _Perception_, Elsevier, 1992 . 29. S. Sharma, S. Sharma, _Towards Data Sci._ 2017, _6_, 310. 30. P. Ramachandran, B. Zoph, Q. V. Le, Searching for activation functions, arXiv preprint arXiv:1710.05941; 2017 . 31. B. Karlik, A. V. Olgac, _Int. J. Artif. Intell. Exp. Syst._ 2011, _1_, 111. 32. X. Li, H. Xiong, X. Li, X. Wu, X. Zhang, J. Liu, J. Bian, D. Dou, Interpretable deep learning: interpretation, interpretability, trustworthiness, and beyond, arXiv preprint arXiv:2103.10689; 2021 . 33. F. Fan, J. Xiong, M. Li, G. Wang, _IEEE_ _Trans._ _Radiat._ _Plasma_ _Med. Sci._ 2021 . 34. F. Chollet, _Deep_ _Learning_ _with_ _Python_, Simon and Schuster, 2021 . 35. M. Raissi, G. E. Karniadakis, _J. Comp. Phys._ 2018, _357_, 125. 36. J. Ling, J. Templeton, _Phys. Fluids_ 2015, _27_, 085103. 37. S. Müller, M. Milano, P. Koumoutsakos, _Ann. Res. Briefs_ 1999, 169. 38. S. L. Brunton, J. N. Kutz, _J. Phys.: Mater._ 2019, _2_, 044002. 39. J. Pan, Q. Yan, _J. Semicond._ 2018, _39_, 071001. 40. K. Rajan, _Informatics_ _for_ _Materials_ _Science_ _and_ _Engineer-_ _ing: Data-Driven Discovery for Accelerated Experimentation and_ _Application_, Butterworth-Heinemann, 2013 . 41. J. T. Gostick, Z. A. Khan, T. G. Tranter, M. D. Kok, M. Agnaou, M. Sadeghi, R. Jervis, _J. Open Source Software_ 2019, _4_, 1296. 42. C. Lim, C. Y. Wang, _Electrochim. Acta_ 2004, _49_, 4149. 43. A. Nabovati, J. Hinebaugh, A. Bazylak, C. H. Amon, _J._ _Power_ _Sources_ 2014, _248_, 83. 44. H. Ostadi, K. Jiang, P. D. Prewett, _Micro Nano Lett._ 2008, _3_, 106. 45. D. Froning, J. Brinkmann, U. Reimer, V. Schmidt, W. Lehnert, D. Stolten, _Electrochim. Acta_ 2013, _110_, 325. 46. D. M. Fadzillah, M. I. Rosli, M. Talib, S. K. Kamarudin, W. Daud, _Renewable Sustainable Energy Rev._ 2017, _77_, 1001. 47. R. R. Rashapov, J. Unno, J. T. Gostick, _J. Electrochem. Soc._ 2015, _162_, F603. 48. J. Gostick, M. Aghighi, J. Hinebaugh, T. Tranter, M. A. Hoeh, H. Day, B. Spellacy, M. H. Sharqawy, A. Bazylak, A. Burns, _Comput._ _Sci. Eng._ 2016, _18_, 60. 49. Z. A. Khan, T. Tranter, M. Agnaou, A. Elkamel, J. Gostick, _Com-_ _put. Chem. Eng._ 2019, _123_, 64. g 50. Z. A. Khan, P. A. G. Salaberri, T. M. Heenan, R. Jervis, P. R. Shearing, D. Brett, A. Elkamel, J. T. Gostick, _J. Electrochem. Soc._ 2020, _167_, 040528. 51. N. Ge, P. Shrestha, M. Balakrishnan, D. Ouellette, A. Wong, H. Liu, C. H. Lee, J. K. Lee, A. Bazylak, _Electrochim. Acta_ 2019, _328_, 135001. 52. E. W. Washburn, _Phys. Rev._ 1921, _17_, 273. 53. M. Fazeli, J. Hinebaugh, A. Bazylak, _Electrochim. Acta_ 2016, _216_, 364. 54. S. Bryant, M. Blunt, _Phys. Rev. A_ 1992, _46_, 2004. 55. F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, _J._ _Mach. Learn. Res._ 2011, _12_, 2825. 56. M. Abadi, P. Barham, J. Chen, Z. Chen, A. Davis, J. Dean, M. Devin, S. Ghemawat, G. Irving, M. Isard, Tensorflow: a system for large-scale machine learning, 2016 . 57. D. P. Kingma, J. Ba, Adam: A method for stochastic optimization, arXiv preprint arXiv:1412.6980; 2014 . 58. A. Fisher, C. Rudin, F. Dominici, _J. Mach. Learn. Res_ . 2019, _20_, 1. 59. L. Breiman, _Mach. Learning_ 2001, _45_, 5. 60. I. V. Zenyuk, D. Y. Parkinson, L. G. Connolly, A. Z. Weber, _J._ _Power Sources_ 2016, _328_, 364. 61. Z. Fishman, A. Bazylak, _J. Electrochem. Soc._ 2011, _158_, B841. 62. K. Nordahl, P. S. Ringrose, _Mathematical Geosciences_ 2008, _40_, 753. 63. J. Bear, J. Buchlin, _Modelling and Applications of Transport Phe-_ _nomena in Porous Media_, Springer, 1991 . 64. P. A. García-Salaberri, I. V. Zenyuk, A. D. Shum, G. Hwang, M. Vera, A. Z. Weber, J. T. Gostick, _Int. J. Heat Mass Transfer._ 2018, _127_, 687. 65. J. Hack, P. A. García-Salaberri, M. D. Kok, R. Jervis, P. R. Shearing, N. Brandon, D. J. Brett, _J. Electrochem. Soc._ 2020, _167_, 013545. 66. M. M. Tomadakis, S. V. Sotirchos, _AIChE J._ . 1993, _39_, 397. 67. M. M. Tomadakis, T. J. Robertson, _J. Composite Mater._ 2005, _39_, 163. 68. L. M. Schwartz, N. Martys, D. P. Bentz, E. J. Garboczi, S. Torquato, _Phys. Rev. E_ 1993, _48_, 4584. 69. T. G. Tranter, P. Stogornyuk, J. T. Gostick, A. D. Burns, W. F. Gale, _Int. J. Heat Mass Transfer._ 2017, _110_, 132. 70. R. Flückiger, S. A. Freunberger, D. Kramer, A. Wokaun, G. G. Scherer, F. N. Büchi, _Electrochim. Acta_ 2008, _54_, 551. 71. N. Zamel, N. G. Astrath, X. Li, J. Shen, J. Zhou, F. B. Astrath, H. Wang, Z. Liu, _Chem. Eng. Sci._ 2010, _65_, 931. 72. L. M. Pant, S. K. Mitra, M. Secanell, _J. Power Sources_ 2012, _206_, 153. 73. Z. Tan, L. Jia, Z. Zhang, _Heat Transfer Research_ 2012, _43_, 139. 74. M. W. Browne, _J. Math. Psychol._ 2000, _44_, 108. 75. J. H. Friedman, _Ann. Stat._ 2001, 1189. 76. H. Markötter, K. Dittmann, J. Haußmann, R. Alink, D. Gerteisen, H. Riesemeier, J. Scholta, J. Banhart, I. Manke, _Elec-_ _trochem. Commun._ 2015, _51_, 133. How to cite this article: T. Cawte, A. Bazylak, _Electrochem Sci Adv_ . 2023, _3,_ e2100185. [https://doi.org/10.1002/elsa.202100185](https://doi.org/10.1002/elsa.202100185) g APPENDIX 5-fold Cross-validation grid search results Best hyperparameters TA B L E A 1 Best performing hyperparameters determined via grid search for predicting single-phase permeability for each model ANN {‘batch_size’: 90, ‘epochs’: 200, ‘learning_rate’: 0.001, ‘neurons’: (128, 32, 4)} ~~GBR~~ ~~{‘learning_rate’: 0.01, ‘max_depth’: 10, ‘min_samples_leaf’: 1, ‘min_samples_split’: 3, ‘n_estimators’: 1000, ‘subsample’: 0.1}~~ SVR {‘C’: 300, ‘degree’: 3, ‘epsilon’: 0.001, ‘gamma’: ‘auto’, ‘kernel’: ‘rbf’} ~~RFR~~ ~~{‘max_depth’: None, ‘max_features’: ‘auto’, ‘min_samples_leaf’: 1, ‘min_samples_split’: 3, ‘n_estimators’: 2500}~~ DTR {‘max_depth’: None, ‘max_features’: ‘auto’, ‘min_samples_leaf’: 1, ‘min_samples_split’: 0.001} ~~KNR~~ ~~{‘algorithm’: ‘ball_tree’, ‘leaf_size’: 30, ‘n_neighbors’: 5, ‘p’: 1, ‘weights’: ‘distance’}~~ ELN {‘alpha’: 0.0, ‘l1_ratio’: 0.0, ‘max_iter’: 2000} Abbreviations: ANN, artificial neural network; DTR, decision tree regression; ELN, elastic net; GBR, gradient boosting regression; KNR, K-neighbours regression; RFR, random forest regression; SVR, support vector regression. TA B L E A 2 Best performing hyperparameters determined via grid search for predicting single-phase diffusivity for each model ANN {‘batch_size’: 90, ‘epochs’: 200, ‘learning_rate’: 0.0001, ‘neurons’: (256, 128, 64, 32, 16, 4)} ~~GBR~~ ~~{‘learning_rate’: 0.01, ‘max_depth’: 10, ‘min_samples_leaf’: 3, ‘min_samples_split’: 3, ‘n_estimators’: 1000, ‘subsample’: 0.1}~~ SVR {‘C’: 100, ‘degree’: 3, ‘epsilon’: 0.01, ‘gamma’: ‘auto’, ‘kernel’: ‘rbf’} ~~RFR~~ ~~{‘max_depth’: None, ‘max_features’: ‘auto’, ‘min_samples_leaf’: 1, ‘min_samples_split’: 3, ‘n_estimators’: 1000}~~ DTR {‘max_depth’: 100, ‘max_features’: ‘auto’, ‘min_samples_leaf’: 1, ‘min_samples_split’: 0.01} ~~KNR~~ ~~{‘algorithm’: ‘ball_tree’, ‘leaf_size’: 30, ‘n_neighbors’: 5, ‘p’: 1, ‘weights’: ‘distance’}~~ ELN {‘alpha’: 0.0, ‘l1_ratio’: 0.0, ‘max_iter’: 2000} Abbreviations: ANN, artificial neural network; DTR, decision tree regression; ELN, elastic net; GBR, gradient boosting regression; KNR, K-neighbours regression; RFR, random forest regression; SVR, support vector regression. TA B L E A 3 Best performing hyperparamters determined via grid search predicting relative water permeability ANN {‘batch_size’: 30, ‘epochs’: 200, ‘learning_rate’: 0.0001, ‘neurons’: (256, 256, 256, 256, 256, 256)} <u>GBR</u> <u>{‘learning_rate’: 0.1, ‘max_depth’: 10, ‘min_samples_leaf’: 10, ‘min_samples_split’: 50, ‘n_estimators’: 2500, ‘subsample’:</u> 0.5} SVR {‘C’: 100, ‘epsilon’: 0.0001, ‘gamma’: ‘scale’, ‘kernel’: ‘rbf’} ~~RFR~~ ~~{‘max_depth’: None, ‘max_features’: ‘sqrt’, ‘min_samples_leaf’: 1, ‘min_samples_split’: 3, ‘n_estimators’: 250}~~ DTR {‘max_depth’: 50, ‘max_features’: ‘auto’, ‘min_samples_leaf’: 0.01, ‘min_samples_split’: 2} ~~KNR~~ ~~{‘algorithm’: ‘ball_tree’, ‘leaf_size’: 30, ‘n_neighbors’: 2, ‘p’: 2, ‘weights’: ‘distance’}~~ ELN {‘alpha’: 0.0, ‘l1_ratio’: 0.0, ‘max_iter’: 2000} Abbreviations: ANN, artificial neural network; DTR, decision tree regression; ELN, elastic net; GBR, gradient boosting regression; KNR, K-neighbours regression; RFR, random forest regression; SVR, support vector regression. TA B L E A 4 Best performing hyperparamters determined via grid search predicting relative gas diffusivity ANN {‘batch_size’: 10, ‘epochs’: 200, ‘learning_rate’: 0.0001, ‘neurons’: (256, 256, 256, 256, 256, 256)} <u>GBR</u> <u>{‘learning_rate’: 0.1, ‘max_depth’: 10, ‘min_samples_leaf’: 10, ‘min_samples_split’: 50, ‘n_estimators’: 2500, ‘subsample’:</u> 0.5} SVR {‘C’: 100, ‘epsilon’: 0.001, ‘gamma’: ‘scale’, ‘kernel’: ‘rbf’} ~~RFR~~ ~~{‘max_depth’: None, ‘max_features’: ‘sqrt’, ‘min_samples_leaf’: 1, ‘min_samples_split’: 3, ‘n_estimators’: 2500}~~ DTR {‘max_depth’: 50, ‘max_features’: ‘auto’, ‘min_samples_leaf’: 1, ‘min_samples_split’: 0.01} ~~KNR~~ ~~{‘algorithm’: ‘ball_tree’, ‘leaf_size’: 30, ‘n_neighbors’: 2, ‘p’: 2, ‘weights’: ‘distance’}~~ ELN {‘alpha’: 0.0, ‘l1_ratio’: 0.0, ‘max_iter’: 2000} Abbreviations: ANN, artificial neural network; DTR, decision tree regression; ELN, elastic net; GBR, gradient boosting regression; KNR, K-neighbours regression; RFR, random forest regression; SVR, support vector regression. g Best fold scores TA B L E A 5 When using the best parameters outlined in Section 6.1.1 the below negative mean absolute errors were obtained for predicting single-phase permeability for each model ~~Test fold 1~~ ~~Test fold 2~~ ~~Test fold 3~~ ~~Test fold 4~~ ~~Test fold 5~~ ANN −0.01668 −0.01526 −0.01952 −0.018 −0.01751 ~~GBR~~ ~~−0.01561~~ ~~−0.01595~~ ~~−0.01818~~ ~~−0.01799~~ ~~−0.01676~~ SVR −0.01469 −0.01479 −0.01636 −0.01651 −0.01334 ~~RFR~~ ~~−0.01989~~ ~~−0.01898~~ ~~−0.02196~~ ~~−0.02107~~ ~~−0.01973~~ DTR −0.03285 −0.0303 −0.03385 −0.03331 −0.03118 ~~KNR~~ ~~−0.02808~~ ~~−0.02622~~ ~~−0.03008~~ ~~−0.0313~~ ~~−0.02906~~ ELN −0.04677 −0.0479 −0.04594 −0.04698 −0.04541 Abbreviations: ANN, artificial neural network; DTR, decision tree regression; ELN, elastic net; GBR, gradient boosting regression; KNR, K-neighbours regression; RFR, random forest regression; SVR, support vector regression. TA B L E A 6 When using the best parameters outlined in Section 6.1.1 the below negative mean absolute errors were obtained for predicting single-phase diffusivity for each model ~~Test fold 1~~ ~~Test fold 2~~ ~~Test fold 3~~ ~~Test fold 4~~ ~~Test fold 5~~ ANN −0.02256 −0.02447 −0.02569 −0.02728 −0.0224 ~~GBR~~ ~~−0.02272~~ ~~−0.02408~~ ~~−0.02497~~ ~~−0.02532~~ ~~−0.02146~~ SVR −0.02205 −0.02349 −0.02492 −0.02536 −0.02094 ~~RFR~~ ~~−0.02538~~ ~~−0.02594~~ ~~−0.02906~~ ~~−0.02763~~ ~~−0.02354~~ DTR −0.03813 −0.04029 −0.04082 −0.04046 −0.03741 ~~KNR~~ ~~−0.03626~~ ~~−0.03603~~ ~~−0.03769~~ ~~−0.03999~~ ~~−0.03649~~ ELN −0.0356 −0.0373 −0.03704 −0.0395 −0.03578 Abbreviations: ANN, artificial neural network; DTR, decision tree regression; ELN, elastic net; GBR, gradient boosting regression; KNR, K-neighbours regression; RFR, random forest regression; SVR, support vector regression. TA B L E A 7 When using the best parameters outlined in Section 6.1.1 the below negative mean absolute errors were obtained for predicting relative permeability for each model ~~Test fold 1~~ ~~Test fold 2~~ ~~Test fold 3~~ ~~Test fold 4~~ ~~Test fold 5~~ ANN −0.01638 −0.01756 −0.01757 −0.01799 −0.01649 ~~GBR~~ ~~−0.01574~~ ~~−0.01623~~ ~~−0.01596~~ ~~−0.01584~~ ~~−0.01611~~ SVR −0.02771 −0.02822 −0.02709 −0.02772 −0.02807 ~~RFR~~ ~~−0.02548~~ ~~−0.02608~~ ~~−0.0253~~ ~~−0.02543~~ ~~−0.0257~~ DTR −0.03 −0.03072 −0.02971 −0.03029 −0.03096 ~~KNR~~ ~~−0.03199~~ ~~−0.03166~~ ~~−0.0311~~ ~~−0.03088~~ ~~−0.03195~~ ELN −0.10452 −0.10487 −0.1052 −0.10351 −0.10451 Abbreviations: ANN, artificial neural network; DTR, decision tree regression; ELN, elastic net; GBR, gradient boosting regression; KNR, K-neighbours regression; RFR, random forest regression; SVR, support vector regression. TA B L E A 8 When using the best parameters outlined in Section 6.1.1 the below negative mean absolute errors were obtained for predicting relative diffusivity for each model ~~Test fold 1~~ ~~Test fold 2~~ ~~Test fold 3~~ ~~Test fold 4~~ ~~Test fold 5~~ RFR −0.01932 −0.0195 −0.01975 −0.01913 −0.01998 ~~DTR~~ ~~−0.02401~~ ~~−0.02359~~ ~~−0.02407~~ ~~−0.02377~~ ~~−0.02417~~ KNR −0.02421 −0.02506 −0.02558 −0.02505 −0.02527 ~~ELN~~ ~~−0.04183~~ ~~−0.04087~~ ~~−0.04162~~ ~~−0.04108~~ ~~−0.04181~~ SVR −0.01967 −0.01994 −0.01982 −0.01971 −0.02025 ~~ANN~~ ~~−0.01438~~ ~~−0.01498~~ ~~−0.01457~~ ~~−0.01373~~ ~~−0.01517~~ GBR −0.0127 −0.01274 −0.01308 −0.01277 −0.013 Abbreviations: ANN, artificial neural network; DTR, decision tree regression; ELN, elastic net; GBR, gradient boosting regression; KNR, K-neighbours regression; RFR random forest regression; SVR support vector regression g Pore network permeability hand calculation ⎤ ⎥ ⎥⎦ ) = 0 ?= ?? = ∑? ?=1 ?ℎ,?? ( ?? −?? ⎡?1 ⎢ ?2 ⎢⎣?3 Pore 1 ∶?= ??? = ?ℎ,12 (?1 −?2) Pore 2 ∶?= 0 = ?ℎ,12 (?1 −?2) + ?ℎ,23 (?2 −?3) Pore 3 ∶?= ???? = ?ℎ,23 (?2 −?3) ??? = ???? = ? ????∶ ?ℎ, 12 = ?ℎ,21 ??= ? ? <sup>−</sup> ??= ? <sup>−</sup> ? ?= ? <sup>−</sup> ? By using an inversion algorithm to compute A <sup>–</sup> and solving for the unknown pressures (i.e. only P2 because P1 and P3 are known boundary conditions) X, we find and ?= − <sup><u>2?12?23</u></sup> ?12 + ?23 Then Q can be used in Darcy’s law to solve for permeability <u>???</u> ?= ?(???? −???) Permutation feature importance results <u>2?23</u> ?2 = ?12 + ?23 ?= ⎡ ?12 −?12 0 ⎢ −?12 (?12 + ?23) −?23 ⎢⎣ 0 −?23 ?23 ⎤ ⎥ ⎥⎦ ?= ⎡? ⎢ 0 ⎢⎣? ⎤ ⎥ ⎥⎦ g g

섹션 본문

섹션 본문이 없습니다.

참고문헌 63건

  1. Evaluation of machine learning algorithms for prediction of regions of high Reynolds averaged Navier Stokes uncertainty Physics of Fluids · American Institute of Physics · 2015 10.1063/1.4927765
  2. Greedy function approximation: A gradient boosting machine. The Annals of Statistics · Institute of Mathematical Statistics · 2001 10.1214/aos/1013203451
  3. Informatics for Materials Science and Engineering: Data-Driven Discovery for Accelerated Experimentation and Application Scopus · Institute of Electrical and Electronics Engineers · 2013
  4. Cross-property relations and permeability estimation in model porous media Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1993 10.1103/physreve.48.4584
  5. Lattice Boltzmann simulation of water and gas flow in porous gas diffusion layers in fuel cells reconstructed from micro-tomography Computers & Mathematics with Applications · Elsevier BV · 2012 10.1016/j.camwa.2012.08.006
  6. Micro/nano X-ray tomography reconstruction fine-tuning using scanning electron microscope images Micro & Nano Letters · Institution of Engineering and Technology · 2008 10.1049/mnl:20080030
  7. Coupled mechanical stress and multi-dimensional CFD analysis for high temperature proton exchange membrane fuel cells (HT-PEMFCs) International Journal of Hydrogen Energy · Elsevier BV · 2012 10.1016/j.ijhydene.2012.07.122
  8. Berechnung verschiedener physikalischer Konstanten von heterogenen Substanzen. I. Dielektrizitätskonstanten und Leitfähigkeiten der Mischkörper aus isotropen Substanzen Annalen der Physik · Wiley · 1935 10.1002/andp.19354160705
  9. Cross-Validation Methods Journal of Mathematical Psychology · Elsevier BV · 2000 10.1006/jmps.1999.1279
  10. Pore network modeling of fibrous gas diffusion layers for polymer electrolyte membrane fuel cells Journal of Power Sources · Elsevier BV · 2007 10.1016/j.jpowsour.2007.04.059
  11. Introduction to multi-layer feed-forward neural networks Chemometrics and Intelligent Laboratory Systems · Elsevier BV · 1997 10.1016/s0169-7439(97)00061-0
  12. Effect of porosity heterogeneity on the permeability and tortuosity of gas diffusion layers in polymer electrolyte membrane fuel cells Journal of Power Sources · Elsevier BV · 2013 10.1016/j.jpowsour.2013.09.061
  13. Anisotropic, effective diffusivity of porous gas diffusion layer materials for PEFC Electrochimica Acta · Elsevier BV · 2008 10.1016/j.electacta.2008.07.034
  14. Influence of local carbon fibre orientation on the water transport in the gas diffusion layer of polymer electrolyte membrane fuel cells Electrochemistry Communications · Elsevier BV · 2014 10.1016/j.elecom.2014.12.013
  15. The Dynamics of Capillary Flow Physical Review · American Institute of Physics · 1921 10.1103/physrev.17.273
  16. Heterogeneous Through-Plane Porosity Distributions for Treated PEMFC GDLs I. PTFE Effect Journal of The Electrochemical Society · Institute of Physics · 2011 10.1149/1.3594578
  17. WATER VAPOR TRANSPORT WITH CONDENSATION IN A GAS DIFFUSION LAYER OF A PROTON EXCHANGE MEMBRANE FUEL CELL Heat Transfer Research · Begell House · 2012 10.1615/heattransres.2012004486
  18. Prediction of relative permeability in simple porous media Physical Review A · American Physical Society · 1992 10.1103/physreva.46.2004
  19. The effects of compression on single and multiphase flow in a model polymer electrolyte membrane fuel cell gas diffusion layer International Journal of Hydrogen Energy · Elsevier BV · 2014 10.1016/j.ijhydene.2014.11.051
  20. Identifying the Representative Elementary Volume for Permeability in Heterolithic Deposits Using Numerical Rock Models Mathematical Geosciences · Springer Science+Business Media · 2008 10.1007/s11004-008-9182-4
  21. Experimental measurements of effective diffusion coefficient of oxygen–nitrogen mixture in PEM fuel cell diffusion media Chemical Engineering Science · Elsevier BV · 2009 10.1016/j.ces.2009.09.044
  22. Absolute permeability and Knudsen diffusivity measurements in PEMFC gas diffusion layers and micro porous layers Journal of Power Sources · Elsevier BV · 2012 10.1016/j.jpowsour.2012.01.099
  23. Predicting water and current distributions in a commercial-size PEMFC Journal of Power Sources · Elsevier BV · 2004 10.1016/j.jpowsour.2004.03.059
  24. Viscous Permeability of Random Fiber Structures: Comparison of Electrical and Diffusional Estimates with Experimental and Analytical Results Journal of Composite Materials · SAGE Publishing · 2004 10.1177/0021998305046438
  25. 3D analysis, modeling and simulation of transport processes in compressed fibrous microstructures, using the Lattice Boltzmann method Electrochimica Acta · Elsevier BV · 2013 10.1016/j.electacta.2013.04.071
  26. Effects of hydrophobic polymer content in GDL on power performance of a PEM fuel cell Electrochimica Acta · Elsevier BV · 2004 10.1016/j.electacta.2004.04.009
  27. Ordinary and transition regime diffusion in random fiber structures AIChE Journal · Wiley · 1993 10.1002/aic.690390304
  28. Characterization of PEMFC Gas Diffusion Layer Porosity Journal of The Electrochemical Society · Institute of Physics · 2015 10.1149/2.0921506jes
  29. A Quantitative Technique to Compare Experimental Observations and Numerical Simulations of Percolation in Thin Porous Materials Transport in Porous Media · Springer Science+Business Media · 2016 10.1007/s11242-016-0672-4
  30. OpenPNM: A Pore Network Modeling Package Computing in Science & Engineering · AIP Publishing · 2016 10.1109/mcse.2016.49
  31. An Introduction to Statistical Learning Springer texts in statistics · Springer International Publishing · 2013 10.1007/978-1-4614-7138-7
  32. Incorporating Embedded Microporous Layers into Topologically Equivalent Pore Network Models for Oxygen Diffusivity Calculations in Polymer Electrolyte Membrane Fuel Cell Gas Diffusion Layers Electrochimica Acta · Elsevier BV · 2016 10.1016/j.electacta.2016.08.126
  33. Gas-diffusion-layer structural properties under compression via X-ray tomography Journal of Power Sources · Elsevier BV · 2016 10.1016/j.jpowsour.2016.08.020
  34. Review on microstructure modelling of a gas diffusion layer for proton exchange membrane fuel cells Renewable and Sustainable Energy Reviews · Elsevier BV · 2016 10.1016/j.rser.2016.11.235
  35. A method for measuring relative in-plane diffusivity of thin and partially saturated porous media: An application to fuel cell gas diffusion layers International Journal of Heat and Mass Transfer · Elsevier BV · 2017 10.1016/j.ijheatmasstransfer.2017.02.096
  36. Hidden physics models: Machine learning of nonlinear partial differential equations Journal of Computational Physics · Elsevier BV · 2017 10.1016/j.jcp.2017.11.039
  37. Versatile and efficient pore network extraction method using marker-based watershed segmentation Physical review. E · American Physical Society · 2017 10.1103/physreve.96.023307
  38. The impact of sample size on transport properties of carbon-paper and carbon-cloth GDLs: Direct simulation using the lattice Boltzmann model International Journal of Heat and Mass Transfer · Elsevier BV · 2017 10.1016/j.ijheatmasstransfer.2017.11.003
  39. The effects of gas diffusion layers structure on water transportation using X-ray computed tomography based Lattice Boltzmann method Journal of Power Sources · Elsevier BV · 2017 10.1016/j.jpowsour.2017.12.016
  40. Driving digital rock towards machine learning: Predicting permeability with gradient boosting and deep neural networks Computers & Geosciences · Elsevier BV · 2019 10.1016/j.cageo.2019.02.002
  41. Data-driven material discovery for photocatalysis: a short review Journal of Semiconductors · IOP Publishing · 2018 10.1088/1674-4926/39/7/071001
  42. Analysis of representative elementary volume and through-plane regional characteristics of carbon-fiber papers: diffusivity, permeability and electrical/thermal conductivity International Journal of Heat and Mass Transfer · Elsevier BV · 2018 10.1016/j.ijheatmasstransfer.2018.07.030
  43. Predicting the effective thermal conductivities of composite materials and porous media by machine learning methods International Journal of Heat and Mass Transfer · Elsevier BV · 2018 10.1016/j.ijheatmasstransfer.2018.08.082
  44. Numerical investigation of hydrogen consumption in Proton Exchange Membrane Fuel Cell by using computational fluid dynamics (CFD) simulation Mediterranean Journal of Chemistry · Med Journals Editions · 2018 10.13171/mjc7618121415ya
  45. Dual network extraction algorithm to investigate multiple transport processes in porous materials: Image-based modeling of pore and grain scale processes Computers & Chemical Engineering · Elsevier BV · 2018 10.1016/j.compchemeng.2018.12.025
  46. Random Forests Machine Learning · Springer Science+Business Media · 2001 10.1023/a:1010933404324
  47. Tuning MPL Intrusion to Increase Oxygen Transport in Dry and Partially Saturated Polymer Electrolyte Membrane Fuel Cell Gas Diffusion Layers Journal of The Electrochemical Society · Institute of Physics · 2019 10.1149/2.0021907jes
  48. PoreSpy: A Python Toolkit for Quantitative Analysis of Porous Media Images The Journal of Open Source Software · Open Journals · 2019 10.21105/joss.01296
  49. Establishing Accuracy of Watershed-Derived Pore Network Extraction for Characterizing In-Plane Effective Diffusivity in Thin Porous Layers Journal of The Electrochemical Society · Institute of Physics · 2019 10.1149/2.0251907jes
  50. Methods for data-driven multiscale model discovery for materials Journal of Physics Materials · IOP Publishing · 2019 10.1088/2515-7639/ab291e
  51. Pore network modelling to enhance liquid water transport through porous transport layers for polymer electrolyte membrane electrolyzers Journal of Power Sources · Elsevier BV · 2019 10.1016/j.jpowsour.2019.226910
  52. Resolving the gas diffusion layer substrate land and channel region contributions to the oxygen transport resistance of a partially-saturated substrate Electrochimica Acta · Elsevier BV · 2019 10.1016/j.electacta.2019.135001
  53. Predicting Effective Diffusivity of Porous Media from Images by Deep Learning Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-56309-x
  54. Optimizing Porous Transport Layer Design Parameters via Stochastic Pore Network Modelling: Reactant Transport and Interfacial Contact Considerations Journal of The Electrochemical Society · Institute of Physics · 2020 10.1149/1945-7111/ab6557
  55. X-ray Micro-Computed Tomography of Polymer Electrolyte Fuel Cells: What is the Representative Elementary Area? Journal of The Electrochemical Society · Institute of Physics · 2020 10.1149/1945-7111/ab6983
  56. Probing the Structure-Performance Relationship of Lithium-Ion Battery Cathodes Using Pore-Networks Extracted from Three-Phase Tomograms Journal of The Electrochemical Society · Institute of Physics · 2020 10.1149/1945-7111/ab7bd8
  57. Pore Network Modelling of Capillary Transport and Relative Diffusivity in Gas Diffusion Layers with Patterned Wettability Journal of The Electrochemical Society · Institute of Physics · 2020 10.1149/1945-7111/ab9d61
  58. Machine learning-based models for predicting permeability impairment due to scale deposition Journal of Petroleum Exploration and Production Technology · Springer Nature · 2020 10.1007/s13202-020-00941-1
  59. Machine learning prediction of thermal transport in porous media with physics-based descriptors International Journal of Heat and Mass Transfer · Elsevier BV · 2020 10.1016/j.ijheatmasstransfer.2020.120176
  60. Predicting porosity, permeability, and tortuosity of porous media from images by deep learning Scientific Reports · Nature Portfolio · 2020 10.1038/s41598-020-78415-x
  61. Physics- and image-based prediction of fluid flow and transport in complex porous membranes and materials by deep learning Journal of Membrane Science · Elsevier BV · 2021 10.1016/j.memsci.2021.119050
  62. Modelling and Applications of Transport Phenomena in Porous Media Theory and applications of transport in porous media · Springer International Publishing · 1991 10.1007/978-94-011-2632-8
  63. Interpretable deep learning: interpretation, interpretability, trustworthiness, and beyond Knowledge and Information Systems · Springer Science+Business Media · 2022 10.1007/s10115-022-01756-8