You are currently viewing a new version of our website. To view the old version click .
AppliedPhys
  • Article
  • Open Access

25 August 2025

Genetic Algorithms for Piston and Tilt Detection by Using Young Patterns

,
,
,
and
1
Instituto Tecnológico y de Estudios Superiores de Occidente, Periférico Sur Manuel Gómez Morín 8585, Tlaquepaque 45604, Mexico
2
Instituto de Ecología, Campus Puerto Ángel, Universidad del Mar, Puerto Ángel 70902, Mexico
3
Facultad de Ingeniería, Universidad Autónoma de San Luis Potosí, Av. Salvador Nava no. 8, San Luis Potosí 78290, Mexico
4
Centro Universitario de los Lagos, Universidad de Guadalajara, Av. Enrique Díaz de León 1144, Lagos de Moreno 47460, Mexico

Abstract

We present some numerical results on piston and tilt detection by using the Young experiment with Genetic Algorithms (GAs). We have simulated the cophasing of a flat surface by following the experimental setup and the mathematical model for Optical Path Difference (OPD) in the Young experiment to characterize piston and tip–tilt misalignment images in the order of a few nanometers, considering diffraction effects and random noise of 5%. Thus, the best fitness obtained by the genetic algorithm is considered as a determining factor to decide a complete error measurement because the proposed algorithm is capable of extracting the values of piston and tilt separately, regardless of which error is present or both. As a result, we have developed a study on piston detection from (0.001, 10) mm with a tilt present in the same pattern from (0, λ / 2 ) by using GAs embedded in a computational application.

1. Introduction

During the stage of segmented surface alignment, one problem to solve is how to minimize the relative piston error between adjacent segments. This process is known as cophasing. Once each relative piston value on the segmented surface has been minimized, the root mean square (RMS) piston error must be considered.
Cophasing is one of the specific tasks associated with segmented telescopes, and it requires the development of active control over three degrees of freedom for each individual segment: translation along the optical axis (piston), and rotation about two perpendicular axes (tip–tilt). A piston error is typically on the order of a wavelength or a fraction thereof; physically, it manifests as a step between adjacent segments. Therefore, to achieve proper alignment, the misaligned segment must be repositioned such that the relative piston error falls within a fraction of the wavelength, typically better than λ / 40 RMS for the entire segmented surface [1].
Segmented surface cophasing has become an essential topic for the scientific community engaged in the construction of large optical telescope surfaces. This is because the building of segmented mirrors is one of the few feasible ways to reduce manufacturing and transportation costs for large-aperture systems. Several issues arise when aligning such telescopes. For instance, once the telescope is assembled, all optical and electronic components of the active system must be tested because the orientation of each segment affects image quality in the observation plane.
The main techniques used for cophasing in the Keck telescopes in Hawaii (USA) include the algorithms of Chanan et al. [1]. More recently, the GRAVITY instrument at VLTI has implemented advanced fringe-tracking and piston reconstruction techniques to improve long-baseline interferometry, even under atmospheric turbulence [2].
For segmented mirror telescopes like the ELT, maintaining phase continuity across segments is critical. Wang et al. proposed a method for detecting piston errors under turbulence using optical techniques that remain accurate even in degraded vision conditions [3].
Rousseaux et al. presented a low-light piston and tilt sensor combining a diffraction grating and a micro-lens array for the simultaneous measurement of phase and inclination [4]. He et al. introduced a vortex-based interferometric method that encodes piston information in spiral-shaped fringe patterns [5].
To address large initial piston errors, Qin et al. proposed a dynamic adjustment multiwavelength interference method, capable of correcting piston mismatches greater than 1 mm with nanometric precision [6].
Li and Wang introduced a frequency-domain filtering method combined with convolutional neural networks to estimate piston values from focal-plane intensity distributions [7]. Similarly, Guerra-Ramos et al. employed deep learning with CNN-RNN architectures to retrieve global piston values from segmented diffraction patterns [8].
The present work contributes to this evolving landscape by proposing a GA-based algorithm for the piston and tilt detection from synthetic Young interferometric patterns. The proposed method is resilient to tilt-induced distortions and does not require preprocessing to isolate piston effects. Currently, the computational optimization algorithm is being successfully applied in the context of the cophasing topic as in the case of [9], where a hybrid algorithm based on phase diversity aimed at massive sub-apertures of the segmented primary mirror is presented. The authors propose a genetic algorithm to obtain initial values of Zernike aberration coefficients. After initial alignment values for the segmented primary mirror analog system, linearization of these values is processed. Furthermore, in [10] a separately-polished segmented mirrors to cophasing surface shape error, optimizing a segmented mirror with a global radius of curvature was proposed, as well as a multi-fidelity surrogates based on sensitivity accuracy and a multi-island genetic algorithm was applied in order to optimized a segmented mirror. Other work where optimization algorithm are used is in [11], where a simulations and hardware realization of a simulated annealing algorithm in an active optical system, with sparse segments, generating a local optimization of piston and tip–tilt errors have been proposed. In most of the works developed for cophasing of a segmented surface, the performance dynamic range is always involved, as in the case of [12], where a fine alignment of the great James Webb Space Telescope with a genetic algorithm has been optimized in the last alignment stage for fine-phasing. Here, the optical elements were handled with seven degrees of freedom. In addition, three parameters or genes were handled in the proposed genetic algorithm. Inside the optimization process, the neural net is also being used for minimizing the phase errors, such as the work of [13], here a convolutional neural network is proposed to distinguish the piston error range of each sub-mirror, given on the phase cophasing phase of the segmented optical mirrors, since the Shack-Hartmann wavefront sensor is not sensitive to the sub-mirror piston error. This method surpasses the limits of the detection range when different wavelengths are used. In addition, a simulation experiment was introduced.
This paper is organized as follows. Section 2 introduces the theoretical framework. Section 3 explains the use of a constant term in the Young experiment to characterize piston and tilt. Section 4 describes how GA is applied for parameter extraction. Section 5 presents the experimental setup, and Section 6 discusses the results and conclusions.

