Development of Simulation Software for X-Ray Imaging Techniques with an Intuitive Graphical Interface for Medical Physics Training
Main Article Content
Abstract
This article presents the development of specialized X-ray imaging simulation software for medical physics training in Vietnam, enabling the analysis of physical interaction phenomena without requiring direct experimentation on human subjects. To overcome the prolonged computational time of advanced Monte Carlo platforms like GEANT4 or GATE, the system was developed in Python, utilizing a multilinear interpolation algorithm to retrieve data from a pre-simulated library generated by GATE. Regarding technical parameters, the software allows users to customize imaging variables such as X-ray tube voltage (kVp), tube current (mAs), filter configuration, and three standard phantom types (simple cylindrical, voxel from CT, and ICRP tetrahedral). The emitted radiation spectrum is accurately calculated based on bremsstrahlung and characteristic radiation, applying the Beer-Lambert attenuation law to determine the absorption intensity through inherent shielding layers. To simulate the actual radiation dose, the number of simulation events (histories) is interpolated according to the tube current to ensure a contrast-to-noise ratio (CNR) equivalent to real images. The results demonstrate that the image reconstruction time is reduced to merely 2-5 seconds, which is 10,000–30,000 times faster than direct GATE simulations. Although the average PSNR is 35 dB (lower than GATE's 40 dB due to interpolation limitations), the image quality fully meets visualization standards for educational purposes.
Keywords
Diagnostic imaging, simulation software, X-ray
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
References
[2] D. W. O. Rogers, Fifty years of Monte Carlo simulations for medical physics, Physics in Medicine and Biology, vol. 51, no. 13, pp. R287–R301, Jul. 2006. https://doi.org/10.1088/0031-9155/51/13/R17
[3] S. Jan, D. Benoit, E. Becheva, T. Carlier, F. Cassol, P. Descourt, T. Frisson, L. Grevillot, L. Guigues, L. Maigne, C. Morel, Y. Perrot, N. Rehfeld, D. Sarrut, D. R. Schaart, S. Stute, U. Pietrzyk, D. Visvikis, N. Zahra, and I. Buvat, GATE V6: A major enhancement of the GATE simulation platform enabling modelling of CT and radiotherapy, Physics in Medicine and Biology, vol. 56, no. 4, pp. 881–901, Feb. 2011. https://doi.org/10.1088/0031-9155/56/4/001
[4] F. Salvat, J. M. Fernández-Varea, and J. Sempau, PENELOPE-2006: A Code system for Monte Carlo simulation of electron and photon transport, Paris, France: OECD Nuclear Energy Agency, 2006, pp. 218–233.
[5] S. Agostinelli, J. Allison, K. Amako, J. Apostolakis, H. Araujo, P. Arce, M. Asai, D. Axen, S. Banerjee, G. Barrand, F. Behner, L. Bellagamba, J. Boudreau, L. Broglia, A. Brunengo, H. Burkhardt, S. Chauvie, J. Chuma, R. Chytracek, G. Cooperman, G. Cosmo, P. Degtyarenko, A. Dell'Acqua, G. Depaola, D. Dietrich, R. Enami, A. Feliciello, C. Ferguson, H. Fesefeldt, G. Folger, F. Foppiano, A. Forti, S. Garelli, S. Giani, R. Giannitrapani, D. Gibin, J. J. Gómez-Cadenas, I. González, G. Gracia Abril, G. Greeniaus, W. Greiner, V. Grichine, A. Grossheim, S. Guatelli, P. Gumplinger, R. Hamatsu, K. Hashimoto, H. Hasui, A. Heikkinen, A. Howard, V. Ivanchenko, A. Johnson, F. W. Jones, J. Kallenbach, N. Kanaya, M. Kawabata, Y. Kawai, M. Kawanishi, S. Kelner, P. Kent, A. Kimura, T. Kodama, R. Kokoulin, M. Kossov, H. Kurashige, E. Lamanna, T. Lampén, V. Lara, V. Lefebure, F. Lei, M. Liendl, W. Lockman, F. Longo, S. Magni, M. Maire, E. Medernach, K. Minamimoto, P. Mora de Freitas, Y. Morita, K. Murakami, M. Nagamatu, R. Nartallo, P. Nieminen, T. Nishimura, K. Ohtsubo, M. Okamura, S. O’Neale, Y. Oohata, K. Paech, J. Perl, A. Pfeiffer, M. G. Pia, F. Ranjard, A. Rybin, S. Sadilov, E. Di Salvo, G. Santin, V. Savvas, T. Sasaki, N. Smith, P. Stepanov, A. Stone, T. Sugaya, A. Tcherniaev, E. Safai Tehrani, M. Tropeano, P. Truscott, H. Uno, L. Urban, P. Urban, M. Verderi, A. Walkden, W. Wander, H. Weber, J. P. Wellisch, T. Wenaus, D. C. Williams, D. Wright, T. Yamada, H. Yoshida, and D. Zschiesche, Geant4–a simulation toolkit, Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment, vol. 506, no. 3, pp. 250–303, Jul. 2003.
https://doi.org/10.1016/S0168-9002(03)01368-8
[6] D. M. Tucker, G. T. Barnes, and D. P. Chakraborty, Semiempirical model for generating tungsten target x-ray spectra, Medical Physics, vol. 18, no. 2, pp. 211–218, Mar./Apr. 1991. https://doi.org/10.1118/1.596709
[7] M. Mahesh, The essential physics of medical imaging, Medical Physics, vol. 40, iss. 7, Jun. 2013, Art. no. 077301.
https://doi.org/10.1118/1.4811156
[8] T. Koenig, M. Zuber, E. Hamann, A. Cecilia, R. Ballabriga, M. Campbell, M. Ruat, L. Tlustos, A. Fauler, M. Fiederle, and T. Baumbach, How spectroscopic x-ray imaging benefits from inter-pixel communication, Physics in Medicine and Biology, vol. 59, no. 20, pp. 6195–6213, Oct. 2014. https://doi.org/10.1088/0031-9155/59/20/6195