Next Article in Journal
Gamma and X-Ray Technologies for Medical Research: Image Analysis and Disease Discovered
Previous Article in Journal
Expert System for Stability Assessment of Underground Excavations Based on Numerical Modeling and Engineering Rules
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design and Verification of Beam Diagnostics System for Pepper-Pot Method

1
School of Computer Science and Engineering, Anhui University of Science and Technology, Huainan 232001, China
2
Institute of Energy, Hefei Comprehensive National Science Center (Anhui Energy Laboratory), Hefei 230031, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(16), 8952; https://doi.org/10.3390/app15168952 (registering DOI)
Submission received: 8 June 2025 / Revised: 4 July 2025 / Accepted: 30 July 2025 / Published: 14 August 2025
(This article belongs to the Section Applied Physics General)

Abstract

The pepper-pot method is a beam diagnostics technique used to measure the transverse beam profile, divergence angle, and envelope in particle accelerators. However, its practical application faces challenges, such as insufficient point recognition accuracy and signal quality degradation in complex environments. Based on the Boron Neutron Capture Therapy (BNCT) facility at the Hefei Comprehensive National Science Center—Energy Research Institute (Anhui Energy Laboratory), this study developed an improved pepper-pot beam diagnostics system to optimize the beam quality of the accelerator ion source. The key innovation is adaptive threshold segmentation for spot segmentation, and the experimental results indicate that the enhanced image segmentation method outperforms traditional methods in terms of segmentation accuracy and robustness.

1. Introduction

The pepper-pot method [1,2,3] is a classical beam diagnostics technique for low-energy beams in accelerators and is widely used to measure the spatial characteristics of proton beams, including the transverse distribution, divergence angle distribution, and beam envelope. Compared to other beam measurement methods (such as Faraday cups [4] or wire scanners [5]), this approach offers the distinct advantages of structural simplicity and the simultaneous acquisition of horizontal and vertical beam profiles in a single-shot measurement.
The primary objective is to significantly enhance the measurement accuracy of the beam transverse distribution and divergence angle distribution through an optimized pepper-plate design and image processing algorithms, thereby enabling efficient real-time ion beam diagnostics. Pikin et al. developed a comprehensive emittance measurement system using traditional threshold-based segmentation, achieving reasonable accuracy under controlled conditions [6]. Barabin et al. implemented multi-scale spot detection algorithms for high-intensity beam applications [7]. Pitters et al. proposed machine learning approaches for automated spot recognition [8]. However, these existing methods face limitations in handling non-uniform illumination conditions and achieving real-time processing capabilities required for modern accelerator facilities. Our approach addresses these challenges through adaptive dual-threshold dynamic segmentation and optimized matching algorithms.
The Hefei Comprehensive National Science Center Energy Research Institute (Anhui Provincial Energy Laboratory) is developing a Boron Neutron Capture Therapy (BNCT) [9,10,11,12,13] device based on a DC high-voltage accelerator, as shown in Figure 1. An ion source generates a proton beam, which is transported through an injection section into an accelerating tube. After acceleration by a 2.5 MV DC high voltage, the resulting 2.5 MeV proton beam strikes a lithium target to produce neutrons for the cancer treatment. The parameters of the proton beam injected into the accelerating tube, such as the beam envelope and divergence angle, directly affect both the beam transmission efficiency within the tube and the stability of the 2.5 MV high voltage. To optimize the beam quality generated by the BNCT ion source and enhance the operational efficiency of the BNCT device, this study systematically investigates the challenges in pepper-pot beam measurements and develops an improved pepper-pot beam diagnostics system.
Nevertheless, the practical application of the pepper-pot method faces critical challenges. First, spot identification accuracy (the percentage of correctly detected and localized beam spots compared to the theoretical hole pattern, accounting for both detection rate and centroid position precision) is compromised by factors such as fluorescent screen imaging blur, Charge-Coupled Device (CCD) resolution limitations, and background noise interference. Second, under high-intensity beam conditions, scattered particles and secondary radiation degrade the signal quality. Finally, traditional image processing algorithms exhibit low computational efficiency and insufficient accuracy in automated spot recognition and positioning. These limitations diminish the reliability and precision of pepper-pot measurements, and there are still limitations to enabling the adoption of automated pepper-pot analysis in modern accelerator facilities.
This study validates the performance of the improved image processing algorithms and comprehensively evaluates the effectiveness of the system for proton beam diagnostics. The experimental results demonstrate that the optimized pepper-pot measurement system achieves real-time high-precision monitoring of the beam parameters.
The practical significance of this study is twofold. First, the proposed technical enhancements provide novel solutions for applying the pepper-pot method in high-precision beam diagnostics, addressing the need for improved automation and precision in real-time pepper-pot measurements. Additionally, the developed image processing algorithms and diagnostics system exhibited broad compatibility. Beyond beam diagnosis for BNCT ion sources, they can be extended to medical accelerators [14], industrial ion implantation equipment [15], and plasma beam applications in fusion devices [16], enabling beam characterization and optimization with extensive applications.
Section 1 establishes the research background for the BNCT facility, identifies the challenges of traditional pepper-pot measurements, and outlines key innovations. Section 2 describes the experimental setup and measurement principles. Section 3 describes the software implementation, image processing algorithms, and algorithm performance comparisons. Section 4 summarizes this work and discusses future applications.