2. Theoretical Basis

Three theoretical foundations were taken into consideration to support the present work.
The first is a classical study on the phase alignment of segmented mirrors using a digital Zygo interferometer by Jian Bai et al. [14]. In that work, it is established that the piston term is associated with an axial displacement along the optical axis of the segmented surface under test. This axial displacement is implicitly present in the defocusing component of the wavefront aberration.
The second foundation relates to a previous study on piston detection by Salinas-Luna et al. [15], where cophasing was achieved by analyzing the defocusing term. In that work, it was shown that defocusing can be interpreted as a piston when the phase shift is on the order of the wavelength and remains constant across the surface. Otherwise, it is considered classical defocus, which is nonlinear in nature [16]. Another interesting insight comes from experimental piston detection using the Ronchi test [17], where it was demonstrated that a small focus shift for each segment could be detected if the classical Ronchi ruling was laterally displaced.
Building on that idea, we have simulated piston by adding a constant term to the optical path difference (OPD) in Young’s experiment. The effect of the piston manifests as a change in fringe width for the displaced segment, modeled by displacing both secondary sources. In contrast, tilt or tip was simulated by displacing only one secondary source, producing a shift in the zero-order fringe of the irradiance. The resulting fringe patterns for both cases are analyzed in the following sections.
Furthermore, in a previous geometrical analysis [17], the piston term was related to the transverse aberration in the Ronchi test using ray tracing, neglecting diffraction effects by employing high-frequency Ronchi rulings. Even though diffraction was ignored, the operation range of the system could be characterized.
Finally, according to Hopkins’ theory of wave aberrations [18], adding a constant to the wavefront results in a defocusing effect. Conversely, a defocus aberration in the wavefront can be interpreted as the addition of a constant phase term.

3. Piston and Tip-Tilt in the Young’s Experiment

