Manuscript Offprint
arXiv:2610.19218A Gradient-Regularized Deep Learning Method for Restoring Image in Myopic Vision
Kebin Contreras
Physics School
Univ. Industrial of Santander
Bucaramanga, Colombia
Luis Toscano-Palomino
Dept. of Computer Science
Univ. Industrial of Santander
Bucaramanga, Colombia
Rafael Torres
Physics School
Univ. Industrial of Santander
Bucaramanga, Colombia
Jorge Bacca
Dept. of Computer Science
Univ. Industrial of Santander
Bucaramanga, Colombia
Abstract—Myopic vision degrades the quality of human vision due to spherical eye defocus aberrations that impair the perception of fine spatial details. To address this limitation, this work proposes a deep learning-based approach to computationally design transformed images that allow individuals with myopia in fixed distance to perceive scenes with enhanced clarity. The method trains a neural network to counteract defocus aberrations modeled using the second-order Zernike polynomial . The approach employs a U-Net architecture trained with a loss function combining reconstruction error minimization with spatial difference structural preservation through regularization. Training is carried out exclusively on the KITTI dataset, while testing is performed on DIV2K and ImageNet datasets, demonstrating generalization across diverse image distributions. Under myopic conditions modeled by , baseline performance shows visual degradation with PSNR values ranging from 19.47 to 27.42 dB across datasets and severity levels. The proposed gradient-regularized method achieves consistent improvements, delivering PSNR gains ranging from 1.48 to 7.34 dB and significantly lower perceptual compared to classical baselines.
Index Terms—Myopia correction, Zernike polynomials, gradient regularization, image restoration.
I. INTRODUCTION
Visual quality in human vision is essential for everyday tasks, as even minor eye degradations can affect perception and decision-making [1]. Among refractive errors, myopia (nearsightedness) represents one of the most prevalent visual impairments worldwide, affecting more than 2.6 billion people and projected to affect nearly half of the world population by 2050 [2]. Myopic aberrations degrade the quality of visual input by causing blurring of distant objects, distorting spatial information, and reducing the ability to resolve fine details [3]. These imperfections impact daily activities that require distance vision, such as driving, sports, and classroom learning [3]–[5].
To quantitatively model myopic aberrations in the human eye, Zernike polynomials serve as mathematical tools to represent the aberrated wavefront emerging at the pupil plane after light passes through the eye's optics [6]. These polynomials decompose the wavefront distortions into a series of orthogonal basis functions on a unit disk, providing a compact description of ocular imperfections [4]. Specifically, the second-order Zernike polynomial represents defocus aberrations corresponding to spherical refractive errors that cause the uniform blurring observed in myopia [7].
Historically, myopia correction has been based on physical optical elements such as concave lenses with specific diopter strengths tailored to individual prescriptions [8]. However, traditional corrective approaches face several limitations including physical constraints, comfort issues, and challenges in dynamic correction for varying visual demands [3]. Moreover, the social and psychological implications of visual impairment can further limit the acceptance of conventional treatments [3]. Computational strategies have emerged as promising alternatives, proposing digital modification of visual content to compensate for optical aberrations. Similarly, [9] proposed a light field-based eyeglasses-free display; however, their approach exhibits limited generalization since the hardware-dependent calibration fails under changing user head positions, off-axis viewing angles, or varying screen distances, and it does not rely on a formal optical aberration model grounded in wavefront theory.
This work addresses these limitations by proposing a gradient-regularized computational strategy specifically designed for myopia pre-compensation. As illustrated in Fig. 1, our approach models the eye’s degradation using a physics-based point spread function (PSF) derived from the second-order Zernike polynomial to accurately simulate spherical defocus [10]. Unlike conventional image restoration designed for digital sensors, we focus on scenarios with fixed viewing distances, such as digital displays, where a spatially invariant model provides an appropriate first-order approximation. Our method pre-transforms content ( ) so that it appears clear to a myopic human observer after passing through their aberrated optics (h). By centering the study on this specific refractive error, we establish a robust baseline for computational correction before extending to more complex aberrations such as astigmatism.
The proposed approach trains a U-Net architecture [11] on the KITTI dataset [12] using a gradient-regularized loss that balances pixel fidelity with structural preservation through -norm constraints on spatial gradients [13]. As shown in the final stages of Fig. 1, the resulting model demonstrates strong generalization on the DIV2K [14] and ImageNet [15] datasets, outperforming classical Wiener filtering and non-regularized baselines in both signal fidelity (PSNR/SSIM) and perceptual metrics (LPIPS).