2. Experimental Setup and Principle

This section details the structural design and operational principles of the proton beam measurement experimental apparatus based on the pepper-pot method, covering the parameters of the pepper-pot plate and the optical detection system as well as the theoretical foundations of the measurement principles.

2.1. Pepper-Pot Plate and Its Parameters

The pepper-pot device primarily consists of a pepper-pot plate, fluorescent screen, sealing flange, and an externally mounted camera. The beam measurement principle is shown in Figure 2, and the physical diagram is shown in Figure 3. The high-precision pepper-pot plate used in this experiment is made of molybdenum material and processed using laser drilling technology. The hole array adopted a square lattice pattern with an aperture of 1 mm, a pitch of 4 mm, a total plate diameter of 56 mm, and a thickness of 2 mm. A design incorporating a light shield above the plate significantly reduced stray light interference (e.g., plasma luminescence from the ion source and reflections within the vacuum transport tube), thereby enhancing the signal-to-noise ratio of the valid spots on the fluorescent screen.
The scientific-grade CCD camera had a resolution of 1920 × 1200 pixels, a pixel size of 5.86 μm, and a high-sensitivity sensor capable of capturing faint spot signals. To ensure imaging quality across varying beam parameters, it is equipped with a low-distortion wide-angle lens (focal length: 15 mm) that provides a sufficient field of view to cover the entire fluorescent screen. Additionally, the distance between the fluorescent screen and the plate can be adjusted within the 100–260 mm range using spacers of varying thicknesses, thereby extending the measurement range for beam divergence angles. Adjusting the plate–screen distance alters the camera–screen separation. Reliable focusing was achieved through lens adjustments at approximately 20× magnification, delivering clear images. During the experiments, the camera captured images at a fixed frame rate and transferred them via USB to a computer for real-time processing using the self-developed measurement software detailed in Section 3. The original image and color level plot of the pepper-pot beam measurement are shown in Figure 4. All subsequent processing is based on this image. The two highlighted spots in the image are a reference hole (plugged) and a calibration marker.
Furthermore, the light shield between the fluorescent screen and sealing flange featured a vent hole positioned away from the light source (ion source plasma). This design prevents continuous gas emission from the pepper-pot device into the vacuum chamber during beam extraction measurements, thereby avoiding interference with the beam transmission.

2.2. Fundamental Principles of Beam Measurement Using the Pepper-Pot Method

Figure 2 schematically illustrates the core principle: a precisely designed pepper-pot plate (featuring multiple microapertures) and a fluorescent screen collectively capture the spatial distribution of the particle beams. This enables the calculation of parameters, including the beam spot size, transverse distribution, divergence angle, and emittance. When the particles pass through the microapertures, they strike the fluorescent screen, generating luminescent spots that are captured by the camera. The analysis of the spatial information of these spots facilitates beam parameter measurements. Experimentally, proton beams passing through the apertures create an array of spots on the screen. The position and intensity (gray value) of each spot reflect the local divergence angles and beam intensity.
Figure 5 shows the divergence angle measurement. Assuming L denotes the plate–screen distance, when a beamlet passes through an aperture centered at (xi, yi), its divergence angles θx and θy (along x/y directions) cause spot displacement. By measuring the spot centroid position (Xi, Yi) and combining it with the known aperture location (xi, yi) and distance L, each beamlet’s divergence angle can be calculated as follows:
θ x = X i x i L θ y = Y i y i L
Further analysis of the angular distribution across all spots revealed beam divergence characteristics, such as the RMS divergence angle or 90% inclusive divergence angle. Additionally, the spot brightness is linearly correlated with the beam intensity transmitted through the corresponding aperture. The normalization of the intensities allows the reconstruction of the beam’s transverse intensity profile at the plate plane. This distribution critically evaluates the beam uniformity and focusing performance.
During practical measurements, spot images may suffer from background noise, spot overlap, and non-uniform screen response. Robust algorithms must be applied for image denoising and other processing methods to extract accurate divergence angle data.

3. Software Implementation and Image Processing Method