Initially, the conceptual design of this work was thought of as a prototype of a segmented surface with a pair of flat mirror segments. This is because the mathematical model of Young’s experiment is more adaptable for this type of surfaces, since secondary sources could be placed on any part of the mirror surface, and thus it would be possible to detect easier tip tilts in other directions. In the piston case, the secondary sources can be placed at any point on the optical surface. Consequently, we intend to perform the experiment with geometrical tests in order to make a comparison.
To begin our numerical analysis, we have considered movements of the position of the secondary sources to characterize errors in a segmented surface and it allows the using of the Young experiment.
Following Figure 1, a segmented surface with piston error can be characterized in our work by using a theoretical analysis for the OPD in the experiment of Young [19], Figure 1. Well known, that the interference fringes are produced by the light recombination of the secondary sources S 1 , S 2 (separated by a distance d) on an observation plane ( x , y ) (the distance from the sources plane and observation plane is a).
Figure 1. Reference system for the point secondary sources.
So that, the irradiance behavior in two adjacent Young’s experiments is depicted in Figure 2, when two masks with circular apertures (secondary sources) are used to co-phase a flat segmented surface. Here, classical Young’s experiment is taken for reference mirror and another for the displaced mirror (pistoned Young’s experiment). It is worth mentioning that in each Young experiment the complete phase is known; however, half of each one is eliminated to make a comparison between each case.
Figure 2. Diagram to characterize piston with the Young interferometer. Right image obtained in the Y-axis detection plane is for comparing (up) Classical Young’s experiment with (down) Pistoned Young’s experiment; a youngram is an interferogram generated by Young’s experiment.
It is known that irradiance for the classical experiment of Young can be characterized of its physical parameters in the plane observation,
i r r a d i a n c e = 4 I 0 cos 2 ( δ ) ,
where
δ = n κ x d a ,
with κ as the wave number with ( κ = 2 π λ 0 ), n is the refraction index, ( n = 1 ), λ 0 is the used wavelength and I 0 is the maximum value of intensity in the Young pattern. Equation (2) arises after considering two point sources and without diffraction effects.
If the Young experiment considers circular apertures with certain diameter as secondary sources, then the complete irradiance should contain two factors; the first one is a diffraction pattern as amplitude function, it depends on the shape of the geometry of the apertures, in this case is the diffraction pattern for a circular aperture. Mathematically,
d i f f r a c t i o n = 2 J 1 ( κ , R , q ) ,
where J 1 is a Bessel function of order 1, R is the distance from plane of the circular apertures to observation plane, d is the aperture diameters and q is the radii of the Airys disc, it depends on
q = 1.22 R λ 0 2 d
The second one is the interference factor, it is a cosinusoidal function [20], where its phase contains the OPD information. Thus, Equation (1) can be rewritten as,
i r r a d i a n c e = 4 I 0 ( d i f f r a c t i o n ) 2 cos 2 ( δ ) .
On the other hand, we have obtained that a piston term can be characterized by adding to sagitta a constant term z 0 [15], in the order of the wavelength, and it could be also introduced in Equation (2) to generate a piston error, since a discontinuity in the phase for a step (piston), produces a change in the patterns frequency. Thus, in order to characterize the simulation of cophasing of a flat segmented surface in the classical Young in this work, we compare the fringes for the classical Young experiment (fixed segment) with the fringes of the final phase for the Young experiment where a constant, z 0 , of the order of a multiple or fraction of the wavelength is added to the parameter a (test segment). This idea belongs to displace both sources in the segment under test by generating an expected change in the frequency of the patterns. Therefore Equation (2) can be expressed as
δ = n κ x d a ± z 0 .
However, in order to characterize an inclination in the Young experiment, it is necessary to displace only one source a distance Δ a , maintaining the other one fixed in the test segment. Thus, to introduce tip or tilt, the sources are located in a reference axis system, see Figure 3. For the fixed source we have,
s 1 = S 1 P = a 2 + y 2 + x d 2 2 ,
to introduce an inclination, source 2 is displaced as follows,
s 2 = S 2 P = ( a + Δ a ) 2 + y 2 + x + d 2 2 ,
if we obtain the square and reduce these two equations, after some simplifications,
s 2 s 1 = Δ a 2 + 2 a Δ a + 2 x d s 2 + s 1 ,
in the practice, due to the short wavelength of the light in the visible spectrum, the fringes can be observed only if d a , so that, x and y are also small compared with the distance a [19], in other words,
s 2 + s 1 2 a ,
then Equation (6) can be rewritten as,
s 2 s 1 = Δ a 2 + 2 a Δ a + 2 x d 2 a ,
where Δ a produces a change in Equation (2) for the phase, generating a tip or tilt, following mathematical expression, we have
δ = κ Δ a 2 + 2 a Δ a 2 a + x d a .
Figure 3. Diagram to generate an image with tilt in the Young interferometer in this work.
As can be observed in Equation (9), the interference term x d a appears again for the case of inclinations the same way as in the typical case of Young’s experiment, Equation (2). Therefore if we want to generate a piston error, then it is compare the Young fringes in two adjacent segments, where the fringes for the classical Young experiment x d a are used for the fixed segment and for the segment with piston a constant z 0 = m λ is added to variable a x d a ± z 0 , as it was previously mentioned.
For the case of the contributions for tip or tilt, Δ a , on the phase difference δ (where z 0 = 0 ), it has been obtained Δ a 2 + 2 a Δ a 2 a + x d a , where now the interference term, x d a , can be considered as the initial phase in this experiment.
The equation for the irradiance in the Young experiment as function of the combined contributions for piston, z 0 , and tip or tilt, Δ a , on the phase difference, δ , can be expressed as,
i r r a d i a n c e = 4 I 0 ( d i f f r a c t i o n ) 2 cos 2 κ Δ a 2 + 2 a Δ a 2 a + x d a ± z 0 .
In these last equations are piston and tilt in terms of the physical parameters of the Young experiment for this work. A more detailed explanation of the mathematical development for a piston-based optical system was described by Salinas-Luna et al. in [21].

