Skip to Content
AIAI
  • Article
  • Open Access

3 December 2026

30 Pages

Towards Better Injecting Material Conditioning into Encoder-Decoder Neural Networks for Antenna Spectral Response Prediction

and
Faculdade de Engenharia Elétrica e de Computação, Universidade Estadual de Campinas (UNICAMP), Avenida Albert Einstein, 400, Campinas 13083-852, São Paulo, Brazil
*
Author to whom correspondence should be addressed.
AI2026, 7(12), 515;https://doi.org/10.3390/ai7120515 
(registering DOI)

Abstract

Accurate modeling of antenna parameters is essential for efficient design, yet simulating the spectral response is costly, and many data-driven approaches focus on predicting one or two scalars (such as resonant frequencies) instead of the | S 11 | curve, from which most resonance characteristics can be extracted. In this work, we propose encoder–decoder artificial neural networks to predict the | S 11 | response curve of pixelated microstrip antennas from 1 to 13 GHz across five different substrate materials, and extract resonance characteristics from it, such as resonance frequency, return loss, fractional bandwidth, and quality factors. We perform a statistical significance analysis of strategies for incorporating substrate-material conditioning into the neural architectures and find that, relative to a baseline that incorporates material properties only at the input layer, six out of eight strategies consistently outperform the baseline, achieving MAE reductions ranging from 10.13% to 13.92%. In a second experiment using a different data partition, we develop an encoder-fusion architecture that combines the pretrained encoders of the baseline and the six strategies selected in the first experiment, followed by a single decoder. This architecture achieves an additional 8.15% reduction in MAE relative to the best individual model evaluated under the second experimental protocol. This study presents two strategies to improve model performance without requiring more data, resulting in a cheaper-to-run and faster-than-simulation surrogate model for predicting the | S 11 | curves of multi-material microstrip pixelated antennas.

1. Introduction

Microstrip antennas are a mature technology for modern wireless communication systems [1] due to their compact profile, low manufacturing cost, low weight, and ease of integration with planar microwave circuits. Essentially, they consist of a metallic radiating patch printed on a dielectric substrate with a ground plane. This configuration offers a versatile platform for designing structures with different geometries, polarization, radiation patterns, operating frequency, etc. Their compatibility with printed circuit boards enables cost-effective mass production and facilitates integration into compact electronic devices. These characteristics make them particularly attractive for applications in which reduced dimensions, low profile, and system integration are essential requirements, as is the case for satellite and mobile communication systems, wireless local area networks (WLAN), global navigation satellite systems (GNSS), Internet of Things (IoT) devices, radar systems, wearable electronics, biomedical instrumentation, and 5G/6G wireless networks.
The increasing demand for compact and multifunctional antennas has motivated the development of increasingly flexible geometries, including pixelated microstrip antennas [2], in which the conductive region is defined by discrete spatial configurations. This representation provides a large design space and enables the realization of complex and multiband electromagnetic responses. Consequently, efficient exploration of such design spaces requires predictive models capable of accurately relating antenna geometry and physical properties to their electromagnetic response.
Full-wave electromagnetic simulation is widely employed to characterize antenna performance during the design process, providing detailed information over a range of frequencies. However, repeated simulations become computationally expensive when large numbers of candidate geometries, operating conditions, or substrate configurations must be evaluated. This computational cost has motivated the development of surrogate models based on evolutionary algorithms [3], memetic algorithms [4,5], quantum-inspired methods [6], and machine learning techniques [2,7,8,9,10,11,12,13]. Recent advances in neural-network-based surrogate modeling have demonstrated the ability to learn the relationship between pixelated antenna geometries and their electromagnetic characteristics directly from data. In previous work, we investigated encoder–decoder neural architectures for predicting multiple resonance characteristics and subsequently extended this formulation to predict the complete | S 11 | response over a broad frequency range [14]. Predicting the full spectral response provides a flexible representation from which resonance frequency, return loss, bandwidth, quality factor, and other characteristics can be obtained through post-processing.
A further requirement for practical surrogate modeling arises when antennas use different substrate materials. The electromagnetic response of a microstrip antenna depends on both its geometry and the substrate’s physical properties, particularly the dielectric constant and loss tangent, which influence resonance frequencies, impedance characteristics, and dissipative effects. Accordingly, a surrogate model designed to accommodate multiple substrates must capture the dependence of the spectral response on both geometric and material parameters, as expressed by
| S 11 | = f ( G , ϵ r , tan δ , k ) ,
where G represents the antenna geometry, ϵ r is the relative permittivity, tan δ is the loss tangent, and k is the substrate’s thermal conductivity.
In this work, five substrate materials are considered, and their physical properties are provided to the neural networks as conditioning inputs. Relative permittivity and loss tangent describe the substrate’s electromagnetic properties, while thermal conductivity provides an additional, non-electromagnetic descriptor that may help distinguish materials with similar electromagnetic characteristics. Together, these parameters provide a compact, physically interpretable representation of the substrate for predicting the antenna’s | S 11 | response.
The manner in which these physical parameters are incorporated into the neural architecture can influence how effectively the network learns the relationship between antenna geometry, material properties, and electromagnetic response. Material information may interact with geometric features at different stages of representation learning, resulting in latent representations with different predictive characteristics. This motivates a systematic comparison of alternative material-conditioning strategies within the encoder–decoder architecture. The strategies are evaluated under controlled experimental conditions, with statistical significance analysis used to assess the consistency of their performance relative to a baseline in which the material parameters are directly incorporated at the network input.
The diversity of the resulting representations also motivates their joint exploitation, since each conditioning strategy processes the same geometric and material information while introducing the physical parameters at a different stage of the architecture, the resulting encoders may learn complementary representations of the antenna–material relationship. These latent representations can therefore be combined through an encoder-fusion ensemble [15] and supplied to a common decoder, allowing the model to integrate information learned from multiple conditioning strategies.
The main contributions of this work are summarized as follows. First, we extend full spectral-response surrogate modeling of pixelated microstrip antennas to multiple substrate materials by incorporating physically meaningful material parameters into the neural architecture. Second, we systematically evaluate eight strategies for conditioning an encoder–decoder model with dielectric constant, loss tangent, and thermal conductivity, using direct input conditioning as the baseline. Third, we assess the statistical significance of the resulting prediction errors to identify conditioning strategies that provide consistent improvements in the mean absolute error of the predicted | S 11 | curves. Fourth, we introduce encoder-fusion ensembles that combine the latent representations generated by the evaluated conditioning strategies, further improving spectral-response prediction. The resulting surrogate models enable efficient prediction of the | S 11 | response across multiple substrate materials and facilitate the subsequent extraction of their resonance characteristics.

Related Work

The incorporation of material properties into machine-learning-based antenna modeling has received increased attention, particularly in applications where the substrate or resonator material constitutes an additional design variable. Early studies have investigated the use of artificial neural networks (ANNs) to jointly consider antenna geometry and substrate selection. In [16], an ANN was employed for the optimization of an ultra-wideband antenna for wireless body area network applications, considering five substrate materials with different dielectric properties. The substrate relative permittivity, together with the substrate height and feed dimensions, was provided as input to the model, while the antenna impedance was used as the output. The resulting model was subsequently used to identify a suitable combination of substrate material and geometric parameters, demonstrating the potential of machine learning to accelerate material selection during antenna design. Although multiple substrates were considered, the material information was primarily represented through its dielectric constant, and the model focused on a limited set of antenna performance characteristics rather than the complete frequency response.
More recent studies have extended this concept toward material-aware inverse design. In [17], a data-driven framework was developed for the joint dielectric–geometric inverse design of rectangular dielectric resonator antennas, although their objective differs from ours, as their framework addresses inverse design rather than forward electromagnetic modeling; this work highlights the relevance of incorporating material properties into data-driven antenna design. In contrast, our approach uses substrate properties and antenna geometry as inputs to predict the corresponding electromagnetic response, enabling the exploration of different substrate configurations without repeated full-wave simulations. In [17], the relative permittivity of the resonator was treated as a continuous design variable alongside three geometric parameters, allowing the optimization process to explore material–geometry combinations simultaneously. Several regression models, including multilayer perceptrons, random forests, and gradient boosting, were evaluated for predicting resonant frequency and other antenna characteristics. The selected surrogate was subsequently coupled with differential evolution to identify designs satisfying multiple electromagnetic objectives. This approach demonstrates the benefit of treating material properties as explicit design variables rather than fixing the substrate during optimization. However, the surrogate predicts a set of extracted antenna characteristics rather than the complete frequency-dependent response.
Material-aware modeling has also been investigated in the context of inverse antenna design, particularly for broad ranges of antenna configurations and operating conditions. In [18], deep convolutional neural networks with material-parameter embedding were proposed to construct inverse surrogates capable of covering diverse substrate properties. Unlike the forward modeling approach considered in this work, their model maps target frequency responses to antenna geometry parameters, while incorporating variations in material properties through an embedding mechanism. A dimensionality-reduced representation of the design space was further employed to reduce the number of electromagnetic simulations required for model construction. The resulting inverse surrogate enabled rapid generation of initial designs, which were subsequently refined through gradient-based optimization. Although addressing a different modeling objective, this work further demonstrates the importance of incorporating material information into neural network models to account for variations in substrate properties across a broad range of electromagnetic configurations.
Despite these advances, existing studies predominantly employ material properties either as design variables for inverse optimization or as auxiliary inputs for predicting selected antenna characteristics. In contrast, predicting the complete frequency response across multiple materials presents a distinct challenge, since changes in material properties can alter both the location and characteristics of multiple resonances over the operating frequency range. A forward surrogate capable of directly predicting the full S 11 response while conditioning the model on material properties can therefore provide a more general representation of the electromagnetic behavior and avoid restricting the model to a predefined set of scalar performance metrics. This approach is particularly relevant for parametrized antennas in which the same geometric representation is evaluated using different materials.