This chapter elaborates on the design of beam measurement software and core image processing methods based on the pepper-pot method. The software aims to efficiently extract key proton beam parameters, including the transverse distribution, divergence angle distribution, and beam envelope, through the automated analysis of captured light spot images from experiments. The discussion covers four aspects: system architecture, image preprocessing, feature extraction, and parameter calculation, demonstrating the innovation and application value of the proposed method in beam diagnostics.

3.1. System Architecture Design

3.1.1. Overall Software Framework

The beam measurement software developed in this study employed a modular architecture, as illustrated in Figure 6. It consists of four components: a data acquisition module, an image preprocessing module, a light spot feature extraction module, and a beam parameter calculation module. These modules interact via standardized data interfaces to ensure system scalability and maintainability. The software was built using Python (3.8.10), with image processing functions implemented via open-source libraries such as OpenCV (4.5.3) and NumPy (1.21.2), and a user interface constructed with PyQt (5.15.4) to provide real-time visualization and interactive analysis capabilities.

3.1.2. Data Flow Design

The data processing flow of the software is shown in Figure 7, which includes data preprocessing and image processing. The system first acquires fluorescent screen images in real time via a CCD camera and optimizes the camera parameters by analyzing the image data. The preprocessed images then enter the spot detection phase, in which the centroid coordinates and intensity values of all light spots are extracted. Subsequently, a matching algorithm establishes mapping relationships between the detected spots and theoretical hole positions. Finally, the beam parameter calculation and visualization are completed based on these mappings.

3.2. Image Preprocessing Optimization

3.2.1. Noise Analysis and Denoising Methods

The noise in fluorescent screen images primarily originates from three sources: background, random, and salt-and-pepper noises. Background noise includes fixed-pattern noise caused by uneven Light-Emitting Diode (LED) illumination and CCD dark currents. Random noise mainly stems from thermal and electronic noise, whereas salt-and-pepper noise is often caused by CCD sensor defects or signal transmission interference. To address these noises, this study systematically compared the effectiveness of various denoising methods after further improving the signal-to-noise ratio (SNR) by subtracting background noise and applying image averaging techniques. The evaluation was based on two key metrics: SNR improvement and edge retention rate (This metric specifically evaluates whether denoising algorithms blur important structural features while removing noise). The comparison results are shown in Table 1. The experimental results indicate that morphological operations achieved an effective balance between SNR and edge retention. Specifically, median filtering and bilateral filtering improved SNR by only 0.54 and 0.33, respectively, reflecting their limited effectiveness in noise reduction. In terms of edge retention, morphological operations maintained a rate of 87.5%.
All comparison methods were implemented with optimized parameters to ensure fair evaluation. Median filtering kernel size was selected through cross-validation in the range of 3 × 3 to 9 × 9 pixels, with 5 × 5 providing the best balance between noise reduction and edge preservation. Gaussian filtering standard deviation σ was optimized within the 0.5–2.0 range using grid search, with σ = 1.0 yielding optimal results. Bilateral filtering parameters (spatial σs = 75, intensity σr = 75) were determined through a systematic parameter sweep. Morphological operations employed a 3 × 3 circular structuring element, validated as optimal for the typical spot sizes (3–7 pixels) in our experimental conditions.

3.2.2. Improved Adaptive Threshold Segmentation Algorithm

Based on the traditional OTSU algorithm [21], this study proposes an adaptive dual-threshold dynamic segmentation method using global statistical features, aiming to address the issues of weak light spot omission and overexposed region misdetection caused by uneven illumination in fluorescent screen images. This method achieves precise segmentation of light spot regions by establishing a dynamic threshold mechanism, with the specific process shown in Figure 8.
The algorithm first calculates the global statistical features of the input image, including:
μ g l o b a l = 1 M N i = 0 M 1 j = 0 N 1 I ( i , j ) σ g l o b a l = 1 M N i = 0 M 1 j = 0 N 1 ( I i , j μ g l o b a l ) 2
where M × N represents the image resolution, I(I, j) denotes the grayscale value at pixel (I, j), μ global represents the average grayscale value of the entire image, and σ global represents the standard deviation of the whole grayscale image.
Based on the statistical parameters, dynamic dual thresholds are constructed:
T h i g h = μ g l o b a l + 2 σ g l o b a l T l o w = μ g l o b a l + 0.5 σ g l o b a l
The high threshold Thigh is used to suppress the halo effect in overexposed regions, while the low threshold Tlow preserves the characteristics of weak spots. For overexposed regions satisfying I(x, y) ≥ Thigh, morphological closing is applied for spot core reconstruction:
I c o r e = ( I     B ) · B
where B is a 3 × 3 circular structuring element, ○ denotes closing, and ∙ denotes opening. This operation effectively eliminates diffuse halos in overexposed regions while maintaining the geometric center stability of the spots.
For transition regions where Tlow ≤ I(x, y) < Thigh, an improved local contrast enhancement algorithm is employed:
I e n h a n c e x , y = I x , y μ l o c a l σ l o c a l + ε × 50 + 127
In the equation, μlocal and σlocal represent the local mean and standard deviation of the grayscale values within a window centered at (x, y), where ϵ = 0.01 is an extremely small constant to prevent division by zero, and 50 and 127 are empirically determined scaling factors for the best contrast in an image. This processing can enhance the contrast of weak light spot regions by approximately 40%. The window size for computing local statistical parameters (μlocal and σlocal) was set to 5 × 5 pixels based on the following rationale: this size is comparable to the typical spot diameter (3–7 pixels) in our experimental setup, ensuring adequate local statistics while avoiding over-smoothing of spot boundaries. Experimental validation confirmed that this window size provides the optimal balance between local feature preservation and noise suppression. The 40% contrast enhancement was quantified by measuring the average gray-level difference in weak spot regions before (15–20 gray levels) and after processing (25–30 gray levels), representing a conservative estimate of the actual improvement.
After comparing other traditional segmentation algorithms in the next section, this research method was ultimately selected. The segmentation results were obtained by logically combining the processing effects of different regions:
B W x , y = 1    I c o r e ( x , y )     0.9 T h i g h 1 I e n h a n c e ( x , y )     125 0 o t h e r w i s e
In the equation, BW is the binary segmentation mask, 0.9 Thigh provides robustness against noise near the threshold, and 125 is chosen as the midpoint for enhanced contrast images.