4. Piston and Tip-Tilt Extraction Using GA

GA were formally introduced in the US in the 1970s by John Holland at University of Michigan, Holland [22]. A Genetic Algorithm is an adaptive heuristic search algorithm based on the evolutionary ideas of natural selection, Darwin [23] and genetics. They are used to find approximate solutions to complex problems where traditional methods may be inefficient. The flowchart of Figure 4 illustrates the steps of a typical Genetic Algorithm. Some key concepts in genetic algorithms are the following:
Figure 4. Flowchart of a typical Genetic Algorithm.
-
Population: A set of potential solutions, called individuals or chromosomes.
-
Fitness function: evaluates how good each solution is. Typically, the fitness value ranges from 0 to 1.0, where 1.0 denotes optimal solutions.
-
Selection: chooses the best individuals to reproduce based on fitness.
-
Crossover or recombination: combines parts of two parents to create offspring.
-
Mutation: Introduces small random changes to individuals to maintain diversity.
-
Evolution: Over successive generations, the population evolves toward better solutions, similar to how species evolve in nature through natural selection.

4.1. Solution Representation

An individual encapsulates all the parameters required to build an image. It consists of the following:
  • Phenotype: a pair e p i s t o n , t i l t 2 .
  • Genotype: a chain of 64 bits: an unsigned-integer value, 32 bits for piston, and 32 bits for tilt.
  • Fitness: a double-precision number.
  • Expected Value: a double-precision number, used for roulette selection, (see Section 4.3).
The first stage of a genetic algorithm consists of creating a random population of individuals; each individual is constructed by setting a random binary value [ 0 , 1 ] to each bit (or gene) from its genotype. Notice that search-space exploration performed by a genetic algorithm is not aware of what exactly is being optimized; this is because genetic operators, including population creation, work exclusively with genotypes. Nevertheless, there has to be something in a genetic algorithm aware of the values we are dealing with (piston, tilt) and how are they employed in an equation intended to be minimized or maximized (Young patterns), and this is the fitness calculation, (see Section 4.2). Therefore, there has to be a way to translate a given genotype (bit sequence) into a phenotype (piston, tilt), in such a way that no two genotypes are mapped into the same phenotype, in order to avoid ambiguities. Thus, phenotype is given by the formulas:
p i s t o n = 10.0 + ( ( G e n o t y p e 32 ) F F F F F F F F 16 ) × 20.0
and
t i l t = λ 0 1600 + ( G e n o t y p e 000000000000 F F F F F F F F 16 ) × λ 0 800 / F F F F F F F F 16 .
Notice that the 32 more significant bits of the genotype are mapped into a floating-point piston value in the range [ 10.0 , 10.0 ] millimeters whereas the 32 less significant bits are mapped into a floating-point tilt value in the range λ 0 1600 , λ 0 1600 . Some values are specified in hexadecimal format to easily indicate the largest 32-bit unsigned integer value. In tilt calculation, the effect of the ∧ (AND) operation is to keep only the 32 less significant bits of the genotype.
From the formulas above, the following holds:
10.0 p i s t o n 10.0 ,
in steps of 4.65 × 10 9 , and
λ 0 1600 t i l t λ 0 1600 ,
in steps of 2.91 × 10 13 λ 0 .
Both ranges have to be known from start since genetic algorithms perform both exploration and exploitation inside a given enclosed search space where the best solution is expected to reside. We have decided to use the range λ 0 1600 , λ 0 1600 for tilt values since it is symmetric and denotes the largest possible interval free from ambiguities, which means that no two values in this range produce exactly the same patterns. Adding a constant i < λ 0 1600 to the first value in the range, results in the same patterns as adding such a constant to the last value. As for the piston, no ambiguities were observed because the interference fringes showed a progressive widening as the piston values varied from 45 to 45 mm in our experiments. However, in practice, piston values range from 0.0 to a few centimeters. Thus, we considered fair enough to use piston values in the range ( 10 : 10 ) to run our simulations, taking into consideration that the lower the range, the more accurate the result.
To understand better the relationship between genotype and phenotype, we analyzed the following example where a genotype is translated into a phenotype. The genotype is written in hexadecimal format to indicate that it denotes merely a sequence of bits. In order to distinguish among numbers in decimal and hexadecimal format, sub index 16 is employed for the latter case.
Assume the following chromosome was randomly generated at first, and λ 0 = 0.000632 mm, Genotype: A 71 F 068 E 94 D B 386 C 2 .
The resulting phenotype is calculated as follows:
p i s t o n = 10.0 + ( ( A 71 F 068 E 94 D B 386 C 2 16 32 ) / F F F F F F F F 16 ) × 20.0 = 10.0 + ( A 71 F 068 E 16 / F F F F F F F F 16 ) × 20.0 = 10.0 + ( 2 , 803 828 , 366 / 4 , 294 967 , 295 ) × 20.0 = 10.0 + 0.6528 × 20.0 = 10.0 + 13.0563 = 3.056343 mm
notice that the piston value falls inside our range of interest: ( 10 : 10 ) ; for tilt we have
t i l t = λ 0 1600 + ( A 71 F 068 E 94 D B 386 C 16 00000000 F F F F F F F F 16 ) × λ 0 800 / F F F F F F F F 16 = λ 0 1600 + 94 D B 386 C 16 × λ 0 800 / F F F F F F F F 16 = 0.000632 1600 + 2 , 497 394 , 796 × 0.000632 800 / 4 , 294 946 , 295 = 3.95 × 10 7 + 4.5936 × 10 7 = 6.4361 × 10 8 = 0.000000064361 mm .

