Intelligent Control System for the Hard X-Ray Nanoprobe Beamline Beam Optimization Based on Automatic Evolution Algorithm and Expert System
Abstract
:1. Introduction
2. Materials and Methods
2.1. Overall System Architecture
2.2. Intelligent Controller Design
2.3. Construction of Beamline Optimization Model
- (a)
- The motor motion axis corresponding to each optical component in the beamline is quantified by a decision, and is presented in the form of a dimension vector as shown in Formula (2).
- (b)
- The initial position information of the motor motion shaft is generated using random computer simulation, which in turn determines the optical attitude of the initial optical component, as illustrated in Formula (3).
- (c)
- A “mutated” beamline state is generated through the differential operation between beamline states, as demonstrated in Formula (4).
- (d)
- The replacement of dimensional vectors between the old and new beamline states results in the generation of the “test” beamline state, as illustrated in Formula (5).
- (e)
- Compare beam of light fitness, as shown in Formula (6).
- (f)
- Repeat (a) to (e) on the basis of the results in (e) until the end condition is satisfied to obtain the best optical attitude, as shown in Formula (7).
- (a)
- The position information of the motor, which includes the optical posture within the optical component, is initialized as the initial population with a total number of individuals N. Then, with the current initial parent population , a variant offspring with an equal number of individuals is generated using the evolution operator. The aforementioned process is illustrated in Equation (9).The child corresponds to the “variant” optical attitude.
- (b)
- The parent population and the child population are merged to form a new parent population , as illustrated in Equation (10).
- (c)
- At this point, the population contains 2N individuals, and is efficiently sorted into non-dominated categories to obtain various Pareto sets that differentiate the quality degree of the optical pose, as demonstrated in Equation (11).
- (d)
- After completing the non-dominant ranking, the optical pose individuals from each rank are sequentially added to the next generation population , following the rank order of optical pose quality. This process continues until the number of individuals in the Pareto set of the current rank exceeds the initial population size N, as depicted in Figure 4. Since the optical pose quality level is 3 and the set with m individuals cannot all be accommodated, a crowding ranking operation is performed on the collection of individuals at the level. Individuals with greater crowding are then selected and successively added to until the number of individuals in reaches N. The crowding ranking operation is described in Equation (12).Among, the remaining solutions are discarded.
- (e)
- Repeat steps (a) to (d) based on the results from step (d) until the termination condition is met, in order to obtain the solution set that contains the best non-dominant Pareto optical attitude, as illustrated in Equation (13).
2.4. Expert System Design
2.5. Software Design and Implementation
3. Results
4. Discussion
- (1)
- The system can optimize the device to converge under the current beam state, enabling the acquisition and storage of the best optical attitude information;
- (2)
- Apart from the algorithm’s own parameter settings, the speed of system optimization primarily relies on the number of optimized motor shafts and the travel range associated with each shaft. The more motors there are and the wider their travel range, the longer it takes to achieve convergence. The latter factor plays a decisive role. In the same difference operator experiment, the subsequent operator experiment only begins when all motors have reached the specified position;
- (3)
- When considering the slightly different beam states before and after conducting the same set of experiments, invoking the database experience yields significantly improved convergence rates in comparison to optimization results obtained under the initial random condition. This improvement demonstrates a significantly faster convergence speed, with the speed increasing 15 times;
- (4)
- At the start of the system’s optimization, the evolutionary range exhibits significant changes. However, as the system gradually approaches the optimal solution, the rate at which the evolutionary range decreases gradually slows until convergence.
- (1)
- During the optimization process, the algorithm iterates comprehensively towards two optimization objectives. Under the current beam state, the flux is optimized towards the maximum objective, while the spot position deviation is optimized towards the minimum objective. However, actual test results demonstrate that the two optimization paths are not entirely aligned and may even diverge. In such cases, the location of the obtained Pareto equivalent solution on the two-dimensional plane represents the algorithm’s comprehensive optimization results based on both objectives. These positions are represented by individual Pareto points in Figure 11. The ordinate represents the position deviation (measured in microns), and the abscissa represents the current intensity (measured in microamperes);
- (2)
- When optimizing from a random initial state, the resulting Pareto equivalent solutions tend to be scattered and irregularly distributed near the Pareto frontier curve. This indicates that the algorithm exhibits weak non-dominance based on both objectives within a finite number of iterations, and there still remains some distance from the ideal convergence state. On the other hand, when invoking the expert system’s beam adjusting experience for optimization, the evolved Pareto frontier points are distributed along a smoother curve, forming a more regular solution boundary. This suggests that the algorithm achieves better non-dominance based on the finite evolution of the both objectives, and has approached or even reached the ideal convergence state;
- (3)
- The optimization results for a single objective are superior to those obtained when optimizing both objectives simultaneously. However, it should be noted that since the beam is currently undergoing debugging, this variation is mainly attributed to the challenge of stabilizing the spot itself. Despite the empirical results not being dominant in terms of optimization time, the obtained solution set surpasses that of the random initial state. Overall, the benefits and improvements achieved in solving nonlinear problems with multiple objectives are more significant.
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Chen, C.; Zhu, S.; Wang, Y. In situ Analysis of the Fate and Behavior of Inorganic Nanomaterials in Biological Systems by Synchrotron Radiation X-ray Probe Techniques. Curr. Anal. Chem. 2022, 18, 723–738. [Google Scholar]
- Medjoubi, K.; Baranton, G.; Somogyi, A. Fast full-field micro-tomography at the Nanoscopium multitechnique nanoprobe beamline of Synchrotron Soleil. Microsc. Microanal. 2018, 24, 254–255. [Google Scholar] [CrossRef]
- Tian, A.X. Study on Optical Properties of Synchrotron Radiation Hard X-Ray Nanofocusing Adaptive Phase Compensation System. Ph.D. Dissertation, University of Chinese Academy of Sciences (Shanghai Institute of Applied Physics, Chinese Academy of Science), Shanghai, China, 2020. [Google Scholar] [CrossRef]
- He, Y.; Jiang, H.; Liang, D.-X.; Jiang, Z.-S.; Yu, H.-N.; Wang, H.; Mao, C.-W.; Xie, J.-N.; Li, A.-G. The hard X-ray nanoprobe beamline at the SSRF. Nucl. Sci. Tech. 2024, 35, 121. [Google Scholar] [CrossRef]
- Pugliese, R.; Poboni, R. Optimization of Synchrotron Beam Alignment using a Linguistic Control Scheme. In Proceedings of the 1995 International Conference on Accelerator and Large Experimental Physics Control Systems, Chicago, IL, USA, 30 October–3 November 1995. [Google Scholar]
- Svensson, S.O.; Pugliese, R. Automatic alignment of a synchrotron radiation source beamline using intelligent systems. In Applications and Science of Neural Networks, Fuzzy Systems, and Evolutionary Computation, Proceedings of the SPIE’s International Symposium on Optical Science, Engineering, and Instrumentation, San Diego, CA, USA, 19–24 July 1998; SPIE: Washington, DC, USA, 1998; Volume 3455, pp. 85–92. [Google Scholar]
- Hignette, O.; Rostaing, G.; Cloetens, P.; Rommeveaux, A.; Ludwig, W.; Freund, A.K. Submicron focusing of hard X-rays with reflecting surfaces at the ESRF. In X-Ray Micro-and Nano-Focusing: Applications and Techniques II, Proceedings of the International Symposium on Optical Science and Technology, San Diego, CA, USA, 29 July–3 August 2001; SPIE: Washington, DC, USA, 2001; Volume 4499, pp. 105–116. [Google Scholar]
- Xi, S.; Borgna, L.S.; Du, Y. General method for automatic on-line beamline optimization based on genetic algorithm. J. Synchrotron Radiat. 2015, 22, 661–665. [Google Scholar] [CrossRef] [PubMed]
- Xi, S.; Borgna, L.S.; Zheng, L.; Du, Y.; Hu, T. AI-BL1.0: A program for automatic on-line beamline optimization using the evolutionary algorithm. J. Synchrotron Radiat. 2017, 24, 367–373. [Google Scholar] [CrossRef]
- Experimental Physics and Industrial Control System. Available online: https://epics.anl.gov/ (accessed on 28 February 2021).
- The TANGO Website. Available online: https://www.tango-controls.org/ (accessed on 3 April 2021).
- Shi, Y.; Gao, M.; Jia, W.; Yin, G.; Gao, X.; Du, Y.; Zheng, L. Intelligent Beam adjusting System of Synchrotron Radiation Beam Line Based on EPICS and Differential Evolution Algorithm. Nucl. Technol. 2020, 43, 3–9. [Google Scholar]
- Zhang, D.; Wu, Y.; He, Y.; Liu, K.; Wang, Q.; He, J. Multi-objective Automatic optimization of crystallographic beam lines based on NSGA-II. Nucl. Tech. 2021, 44, 14–21. [Google Scholar]
- Karaca, S.A.; Bostanci, E.; Ketenoglu, D.; Harder, M.; Canbay, A.C.; Ketenoglu, B.; Eren, E.; Aydin, A.; Yin, Z.; Guzel, M.S.; et al. Optimization of synchrotron radiation parameters using swarm intelligence and evolutionary algorithms. J. Synchrotron Radiat. 2024, 31, 420–429. [Google Scholar] [CrossRef]
- Zhang, J.; Qi, P.; Wang, J. Multi-objective genetic algorithm for synchrotron radiation beamline optimization. J. Synchrotron Radiat. 2023, 30, 51–56. [Google Scholar] [CrossRef]
- Appel, S.; Geithner, W.; Reimann, S.; Sapinski, M.; Singh, R.; Vilsmeier, D.M. Optimization of heavy-ion synchrotrons using nature-inspired algorithms and machine learning. In Proceedings of the 13th International Computational Accelerator Physics Conference (ICAP’18), Key West, FL, USA, 20–24 October 2018. [Google Scholar]
- Zhang, X.; Sheehy, S.L. Performance of automated synchrotron lattice optimisation using genetic algorithm. J. Phys. Conf. Ser. 2023, 2420, 012036. [Google Scholar] [CrossRef]
- Appel, S.; Geithner, W.; Reimann, S.; Sapinski, M.; Singh, R.; Vilsmeier, D. Application of nature-inspired optimization algorithms and machine learning for heavy-ion synchrotrons. Int. J. Mod. Phys. A 2019, 34, 1942019. [Google Scholar] [CrossRef]
- Mangold, S. Fully automated beamline control system for XAS beamlines. J. Synchrotron Radiat. 2018, 25, 960–966. [Google Scholar] [CrossRef] [PubMed]
- Stepanov, S.; Kissick, D.; Makarov, O.; Hilgart, M.; Becker, M.; Venugopalan, N.; Xu, S.; Smith, J.L.; Fischetti, R.F. Fast automated energy changes at synchrotron radiation beamlines equipped with transfocator or focusing mirrors. Synchrotron Radiat. 2022, 29, 393–399. [Google Scholar] [CrossRef] [PubMed]
- Fateen, A.; Jeremy, S. Initial Work on the Development of a Hardware-Based Gradient Descent Trained Expert System. Systems 2022, 10, 160. [Google Scholar] [CrossRef]
- Bogdan, W.; Petr, F. A hybrid recommender system for an online store using a fuzzy expert system. Expert Syst. Appl. 2023, 212, 118565. [Google Scholar]
- Barnabas, D.L.; Saida, U. Modeling of Online Learning Strategies Based on Fuzzy Expert Systems and Self-Directed Learning Readiness: The Effect on Learning Outcomes. J. Educ. Comput. Res. 2023, 60, 2081–2104. [Google Scholar]
- Zhen, W.; Jin, X.; Tao, Z.; Li, J.; Yu, D.; Cheong, K.H.; Chen, C.P. Expert System-Based Multiagent Deep Deterministic Policy Gradient for Swarm Robot Decision Making. IEEE Trans. Cybern. 2022, 54, 1614–1624. [Google Scholar]
- Control System Studio. Available online: https://www.controlsystemstudio.org/ (accessed on 31 June 2022).
- MongoDB. Available online: https://www.mongodb.com/zh-cn/docs/languages/python/pymongo-driver/current/ (accessed on 17 October 2022).
- PyEpics. Available online: https://pyepics.github.io/pyepics/ (accessed on 28 February 2021).
- Gong, P.; He, Y.; Zhou, J. The Size and Position of the X-Ray Beamline Measured by Wire Scanning Detector at SSRF. Nucl. Electron. Detect. Technol. 2016, 36, 274–278. [Google Scholar]
- Alkire, R.W.; Rosenbaum, G.; Evans, G. Design of a vacuum-compatible high-precision monochromatic beam-position monitor for use with synchrotron radiation from 5 to 25 keV. J. Synchrotron Radiat. 2000, 7, 61–68. [Google Scholar] [CrossRef]
- Huang, C.H.; Wu, C.Y.; Chiu, P.C.; Cheng, Y.-S.; Liao, C.-Y.; Hu, K.-H.; Hsu, K.-T. X-ray beam position monitors and their usage at the Taiwan photon source. In Proceedings of the 13th International Conference on Synchrotron Radiation Instrumentation—SRI2018, Taipei, Taiwan, 11–15 June 2018; AIP Publishing: Melville, NY, USA, 2019; Volume 2054. [Google Scholar]
- Shu, D.; Kuan, C.K.; Sheng, I.C.; Chen, J.R. Development of an x-ray beam position monitor for TPS EPU beamline front ends. J. Phys. Conf. Ser. 2013, 425, 042003. [Google Scholar] [CrossRef]
- Huang, C.H.; Chiu, P.C.; Wu, C.Y.; Lin, Y.Z.; Hsiao, Y.M.; Chuang, J.Y.; Cheng, Y.S.; Liao, C.Y.; Kuan, C.K.; Hu, K.H.; et al. Beam stability diagnostics with X-ray beam position monitor in the Taiwan Photon Source. In Proceedings of the 6th International Beam Instrumentation Conference (IBIC’17), Grand Rapids, MI, USA, 20–24 August 2017; JACOW: Geneva, Switzerland, 2018; pp. 217–220. [Google Scholar]
- Kim, Y.; Nam, D.; Ma, R.; Kim, S.; Kim, M.-J.; Kim, J.; Eom, I.; Lee, J.H.; Kim, T.K. Development of an experimental apparatus to observe ultrafast phenomena by tender X-ray absorption spectroscopy at PAL-XFEL. J. Synchrotron Radiat. 2022, 29, 194–201. [Google Scholar] [CrossRef] [PubMed]
Optical | Motors | Physical Function |
---|---|---|
Slit2 | X1,X2 Z1,Z2 | Adjust the knife size of the through light in the X and Z directions |
DMM | Pitch | Adjust the pitch angle of 2nd crystal |
Roll | Adjust the roll angle of 2nd crystal | |
PFM | m1,m2 | Adjust the pitch angle of the mirror |
Order | Optimized Device | Initial State | Convergent Algebra | Convergence Time (S) |
---|---|---|---|---|
1 | Slit2 (X1,X2,Z1,Z2) | Random | 13 | 234 |
2 | Slit2 (X1,X2,Z1,Z2) | Experience | 7 | 124 |
3 | DMM (Roll) | Random | 18 | 58 |
4 | DMM (Roll) | Experience | 3 | 9 |
5 | DMM (Pitch,Roll), PFM (m1,m2) | Random | 17 | 182 |
6 | DMM (Pitch,Roll), PFM (m1,m2) | Experience | 1 | 6 |
7 | DMM (Pitch,Roll) | Random | 18 | 105 |
8 | DMM (Pitch,Roll) | Experience | 7 | 47 |
Order | Optimized Device | Initial State | Optimization Time (S) | Position Deviation (μm) | Flux (10−6 A) |
---|---|---|---|---|---|
1 | Slit2 (X1,X2,Z1,Z2) | Random | 506 | 150.18 | 7.23 |
2 | Slit2 (X1,X2,Z1,Z2) | Experience | 530 | 34.81 | 9.11 |
3 | DMM (Pitch,Roll) | Random | 135 | 54.90 | 5.27 |
4 | DMM (Pitch,Roll) | Experience | 179 | 42.80 | 5.55 |
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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, Y.; Zhao, Y.; He, Y.; Zhang, Z.; Li, A. Intelligent Control System for the Hard X-Ray Nanoprobe Beamline Beam Optimization Based on Automatic Evolution Algorithm and Expert System. Sensors 2024, 24, 7211. https://doi.org/10.3390/s24227211
Liu Y, Zhao Y, He Y, Zhang Z, Li A. Intelligent Control System for the Hard X-Ray Nanoprobe Beamline Beam Optimization Based on Automatic Evolution Algorithm and Expert System. Sensors. 2024; 24(22):7211. https://doi.org/10.3390/s24227211
Chicago/Turabian StyleLiu, Yuhao, Ying Zhao, Yan He, Zhaohong Zhang, and Aiguo Li. 2024. "Intelligent Control System for the Hard X-Ray Nanoprobe Beamline Beam Optimization Based on Automatic Evolution Algorithm and Expert System" Sensors 24, no. 22: 7211. https://doi.org/10.3390/s24227211
APA StyleLiu, Y., Zhao, Y., He, Y., Zhang, Z., & Li, A. (2024). Intelligent Control System for the Hard X-Ray Nanoprobe Beamline Beam Optimization Based on Automatic Evolution Algorithm and Expert System. Sensors, 24(22), 7211. https://doi.org/10.3390/s24227211