3.2.3. Experimental Setup

To verify the effectiveness of the dual-threshold dynamic segmentation method, experiments were conducted on the acquired beam images with a resolution of 1920 × 1200 pixels. Experimental environment: ① Hardware: Intel Core i7 processor, 16 GB RAM, NVIDIA GTX 1080 Ti graphics card and ② Software: Python programming language, OpenCV library for image processing, and Matplotlib (3.4.3) library for result visualization. The segmentation algorithm and software were implemented using custom code. To comprehensively evaluate the performance of the proposed method, four segmentation approaches were introduced for comparative analysis: global threshold-based segmentation, adaptive threshold-based segmentation, and classical edge detection algorithms (Canny and Sobel). Four metrics were used to quantitatively assess the performance of these methods: ① Segmentation accuracy: calculates the proportion of overlap between segmentation results and manually annotated boundaries to measure accuracy; ② The F1-score is the blended average of precision and recall: F1-score = 2 (precision × recall)/(precision + recall). Considering the accuracy and recall of the segmentation results, the F1-score was calculated as the overall performance evaluation index of the segmentation method; ③ Robustness: Evaluates performance under noisy conditions by introducing varying levels of Gaussian noise and salt-and-pepper noise; and ④ Computation time: records processing time per image to assess computational efficiency.

3.2.4. Experimental Results

Segmentation experiments were conducted on the acquired pepper-pot beam images using the aforementioned four methods and the proposed method. The results are illustrated in Figure 9 and Table 2.
As shown in Figure 9 global threshold segmentation can preliminarily distinguish the foreground from the background under simple conditions of illumination. The adaptive threshold segmentation method adapts well to image non-uniformity by considering local grayscale variations, yielding improved segmentation results compared to global thresholding, with clearer boundary contours than global thresholding. However, noticeable artifacts remain in the images. The Canny and Sobel edge detection methods exhibit low accuracy in edge localization. Both methods are sensitive to noise and are prone to generating false edges in noisy regions, leading to unstable segmentation results.
Table 2 demonstrates that the proposed method achieves a segmentation accuracy of 94.5%, significantly outperforming traditional methods and highlighting its suitability for pepper-pot beam image segmentation. The adaptive (91.3%) and global (90.2%) threshold methods showed competent results despite slightly lower accuracy. The proposed method attained an F1-score of 86.4%, indicating an effective balance between precision and recall. In contrast, other methods yielded substantially lower F1-scores (Sobel: 66.8%; Canny: 14.3%), revealing their limitations in handling complex boundaries.
Under noisy conditions, the proposed method maintained a segmentation accuracy of 78.2%, demonstrating robust anti-noise performance. Traditional methods suffer from significant accuracy degradation in noisy environments, particularly the Canny method (43.2%). Regarding computational time, the proposed method processes each image in 0.22 s, which is slightly higher than the global threshold (0.12 s) and adaptive threshold (0.20 s) methods. Nevertheless, given its substantial improvements in segmentation accuracy, F1-score, and robustness, the method maintains a high computational efficiency. This further validates the optimal balance between processing efficiency and effectiveness.
While the quantitative improvements (94.5% vs. 91.3% accuracy) may appear modest, they translate to meaningful practical benefits in automated processing scenarios where consistent spot identification is critical for reliable beam parameter extraction. The enhanced robustness under noisy conditions (78.2% vs. 75.3%) is particularly valuable for real-time monitoring applications where environmental factors can degrade image quality.