4.2. Fitness Evaluation

In this work, every input image used in the runs of the algorithm proposed includes Gaussian noise. Some examples of input images are shown in Section 6. Hence, before running the genetic algorithm, noise is reduced by assigning every pixel the average intensity of its neighbors and itself. After this, the intensity of each of the pixels on the first row bottom-up of the top-half, i.e., row 1 2 h (where h is the image height) is stored into a one-dimensional array, referred as g o a l in the fitness algorithm, the length of which is equal to the width of the input image. In the flowchart of Figure 5, the algorithm used to remove Gaussian noise from the input image is shown.
Figure 5. Algorithm 1. Removing Gaussian noise from input image.
Fitness is in terms of how far or close a given solution is from a goal image given as input. The logic of the algorithm is as follows: for every point x , h 2 where x in [ 1 , w ] , we measure the irradiance by means of the Young experiment, and then compare it with the value of g o a l x . Algorithm 2 calculates the fitness of each individual (as shown in the flowchart of Figure 6); at the end of it, the fitness value will range from 0.001 to 1.0 .
Figure 6. Algorithm 2. Fitness calculation algorithm.

4.3. Genetic Operators

As in any typical genetic algorithm, fitness evaluation is performed on phenotypes and genetic operators act on genotypes. Individuals are chosen by an elitist roulette selection Figure 7.
Figure 7. Roulette selection.
Roulette selection first assigns an expected value to each individual that is proportional to its fitness such that the sum of these values is equals to the population size. It works by creating a “roulette wheel” where each individual is assigned a slice of the wheel, and the size of the slice is determined by its fitness. When the wheel is spun, the individual whose slice aligns with the “marker” is selected. This is implemented by picking a random value in the range [ 0 , N ] where N is the population size. It then sums up the expected values of all the individuals, and whatever individual causing the sum to exceed the random value is selected. This process is done N 1 times because the best individual is always preserved. In roulette selection, fitter individuals are more likely to pass to the next generation. Notice in Figure 7 that orange individual (the best solution) passes to the next generation at the same position because of the elitist algorithm. Moreover, orange, blue, red and yellow individuals had great odds to be selected (even more than once) for being acceptable solutions.
The crossover technique employed is two-point (see Figure 8). It is carried out between pairs of adjacent individuals ( i , i + 1 ) , where i is an even index ( 0 , 2 ) , and i + 1 best individual index. Checkpoints are random integer values in the range [ 0 31 ] . This interval is due to the genotype is made up of thirty-two bits. The probability of crossover occurring has been set to 80 % ; this value usually ranges from 60 % to 90 % . High values of crossover probability encourage search-space exploitation. In this work, we desire in most of the cases that new chromosomes, the offspring, to inherit good parts (bit sequences) of old chromosomes, maybe leading to better individuals. However, it is good practice to allow some part of the population to survive to the next generation.
Figure 8. Two-point crossover; where dark colored genes store 1 (brown and blue) and light colored genes denote 0 (yellow and cyan).
The mutation technique is one-point uniform and consists of changing the value of a randomly selected bit from genotype i, as shown in Figure 9, where i best individual index. Mutation encourages search-space exploration [24], since it is made to prevent the algorithm from falling into local extreme, but it should not occur very often, because the genetic algorithm will in fact change to random search. This is way mutation probability has been set to 0.4 .
Figure 9. One-point uniform mutation; where dark colored genes store 1 (brown and blue) and light colored genes denote 0 (yellow and cyan).