2. Materials and Methods

2.1. Antenna Geometries

The microstrip antenna geometries considered for this work are derived from a reference antenna, similar to [2], known for its capacity for dual band modes when using a substrate with ϵ r = 2.65. The antenna is built on a finite substrate with lateral dimensions S y = 34.45 mm , S x = 23.85 mm , and a thickness h = 0.762 mm . The antenna consists of a feed line with width w f = 2.12 mm and length l f = 13.25 mm , a radiating patch element on the same plane, and a ground in the opposite plane with width ( G x = S x ) and length of G y = 12.72 mm . The radiating patch has dimensions R y = 21.2 mm and R x = 14.31 mm , and its domain is made discrete into a 6 × 8 grid of rectangular unit cells with sizes Δ y = 2.65 mm and Δ x = 2.385 mm . Finally, a conductive extension of 0.2 mm is added along the upper edges of pixels diagonally adjacent to empty cells, to guarantee connectivity. For neural network training purposes, only a binary grid of 6 × 8 elements, representing conductive and dielectric regions, is considered, and the electromagnetic behavior is associated with the equivalent of the continuous antenna described above. The physical and discrete patch representations of the reference antenna can be visualized in Figure 1. The reference base antenna has 29 grid cells marked with conductive pixels and 19 with dielectric. We generate derivative antennas from this reference by turning between 2 and 4 pixels into conductive material of the 19 dielectric pixels per generated new geometry, as in [2], to delimit the variations in the pixelated antenna geometry to make the modeling problem feasible. These controlled permutations allow us to generate up to 5016 distinct geometries.
Figure 1. The baseline antenna geometry: in the left, the physical representation of the antenna; in the right, the binary discrete representation of the radiating patch. Orange cells are conductive material, blue cells dielectric material.

2.2. Materials

For the conditioning study, we have considered five substrate materials: AD250C, AD255C, AD300D, RO3003, and AD350A. Their characteristics are displayed in Table 1.
Table 1. Substrate materials physical properties.

2.3. Dataset

The dataset is created by simulating the | S 11 | response of each possible geometry for each material, using the time-domain solver in CST Microwave Studio from 1 to 13 GHz, where the response curves are sampled at 1000 points across the frequency range. There are 5016 radiating patch geometries and 5 materials, for a total of 25,080 dataset samples. For artificial neural network input and training purposes, only the discrete radiating patch 6 × 8 binary grid, the material properties ( ϵ r , tan δ , k), and the | S 11 | response curves are used. The feed line, ground, and extensions are considered to be fixed; therefore, the mappings learned by the artificial neural networks also consider these to be fixed. The dataset sample resonance extraction method is described as follows: a resonance is identified when the | S 11 | curve crosses below the (−10) dB threshold and reaches a minimum with a prominence of at least (0.15) dB relative to this threshold. To exclude incomplete resonances at the frequency boundaries, the resonance is retained only if the | S 11 | curve subsequently rises above the (−10) dB threshold within the analyzed frequency range. Based on these criteria, the dataset comprises 189 antennas exhibiting one resonance, 24,875 antennas exhibiting two resonances, and 16 antennas exhibiting three resonances. All of the first resonances appear between 3 and 4 GHz, while some of the second appear around 6.5 to 8.3 GHz, most between 8.9 GHz and 11 GHz, and some between 11 and 12 GHz. The complete distribution can be visualized in Figure 2.
Figure 2. The distribution of all resonance frequencies found within the dataset, across all five substrates.
Most of the return losses at resonance sit around −20 dB, while a few go as low as −75 dB. The return losses at resonance are visualized in Figure 3.
Figure 3. The distribution of return losses at resonant frequencies, across all five substrates.
The fractional bandwidth of the dataset resonances vaguely resembles a Gaussian curve centered around 0.3; it is visualized in Figure 4.
Figure 4. The distribution of the fractional bandwidth of the resonances, across all five substrates.
Two randomly picked dataset samples, with different materials, are displayed for inspection in Figure 5 and Figure 6.
Figure 5. Dataset sample id 7085: (a) the physical antenna representation, (b) the discrete radiating patch, (c) the simulated | S 11 | ; substrate material AD255C, ϵ r = 2.60, tan δ = 0.0013, k = 0.35 W/(m K).
Figure 6. Dataset sample id 23877: (a) the physical antenna representation, (b) the discrete radiating patch, (c) the simulated | S 11 | ; substrate material AD350A, ϵ r = 3.50, tan δ = 0.0033, k = 0.44 W/(m K).
It is important to note that the dataset does not represent an exhaustive sampling of the full 6 × 8 pixelated antenna design space. While improvements discovered here may apply to neural network antenna modeling learning in general, the prediction results presented in this work assess their ability to predict electromagnetic responses for configurations represented by the design space covered by the dataset described in this section and the geometries described in Section 2.1, rather than demonstrating generalization to arbitrary pixelated geometries, substantially different antenna topologies, or configurations outside the sampled domain. Claims regarding accurate prediction of percentages of design space apply to the used dataset described in this section, and possibly to datasets with similar border and generation rules. Evaluating broader geometric generalization would require additional datasets containing more diverse antenna topologies and geometric configurations.

2.4. Artificial Neural Network Architectures

The study is centered around a simple dense encoder–decoder artificial neural network architecture. All hidden layers are proceeded by a LeakyReLu activation layer. Hidden layer sizes are defined by the size of the network input (i), and each one is capable of being scaled by a factor S, which is kept as 1.0 for most experiments. The encoder has three sequential linear layers, with sizes 16 × i , 12 × i , and 6 × i . The second encoder layer is proceeded by a dropout layer with p = 0.2 . The latent layer has a fixed size of 228. The decoder has two sequential linear layers with sizes 6 × i and 12 × i . The output layer has a fixed size of 1000, which corresponds to the spectral response the network has to predict. The reference architecture is visualized in Figure 7. Its input is the discrete radiating patch 6 × 8 matrix, flattened into a 48-value array, concatenated with the material conditioning array, which contains three values ( ϵ r , tan δ , k), for a total input size of 51.
Figure 7. The baseline reference artificial neural network architecture of the dense encoder and dense decoder architecture. The material conditioning information, ϵ r , tan δ , and k are concatenated with the input at the first layer.
With the goal of finding superior material conditioning strategies for encoder–decoders architectures, we designed eight other material conditioning injection patterns, displayed in Figure 8, by slightly changing the reference architecture. Each resulting architecture can be visualized in Figure 8, for each architecture.
Figure 8. Conditioning architectures (“cvars” denotes conditioning variables): (a) cvars are concatenated with the input and all hidden layers; (b) cvars concatenated with all encoder layers; (c) cvars concatenated with input and latent layers; (d) cvars concatenated with input, latent, and output layers; (e) cvars concatenated with input and last decoder layer; (f) cvars concatenated with latent as last decoder layer; (g) cvars concatenated with last decoder layer; (h) cvars concatenated with all decoder layers.
In the enumeration shown in Figure 8, architecture (a) concatenates the conditioning variables with all layers except the output layer; architecture (b) incorporates them into all encoder layers; architecture (c) into the input and latent layers; architecture (d) into the input, latent, and output layers; architecture (e) into the input and output layers; architecture (f) into the latent and output layers; architecture (g) into the output layer only; and architecture (h) into all decoder layers. For architectures (f–h), the input size is 48, which results in a slightly smaller overall network.

2.5. Training Methods

Each individual model corresponding to the nine architectures described above was trained using custom domain-aware loss functions from [14] and a hybrid optimization procedure combining stochastic gradient descent (SGD) and AdamW developed in [19]. During training, the AdamW learning rate was reduced, and its momentum states were reset three times. Each step training epoch amount is a fraction of the total training epochs. For each step, the model from the epoch with the lowest loss according to the validation set is sent to the next step. As the specific training and optimization procedure is not a primary focus of this study, the complete methodology and implementation details are provided for reproduction in Appendix A.1.

2.6. Dataset Normalization

Before model training, the values corresponding to | S 11 | , ϵ r , tan δ , and k are normalized independently. For each variable, an original value x is transformed into its normalized representation x norm according to
x norm = δ + ( 1 − δ ) x − x min x max − x min
where x min and x max represent the minimum and maximum values of the corresponding variable type in the training set, respectively, and δ = 10 − 3 is a small positive constant. This formulation constrains the normalized values to the interval [ δ , 1 ] , avoiding exact 0 values while preserving the relative ordering of the original samples. The original values are recovered from the normalized values through the inverse transformation:
x = x norm − δ 1 − δ x max − x min + x min
During inference, model outputs are de-normalized using the same process.

2.7. Statistical Significance Evaluation

To determine which material-conditioning strategy consistently produces models with smaller average MAE, the nine architectures, comprising one reference architecture and eight exploratory architectures, were each trained for 1012 epochs over 11 runs, resulting in a total of 99 trained models. The dataset-splitting seed and training seed were fixed at 123 for all runs. The training seed controls the stochastic processes from data-loader initialization through the completion of training, thereby maintaining identical training conditions across runs. In contrast, the model-initialization seed was varied across 11 values, [123, 97, 89, 83, 79, 73, 71, 67, 53, 61, 37], of which 10 are prime numbers. Consequently, the dataset partitioning and stochastic training processes remained fixed, while the initial model parameters were varied across runs, providing repeated observations for the statistical analysis.
The dataset was partitioned into training, validation, and test subsets using a two-stage stratified splitting procedure based on the relative dielectric constant, ε r , to preserve the relative distribution of the five ε r values across all three subsets. Initially, 40% of the samples were assigned to the training set, while the remaining 60% formed a temporary subset that was subsequently divided into validation and test sets. This resulted in final proportions of approximately 40%, 4%, and 56% for training, validation, and testing, respectively. In this scenario, the training set was designed to be smaller than the test set, to increase the model prediction challenge and provide a more statistically robust subset for the statistical analysis.
For the resulting dataset of 25,080 samples, the training, validation, and test sets contained 10,032, 938, and 14,110 samples, respectively. The stratification procedure maintained an approximately proportional distribution of the five dielectric-constant values across the three subsets; specifically, the training set contained approximately 2006–2007 samples for each ε r value, the validation set contained 187–188 samples, and the test set contained 2822 samples per value.
After training all 99 models, the resulting prediction errors were first analyzed using analysis of variance (ANOVA) [20] to determine whether statistically significant differences existed among the architectures. When the ANOVA indicated a statistically significant difference (p < 0.05), pairwise comparisons between each exploratory architecture and the reference architecture were performed using the Wilcoxon signed-rank test [21]. Holm’s correction [22] was applied to the resulting p-values to account for multiple comparisons and control the family-wise error rate. To complement the Wilcoxon signed-rank tests, the matched-pairs rank-biserial correlation was calculated to quantify the magnitude and direction of the differences between architectures. Following the formulation described by [23], the effect size was computed as
r rb = ( R + − R − ) / ( R + + R − )
where R + and R − denote the sums of the ranks associated with positive and negative paired differences, respectively. For each experimental run, the paired difference was defined as the MAE of the reference architecture minus that of the compared architecture; thus, positive effect sizes indicate lower MAE for the compared architecture. Following the Wilcoxon convention, zero differences were excluded from the ranking procedure, and average ranks were assigned to tied absolute differences. The uncertainty of the estimated effect sizes and relative MAE improvements was assessed using a nonparametric paired-bootstrap procedure [24], in which 20,000 bootstrap samples, each containing 11 paired experimental runs drawn with replacement, were generated. The same resampled indices were applied to both architectures to preserve the correspondence between experimental runs. For each resample, the relative MAE improvement and matched-pairs rank-biserial correlation were recalculated. The 95% confidence intervals were then obtained using the percentile method, defined by the 2.5th and 97.5th percentiles of the corresponding bootstrap distributions. This procedure provides an estimate of the uncertainty associated with the observed effects without relying on a normal approximation for their sampling distributions.

2.8. Encoder Fusion-Decoder Training Method

For training the encoder-fusion (EF) ensemble, the dataset partition was modified to 60% training (15,048 samples), 6% validation (1003 samples), and 34% test (9029 samples) to increase the amount of data available for model training while retaining a dedicated validation subset. The goal of the dataset split change is to increase the final models’ quality. The dataset split, training, and model initialization random seeds were set to 123 for all training. The same stratified splitting procedure described in Section 2.7 was employed, resulting in 3010 samples in training, 200 in validation, and 1806 in test subsets per material. The encoder-fusion architecture will be assembled by using the encoders of statistically significant better conditioning architectures discovered in the first experiment and a single decoder. Since the architectures to be used as part of the encoder-fusion ensemble are later discovered in the results in Section 3.1, the actual encoder-fusion architecture is defined in the results in Section 3.2. The selected architectures according to the statistical evaluation described in Section 2.7 are then first trained independently for 2025 epochs with the dataset split presented in this section. The reference model and the models with the smallest curve MAE and smallest curve RMSE are selected to have a copy version with parameter count scaled to a similar parameter count to the encoder-fusion model, by scaling each linear layer by a factor S, to provide a basis for comparison regarding parameter count effect. The architecture of the encoder-fusion model is defined as: the individual model encoders are incorporated into a single ensemble model, in which the corresponding latent representations are concatenated to form a unified representation. This fused representation is subsequently provided to the dense decoder corresponding to architecture (h) in Figure 8, with its input dimensionality adjusted to accommodate the concatenated latent representations.
Three protocols are used to train the encoder-fusion model. The first id EF PT, where each encoder is initialized from the weights of its corresponding individually trained model, the encoder parameters are frozen, and the decoder is trained for 2025 epochs using the same optimization procedure and loss formulation described in Section 2.5 and Appendix A.1. The second is EF PTFN, which extends the protocol of EF PT by later unfreezing the encoder parameters, and the complete model is fine-tuned for 142 epochs using AdamW with a learning rate of 10 − 4 , which allows the encoder representations to be jointly adapted to the new decoder and to the resulting integrated representation. The third is EF RD, where the model architecture is trained from random initialization, without using any pretrained weights, following the procedure defined in Section 2.5 and Appendix A.1 for 2025 epochs, which serves as a baseline for the complete encoder-fusion architecture.
Finally, an ablation study is conducted using the leave-one-out strategy [25]: for each individual architecture that composes the encoder fusion, a new architecture without that individual encoder is created and trained using the same training procedure described for the EF PTFN model. The results allow us to verify which encoders contribute more to reducing prediction errors.

3. Results

3.1. Statistical Significance Tests Results

The average prediction mean absolute error of each of the nine architectures across the 11 training runs alongside with the corresponding standard deviations are visualized in Figure 9 and Table 2.
Figure 9. The central marker represents the mean MAE across 11 training runs for each conditioning architecture, evaluated on the 56% test subset using random seed 123. Error bars indicate the corresponding standard deviation.
Table 2. Mean MAE across 11 training runs for each material variable conditioning architecture and its respective standard deviation using the 56% test subset.
The initial analysis employed a one-way repeated-measures ANOVA, with conditioning architecture as the within-subject factor and random initialization seed as the subject identifier. The curve MAE measurements from all nine architectures were evaluated across the 11 seeds, ensuring that each subject contributed a complete set of matched observations and accounting for the dependence between measurements obtained using the same initialization seed. The analysis tested the null hypothesis that the mean curve MAE was equal across all nine architectures. The resulting test yielded F ( 8 , 80 ) = 5.3673 with p < 0.001 , indicating a statistically significant difference in mean curve MAE among the evaluated conditioning architectures. This result motivated the subsequent pairwise statistical comparisons between the individual architectures and the reference model. The actual output of the ANOVA test can be verified in Table 3.
Table 3. Repeated-measures ANOVA results for the conditioning architectures.
Following the repeated-measures ANOVA, a one-sided paired Wilcoxon signed-rank test was performed for each alternative architecture against the reference, pairing MAE values by initialization seed. The results are visualized in Table 4. The test evaluated whether the alternative architecture yielded lower MAE than the reference, with the alternative hypothesis that the reference architecture has greater MAE. In Table 4, the percentage improvement in mean MAE was calculated as the mean relative reduction with respect to the reference architecture across the 11 seeds. Since eight architecture comparisons were performed, the resulting p-values were adjusted using the Holm procedure with a significance level of α = 0.05 to control the family-wise error rate. An alternative architecture was considered statistically significant when its Holm-adjusted p-value was below 0.05. Under this criterion, six of the eight alternative conditioning strategies exhibited statistically significant reductions in MAE relative to the reference architecture, with mean improvements ranging from 10.13% to 13.92%.
Table 4. Pairwise Wilcoxon signed-rank test results comparing the conditioning architectures with the input-conditioned reference, with rank biserial effect size and confidence intervals.
The 95% confidence interval (CI) for MAE improvement represents the uncertainty associated with the estimated relative reduction in MAE achieved by each compared architecture with respect to the input reference. Positive values indicate an improvement, whereas negative values indicate an increase in MAE. Therefore, intervals entirely above zero provide evidence of a consistent improvement, while intervals spanning zero indicate that the available experimental runs do not establish a clear direction of the effect. Within the significant better conditioning architectures, the smallest lower bound of the range was 4.03% ((g) Out), and the highest was 9.25% ((h) AllDecoder); regarding the upper bound of the range, the smallest was 16.17% ((g) Out), and the highest 20.66% ((b) AllEncoder).
The rank-biserial effect size quantifies the magnitude and direction of the paired differences based on their signed ranks, ranging from −1 to +1. Positive values favor the compared architecture, negative values favor the reference architecture, and values closer to either extreme indicate a stronger directional effect. Regarding the experiments, all significant architectures exhibit strong directional effects across the paired experimental runs, the smallest being (c) InputLatent with 0.758. In particular, (h) AllDecoder and (a) AllLayers have the strongest estimated effects at 0.970 each. Its corresponding 95% CI describes the uncertainty in this effect-size estimate: intervals entirely above zero indicate a predominantly favorable effect, whereas intervals spanning zero indicate greater uncertainty regarding its direction. None of the significant architectures’ intervals included zero, indicating a predominantly favorable effect. Unlike the MAE improvement, the rank-biserial effect size is dimensionless and should not be interpreted as a percentage improvement. Both confidence intervals were estimated independently using paired-bootstrap resampling.

3.2. Encoder Fusion

Following the statistical significance analysis findings, the encoder-fusion architecture was decided to be composed of the decoder architecture of (h) AllDecoder and the encoders of the following architectures:
  • Reference input layer conditioning encoder;
  • (a) AllLayers conditioning encoder;
  • (b) AllEncoder conditioning encoder;
  • (c) InputLatent conditioning encoder;
  • (d) InputLatentOut conditioning encoder;
  • (g) Out conditioning encoder;
  • (h) AllDecoder conditioning encoder.
The resulting neural network architecture is visualized in Figure 10. This architecture results in a network with a “super latent” of size 1596, which is the result of concatenating the latent spaces of all encoders. It is not an uncompressed representation, but rather varied compressed representations provided together for the next layer.
Figure 10. The encoder-fusion artificial neural network architecture. The material conditioning information, ϵ r , tan δ , and k are concatenated with each decoder layer. Each of the seven encoders inherits according to its own rules.
For this experiment, the dataset split was changed according to the method described in Section 2.8, and a model of each contemplated architecture was trained once with all random seeds set to 123. Since (h) AllDecoder and (c) InputLatent presented the smallest curve MAE and curve RMSE errors, respectively, they were chosen, along with the reference architecture, to have a copy architecture with linear layers scaled to a similar parameter count to the encoder fusion, by increasing each linear layer by a factor S = 2.12, which resulted in models with roughly 4.5 × as many free parameters.
Each architecture was first trained for 2025 epochs using this dataset split (including encoder-fusion RD); then, the encoder-fusion models PT and PTFN were initialized with the trained encoders from each individual (unscaled) architecture, had all encoders frozen, and trained the decoder for 2025 epochs. Specifically, the EF PTFN model was then fine-tuned for 142 epochs with the encoders unfrozen with a very low learning rate ( L r = 10 − 4 ). The resulting | S 11 | prediction performance of each model can be seen in Table 5, and the relative errors of the post-processed extracted resonance information can be seen in Table 6. Although a small number of antennas in the dataset exhibit three resonances, the results in Table 6 are reported for up to two resonances to maintain a compact presentation suitable for the available page width. Only 16 of the 25,080 antennas exhibit a third resonance in the full dataset, and only 4 in the test dataset. Therefore, including a separate column for the third resonance would substantially increase the table size while representing only a tiny fraction of the dataset; for that reason, tables containing the resonant characteristics extraction error results of triple- and single-resonance antenna groups have been added to Appendix B.
Table 5. Final model training curve errors, across the 9029 samples of the test subset.
Table 6. Final model training resonance characteristics mean relative errors, across the 9029 samples of the test subset. A is the average of the row. Subscript 1 refers to the first resonance, subscript 2 to the second. F represents resonance frequency, B the fractional bandwidth, Q the quality factor, and R the return loss. All values in %.
To verify which pretrained encoders contribute the most to the improvement seen in the encoder-fusion PTFN variant, an ablation study was conducted with the leave-one-out strategy [25]. The results regarding curve error are shown in Table 7 and extracted resonance error in Table 8.
Table 7. Encoder-fusion PTFN ablation results and curve errors, across the 9029 samples of the test subset. The first row is the reference seven-encoder encoder-fusion PTFN model; each proceeding row shows an encoder fusion trained under the PTFN protocol, with one pretrained encoder out of the seven strategies removed (with six encoders each).
Table 8. Encoder-fusion PTFN ablation results, resonance characteristics and mean relative errors, across the 9029 samples of the test subset. First row is the reference seven-encoder encoder-fusion PTFN model; each proceeding row shows an encoder fusion trained under the PTFN protocol, with one pretrained encoder out of the seven strategies removed (with six encoders each). A is the average of the row. Subscript 1 refers to the first resonance, subscript 2 to the second. F represents resonance frequency, B the fractional bandwidth, Q the quality factor, and R the return loss. All values in %.
According to the results, none of the six-encoder fusion models surpassed EF PTFN. In particular, Table 8 shows that removing (ref) Input, (b) AllEncoder, (d) InputLatentOut, and (g) Out cause the largest increases in error, in that respective order. Removing (a) AllLayers barely worsens the result, which suggests it is the most redundant addition.
The best (Figure 11a), median (Figure 11b), 99th percentile of error (Figure 11c), and worst (Figure 11d) encoder-fusion PTFN predictions, out of the 9029 test subset, are presented for analysis. Their resonance characteristics values are displayed in Table 9, Table 10, Table 11, and Table 12, respectively.
Figure 11. Encoder-fusion PTFN (EF PTFN) predictions in the test set (9029 samples) measured against the simulated ground truth. The insets show the antenna physical representation. (a) The best prediction performed by the EF PTFN model, substrate material AD350C. (b) The prediction at the median performed by the EF PTFN model, substrate material AD350C. (c) The prediction at the 99th error percentile performed by the EF PTFN model, substrate material AD255C. (d) The worst prediction performed by the encoder-fusion model, substrate material AD350A.
Table 9. Best encoder-fusion prediction extracted resonance characteristics measured against ground truth. Subscript 1 refers to the first resonance. F represents resonance frequency in GHz, B the fractional bandwidth, Q the quality factor, and R the return loss in dB.
Table 10. Median encoder-fusion prediction extracted resonance characteristics measured against ground truth. Subscript 1 refers to the first resonance, subscript 2 to the second. F represents resonance frequency in GHz, B the fractional bandwidth, Q the quality factor, and R the return loss in dB.
Table 11. The 99th error percentile encoder-fusion prediction extracted resonance characteristics measured against ground truth. Subscript 1 refers to the first resonance, subscript 2 to the second. F represents resonance frequency in GHz, B the fractional bandwidth, Q the quality factor, and R the return loss in dB.
Table 12. Worst encoder-fusion prediction extracted resonance characteristics measured against ground truth. Subscript 1 refers to the first resonance, subscript 2 to the second. F represents resonance frequency in GHz, B the fractional bandwidth, Q the quality factor, and R the return loss in dB.
Regarding the incorrectly extracted resonances by the encoder-fusion PTFN variant, out of 9029, there are 4 samples with mismatched resonance counts. These samples are presented in Figure 12 for analysis. The disagreements occurred in samples 2542, 2744, 4731 (the three with substrate AD250C), and 24248 (substrate AD350A). Inspection of the corresponding curves revealed that all four cases were associated with resonances lying close to the extraction criteria, rather than substantial discrepancies between the predicted and ground-truth curves. In sample 2542, the second ground-truth resonance does not exit cross the − 10 dB threshold within the frequency range considered and is therefore discarded by the edge-ignore rule, whereas the corresponding predicted resonance crosses the threshold and is detected. The opposite behavior occurs in sample 2744, where the second ground-truth resonance exit crosses the threshold, but the predicted resonance does not, resulting in a missed detection. In sample 4731, the second ground-truth resonance does not satisfy the 0.15 dB prominence criterion, whereas the corresponding predicted resonance meets this criterion and is detected. Finally, in sample 24248, the ground-truth curve contains two detected resonances, while the predicted curve contains three, as an additional predicted resonance marginally satisfies the prominence criterion. Overall, two disagreements are associated with the − 10 dB threshold and its edge-ignore rule, while the other two arise from escaping the prominence criterion. No systematic failure involving multiple missed resonances was observed among these cases.
Figure 12. Encoder-fusion PTFN (EF PTFN): the four predictions in the test set (9029 samples) where there are mismatched extracted resonance counts measured against the simulated ground truth. The insets show the antenna physical representation. (a) Sample 2542, substrate AD250C. (b) Sample 2744, substrate AD250C. (c) Sample 4731, substrate AD250C. (d) Sample 24248, substrate AD250C.

3.3. Computational Savings

Using a single Nvidia RTX 3090 GPU and an intel I9 11900KF CPU, each individual model took 4 min to train. The encoder-fusion PTFN model depends on seven individual models and its own decoder training, which makes it require roughly 32 min to train. Encoder-fusion RD took 25 min to train from random initialization. Individual models take on average 1.0 millisecond to predict a single antenna | S 11 | response and encoder fusion 1.5 milliseconds. In comparison to EF, CST Microwave Studio takes 36 s (24,000 times slower than EF, and 36,000 times slower than individual models) to produce the same, and MATLAB (version R2026a) Antenna Toolkit takes 3 min (120,000 times slower and 180,000 times slower than individual models), using the same hardware. The complete design space considered for these experiments, with 25,080 antennas, took 250 h to simulate using CST. Without any modifications to the setup performed in this work, it is possible to simulate 15k antennas in 150 h, train the fusion model in 32 (or 25) minutes, and predict the remaining 10k of the design space in 15 s, reducing the computational cost by 40% with an average error below 0.21%. If larger errors are accepted, then fewer samples may be needed, increasing the potential speed-up and savings that these surrogate models provide.

4. Discussion

The statistical analysis demonstrates significant differences in prediction performance among the evaluated architectures, with six out of eight exploratory conditioning strategies achieving significantly lower MAE than the baseline approach, in which the material information is supplied directly at the network input, with strong rank biserial effect and positive confidence intervals. As shown in Table 2, architectures (g) Out and (h) AllDecoder exhibited the smallest and second-smallest standard deviations, respectively, across the 11 training runs, indicating greater consistency in their prediction errors with respect to variations in model initialization. This behavior may be related to the explicit separation between geometric representation learning and material conditioning implemented by these architectures. In both cases, the network can process the antenna geometry and develop its latent representation before the material information is incorporated during decoding. Such a separation may reduce the interaction between geometric feature extraction and material conditioning during the early stages of representation learning, allowing the encoder to focus on learning a more stable representation of the antenna geometry. Although the observed lower variability does not establish a causal relationship, the results suggest that separating these two forms of information within the network architecture may contribute to greater robustness across different training initializations. The results also suggest that providing redundant conditioning information to the network can improve prediction performance. By repeatedly injecting the conditioning variables throughout the architecture, the (b) AllEncoder, (h) AllDecoder, and (a) AllLayers strategies achieved the three lowest mean MAE values across the 11 training runs, respectively. This suggests that repeatedly preserving the conditioning information throughout the network may facilitate the learning of the relationship between antenna geometry, material properties, and electromagnetic response. Interestingly, the consistency of this improvement is not accompanied by exceptionally low variability in MAE. The (a) AllLayers and (b) AllEncoder architectures exhibit the fifth- and fourth-lowest standard deviations, respectively, placing both approximately at the median variance among the nine evaluated architectures. These architectures consistently achieve superior prediction performance across different initializations; however, the magnitude of their performance advantage exhibits a moderate degree of variability.
The (c) InputLatent and (d) InputLatentOut architectures occupy an intermediate position in terms of mean MAE reduction, with InputLatentOut achieving the fourth-lowest mean MAE among the nine evaluated architectures. Both architectures fall within the bottom 50% of the variability distribution of the evaluated strategies, indicating increased training stability and a relatively consistent performance across the different initialization seeds. Compared with the architectures that inject conditioning information throughout the network, these strategies require fewer modifications to the original architecture while retaining a substantial performance improvement. Consequently, the combination of input, latent, and output conditioning may represent a balanced alternative when prediction performance, variability, and architectural simplicity are considered simultaneously.
The (g) Out architecture provides another relevant observation. Although it achieves a statistically significant improvement of 10.13% over the reference architecture, this represents the smallest improvement among the conditioning strategies that achieved statistically significant gains. Nevertheless, Out exhibits the lowest standard deviation of all nine architectures, and stronger confidence interval and effect size than (c) InputLatent, indicating highly consistent performance across the different initialization seeds. This result suggests that conditioning the decoder output with the material information alone can provide a reliable improvement, despite producing a smaller reduction in MAE than strategies that incorporate the conditioning information at earlier or multiple stages of the network.
In contrast, the (e) InputOut and (f) LatentOut architectures do not provide statistically significant improvements over the reference. InputOut produces a mean MAE of 0.026884, corresponding to only a 0.35% reduction relative to the reference, while also exhibiting the highest standard deviation among all evaluated architectures. LatentOut provides a larger 5.65% reduction in mean MAE, but this improvement is not statistically significant, for both confidence intervals contains 0 in the interval, indicating no guarantee of improvement. The effect size suggests very mild positive directional dominance. The similar behavior of these two architectures suggests that adding an additional conditioning pathway at the output does not necessarily translate into a measurable improvement when conditioning is already provided at another stage. In particular, the contrast between Out, which is statistically significant, and InputOut and LatentOut, which are not, indicates that the effectiveness of conditioning depends on its placement within the architecture rather than simply on the number of locations at which the information is injected.
Regarding the final models trained for the encoder fusion using the second data split, among the individually trained models, architecture (h) AllDecoder achieved the lowest MAE, with a value of 0.01545 and lowest average resonance error 0.2215, whereas architecture (c) InputLatent yielded the lowest RMSE, at 0.02638. The encoder-fusion PTFN model achieved further improvements in these metrics, reducing the MAE by 8.15% to 0.01419, the RMSE by 8.52% to 0.02413, and average resonance error by 10.36% to 0.2007, relative to the corresponding best-performing individual models trained with this data split. These results demonstrate the potential of encoder fusion as a means of improving the predictive accuracy of encoder–decoder surrogate models without requiring additional training data. Nevertheless, these gains involve substantial computational and architectural trade-offs. The PTFN training procedure requires the independent pretraining of all selected architectures, followed by an additional decoder-training stage and subsequent fine-tuning of the integrated model. The encoder-fusion PT variant (without the fine tuning) failed to surpass even the individual models (unscaled), aside from the reference one, which indicates that the fine tuning step is necessary for the performance gain. However, the encoder-fusion RD variant, trained from random initialization, achieved nearly similar results to PTFN, with better curve MAE (by 2.01%), but worse RMSE (by 2.18%) and worse average resonance error (by 3.88%), with less required training time (25 min versus 32) and a simpler training procedure. This indicates that while the PTFN protocol is capable of producing better models, it is not strictly necessary. The encoder-fusion architecture with its parallel encoders can learn the joint representations directly from the data.
The resulting ensemble contains approximately 4.5 times the parameters of an individual model, increasing its memory requirements and potentially its inference cost; however, the improvement in performance cannot be attributed to the increase in free parameters, since the best architectures control models trained with matching increased parameter counts: (ref) Input 4.5x, (c) InputLatent 4.5x, and (h) AllDecoder 4.5x all failed to surpass the encoder-fusion PTFN and RD; specifically, (ref) Input 4.5x and (c) InputLatent 4.5x ended up as the worst trained models, while AllDecoder 4.5x performance came closer to the encoder-fusion models, which indicates that increased parameter counts also necessitate increased redundancy of injected conditioning information.
The ablation results indicate that the complete seven-encoder EF PTFN architecture provides the best overall curve prediction performance, although the contribution of individual encoders varies. The largest degradation was observed when the (ref) Input encoder was removed, resulting in increases of 8.95% and 8.66% in MAE and RMSE, respectively. This suggests that the representation learned from the original input provides particularly valuable information to the fusion architecture that cannot be fully compensated for by the remaining encoders. Removing the InputLatentOut encoder also resulted in a considerable performance reduction, with MAE and RMSE increasing by 6.91% and 4.68%, respectively, indicating that this representation provides complementary information to the fusion process. In contrast, removing AllLayers, AllDecoder, or Out resulted in comparatively smaller increases in curve errors, ranging from 1.34% to 2.33% in MAE. Specifically, AllDecoder and Out encoders have a high chance of converging into similar representations. Since both only present conditioning information at the end of the network, the resulting models are probably supported by the other similar approach when leave-one-out is applied, which could explain their redundancy. Nevertheless, all seven single-encoder ablations exhibited higher MAE and RMSE than the complete architecture, suggesting that the combination of representations contributes to the overall prediction performance. In conclusion, the ablation study supports the use of the complete encoder-fusion architecture, while highlighting the particularly important contributions of the reference input and InputLatentOut representations.
The results presented are promising and motivate investigation into antenna dimensional scaling. Introducing scaling parameters for the antenna width and length, together with a corresponding simulated dataset, could shift the resonance frequencies across a broader frequency range, thereby expanding the range of configurations represented during training and extending the applicability of the surrogate model. Furthermore, the findings of this study suggest a potential architecture in which the antenna scaling parameters are introduced within the final two or three layers preceding the output, while the material-conditioning parameters are incorporated two or three layers earlier than the scaling conditioning. This arrangement could provide a useful starting point for investigating the joint conditioning of geometric and material parameters in future surrogate models.

5. Conclusions

This work presented an encoder–decoder neural network surrogate model for predicting the complete | S 11 | spectral response of pixelated microstrip antennas across multiple substrate materials. By incorporating the dielectric constant, loss tangent, and thermal conductivity as material-conditioning parameters, the proposed approach extends spectral-response prediction to different substrate configurations while preserving a physically interpretable representation of the material properties. The resulting models learn the relationship between antenna geometry, substrate characteristics, and electromagnetic response, enabling the prediction of the spectral behavior over the 1–13 GHz frequency range.
A systematic evaluation of nine material-conditioning architectures, comprising a reference configuration and eight alternative strategies, demonstrated that the placement of conditioning information has a significant influence on prediction performance. Repeated-measures ANOVA confirmed statistically significant differences among the evaluated architectures, while subsequent paired Wilcoxon signed-rank tests, with Holm correction, identified six alternative strategies that achieved statistically significant reductions in mean absolute error relative to the reference. The mean improvement across seeds ranged from 10.13% to 13.92%, demonstrating that incorporating material information at different stages of the encoder–decoder architecture can substantially improve the accuracy of spectral-response prediction. In particular, architectures that repeatedly introduce the conditioning variables throughout the encoder, decoder, or both achieved the lowest mean MAE values, suggesting that preserving access to material information across multiple representation-learning stages can be beneficial.
Building upon these findings, encoder-fusion ensembles were developed by combining the architectures of seven selected encoders into a unified representation processed by a common decoder. This approach further improved prediction accuracy, achieving an MAE of 0.01419, an RMSE of 0.02413, and an average of resonance errors of 0.2007, corresponding to reductions of 8.15%, 8.52%, and 10.36%, respectively, relative to the best individually trained models, with the same dataset split, for each metric. The resulting model also achieved a curve correlation of 0.99995 and correctly identified the number of resonances in 99.95% of the test samples (only 4 out of 9029 were mismatched). Furthermore, the relative errors in the extracted resonance characteristics remained below 0.34% on average for the evaluated frequency, fractional bandwidth, quality factor, and return loss measurements. These results demonstrate the potential of combining complementary latent representations to improve the predictive accuracy of artificial neural network surrogate models.
Despite these improvements, encoder fusion introduces additional computational and architectural complexity. The PTFN variant depends on independent pretraining of the selected encoders. The subsequent decoder-training stage and the final joint fine-tuning increase the overall training requirements, to at least 25 min for the non-pretrained RD version and 32 min for PTFN using an RTX 3090, compared to 4 min for an individual model. Moreover, the resulting model contains approximately 4.5 times as many parameters as an individual architecture, increasing its memory footprint. Additionally, the inference time goes from 1.0 millisecond for an individual model to 1.5 milliseconds. Therefore, the encoder-fusion approach provides an additional accuracy improvement at the expense of increased model complexity, making its suitability dependent on the computational constraints and accuracy requirements of the intended application.
The proposed individual surrogate models took 4 min each to train and 1.0 millisecond to predict a single antenna, compared to 36 s (36 thousand times slower) for CST Microwave Studio and 3 min (180 thousand times slower) for MATLAB Antenna Toolkit using the same hardware. The encoder fusion takes more time to train and to infer, 25 min for RD or 32 min for PTFN and 1.5 milliseconds for inference, which is still 24 thousand times faster than CST and 120 thousand times faster than MATLAB Antenna Toolkit. This difference in response generation speed makes the surrogate models very interesting for exploring the design space, in particular. Without changing anything to what was found in the experiments of this work, it would be possible to save at least 100 h to explore the same design space, by simulating only 60% of the samples, training the model with it, and predicting the remainder at a minimal cost in average error. The resulting surrogate models, both individual and ensemble, are able to sufficiently predict the remaining design space dictated by the problem borders established in Section 2.3 with mean resonant characteristic errors below 0.34%, and averaged mean resonance errors at 0.20%.
Future research will investigate an increased design space by introducing more geometries and an extension of the proposed framework to geometrically scaled antennas by introducing antenna width and length scaling as additional conditioning parameters. A corresponding simulated dataset could enable the model to represent a broader range of resonance frequencies and antenna configurations, further extending its applicability. The findings of the present study also provide a basis for investigating architectures in which geometric scaling information is introduced closer to the output layers, while material properties are incorporated at earlier stages of the decoder. Such an arrangement could allow the network to learn material-dependent electromagnetic behavior and geometric scaling effects through distinct but complementary conditioning pathways.
Overall, this study demonstrates that the strategic incorporation of physical material properties and the fusion of complementary latent representations provide effective means of improving neural-network-based surrogate modeling of pixelated microstrip antennas. The proposed framework offers a foundation for more flexible and computationally efficient antenna characterization across different substrate materials and provides opportunities for further extensions involving geometric scaling and additional physical design parameters.