3.3. Spot Feature Extraction and Matching Algorithm

3.3.1. Single-Scale LoG Spot Detection Principle

The single-scale Laplacian of Gaussian (LoG) algorithm [24] was used for spot detection, and the LoG operator was detected by Gaussian smoothing and the Laplace edge:
L o G x , y , σ = 1 π σ 4 ( 1 x 2 + y 2 2 σ 2 ) e x 2 + y 2 2 σ 2
The LoG operator combines the advantages of Gaussian smoothing and Laplacian edge detection. The Gaussian kernel parameter σ controls the scale of the filter, with smaller σ values detecting fine features and larger σ values detecting larger structures.
Single-scale LoG spot detection involves the following steps: First, apply the Laplacian of Gaussian (LoG) operator to convolve the preprocessed image. Next, the sub-pixel accuracy positions of the feature points are determined using quadratic interpolation. The spot radius is calculated using the formula r = σ × √2. Finally, false detections are eliminated using an area threshold. Among them, the 40-pixel2 area threshold is used to filter the light spots for secondary screening, aiming to eliminate light spots that are not on the same array while retaining the real light spots. Figure 10 shows the results of single-scale LoG spot detection, where green represents the centroids of the spots and white represents the extracted contours of the spots.

3.3.2. Application of Hungarian Algorithm in Spot Matching

After spot detection, a one-to-one correspondence between the detected spots and theoretical hole positions must be established. This study employs the Hungarian algorithm [25] to solve the optimal assignment problem. First, a cost matrix C is constructed, where element Cij represents the Euclidean distance between the i-th detected spot and the j-th theoretical hole position, as follows:
C i j = ( x i x j ) 2 + ( y i y j ) 2
The Hungarian algorithm performs row and column reduction operations to identify zero elements in the cost matrix, followed by minimum line coverage tests, ultimately obtaining an optimal assignment solution with a time complexity of O(n3).
To improve the matching efficiency, a distance constraint mechanism was introduced: based on the geometric relationship of the experimental setup, the maximum possible spot displacement dmax was estimated. When constructing the cost matrix, distances exceeding dmax were set to infinity, thereby effectively reducing the computational load. Additionally, sparse matrix storage technology was adopted to further optimize the computational efficiency for large-scale matching scenarios. Figure 11 shows the matching results of the Hungarian algorithm, where green lines connect the corresponding detected spots (red points) and theoretical hole positions (blue points). The experimental results demonstrate that this method maintains a correct matching rate of over 95%, even with up to approximately 30% spot loss.

3.4. Beam Parameter Calculation Mode

Transverse Distribution Calculation Method

After completing spot feature extraction and matching, the core task is to calculate the transverse beam distribution, which represents the density distribution of the beam in the cross-section and serves as a key indicator of beam quality. Based on the spot matching results, the spot intensity Ii at each corresponding hole position can be directly obtained, which is proportional to the local beam density, as follows: To obtain a continuous transverse distribution of the beam, this study employed the radial basis function (RBF) [26] interpolation method:
ρ x , y = i = 1 n λ i ϕ ( | | p p i | | )
where p = (x, y) represents any point on the plane, pi denotes the coordinates of the i-th spot center, φ is the selected radial basis function, and λi is the weighting coefficient determined by solving a system of linear equations.
The systematic error mainly arises from the geometric distortion of the optical system, the non-uniform response of the phosphor screen, and the limitations in spot positioning accuracy. Radial basis function interpolation, due to its radial symmetry properties, can effectively compensate for position deviations caused by geometric distortion, while its global interpolation properties ensure reliable reconstruction in sparse data regions. Compared to local interpolation methods, the RBF method can reduce systematic errors and enhance measurement accuracy and consistency. Figure 12 shows the lateral distribution of the proton beam reconstruction, clearly reflecting the beam’s transverse profile. Based on this transverse distribution and spot position information, the beam’s divergence angle distribution can be further calculated using Equation (1). Additionally, by computing the root-mean-square (RMS) size of the transverse distribution, the beam envelope at the pepper-pot plate position can be obtained.

3.5. Software Functionality and Interface Design

The beam measurement software developed in this study adopts a modern interface design, providing comprehensive functional modules.
Image Acquisition and Management: Supports real-time acquisition and historical image loading with image sequence browsing.
Parameter Setting and Control: Users can adjust the processing parameters, such as the denoising methods, threshold settings, and detection sensitivity.
Real-time Processing and Display: Visually presents intermediate and final results during processing.
Data Analysis and Statistics: Provides statistical analysis of parameters, including transverse distribution, divergence angle distribution, and emittance.
Result Export and Reporting: Supports data and image export with automatic generation of beam parameter reports.
The software employs a multithreaded design, in which image acquisition and processing are executed in independent threads to ensure smooth interface interaction. The user operation response time was controlled within 2 s, meeting the real-time monitoring requirements of the experiments. The software also provides extension interfaces for integration with experimental control systems, enabling closed-loop feedback control of the beam parameters and offering robust support for beam tuning.