5. Numerical Set-Up to Test the Algorithm

The employed parameters for this work are:
  • Wavelength, λ 0 = 0.000632 mm (from a geometric point of view).
  • Distance between observation plane and secondary sources a = 90 mm.
  • Distance from segments to beam splitter ϕ = 45 mm.
  • Separation between sources d = 0.1 mm.
  • Air index n = 1 .
  • Size of observation plane in the x direction = 40 mm.
  • Maximum intensity I 0 = 1024 .
  • Apertures diameter = 2.0 mm.

6. Results and Discussion

Figure 10 shows windows of a computer application, running under Linux, useful for generating Figure 10a,b to evaluate a Young pattern in *.fits format and to conserve fine details of the image, respectively. We can observe all the parameters involved in the generation of this image.
Figure 10. Application windows to (a) generate a Young pattern and (b) to evaluate an image with tilt and piston.
Figure 11 show a set of simulated images to be used in Young’s experiment for cophasing. An interesting area of these Young’s patterns is the central maximum where the interference fringes are changing due to misalignments for piston and tilt. We can notice that for the case of Figure 11a, the piston and tilt present at the same time in the pattern, and it produces a combined effect in the patterns. However, a small shift towards the right is observed in Figure 11b; this effect is an indicative of a variation in the initial phase of the produced pattern by a slight tilt. Furthermore, the pure effect of the piston is shown in Figure 11c, where a symmetric change in the fringes’ width is produced for the piston effect. These pattern width changes have been already reported in [15,17,21], and therefore, are again corroborated here.
Figure 11. Young patterns images generated for the application with: (a) piston and tilt, (b) only tilt, and (c) only piston.
We decide it is suitable to analyze first the case when only piston or tilt are present separately.
First, we began by positioning the experiment in half of the total of the proposed numbers of generations G and individuals I; this is ( G , I ) . We realized that a work margin is necessary to realize three experiments of evaluation in the image, for G > I , with 2350 and 940 generations and individuals, respectively, and for G < I (with G = 850 and I = 1630 ) and G = I (for G = 1650 and I = 1650 ), as shown in Table 1, where E x p ( P i , T i ) , E x t ( P i , T i ) , % ( P i , T i ) , and ( G , I ) are the expected piston and tilt components, the extracted piston and tilt components, the accuracy percentage, and the generations and individuals obtained, respectively.
Table 1. Piston detection with GA and tilt = 0.
The main idea is to obtain the better number of ( G , I ) where the GA shows an optimal behavior. For the case where the piston is only present ( t i l t = 0 ), a piston percentage of 100 % was obtained, and for a piston of 0.001 1.58 λ , with a best fitness of 0.999 to realize 7 of 10 successful runs. We also realize experiments for ( G < I ) and ( G = I ) by finding the same precision parameters; however, the successful iterations number presents a progressive decrease, since it was obtained 5 and 6 of 10 successful iterations, respectively. Thus, the optimal number of ( G , I ) was in the first interval, that is for ( G > I ) .
For the case when tilt is only present (piston = 0), we obtained a percentage of tilt of 100 % with a best fitness of 0.982443 after to realize 10 of 10 successful iterations for ( G > I ) , see Table 2. In this case, we can notice that in 2 iterations a tilt of 0.000157 mm ( 0.248 λ ) was extracted, with a 99.367 % precision, a best fitness of 0.982442 , and an uncertainty of 0.623 % . Through this, the cases for ( G < I ) and for ( G = I ) were not realized completely since the same tendency was observed for the two iterations of the first case ( G > I ) , where an uncertainty of 0.623 % was obtained.
Table 2. Tilt detection with GA and piston = 0.
Table 3 shows 10 iterations of piston and tilt detection by considering 50 % more of generations and individuals than in the cases of the previous tables. It can be noticed that in the second iteration the best fitness 0.999992 has been obtained with an uncertainty of 0.02 % and 0.63 % for piston and tilt, respectively. Therefore, these values for piston and tilt could be considered as the best misalignments extracted. Other interesting cases are seen in iterations 7 and 8, where a similar fitness of 0.999989 has been obtained. However, the precision was different in both cases, since a precision of 99.9988 % was obtained in the 7th iteration for a piston, with an uncertainty of 0.0012 % for the piston and for tilt a precision of 100 % . For the 8th iteration, in the case of the piston the precision was 99.9997 % , with an uncertainty of 0.0003 % , and for the tilt a precision of 99.36708 % , with an uncertainty of 0.632 % . Furthermore, the average percentage of precision of piston detection with GA was obtained; it was 99.99479 % , with an average uncertainty of 0.00521 % , and for tilt an average precision of 99.620248 % was obtained with an average uncertainty of 0.3797 % . This last results demonstrated that GA can obtain better results for the piston, when tilt is also present in the images (Figure 11).
Table 3. Piston and tilt detection with GA.