I: Original image (scene / optotype)
h: Eye degradation operator (myopia )
: Compensation model parameterized by
: Result after the visual system
Fig. 1. Proposed computational pre-compensation pipeline. The process involves modeling the myopic visual system using Zernike polynomials ( ), applying a deep learning-based compensation model ( ), and evaluating the restored result ( ) through signal and perceptual metrics.
where [6] are the polar coordinates. The polynomial captures the characteristic of myopic vision: uniform spherical defocus that affects all spatial frequencies equally, resulting in rotationally symmetric blurring throughout the visual field. This distinguishes myopia from other aberrations, such as astigmatism, which introduce directional distortions [10]. For an eye affected by myopia, the incoming wavefront can be modeled as:
where the coefficient determines the severity of myopic defocus. Positive values typically correspond to myopic conditions, with larger magnitudes indicating more severe myopia requiring stronger corrective power [7].
The complex pupil function that describes light propagation through the myopic eye is given by:
where represents the amplitude transmission function of the pupil and is the wavelength of light. For myopic modeling, it is typically assumed that the amplitude function is uniform across the pupil aperture [10].
The PSF characterizing the myopic eye’s imaging properties is obtained through Fourier optics principles. The PSF represents the intensity distribution in the image plane and is computed as follows:
where denotes the two-dimensional Fourier transform, and the transformation from polar to Cartesian coordinates is applied for spatial domain representation. The PSF maintains rotational symmetry because the Zernike polynomial has angular order , indicating no angular dependence on . This results in a circularly symmetric point spread function where the blur kernel exhibits uniform characteristics in all radial directions, which accurately represents the isotropic nature of spherical defocus aberrations in myopic vision. All spatial frequencies experience similar degradation, which is characteristic of spherical aberrations and distinguishes defocus from other optical imperfections that may affect different frequency bands unequally.
The degraded image observed by a myopic individual is modeled as the convolution of the original scene with the myopic PSF:
where denotes the convolution operation. This mathematical framework provides the foundation for accurately simulating myopic vision and developing computational correction strategies based on optical physics [16], [17].
III. GRADIENT-REGULARIZED IMAGE CORRECTION
The proposed computational correction strategy aims to generate transformed images that, when viewed by people with myopia, appear sharp and clear. Although the optical degradation is wavelength-dependent as shown in Eq. (5), digital images in this framework are processed using three independent color bands (RGB). For notational simplicity in the subsequent formulation, the wavelength subscript is omitted hereafter, with the understanding that operations are applied independently across all color channels. Let I represent the original sharp image. The objective is to find a transformed image such that:
Therefore, this method seeks a transformation that compensates for the known degradation characteristics of myopic vision. Rather than restoring the scene at the optical level, the goal is to pre-process the image such that, when it is viewed through a myopic visual system, it appears perceptually sharp. This formulation allows the correction to be performed entirely in the digital domain, removing the dependence on physical lenses and enabling adaptable, content-aware correction. However, due to the ill-posed nature of deconvolution and the need to preserve fine structural details, a data-driven learning framework is employed. Specifically, we adopt a deep convolutional architecture to learn a transformation that counteracts the effects of the myopic PSF, while regularizing for perceptual consistency through spatial
A U-Net architecture [11], denoted as , is used to learn the transformation mapping . The network is trained to generate corrected images that, when combined with the myopic point spread function , closely approximate the original sharp images.
A key component of our method is the preservation of high-frequency structural information during image reconstruction [18]. To achieve this, we introduce a gradient regularization term that penalizes inconsistencies in edges and textures, guiding the network to maintain sharpness and avoid overly smoothed results. The optimization problem is formulated as
where the first term enforces perceptual similarity of the corrected image , and the second term enforces consistency of horizontal and vertical gradients [13] controlled with the hyperparameter .
This gradient constraint plays a central role in ensuring cross-domain generalization. By minimizing -nom differences between gradients, the model preserves sharp transitions and structural coherence across diverse visual content, making the correction transferable to image types not seen during training. The use of the -norm promotes sparsity in gradient differences, effectively maintaining edges while allowing smooth regions, thus compensating for optical degradation without sacrificing perceptual quality.
The training procedure, described in Algorithm 1, learns a transformation that compensates for myopic degradation by leveraging a physics-informed framework enhanced with gradient-based regularization. The model is designed to generalize across diverse visual domains, ensuring applicability to a wide range of image types regardless of scene characteristics or dataset origin.
Algorithm 1: Gradient-Regularized Training for Myopia Correction
Input : , , , ,
foreach batch of images do
; // Myopic wavefront
; // Pupil function
; // Myopic PSF
; // Network prediction
; // Recon. loss
; // Grad. loss
; // Total loss
; // Update params
Output: Optimized parameters