4. Conclusions

This study successfully developed and validated an improved pepper-pot beam diagnostics system for BNCT applications, achieving measurable enhancements in automated spot recognition and parameter extraction accuracy. The proposed adaptive dual-threshold dynamic segmentation algorithm, combined with Hungarian algorithm-based spot matching and RBF interpolation for transverse distribution reconstruction, demonstrated quantifiable improvements over traditional methods: 94.5% segmentation accuracy (compared to 91.3% for adaptive threshold), 86.4% F1-score, and maintained 78.2% robustness under noisy conditions with 0.22 s processing time suitable for real-time monitoring. While these improvements are incremental rather than transformative, representing a 3.2 percentage point enhancement in accuracy, they provide consistent and statistically significant benefits for automated pepper-pot analysis in accelerator facilities. The system successfully addresses practical challenges, including non-uniform illumination, background noise interference, and the need for reliable automated processing, thereby reducing manual intervention requirements and improving measurement consistency. The developed diagnostics system demonstrates broad compatibility beyond BNCT applications and can be extended to medical accelerators, industrial ion implantation equipment, and other particle beam systems. Although the visual differences between methods appear subtle, the quantitative metrics confirm the practical value of the proposed approach for enhancing beam parameter monitoring reliability in modern accelerator facilities while acknowledging that more substantial improvements may require advanced machine learning techniques or hardware upgrades in future developments.

Author Contributions

Conceptualization, X.B.; Methodology, X.B.; Software, X.B.; Validation, X.B.; Formal analysis, L.T.; Investigation, X.B.; Data curation, P.L.; Writing—original draft, X.B.; Writing—review & editing, R.Z.; Supervision, R.Z.; Project administration, Y.Q.; Funding acquisition, L.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (Grant No. 12305200, PI: Hong Bing), the National Key R&D Program of China (Grant No. 2024YFE030078, PI: Meng Xiancai), and the Energy Research Institute of Hefei Comprehensive National Science Center (Grant No. 21KZS202). The article processing charge (APC) was supported by the National Key R&D Program of China (Grant No. 2024YFE030078).

Data Availability Statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Acknowledgments