7. Conclusions

We have developed a study of piston and tilt detection with GAs, where information about big pistons have been obtained, understanding big as in the order of some millimeters for the piston and for tilts of the order of some fractions of the wavelength. This simulated experiment has a minimum value of detection of 0.001 mm ( 1.52 λ for the piston), since it was imposed for the mathematical models obtained by Young’s experiment to characterize the piston, which was initially non-linear and thus the dynamic detection range was bonded. Likewise the precision of the program to generate simulated images was adapted for this piston value as mentioned. In contrast, for tilt detection, the dynamic detection range could have been bigger than the piston dynamic range, since tilt in Young’s experiment exhibits linear behavior and was considered from 0 to λ 2 . Thus, in this work, the dynamic detection ranges for piston and tilt with two segmented surfaces or panels were studied. Future work may include scaling up the simulation to support off-axis segmented mirrors and segmented surfaces with three panels.

Author Contributions

Conceptualization, I.P.-D., J.S.-L., G.S.-D., R.C. and M.M.-G.; methodology, I.P.-D., J.S.-L., G.S.-D., R.C. and M.M.-G.; software, I.P.-D., J.S.-L., G.S.-D., R.C. and M.M.-G.; validation, I.P.-D., J.S.-L., G.S.-D., R.C. and M.M.-G.; formal analysis, I.P.-D., J.S.-L., G.S.-D., R.C. and M.M.-G.; investigation, I.P.-D., J.S.-L., G.S.-D., R.C. and M.M.-G.; resources, I.P.-D., J.S.-L., G.S.-D., R.C. and M.M.-G.; data curation, I.P.-D., J.S.-L., G.S.-D., R.C. and M.M.-G.; writing—original draft preparation, I.P.-D., J.S.-L., G.S.-D., R.C. and M.M.-G.; writing—review and editing, I.P.-D., J.S.-L., G.S.-D., R.C. and M.M.-G.; visualization, I.P.-D., J.S.-L., G.S.-D., R.C. and M.M.-G.; supervision, I.P.-D., J.S.-L., G.S.-D., R.C. and M.M.-G. All authors have read and agreed to the published version of the manuscript.

Funding

The authors would like to acknowledge SECIHTI for financial support through the program “Sistema Nacional de Investigadoras e Investigadores (SNII)”, applied at the periods: 2023–2027 (I.P.-D. and M.M.-G.); 2024–2028 (G.S.-D.); and 2025–2029 (J.S.-L. and R.C.-Z.).

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author or the rest of the authors.

Acknowledgments

The authors would like to acknowledge M.T.I. David A. Leith for revising the style and grammar.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Chanan, G.; Troy, M.; Dekens, F.; Michaels, S.; Nelson, J.; Mast, T.; Kirkman, D. Phasing the mirror segments of the Keck telescopes: The broadband phasing algorithm. Appl. Opt. 1998, 37, 144–150. [Google Scholar] [CrossRef] [PubMed]
  2. Perera, S.; Pott, J.; Woillez, J.; Kulas, M.; Brandner, W.; Lacour, S.; Widmann, F. P-REx II. Off-line Performance on VLTI/GRAVITY. arXiv 2021, arXiv:2112.12837. [Google Scholar]
  3. Wang, B.; Jin, Z.; Dai, Y.; Yang, D.; Xu, F. Research on piston error sensing for segmented mirrors under atmospheric turbulence. Opt. Express 2023, 31, 33719–33731. [Google Scholar] [CrossRef]
  4. Rousseaux, T.; Primot, J.; Jaeck, J.; Rouzé, B.; Le Gall, C.; Bellanger, C. A piston and tilt wavefront sensor dedicated to the cophasing of segmented optics in low light level conditions. Opt. Lasers Eng. 2024, 181, 108412. [Google Scholar] [CrossRef]
  5. He, W.; Tian, X.; Guo, P.; Yu, T.; Yang, L.; Yang, Z.; Liu, Z. Co-phase detection of segmented mirrors based on optical vortex polarization phase-shifting interference. Opt. Commun. 2024, 569, 130614. [Google Scholar] [CrossRef]
  6. Qin, R.; Yin, Z.; Ke, Y.; Liu, Y. Large Piston Error Detection Method Based on the Multiwavelength Phase Shift Interference and Dynamic Adjustment Strategy. Photonics 2022, 9, 694. [Google Scholar] [CrossRef]
  7. Li, D.; Wang, D. High-Precision Piston Error Sensing of Segmented Telescope Based on Frequency Domain Filtering. IEEE Photonics J. 2024, 16, 6803506. [Google Scholar] [CrossRef]
  8. Guerra-Ramos, D.; Trujillo-Sevilla, J.; Rodríguez-Ramos, J.M. Global piston restoration of segmented mirrors with recurrent neural networks. OSA Contin. 2020, 3, 1355–1363. [Google Scholar] [CrossRef]
  9. Yue, D.; Xu, S.Y.; Nie, H.T.; Xu, B.Q.; Wang, Z.Y. A new hybrid algorithm for co-phasing segmented active optical system based on phase diversity. Optik 2016, 127, 985–990. [Google Scholar] [CrossRef]
  10. Wu, S.; Dong, J.; Xu, S.; Lu, Z.; Xu, B. Optimization of a segmented mirror with a global radius of curvature actuation system based on multi-fidelity surrogates. Optik 2021, 242, 166741. [Google Scholar] [CrossRef]
  11. Paykin, I.; Yacobi, L.; Adler, J.; Ribak, E.N. Phasing a segmented telescope. Phys. Rev. E 2015, 91, 023302. [Google Scholar] [CrossRef] [PubMed]
  12. Guillaume, A.; Terrile, R.J.; von Allmen, P. Fine alignment of the James Webb Space Telescope with a genetic algorithm. In Proceedings of the IEEE Aerospace Conference, Big Sky, MT, USA, 7–14 March 2009; Volume 7, pp. 1–7. [Google Scholar]
  13. Li, D.; Xu, S.; Wang, D.; Yan, D. Large-scale piston error detection technology for segmented optical mirrors via convolutional neural networks. Opt. Lett. 2019, 44, 1170–1173. [Google Scholar] [CrossRef]
  14. Bai, J.; Cheng, S.; Yang, G. Phase alignment of segmented mirrors using a digital wavefront interferometer. Opt. Eng. 1997, 36, 2355–2357. [Google Scholar] [CrossRef]
  15. Salinas-Luna, J.; Luna, E.; Salas, L.; Cruz-González, I.; Cornejo-Rodríguez, A. Ronchi test can detect piston by means of the defocusing term. Opt. Express 2004, 12, 3719–3736. [Google Scholar] [CrossRef] [PubMed]
  16. Malacara, D. Twyman-Green Interferometer. In Optical Shop Testing, 3rd ed.; Malacara, D., Ed.; Wiley-Interscience: Hoboken, NJ, USA, 2007; Chapter 2; pp. 46–96. [Google Scholar]
  17. Salinas-Luna, J.; Luna, E.; Salas, L.; Nunez, J. Experimental results on piston detection by using the classical Ronchi test. Appl. Opt. 2006, 45, 6990–6997. [Google Scholar] [CrossRef] [PubMed]
  18. Hopkins, H.H. Wave Theory of Aberrations, Wave and Ray Aberrations; The Claren-don Press: London, UK, 1950. [Google Scholar]
  19. Born, M.; Wolf, E. Principles of Optics, 7th ed.; Cambridge University Press: Cambridge, UK, 1999; pp. 290–292. [Google Scholar]
  20. Hecht, E. Optics, 5th ed.; Pearson Education: London, UK, 2017; pp. 473–476. [Google Scholar]
  21. Salinas-Luna, J.; Mentado Morales, J.; Nuñez-Alfonso, J.M. Lambda-shiftings for the secondary sources in the Young’s experiment allow to rebuild patterns looks like piston/tilt. Rev. Mex. Física E 2023, 20, 010207-1. [Google Scholar] [CrossRef]
  22. Holland, J.H. Adaptation in Natural and Artificial Systems. An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence; MIT Press Edition: Boston, MA, USA, 1992. [Google Scholar]
  23. Darwin, C. The Origin of Species. Means of Natural Selection, or the Preservation of Favoured Races in the Struggle for Life; D. Appleton and Company: New York, NY, USA, 1861. [Google Scholar]
  24. Spears, W.M. Crossover or Mutation? In Proceedings of the Second Workshop on Foundations of Genetic Algorithms, Vail, CO, USA, 26–29 July 1992; Volume 2, pp. 221–237. [Google Scholar]
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

Multiple requests from the same IP address are counted as one view.