Author Contributions

Conceptualization, F.B.-G. and G.N.M.-S.; methodology, F.B.-G.; software, F.B.-G.; validation, F.B.-G.; investigation, F.B.-G.; data curation, G.N.M.-S.; writing—original draft preparation, F.B.-G.; writing—review and editing, G.N.M.-S.; visualization, F.B.-G.; supervision, G.N.M.-S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data is available at https://doi.org/10.25824/REDU/6RTBKG.

Acknowledgments

Authors acknowledge financial support from the National Council for Scientific and Technological Development—CNPq, processes: 305871/2026-9, 326586/2026-1, and 402324/2026-9.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
SGDStochastic Gradient Descent
MAEMean Absolute Error
RMSERoot Mean Square Error
CIConfidence Interval
EFEncoder Fusion
RDRandomly Initialized
PTPretrained
PTFNPretrained and Fine-Tuned
Num.Number
Den.Denominator
DFDegrees of Freedom

Appendix A

The training procedure through which the models are trained is special for two reasons: first, the optimization is a hybrid strategy that utilizes both SGD and AdamW; second, the loss functions used are domain-aware loss functions, aimed at producing better models for the specific problem of antenna response spectral series prediction.

Appendix A.1

A multi-stage training procedure, developed in [19], is employed, combining stochastic gradient descent (SGD) [26] and AdamW [27] with a progressively decaying learning rate schedule.
Define E as the total number of epochs for training, and S e as the percentage of epochs spent at that training stage; each stage of training is run for S e ∗ E epochs.
The training process begins with an initial phase using SGD with S e = 36.59 % at a learning rate of L r = 10 − 3 , providing stable convergence during the early stages of optimization. This is followed by three consecutive stages using the AdamW optimizer. The first AdamW stage runs with S e = 28.19 % epochs with L r = 10 − 3 ; then, a second stage with S e = 28.19 % epochs with a reduced learning rate of L r = 5 × 10 − 4 and a fine-tuning stage with S e = 7.01 % with L r = 10 − 4 follow. After each stage, the model achieving the lowest loss on the validation set is selected. The AdamW optimizer is reinitialized before proceeding to the next stage, removing momentum bias from the subsequent optimization phases. The process is illustrated in Figure A1.
Figure A1. The optimization procedure diagram.

Appendix A.2

The loss functions proposed in this study are referred to as domain-aware loss functions, as they are specifically designed to shape the optimization landscape to facilitate model learning for the domain of antenna spectral response analysis. Two complementary loss functions are introduced: the soft bandwidth loss, ( L S B ), and the resonance-aware loss, ( L R A ). Their contributions are combined through an additive formulation, defined as:
L = L RA + L SB
The soft bandwidth loss ( L S B ) is designed to emphasize prediction accuracy around the − 10 dB threshold, which defines the boundaries of resonance regions in the | S 11 | response. This is achieved through a smooth, Gaussian-based weighting function that assigns greater importance to samples near the threshold, thereby guiding the optimization toward more accurate bandwidth representation. The loss is defined as:
L SB ( y ^ , y ) = 1 n ∑ i = 1 n w i ( 1 + e i ) 2 − 1 ,
where n is the number of frequency samples, e i = | y ^ i − y i | is the prediction error at the i-th sample, and w i is the weighting factor defined as:
w i = 1 + exp − ( y i − c ) 2 2 σ 2 ,
where c denotes the reference return loss threshold and σ controls the spread of the weighting function. In this study, c = − 10 dB , corresponding to a normalized value of 0.86 within the dataset bounds, and σ = 3 / 2 . The Gaussian component increases the contribution of samples near the reference threshold, while the constant term ensures that all frequency samples retain a nonzero contribution to the loss. Consequently, the formulation encourages more accurate predictions around resonance boundaries, improving the representation of bandwidth-related characteristics while preserving the contribution of the entire spectral response.
The resonance-aware loss L R A is designed to improve the representation of resonance characteristics in one-dimensional frequency responses by explicitly constraining both resonance depth and frequency location. The formulation employs a differentiable approximation of the minimum operator to extract resonance-related features from the predicted and target responses. To accommodate spectral responses with varying resonance distributions, the frequency range is partitioned into a configurable number of non-overlapping regions, allowing the resonance characteristics to be evaluated independently within each region.
Let the predicted and target frequency responses be represented by y pred , y true ∈ R B × N , where B denotes the batch size and N is the number of sampled frequency points. The frequency range is divided into K regions, with each region containing approximately N / K consecutive samples. The predicted and target responses within the k-th region are denoted by y k pred and y k true , respectively, for k = 1 , … , K .
To obtain a differentiable approximation of the resonance minimum, a soft-min operator is employed. For a given region x ∈ R M k , containing M k frequency samples, the corresponding soft-min weights are calculated as:
w i = exp − x i / τ ∑ j = 1 M k exp − x j / τ , i = 1 , … , M k ,
where τ is a temperature parameter that controls the concentration of the weights around the minimum value. Smaller values produce a sharper approximation of the hard minimum, while preserving differentiability. In this study, τ = 0.01 . The estimated minimum is subsequently obtained as the weighted expectation of the samples:
softmin ( x ) = ∑ i = 1 M k w i x i .
Applying this operation independently to the predicted and target responses yields the estimated resonance depths in each region:
m ^ k p = softmin ( y k pred ) , m ^ k t = softmin ( y k true ) .
The resonance depth loss is then defined as the sum of squared differences between the corresponding regional minima:
L value = ∑ k = 1 K m ^ k p − m ^ k t 2 .
In addition to resonance depth, the formulation explicitly considers the frequency location of each regional minimum. For this purpose, a soft-argmin operation is derived from the same soft-min weights. The frequency positions within each region are represented by a normalized index vector:
q k = 0 , 1 M k − 1 , 2 M k − 1 , … , 1 ,
The estimated minimum position is calculated as the weighted expectation of these normalized indices:
softargmin ( w ) = ∑ i = 1 M k w i q k , i .
Therefore, the predicted and target resonance locations in region k are given by:
p ^ k p = softargmin ( w k p ) , p ^ k t = softargmin ( w k t ) ,
where w k p and w k t denote the soft-min weight vectors derived from the predicted and target responses, respectively. The corresponding positional loss is defined as:
L pos = ∑ k = 1 K p ^ k p − p ^ k t 2 .
The complete resonance-aware loss combines the depth and positional constraints through an additive formulation:
L RA = L value + λ pos L pos
where λ pos controls the relative contribution of resonance localization to the optimization process. In this study, λ pos = 1.0 .
The number of regions, K, is a configurable parameter that should be selected according to the resonance distribution and frequency characteristics represented in the training dataset. In the present study, the first resonances occur below 4 GHz, and most of the second resonances are located above 7.5 GHz. In this study, the frequency range is divided into two regions, using K = 2 ; however, K = 3 would also have been appropriate. Alternatively, finer partitions can be employed when a more localized emphasis on spectral minima is desirable. For example, setting K = 13 would allow the optimization to independently emphasize the minimum within each 1 GHz interval across the frequency range.
Importantly, K does not impose a fixed number of resonances on the spectral response. A region may contain no resonance, a single resonance, or multiple resonances, without requiring a corresponding adjustment to the loss formulation. In regions without a resonance, the optimization still constrains the predicted minimum to match the lowest-valued response of the corresponding target region, which still contributes to the general curve prediction. Similarly, when multiple resonances occur within a single region, the formulation emphasizes the lowest-valued minimum and its corresponding location, so at least one resonance would be emphasized, with no penalty added. Therefore, K determines the number of regional minima explicitly considered during optimization, rather than the number of resonances expected in each response. This flexibility allows the resonance-aware loss to be applied across spectral responses with varying numbers and distributions of resonances.

Appendix B

For completeness, the ensemble-fusion experiment models’ performance regarding the curve and the extracted resonant characteristics in the test set is provided, for samples with a single resonance (68 samples) in Table A1 and Table A2, respectively, and for samples with three resonances (4 samples) in Table A3 and Table A4, respectively.
For the single-resonance subset, the models achieved a slightly lower resonance-count identification accuracy, averaging approximately 95%, compared with approximately 99% for the complete test set. Their full-curve prediction errors, measured by MAE and RMSE, remained comparable to those obtained across the entire test set. Similarly, the errors in the extracted resonance characteristics were also comparable when considering samples for which the predicted and reference resonance counts matched.
For the triple-resonance subset, the small number of available samples (four) prevents drawing statistically meaningful conclusions about model performance in this category. The observed resonance-count identification accuracy ranged from 75% to 100% across the evaluated models. Furthermore, the full-curve MAE and RMSE were approximately three times higher than the corresponding averages for the complete test set, while the errors in the extracted resonance characteristics were approximately ten times higher. These results suggest that the under-represented curves (twelve in the train dataset) lead to reduced prediction capacity for similar cases and that triple-resonance configurations may pose a greater prediction challenge; however, the limited sample size prevents determining whether this behavior reflects a systematic limitation of the models or the characteristics of these particular four samples.
Table A1. Final model training curve errors, across the 68 single resonance samples of the test subset.
Table A2. Final model training resonance characteristics mean relative errors, across the 68 single resonance samples of the test subset. A is the average of the row. Subscript 1 refers to the first resonance. F represents resonance frequency, B the fractional bandwidth, Q the quality factor, and R the return loss. All values in %.
Table A3. Final model training curve errors, across the 4 three-resonance samples of the test subset.
Table A4. Final model training resonance characteristics mean relative errors, across the 4 samples with three resonances of the test subset. A is the average of the row. Subscript 1 refers to the first resonance, subscript 2 to the second. F represents resonance frequency, B the fractional bandwidth, Q the quality factor, and R the return loss. All values in %.

References

  1. Balanis, C.A. Antenna Theory: Analysis and Design; John Wiley & Sons: Hoboken, NJ, USA, 2016. [Google Scholar]
  2. Jacobs, J.P. Accurate modeling by convolutional neural-network regression of resonant frequencies of dual-band pixelated microstrip antenna. IEEE Antennas Wirel. Propag. Lett. 2021, 20, 2417–2421. [Google Scholar] [CrossRef] [Scilit]
  3. Liu, B.; Aliakbarian, H.; Ma, Z.; Vandenbosch, G.A.; Gielen, G.; Excell, P. An efficient method for antenna design optimization based on evolutionary computation and machine learning techniques. IEEE Trans. Antennas Propag. 2013, 62, 7–18. [Google Scholar] [CrossRef] [Scilit]
  4. Wu, Z.; Yu, M.; Liang, J. Parameter optimization of energy-efficient antenna system using period-based memetic algorithm. Expert Syst. Appl. 2023, 214, 119131. [Google Scholar] [CrossRef] [Scilit]
  5. Zhang, X.; Lin, M.; Zhang, X.; Li, Y. The design of microstrip array antenna and its optimization by a memetic method. IEEE Access 2019, 7, 96434–96443. [Google Scholar] [CrossRef] [Scilit]
  6. Peng, F.; Chen, X. Quantum-inspired algorithm enhances efficiency in antenna optimization. IEEE Trans. Antennas Propag. 2024, 72, 6980–6991. [Google Scholar] [CrossRef] [Scilit]
  7. Wu, Q.; Wang, H.; Hong, W. Multistage collaborative machine learning and its application to antenna modeling and optimization. IEEE Trans. Antennas Propag. 2020, 68, 3397–3409. [Google Scholar] [CrossRef] [Scilit]
  8. Nan, J.; Xie, H.; Gao, M.; Song, Y.; Yang, W. Design of UWB antenna based on improved deep belief network and extreme learning machine surrogate models. IEEE Access 2021, 9, 126541–126549. [Google Scholar] [CrossRef] [Scilit]
  9. Campbell, S.D.; Jenkins, R.P.; O’Connor, P.J.; Werner, D. The explosion of artificial intelligence in antennas and propagation: How deep learning is advancing our state of the art. IEEE Antennas Propag. Mag. 2021, 63, 16–27. [Google Scholar] [CrossRef] [Scilit]
  10. Noakoasteen, O.; Vijayamohanan, J.; Gupta, A.; Christodoulou, C. Antenna design using a gan-based synthetic data generation approach. IEEE Open J. Antennas Propag. 2022, 3, 488–494. [Google Scholar] [CrossRef] [Scilit]
  11. Goncalves, S.T.; Malheiros-Silveira, G.N. Microstrip antenna design supported by generative adversarial networks. AI 2024, 5, 2693–2706. [Google Scholar] [CrossRef] [Scilit]
  12. Shi, D.; Lian, C.; Cui, K.; Chen, Y.; Liu, X. An Intelligent Antenna Synthesis Method Based on Machine Learning. IEEE Trans. Antennas Propag. 2022, 70, 4965–4976. [Google Scholar] [CrossRef] [Scilit]
  13. Saçın, E.S.; Durgun, A.C. Microstrip patch antenna modeling using neural networks with knowledge-based regularization. Neural Comput. Appl. 2025, 37, 3827–3837. [Google Scholar] [CrossRef] [Scilit]
  14. Barbosa-Gomes, F.; Malheiros-Silveira, G.N. Domain-Aware Learning for Antenna Modeling Using Encoder-Decoder Network. IEEE Antennas Wirel. Propag. Lett. 2026. Accepted for publication. [Google Scholar] [CrossRef] [Scilit]
  15. Chen, Y.; Wang, M.; Wei, Y.; Huang, X.; Gao, S. Multi-encoder spatio-temporal feature fusion network for electric vehicle charging load prediction. J. Intell. Robot. Syst. 2024, 110, 94. [Google Scholar] [CrossRef] [Scilit]
  16. Ashish, P.U.; Gupta, S.H. Optimization of ultra-wide band antenna by selection of substrate material using artificial neural network. Appl. Phys. A 2022, 128, 192. [Google Scholar] [CrossRef] [Scilit]
  17. Santos, M.G.F.; Silva, A.R.; de Sousa, F.B.; Costa, M.B.C. Material-aware inverse design of rectangular dielectric resonator antennas using machine learning. Phys. Scr. 2026, 101, 395502. [Google Scholar] [CrossRef] [Scilit]
  18. Koziel, S.; Pietrenko-Dabrowska, A. Broad-Range Inverse Design of Antennas Using Deep Neural Networks With Material Parameter Embedding and Rapid Fine-Tuning. IEEE Trans. Antennas Propag. 2026, 74, 9036–9041. [Google Scholar] [CrossRef] [Scilit]
  19. Barbosa-Gomes, F.; Malheiros-Silveira, G.N. Full-Resonance Predictions of Antennas by Encoder-Decoder Architecture. IEEE Access 2026, 14, 180871–180880. [Google Scholar] [CrossRef] [Scilit]
  20. Fisher, R.A. Statistical Methods for Research Workers; Number 5; Oliver and Boyd: Edinburgh, UK, 1930. [Google Scholar]
  21. Wilcoxon, F. Individual comparisons by ranking methods. Biom. Bull. 1945, 1, 80–83. [Google Scholar] [CrossRef] [Scilit]
  22. Holm, S. A simple sequentially rejective multiple test procedure. Scand. J. Stat. 1979, 6, 65–70. [Google Scholar]
  23. Kerby, D.S. The simple difference formula: An approach to teaching nonparametric correlation. Compr. Psychol. 2014, 3, 11-IT. [Google Scholar] [CrossRef] [Scilit]
  24. Tibshirani, R.J.; Efron, B. An introduction to the bootstrap. Monogr. Stat. Appl. Probab. 1993, 57, 1–436. [Google Scholar]
  25. Meyes, R.; Lu, M.; de Puiseau, C.W.; Meisen, T. Ablation Studies in Artificial Neural Networks. arXiv 2019, arXiv:1901.08644. Available online: http://arxiv.org/abs/1901.08644.
  26. Zhou, P.; Feng, J.; Ma, C.; Xiong, C.; Hoi, S.C.H.; E, W. Towards theoretically understanding why sgd generalizes better than adam in deep learning. Adv. Neural Inf. Process. Syst. 2020, 33, 21285–21296. [Google Scholar]
  27. Zhou, P.; Xie, X.; Lin, Z.; Yan, S. Towards understanding convergence and generalization of AdamW. IEEE Trans. Pattern Anal. Mach. Intell. 2024, 46, 6486–6493. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Article metric data becomes available approximately 24 hours after publication online.