We sincerely thank Bing Hong and Xiancai Meng from the Institute of Energy and the Hefei Comprehensive National Science Center (Anhui Energy Laboratory) for their experimental design, financial support, and research management, and Xiaolong Yang from the Institute of Energy and the Hefei Comprehensive National Science Center (Anhui Energy Laboratory) for research management and technical supervision, which greatly facilitated this study.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Morita, Y.; Nagatomo, T.; Nakashima, Y. Development of an image analysis method for pepperpot emittance monitors. J. Phys. Conf. Ser. 2024, 2743, 012071. [Google Scholar] [CrossRef]
  2. Ke, J.; Zhou, C.; Qiu, R. Emission measurement of pepper pore method in strong current pulsed ion beams. High Power Laser Part. Beams 2013, 25, 2067–2070. [Google Scholar]
  3. Kanopoulos, N.; Vasanthavada, N.; Baker, R.L. Design of an image edge detection filter using the Sobel operator. IEEE J. Solid-State Circuits 1988, 23, 358–367. [Google Scholar] [CrossRef]
  4. Sosolik, C.; Lavery, A.; Dahl, E.; Cooper, B. A technique for accurate measurements of ion beam current density using a Faraday cup. Rev. Sci. Instrum. 2000, 71, 3326–3330. [Google Scholar] [CrossRef]
  5. Sawant, A.; Antonuk, L.; El-Mohri, Y. Slit design for efficient and accurate MTF measurement at megavoltage x-ray energies. Med. Phys. 2007, 34, 1535–1545. [Google Scholar] [CrossRef]
  6. Pikin, A.; Kponou, A.; Ritter, J.; Zajic, V. Pepper Pot Emittance Meter; Brookhaven National Laboratory (BNL): Upton, NY, USA, 2006.
  7. Barabin, S.; Kozlov, A.; Kulevoy, T.; Liakin, D.; Lukashin, A.; Selesnev, D. Pepper-Pot Emittance Measurements. In Proceedings of the 26th Russian Particle Accelerator Conference (RUPAC’18), Protvino, Russia, 1–5 October 2018; pp. 1–5. [Google Scholar]
  8. Pitters, J.; Breitenfeldt, M.; Pinto, S.D.; Pahl, H.; Pikin, A.; Shornikov, A.; Wenander, F. Pepperpot emittance measurements of ion beams from an electron beam ion source. Nucl. Instrum. Methods Phys. Res. Sect. A Accel. Spectrometers Detect. Assoc. Equip. 2019, 922, 28–35. [Google Scholar] [CrossRef]
  9. Capoulat, M.E.; Cartelli, D.; Baldo, M.; Sandin, J.C.S.; Igarzabal, M.; Conti, G.; del Grosso, M.F.; Bertolo, A.; Gaviola, P.; Gun, M. Accelerator-based neutron sources for BNCT. Health Technol. 2024, 14, 1007–1015. [Google Scholar] [CrossRef]
  10. Fujimoto, T.; Teraishi, F.; Kanehira, N.; Tajima, T.; Sakurai, Y.; Kondo, N.; Yamagami, M.; Kuwada, A.; Morihara, A.; Kitamatsu, M. BNCT pancreatic cancer treatment strategy with glucose-conjugated boron drug. Biomaterials 2024, 309, 122605. [Google Scholar] [CrossRef] [PubMed]
  11. Murilla, R.M.; Edilo, G.G.; Budlayan, M.L.M.; Auxtero, E.S., Jr. Boron Delivery Agents in BNCT: A Mini Review of Current Developments and Emerging Trends. Nano TransMed 2025, 4, 100081. [Google Scholar] [CrossRef]
  12. Papulino, C.; Crepaldi, M.; Favale, G.; Del Gaudio, N.; Benedetti, R.; Nebbioso, A.; Grieco, M.; Malavolta, M.; Sabbatinelli, J.; Capuano, A. Aging and epigenetic implications in radiotherapy: The promise of BNCT. Ageing Res. Rev. 2025, 110, 102786. [Google Scholar] [CrossRef] [PubMed]
  13. Wang, Z.; Zheng, Q.; Wang, B.; Li, Z.; Li, J.; Wang, S.; Song, H.; Wang, B. Recent research progress of BNCT treatment planning system. Nucl. Eng. Technol. 2024, 57, 103264. [Google Scholar] [CrossRef]
  14. Patel, S.; Wen-mei, W.H. Accelerator architectures. IEEE Micro 2008, 28, 4–12. [Google Scholar] [CrossRef]
  15. Sheehy, S. Applications of Particle Accelerators. arXiv 2024, arXiv:2407.10216. [Google Scholar] [CrossRef]
  16. Hahn, G.; Yang, T.-K.; You, H.J.; Hwang, J.-G. Design and experimental validation of high-resolution single-shot emittance diagnostics for heavy-ion beams. IEEE Trans. Instrum. Meas. 2021, 70, 1–7. [Google Scholar] [CrossRef]
  17. Brownrigg, D.R. The weighted median filter. Commun. ACM 1984, 27, 807–818. [Google Scholar] [CrossRef]
  18. Ito, K.; Xiong, K. Gaussian filters for nonlinear filtering problems. IEEE Trans. Autom. Control. 2000, 45, 910–927. [Google Scholar] [CrossRef]
  19. Elad, M. On the origin of the bilateral filter and ways to improve it. IEEE Trans. Image Process. 2002, 11, 1141–1151. [Google Scholar] [CrossRef]
  20. Arco, J.E.; Górriz, J.M.; Ramírez, J.; Álvarez, I.; Puntonet, C.G. Digital image analysis for automatic enumeration of malaria parasites using morphological operations. Expert Syst. Appl. 2015, 42, 3041–3047. [Google Scholar] [CrossRef]
  21. Shen, Y.; Wei, Y.; Zhang, H.; Rui, X.; Li, B.; Wang, J. Unsupervised Change Detection in HR Remote Sensing Imagery Based on Local Histogram Similarity and Progressive Otsu. Remote Sens. 2024, 16, 1357. [Google Scholar] [CrossRef]
  22. Wuhib, F.; Dam, M.; Stadler, R. Decentralized detection of global threshold crossings using aggregation trees. Comput. Netw. 2008, 52, 1745–1761. [Google Scholar] [CrossRef]
  23. Bao, P.; Zhang, L.; Wu, X. Canny edge detection enhancement by scale multiplication. IEEE Trans. Pattern Anal. Mach. Intell. 2005, 27, 1485–1490. [Google Scholar] [CrossRef]
  24. Kong, H.; Akakin, H.C.; Sarma, S.E. A generalized Laplacian of Gaussian filter for blob detection and its applications. IEEE Trans. Cybern. 2013, 43, 1719–1733. [Google Scholar] [CrossRef] [PubMed]
  25. Dong, W.; Wu, X.-J.; Xu, T.; Feng, Z.; Ahmed, S.A.A.; Awais, M.; Kittler, J. View-shuffled clustering via the modified Hungarian algorithm. Neural Netw. 2024, 179, 106602. [Google Scholar] [CrossRef] [PubMed]
  26. Liu, Q.; Chen, C.; Zhang, Y.; Hu, Z. Feature selection for support vector machines with RBF kernel. Artif. Intell. Rev. 2011, 36, 99–115. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of the part where the pepper hole device is located in the BNCT.
