APU-Net: A Task-Adapted U-Net for Fast Phase-to-Amplitude Acoustic Field Prediction ()
1. Introduction
Acoustic manipulation has found applications in bioengineering [1]-[3], lab-on-a-chip systems [4], material delivery [5], and biomedical research [6]-[10]. In acoustic holography, the pressure field can be shaped for purposes such as microengineering [11] [12] and energy harvesting [13] [14]. In applications involving dynamic field control, many candidate phase patterns may need to be evaluated under the same acoustic configuration, making computational efficiency an important consideration.
Phase modulation [15] can be implemented using passive transmission holograms or actively controlled phased array transducers (PATs). Passive holograms are commonly fabricated using techniques such as 3D printing [16], whereas PATs provide electronic control over the emitted phase [17].
In a passive acoustic hologram, the desired phase delay is encoded in the structure during fabrication. Melde et al. demonstrated that a single transducer combined with a transmission hologram can produce complex target fields [16]. This arrangement requires only a simple drive configuration and can provide high spatial resolution over a large aperture. However, the resulting field pattern depends on the accuracy of fabrication, and the structure is designed for a predefined field rather than subsequent dynamic updates.
Unlike passive holograms, PATs allow the emission phase of individual array elements to be adjusted [17]. This enables the target field to be changed dynamically. The spatial degrees of freedom available for field control depend on factors such as the number of array elements, their spacing, and the aperture size. When studying dynamic PAT operation, computational methods may therefore need to evaluate multiple candidate phase patterns while keeping the acoustic configuration unchanged.
For forward acoustic field calculation, the Angular Spectrum Method (ASM) propagates a specified source-plane phase distribution to obtain the corresponding target-plane acoustic response [18]. Its numerical accuracy can be affected by the propagation implementation. Zeng and McGough investigated window-truncation errors in spatial-domain propagation and aliasing effects in spectral-domain propagation for near-field pressure simulation [19]. ASM and Green-function formulations are both established approaches for calculating forward acoustic fields.
Deep neural networks have also been applied to mappings between different acoustic field representations [20]-[23]. For example, Zhong et al. proposed AcousNet for dynamic three-dimensional field generation using phased arrays [23], while Lin et al. developed a U-Net-based approach for phase prediction [21]. The problem addressed in this work differs in the direction of prediction. It maps a source-plane phase distribution to a target-plane amplitude distribution. The input contains spatially distributed phase information, while the output is a continuous amplitude map. Reconstructing this map requires the network to account for both its overall spatial structure and local details. These requirements motivate the use of an encoder-decoder architecture, with particular attention to normalization, upsampling, feature alignment, and bottleneck capacity.
APU-Net addresses this model-design problem through a task-adapted U-Net architecture for direct
-to-
prediction. Our study makes three model-centered contributions. First, APU-Net integrates normalized convolutional blocks, interpolation-based upsampling, explicit decoder-map alignment, and a 512-channel bottleneck into a unified phase-to-amplitude predictor [24] [25]. Second, the complete architecture achieves a substantially better accuracy-efficiency balance than the evaluated CNN, U-Net, and IU-Net models under the recorded training protocol. Third, its operating behavior is characterized through multi-resolution timing, controlled phase perturbations, and evaluation on two additional image-pattern distributions.
Section 2 defines the phase-to-amplitude prediction task and data flow. Section 3 presents the APU-Net architecture, its design rationale, and the evaluation metrics. Section 4 evaluates prediction accuracy, optimization behavior, multi-resolution efficiency, response to phase perturbations, cross-pattern transfer, and comparisons with neural models. Section 5 concludes the paper.
2. Phase-to-Amplitude Prediction
Figure 1 shows the phase-to-amplitude task for a PAT. Let
denote the expected target-plane amplitude distribution,
the source-plane phase distribution, and
the amplitude distribution predicted by APU-Net. The network learns F:
→
and minimizes the discrepancy between
and
. This mapping is treated as a cross-representation dense-regression problem in which the encoder must aggregate the distributed structure of
and the decoder must recover the spatial detail of
. The experiments use one fixed two-stage prediction workflow.
Figure 1. Phase-to-amplitude prediction for a phased array transducer.
Physics-based methods such as angular spectrum method (ASM) and Green-function propagation compute acoustic fields from specified source conditions [18] [19]. APU-Net learns the
-to-
mapping represented by the ASM-propagated paired dataset and executes it through a single encoder-decoder forward pass. The model is evaluated by its agreement with the target amplitude distribution
and by its per-image computation time, while ASM serves as the physics-based runtime comparator in Section 4.
The fixed two-stage prediction workflow starts with the previously developed deep learning-based acoustic reconstruction model, which we call the phase-generation model. Stage 1 applies this model to the prescribed target pattern
to produce the source-plane phase distribution
. Propagating
with ASM under the same acoustic configuration yields the target-plane amplitude distribution
, which approximates
and serves as the supervised target. Stage 2 applies APU-Net to
to produce the predicted amplitude distribution
. Because each training pair (
,
) is obtained directly through ASM propagation, APU-Net is trained on physically propagated field data rather than on arbitrary image pairs. The purpose of APU-Net is to replace the computationally expensive ASM evaluation with a fast learned approximation under the fixed acoustic configuration.
The acoustic configuration considered in this study is a 50 × 50 element phased transducer array with an aperture of 50 mm × 50 mm, operating at a frequency of 1 MHz in water (sound speed 1500 m/s). The imaging plane is located at a distance of 10 cm from the source plane.
3. APU-Net Method
3.1. Model Architecture
APU-Net follows the multiscale encoder-decoder structure of U-Net [26]. For the
-to-
prediction task, the encoder extracts spatial features at different scales from the source-plane phase distribution. These features are then passed to the decoder, where skip connections help preserve local information during the reconstruction of the target-plane amplitude distribution. Several modifications are introduced to the original U-Net, including changes to the normalization layers, decoder upsampling, feature-map alignment, and bottleneck width.
The overall architecture is illustrated in Figure 2. BatchNorm2d is applied after each convolution to normalize the intermediate feature maps in both the encoder and decoder [24]. In the decoder, bilinear interpolation is used to recover spatial resolution instead of transposed convolution. Padding is also applied when necessary to match the spatial dimensions of decoder features with those of the corresponding encoder features before concatenation [25]. The bottleneck is set to 512 channels to provide sufficient feature representation without excessively increasing model capacity. The effects of these design choices are examined in Section 4.
These modifications were made with the characteristics of phase-to-amplitude prediction in mind. The network performs regression on a continuous amplitude distribution within [0, 1], making the consistency of intermediate feature representations an important consideration. BatchNorm2d is therefore used throughout the network. The phase input also contains interference fringes with relatively stable statistical properties, which makes channel-wise normalization suitable for this task. For decoder upsampling, bilinear interpolation provides a direct way to increase spatial resolution without introducing additional learned upsampling kernels. This choice also avoids potential checkerboard patterns associated with transposed convolution [25]. The bottleneck width was set to 512 channels to retain sufficient information during feature extraction. This is relevant to ASM propagation, where the target field depends on contributions from the entire source plane rather than only its local neighborhood. At the same time, an excessively large bottleneck could increase the risk of overfitting on the available training data. Another consideration is spatial alignment: the 50 × 50 input size does not divide evenly through successive pooling operations. Padding is therefore needed before skip connections are applied, so that features from different network levels remain spatially aligned.
![]()
Figure 2. APU-Net architecture. Given the source-plane phase distribution
as input, the network produces the corresponding target-plane amplitude distribution
.
3.2. Evaluation Metrics
To assess prediction accuracy and computational efficiency, we use Mean Squared Error (MSE), Dice Coefficient, Global Correct rate, Structural Similarity Index (SSIM), Peak Signal-to-Noise Ratio (PSNR), and average computation time.
MSE summarizes the squared pixel differences between the predicted amplitude distribution
and the expected distribution
over N pixels:
(1)
The Dice Coefficient evaluates the overlap between the predicted region A and the expected region B:
(2)
The Global Correct rate (GC) measures the global consistency between the predicted amplitude distribution
and the expected distribution
:
(3)
Structural Similarity Index (SSIM) evaluates the structural similarity between
and
through luminance, contrast, and structure terms:
(4)
Peak Signal-to-Noise Ratio (PSNR) measures the pixel-wise error under the normalized amplitude representation, where MAX is the maximum possible amplitude value:
(5)
Implementation details of these metrics are as follows. Both the Dice Coefficient and GC are computed after binarizing the predicted and expected fields with a threshold of 0.5. SSIM accounts for luminance, contrast, and structural information, and it is computed here with the default scikit-image implementation using a 7 × 7 window.
4. Results
APU-Net is implemented in PyTorch and trained on an NVIDIA GeForce RTX 4060 graphics processing unit (GPU). The training configuration consists of 150 epochs, an initial learning rate of 0.05, a batch size of 8, stochastic gradient descent, and MSE loss. Four aspects of the model are examined: prediction fidelity, millisecond-level inference, sensitivity to controlled phase perturbations, and transfer across image-pattern distributions.
The dataset is generated through a fixed pair-generation pipeline using 60,000 MNIST images. Each grayscale image is first normalized from [0, 255] to [0, 1] by linear scaling, giving the prescribed target-plane amplitude distribution
. The phase-generation model then uses
to produce a source-plane phase distribution
within [0, 2π]. For each
, forward propagation is performed with the ASM under the fixed acoustic configuration. The corresponding target-plane amplitude distribution
is obtained from this propagation, and the resulting (
,
) pairs form the supervised dataset used to train APU-Net.
Throughout data generation, the same ASM implementation and acoustic parameters are applied to every source-plane phase distribution. Network training and evaluation use the propagated amplitude distributions
as reference targets, rather than the originally prescribed patterns
. In this way, each reference target is obtained directly from the acoustic propagation of its corresponding source-plane phase distribution.
The dataset is organized into ordered pairs (
,
). For each pair, APU-Net uses
as the input and produces a predicted amplitude distribution
. The prediction is optimized by minimizing the MSE between
and
. The data are split into training, validation, and test sets in proportions of 0.7, 0.15, and 0.15, respectively. The same pair-generation pipeline is also applied to FashionMNIST and Char74K for cross-dataset testing.
4.1. Prediction Accuracy
Figure 3 compares the predicted amplitude distribution
with the expected distribution
. The predictions preserve the principal digit shapes, boundaries, and amplitude patterns. APU-Net records a PSNR of 33.46 dB, an SSIM of 0.9901, a Dice Coefficient of 0.9779, and a Global Correct rate of 99.45% on the test set. Together, these metrics quantify the pixel-level and structural fidelity of the complete APU-Net architecture in the paired prediction task.
Figure 3. Phase-to-amplitude prediction results. (a) Expected target-plane amplitude distribution
; (b) source-plane phase distribution
; (c) predicted amplitude distribution
; and (d) difference between
and
.
Figure 4 presents the changes in training and validation losses during the 150-epoch training process. Both losses decline as training progresses, following broadly similar patterns. At the end of training, the loss values are 0.00045 for the training set and 0.00046 for the validation set. The small difference between these values suggests that the model maintains consistent performance on the two sets. Training is completed in 109 minutes.
4.2. Multi-Resolution Inference Efficiency
Table 1 compares the per-image computation times of APU-Net and ASM at different image resolutions. Resolution is defined by the pixel dimensions of the input image. To obtain the higher-resolution inputs, the base images were upsampled to the corresponding sizes using Lanczos interpolation. Both methods were tested on the workstation described above, using the same hardware and software environment. The input resolutions and timing units were also kept consistent across the two methods.
Figure 4. Training and validation loss.
At 50 × 50 resolution, APU-Net takes 1.93 ms per image, compared with 53.34 ms for ASM. When the resolution increases to 1024 × 1024, the corresponding times are 5.21 ms and 175.62 ms. The results show that ASM takes more than 20 times as long as APU-Net at all reported resolutions. As illustrated in Figure 5, the amplitude distributions predicted by APU-Net also show good visual agreement with those obtained through ASM propagation at different resolutions.
Figure 5. Comparison between the APU-Net-predicted amplitude
and the ASM-propagated amplitude
at different image resolutions (from 50 × 50 to 256 × 256).
Table 1. Computation time of APU-Net and ASM.
Resolution |
APU-Net |
ASM |
50 × 50 |
1.93 ms |
53.34 ms |
128 × 128 |
1.96 ms |
62.72 ms |
256 × 256 |
2.13 ms |
81.21 ms |
512 × 512 |
3.17 ms |
134.17 ms |
1024 × 1024 |
5.21 ms |
175.62 ms |
4.3. Robustness
We test the complete APU-Net model using two types of perturbations to the source-plane phase input
: Gaussian noise and circular zero-phase replacement. The modified input is denoted by
. These experiments are designed to examine how the model’s predictions change when the phase input is altered.
In the first test, Gaussian noise is added to
. Specifically, zero-mean Gaussian noise with a standard deviation of 25 is applied in the 0 - 255 pixel-value domain, corresponding to approximately 0.62 rad, or 9.8% of the full 2π phase range. A random mask determines the pixels to be corrupted, with four corruption ratios considered: 20%, 40%, 60%, and 80%. Noise is applied only to the selected pixels, while the remaining pixels are left unchanged. The resulting values are clipped to [0, 255] without phase wrapping. As shown in Figure 6, the predicted amplitude distribution
preserves its main spatial features under the perturbations considered. However, the predicted amplitude values tend to decrease as the corruption ratio increases.
Figure 6. APU-Net predictions under different levels of Gaussian noise.
To evaluate the model’s robustness to localized phase-data corruption, circular regions with randomly selected locations and diameters of 10 - 20 pixels are introduced into the input phase distribution. Within each region, the phase values are replaced with zero. As shown in Figure 7, the annotation “Dot Location” specifies the center coordinates and diameter of each circular region. For example, (41, 11) d = 10 indicates a circular region with a diameter of 10 pixels centered at coordinates (41, 11).
As shown in Figure 7, APU-Net retains the global pattern despite these localized perturbations. Dark traces remain near several modified regions, while the principal digit shapes remain visible. These results characterize the model’s robustness to localized phase-data corruption and its ability to preserve the overall pattern when portions of the input phase data are corrupted.
4.4. Generalization
We train APU-Net on MNIST pairs and evaluate the same model on Char74K and FashionMNIST pairs generated by the same pipeline. Figure 8 shows an average PSNR of 31.64 dB on Char74K and 23.78 dB on FashionMNIST. The results characterize how the learned APU-Net representation transfers from handwritten digits to two additional image-pattern distributions while the acoustic configuration and pair-generation procedure remain fixed.
Figure 7. Prediction under localized zero-phase replacement. (a) Unperturbed reference amplitude distribution
; (b) perturbed phase distribution
; (c) predicted amplitude distribution
; and (d) difference between
and
.
Figure 8. Cross-dataset prediction results. (a) Expected amplitude distribution
; (b) source-plane phase distribution
; (c) predicted amplitude distribution
; and (d) difference between
and
.
4.5. Accuracy-Efficiency Comparison with Models
Table 2 compares a convolutional neural network (CNN), U-Net, IU-Net [27], and APU-Net after 150 training epochs on the MNIST-based pairs. IU-Net is included as a representative domain-related U-Net variant because it was developed for rapid acoustic hologram reconstruction. Its closely related reconstruction setting, ASM-based phase-data construction, U-shaped encoder-decoder with skip connections, adaptive learning-rate scheduling, MNIST and Char74K evaluations, and reported accuracy-efficiency metrics make it a relevant domain comparison model alongside the generic CNN and standard U-Net. IU-Net was re-implemented and retrained from scratch on the same MNIST-based pairs under the identical training protocol used for APU-Net. Under the common training protocol used here, APU-Net reduces MSE from 0.002204 to 0.000451 relative to U-Net, a reduction of 79.5%, and increases PSNR from 26.57 dB to 33.46 dB, while the average computation time remains comparable at 1.93 ms versus 1.91 ms. Compared with IU-Net, APU-Net achieves a 50.8% lower MSE and a 3.08 dB higher PSNR. Their computation times are nearly identical, at 1.93 ms for APU-Net and 1.97 ms for IU-Net. Among the neural models included in the comparison, APU-Net also obtains the highest Dice Coefficient, Global Correct rate, and SSIM. Taken together, these results show that APU-Net provides better prediction accuracy than both the standard U-Net and the tested IU-Net implementation, while maintaining a similar computation time. When retraining IU-Net, we retained its adaptive learning rate strategy and followed the same experimental protocol for the remaining hyperparameters. This allows IU-Net to use its original learning rate scheme while keeping the other training conditions consistent across models. The comparison therefore focuses on the differences between network architectures rather than changes in learning rate scheduling.
Table 2. Comparison of prediction performance among the evaluated neural models.
Metrics |
CNN |
U-Net |
IU-Net |
APU-Net |
MSE |
0.031752 |
0.002204 |
0.000917 |
0.000451 |
Dice Coefficient |
0.893871 |
0.923773 |
0.932113 |
0.977925 |
Global Correct |
0.903461 |
0.936549 |
0.957642 |
0.994542 |
SSIM |
0.896230 |
0.934313 |
0.941202 |
0.990050 |
PSNR (dB) |
14.98 |
26.57 |
30.38 |
33.46 |
Average Time (ms) |
2.59 |
1.91 |
1.97 |
1.93 |
4.6. Statistical Significance Analysis
APU-Net and the standard U-Net were each run five times on MNIST to check whether the performance differences were affected by random initialization. The two models were trained and tested separately, following the same experimental protocol. A new set of randomly initialized weights was used at the beginning of each run.
The metrics obtained from these experiments are summarized in Table 3. For each metric, the table gives the p-value for the comparison between the two models. It also includes the 95% confidence interval calculated from the five APU-Net runs. All key metrics yield p-values below 0.01. The differences observed between APU-Net and U-Net were therefore statistically significant in these repeated experiments. The confidence intervals for APU-Net were also relatively narrow, indicating that its measured performance varied little across the five initializations. These results suggest that the improvements observed with APU-Net were not limited to a single training run.
Table 3. p-values and 95% confidence intervals for the five-run comparison.
Metrics |
p-values |
95% Confidence Interval |
MSE |
<0.01 |
[0.000448, 0.000473] |
Dice Coefficient |
<0.01 |
[0.975164, 0.978544] |
Global Correct |
<0.01 |
[0.993388, 0.995113] |
SSIM |
<0.01 |
[0.988348, 0.990511] |
PSNR |
<0.01 |
[33.25, 33.49] |
Average Computation Time |
<0.01 |
[1.905, 2.044] |
5. Conclusions
APU-Net is a task-adapted encoder-decoder for predicting the target-plane amplitude distribution
from the source-plane phase distribution
. Its integrated architecture combines multiscale U-Net feature extraction with normalized convolutional blocks, interpolation-based upsampling, explicit decoder-map alignment, and a capacity-controlled 512-channel bottleneck.
Tests on the MNIST-based dataset give an MSE of 0.000451 and a PSNR of 33.46 dB. Compared with the standard U-Net, the MSE is reduced by 79.5%, while the PSNR increases by 6.89 dB. The comparison with IU-Net also shows lower prediction errors for APU-Net, with little difference in inference time. The timing results show a similar advantage over ASM. At each of the five tested resolutions, APU-Net completes the prediction in less than one-twentieth of the time required by the recorded ASM implementation. This difference is particularly relevant when multiple phase-to-amplitude predictions are needed under the same acoustic configuration.
Additional experiments were conducted using perturbed phase inputs and image patterns from different datasets. The predicted amplitude distributions retained their main spatial features under the tested perturbations. The cross-pattern experiments also provided a means of examining the model’s performance on data beyond the MNIST-based training set. These tests offer further evidence of how the model responds to changes in its input.
Despite these promising results, the current method has several limitations. APU-Net is trained on paired data generated under a fixed acoustic configuration, and its applicability to different propagation distances, operating frequencies, transducer geometries, and other acoustic conditions has not yet been systematically established. Future work will focus on extending APU-Net to varying acoustic configurations and improving its generalization across operating conditions.
Data Availability
The datasets generated and/or analyzed during the current study are available from the corresponding author on reasonable request.
Author Contributions
M.F.: Conceptualization, Investigation, Writing—Original Draft (conceived the research method, conducted experimental validation, and drafted the original manuscript).
X.W.: Methodology, Writing—Review and Editing (developed the research methodology and revised the manuscript).
C.X.: Writing—Review and Editing (participated in manuscript revision and proofreading).
W.Y.: Writing—Review and Editing (participated in manuscript revision and proofreading).
C.W.: Writing—Review and Editing (participated in manuscript revision and proofreading).
All authors: reviewed and approved the final version of the manuscript.