Fig. 2. Hyperparameter tuning for the gradient regularization weight . The PSNR is plotted for different values of , showing that achieves the best performance.
IV. SIMULATIONS AND RESULTS
The proposed method is evaluated through a cross-domain strategy to assess reconstruction accuracy and generalization. A U-Net architecture is trained exclusively on KITTI [12].
TABLE I
COMPARATIVE QUANTITATIVE EVALUATION OF IMAGE RESTORATION ACROSS DATASETS UNDER VARYING MYOPIC DEFOCUS SEVERITIES (S). VALUES REPRESENT MEAN ± STANDARD DEVIATION. THE BEST RESULTS ARE HIGHLIGHTED IN BOLD, WHILE THE SECOND-BEST ARE UNDERLINED, ARROWS (↑ AND ↓).
| Method / Severity (S) | KITTI [12] | DIV2K [14] | ImageNet [15] | ||||||
|---|---|---|---|---|---|---|---|---|---|
| SSIM↑ | PSNR↑ | LPIPS↓ | SSIM↑ | PSNR↑ | LPIPS↓ | SSIM↑ | PSNR↑ | LPIPS↓ | |
| S = 0.50 (Mild Aberration) | |||||||||
| Baseline (Uncorrected) | |||||||||
| Wiener Deconvolution | |||||||||
| UNet (MSE Loss) | |||||||||
| Ours (Unet + Reg) | |||||||||
| S = 1.00 (Moderate Aberration) | |||||||||
| Baseline (Uncorrected) | |||||||||
| Wiener Deconvolution | |||||||||
| UNet (MSE Loss) | |||||||||
| Ours (Unet + Reg) | |||||||||
| S = 2.00 (Severe Aberration) | |||||||||
| Baseline (Uncorrected) | |||||||||
| Wiener Deconvolution | |||||||||
| UNet (MSE Loss) | |||||||||
| Ours (Unet + Reg) | |||||||||
| S = 3.00 (Extreme Aberration) | |||||||||
| Baseline (Uncorrected) | |||||||||
| Wiener Deconvolution | |||||||||
| UNet (MSE Loss) | |||||||||
| Ours (Unet + Reg) | |||||||||
Hyperparameter tuning was performed via grid search for , showing that for the Sobel gradient regularization provides the optimal balance between pixel fidelity and structural sharpness (Fig. 2). Myopic defocus is modeled via the Zernike polynomial across four severity levels. Furthermore, the mean and standard deviation reported in Table I were computed across 100 test images for each dataset, capturing the variance of the model's performance across diverse visual content.
Performance is evaluated using Peak Signal-to-Noise Ratio (PSNR), Structural Similarity Index (SSIM), and Learned Perceptual Image Patch Similarity (LPIPS). While PSNR and SSIM measure fidelity and structural consistency, LPIPS evaluates perceptual similarity in deep feature space.
Table I compares the proposed method against classical Wiener deconvolution [19] and a UNet trained with MSE loss across the multiple myopic defocus severities. The proposed gradient-regularized model consistently achieves the best or second-best LPIPS values across all datasets, indicating superior perceptual quality.
At mild degradation (), the model obtains the best LPIPS in all domains while maintaining PSNR values close to the UNet-MSE baseline. As degradation severity increases, the advantage of gradient regularization becomes more evident, preserving sharper contours and structural details compared to Wiener deconvolution, which introduces ringing artifacts, and MSE-based UNet, which tends to over-smooth textures.
Under severe degradations ( and ), the proposed method consistently surpasses Wiener filtering and remains competitive with UNet-MSE, demonstrating stronger perceptual robustness and better cross-domain generalization. Qualitative results in Fig. 3 further validate the recovery of fine textures and edge consistency. In particular, the Myopia images correspond to the degraded observation , the Transformed images denote the network output , and the Corrected images correspond to the perceived result after passing through the myopic visual system, , which is compared with the Ground Truth image .
V. CONCLUSIONS
This work presents a novel gradient-regularized computational framework for myopic vision pre-compensation that effectively bridges physics-based optical modeling with deep learning. The proposed method demonstrates that integrating the second-order Zernike polynomial into a U-Net training pipeline allows for the precise inversion of spherical defocus aberrations. Quantitatively, the approach achieves consistent PSNR gains across diverse distributions, ranging from 1.48 dB to 7.34 dB.
The primary technical contribution lies in the adoption of a gradient-regularized loss function, which prioritizes structural coherence over simple pixel-wise error minimization. This strategy successfully mitigates the high-frequency artifacts and ringing effects typically associated with classical Wiener deconvolution, as evidenced by the significantly lower LPIPS scores achieved across all datasets. Furthermore, the model's robust performance on DIV2K and ImageNet, despite being trained exclusively on KITTI, provides empirical evidence of its cross-domain generalization capabilities. These findings validate the use of perceptual metrics as a reliable proxy for human visual judgment in the absence of clinical trials.

Fig. 3. Cross-domain visual results comparing myopic with severity level 2.0 degradation and gradient-regularized correction. PSNR values are shown for KITTI (training), DIV2K (natural), and ImageNet (object-centric) datasets.
REFERENCES
[1] B. Monroy, K. Contreras, and J. Bacca, “Autoregressive high-order finite difference modulo imaging: high-dynamic range for computer vision applications,” 2025, [Online]. Available: https://arxiv.org/abs/2504.04228.
[2] B. A. Holden, T. R. Fricke, D. A. Wilson, M. Jong, K. S. Naidoo, P. Sankaridurg, T. Y. Wong, T. J. Naduvilath, and S. Resnikoff, “Global prevalence of myopia and high myopia and temporal trends from 2000 through 2050,” Ophthalmology, vol. 123, no. 5, pp. 1036–1042, 2016.
[3] M. Demir, S. A. Kurna, T. Sengor, T. G. Atakan, and T. Sahin, “Assessment of aberrations and visual quality differences between myopic and astigmatic eyes before and after contact lens application,” Northern Clinics of Istanbul, vol. 2, no. 1, pp. 1–6, April 2015.
[4] S. V. Bădescu, R. Barac, S. Schmitzer, and C. Tătaru, “The influence of optical aberrations in refractive surgery,” Romanian Journal of Ophthalmology, vol. 59, no. 4, pp. 217–222, 2015.
[5] K. Contreras, B. Monroy, and J. Bacca, “High dynamic range modulo imaging for robust object detection in autonomous driving,” 2025, [Online]. Available: https://arxiv.org/abs/2504.11472.
[6] R. J. Noll, “Zernike polynomials and atmospheric turbulence,” Journal of the Optical Society of America, vol. 66, no. 3, pp. 207–211, 1976.
[7] V. N. Mahajan, “Zernike circle polynomials and optical aberrations of systems with circular pupils,” Journal of the Optical Society of America, vol. 71, no. 1, pp. 75–85, 1981.
[8] M. Sundy, D. McKnight, C. Eck, and F. Rieger, “Visual acuity outcomes of toric lens implantation in patients undergoing cataract surgery at a residency training program,” Missouri Medicine, vol. 113, no. 1, pp. 40–43, 2016.
[9] F.-C. Huang and R. Raskar, “Eyeglasses-free display: towards correcting visual aberrations with computational light field displays,” ACM Transactions on Graphics, vol. 33, no. 4, pp. 59:1–59:12, 2014.
[10] A. B. Watson, J. D. Yellott, and D. M. E. Cooper, “Computing human optical point spread functions,” Journal of Vision, vol. 15, no. 2, p. 26, 2015.
[11] S. Guan, A. A. Khan, S. Sikdar, and P. V. Chitnis, “Fully dense UNet for 2-d sparse photoacoustic tomography artifact removal,” IEEE Journal of Biomedical and Health Informatics, vol. 24, no. 2, pp. 568–576, 2019.
[12] A. Geiger, P. Lenz, and R. Urtasun, “Are we ready for autonomous driving? the KITTI vision benchmark suite,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2012, pp. 3354–3361.
[13] P. Perona and J. Malik, “Scale-space and edge detection using anisotropic diffusion,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 12, no. 7, pp. 629–639, 1990.
[14] E. Agustsson and R. Timofte, “NTIRE 2017 challenge on single image super-resolution: dataset and study,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2017, pp. 126–135.
[15] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei, “ImageNet: a large-scale hierarchical image database,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2009, pp. 248–255.
[16] A. Silva-Lora and R. Torres, “Superconical aplanatic ovoid singlet lenses,” Journal of the Optical Society of America A, vol. 37, no. 7, pp. 1155–1165, 2020.
[17] A. Silva-Lora and R. A. Torres, “Explicit cartesian oval as a superconic surface for stigmatic imaging optical systems with real or virtual source or image,” Proceedings of the Royal Society A, vol. 476, no. 2235, p. 20190894, 2020.
[18] J. Bacca, “Projection-based correction for enhancing deep inverse networks,” 2025, [Online]. Available: https://arxiv.org/abs/2505.15777.
[19] N. Wiener, Extrapolation, Interpolation, and Smoothing of Stationary Time Series. Cambridge, Massachusetts: MIT Press, 1949.