Figure 1. Schematic diagram of the part where the pepper hole device is located in the BNCT.
Applsci 15 08952 g001
Figure 2. Schematic diagram of the pepper-pot beam measurement principle.
Figure 2. Schematic diagram of the pepper-pot beam measurement principle.
Applsci 15 08952 g002
Figure 3. Schematic diagram of the pepper-pot device.
Figure 3. Schematic diagram of the pepper-pot device.
Applsci 15 08952 g003
Figure 4. (a) Original image of pepper-pot beam measurement, (b) color level plot.
Figure 4. (a) Original image of pepper-pot beam measurement, (b) color level plot.
Applsci 15 08952 g004
Figure 5. Schematic diagram illustrating the principle of beam divergence angle measurement using the pepper-pot method.
Figure 5. Schematic diagram illustrating the principle of beam divergence angle measurement using the pepper-pot method.
Applsci 15 08952 g005
Figure 6. System architecture diagram of the beam measurement software.
Figure 6. System architecture diagram of the beam measurement software.
Applsci 15 08952 g006
Figure 7. Image processing workflow.
Figure 7. Image processing workflow.
Applsci 15 08952 g007
Figure 8. Threshold processing workflow.
Figure 8. Threshold processing workflow.
Applsci 15 08952 g008
Figure 9. Beam measurement software interface. (a) global threshold segmentation [22]; (b) adaptive threshold segmentation; (c) Canny segmentation [23]; (d) Sobel segmentation [3]; and (e) proposed method segmentation.
Figure 9. Beam measurement software interface. (a) global threshold segmentation [22]; (b) adaptive threshold segmentation; (c) Canny segmentation [23]; (d) Sobel segmentation [3]; and (e) proposed method segmentation.
Applsci 15 08952 g009
Figure 10. Single-scale LoG spot detection results.
Figure 10. Single-scale LoG spot detection results.
Applsci 15 08952 g010
Figure 11. Spot matching results using the Hungarian algorithm.
Figure 11. Spot matching results using the Hungarian algorithm.
Applsci 15 08952 g011
Figure 12. Transverse distribution in X and Y directions.
Figure 12. Transverse distribution in X and Y directions.
Applsci 15 08952 g012
Table 1. Denoising method comparison.
Table 1. Denoising method comparison.
MethodFinal SNR (Unit: dB)SNR Improvement (Unit: dB)Edge Preservation Ratio
Median filtering [17]24.640.5480.56%
Gaussian filtering [18]24.830.7384.72%
Bilateral filtering [19]24.430.3381.94%
Morphological operation [20]25.411.3187.50%
Morphological + median filtering25.341.2459.72%
Morphological + Gaussian filtering25.161.0681.94%
Morphological + bilateral filtering24.670.5780.56%
Table 2. Comparison of different evaluation methods.
Table 2. Comparison of different evaluation methods.
Segmentation MethodSegmentation Accuracy/%F1-Score/%Robustness/%Computational Time/s
Global threshold90.27270.20.12
Adaptive threshold91.38275.30.20
Canny12.414.343.20.25
Sobel80.666.861.90.23
Proposed method94.586.478.20.22
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.

Share and Cite

MDPI and ACS Style

Bao, X.; Lu, P.; Zhu, R.; Qian, Y.; Liang, L.; Tian, L. Design and Verification of Beam Diagnostics System for Pepper-Pot Method. Appl. Sci. 2025, 15, 8952. https://doi.org/10.3390/app15168952

AMA Style

Bao X, Lu P, Zhu R, Qian Y, Liang L, Tian L. Design and Verification of Beam Diagnostics System for Pepper-Pot Method. Applied Sciences. 2025; 15(16):8952. https://doi.org/10.3390/app15168952

Chicago/Turabian Style

Bao, Xianfang, Peng Lu, Renli Zhu, Yuzhong Qian, Lizhen Liang, and Lan Tian. 2025. "Design and Verification of Beam Diagnostics System for Pepper-Pot Method" Applied Sciences 15, no. 16: 8952. https://doi.org/10.3390/app15168952

APA Style

Bao, X., Lu, P., Zhu, R., Qian, Y., Liang, L., & Tian, L. (2025). Design and Verification of Beam Diagnostics System for Pepper-Pot Method. Applied Sciences, 15(16), 8952. https://doi.org/10.3390/app15168952

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop