Open Access
Issue
Wuhan Univ. J. Nat. Sci.
Volume 30, Number 3, June 2025
Page(s) 213 - 221
DOI https://doi.org/10.1051/wujns/2025303213
Published online 16 July 2025

© Wuhan University 2025

Licence Creative CommonsThis is an Open Access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

0 Introduction

Position-sensitive detectors (PSDs) are current-distributing photoelectric devices with a continuous photosensitive surface, capable of rapidly responding to the centroid position of a light spot irradiated on their surface. Due to their high positional resolution, simple signal processing, and excellent measurement continuity, PSDs are widely applied in scenarios with stringent real-time requirements, such as flatness detection[1], real-time coaxiality measurement[2], and robotic arm trajectory monitoring[3].

In 1960, Lucovsky et al [4] derived a differential equation describing the photoelectric potential distribution of a two-dimensional planar P-N junction based on the continuity equation of carriers, thereby establishing the theoretical foundation for PSD modeling. Despite their advantages of fast response speed and high resolution, PSDs are significantly affected by the non-uniformity of surface resistance and substantial interference between electrodes, which severely degrade the detector's linearity. Since PSDs measure the intensity of incident light spots, the size of the laser spot and the effectiveness of subsequent nonlinear optimization directly determine measurement accuracy. Wang et al[5] proposed a neural network-based correction approach for PSD, establishing a mapping between actual output and spot position with a limited dataset, which resulted in highly linear signals over a wide range. Shang et al[6] investigated various light source scanning methods and concluded that the scanning method under steady-state illumination more accurately reflects the position information of the incident light. Li et al[7] analyzed the impact of light source modes on PSD positioning accuracy, identifying spot radius and position as the primary influencing factors. Huang et al [8] demonstrated that processing PSD output signals under strong background light interference can effectively improve the spatial accuracy of flashpoint position measurements. Zhang et al [9] developed a PSD nonlinear correction method based on the BP optimization algorithm, demonstrating strong generalization ability and feasibility in resolving PSD nonlinearity by fitting actual and ideal position data using a BP neural network. Wang et al[10] corrected the nonlinear distortion of PSD using an improved bicubic interpolation method, achieving favorable results even under dynamic spot conditions.

Building upon this prior research, this paper derives a two-dimensional PSD positioning model under varying spot sizes within a Gaussian spot framework, based on the mathematical model of the Lucovsky differential equation. A nonlinear optimization method combining the Particle Swarm Optimization (PSO) algorithm and the BP neural network is proposed. By correcting measurement errors based on the relationship between input and output values, the proposed method yields predicted values that approximate the true coordinates. Additionally, the effects of different spot sizes on positioning accuracy are analyzed, providing practical insights for improving PSD measurement accuracy.

1 Principle of PSD

A position-sensitive detector (PSD) is a spot position detector based on the semiconductor lateral photoelectric effect. Its structure consists of a P-I-N junction formed by P-type, N-type semiconductors, along with a high-resistance I layer[11]. Figure 1 shows the basic structure of a pillow-shaped two-dimensional PSD, which is an improved version of a quadrilateral PSD. The top surface of the pillow-shaped PSD is a photosensitive surface with arc-shaped electrodes, while the four sides are connected to four current output terminals symmetrically drawn from the arc-shaped edges. The bottom surface has a common cathode. The four current output terminals, X1 , X2 , Y1 , and Y2 , collect different currents generated by the distances between the spot centroid incident on the photosensitive surface and the respective electrodes. By calculating these currents, the position coordinates of the spot can be determined. The common cathode is used to apply a reverse bias voltage during operation to achieve ideal linearity.

thumbnail Fig. 1 Pincushion-type PSD structure model

When incident light projects onto the photosensitive surface of the PSD, forming a light spot, the lateral photoelectric effect converts the incident light into photocurrent. The output current intensities at the four electrode terminals correspond to the x and y coordinates of the spot centroid. Using the following equations, the coordinate equations with the photosensitive surface center as the origin[12] can be calculated:

{ x = ( U X 2 + U Y 1 ) - ( U X 1 + U Y 2 ) U X 1 + U Y 1 + U X 2 + U Y 2 × L X 2 y = ( U X 2 + U Y 2 ) - ( U X 1 + U Y 1 ) U X 1 + U Y 1 + U X 2 + U Y 2 × L Y 2 (1)

where UX1 ,UX2 ,UY1 ,UY2 are the voltage values obtained by the four current output electrodes after converting the voltage signals by photocurrent and amplifying them, LX and LY are the two side lengths of the 2D PSD photosensitive surface, respectively, and LX=LY is usually used.

2 Nonlinear Optimization of PSD

2.1 Causes of Nonlinearity

The structure of the pillow-shaped two-dimensional PSD consists of a single-sided resistive layer for current distribution. In equation (1), the electrode junctions of the pillow-shaped two-dimensional PSD are considered idealized in terms of shape and size. However, due to manufacturing process limitations, the PN junction material of the PSD cannot ensure a uniform distribution of the resistive layer. As a result, the output electrodes often exhibit variations in size and shape, leading to a nonlinear relationship between the detected light spot position coordinates and the actual PSD output during measurement. This nonlinearity increases with the distance from the center of the photosensitive surface. Consequently, the photosensitive surface of the PSD is typically divided into two regions: Zone A and Zone B. Zone A is defined as the area within a diameter that is 40% of the boundary length of the photosensitive surface centered on its center, while Zone B covers the region between 40% and 80% of the boundary length. The positional accuracy in Zone A is superior to that in Zone B. Therefore, when it is necessary to use the entire photosensitive surface to expand the measurement range without compromising accuracy, it is essential to correct for the nonlinearity of the PSD.

2.2 PSO-BP Neural Network

A BP (back propagation) neural network is a multilayer feedforward neural network that uses error backpropagation. The structure of the neural network includes an input layer, hidden layers, and an output layer. The relationship between the output and input can be seen as a mapping. This mapping is obtained through the transfer functions between the input layer and the hidden layer, the hidden layers and the hidden layers, and the hidden layer and the output layer[13]. The BP neural network, with its robust nonlinear modeling capability, self-learning and adaptive characteristics, strong generalization ability, and proficiency in handling multivariable inputs, serves as an optimal choice for addressing the nonlinear challenges in PSD analysis.

Due to the BP neural network's excessive reliance on the initial weights and thresholds, it often suffers from poor generalization ability and is prone to getting stuck in local optima. To enhance the effectiveness of the algorithm, a particle swarm optimization (PSO) algorithm is introduced. The PSO algorithm, proposed by Kennedy and Eberhart, is a parallel optimization algorithm inspired by the collective behavior of bird flocks and fish schools in nature[14]. It is a powerful global optimization algorithm with advantages such as strong global search capability, no need for gradient information, the ability to perform multi-objective optimization, and the ability to balance global and local optima. Similar to the genetic algorithm (GA), PSO incorporates the concept of interacting populations. In many applications, PSO has been demonstrated to converge more rapidly to the optimal solution compared with GA[15].The PSO has N individual particles combining self-experience and social experience, and the corresponding position of each particle is a solution. The first i particle (i=1,2,,N) starts "flying" in the M-dimensional search space at a random position with a certain speed, and its position and speed are expressed as Xi=(xi1,xi2,,xiM) and Vi=(vi1,vi2,,viM) , which moves towards the optimal solution in the search space, and finally reaches the global optimum. The positions and velocities are updated from generation j to generation j+1 as follows:

V i ( j + 1 ) = w V i + c 1 r 1 ( j ) [ P p ( j ) - X i ( j ) ] + c 2 r 2 ( j ) [ P g ( j ) - X i ( j ) ] , X i ( j + 1 ) = X i ( j ) + V i ( j + 1 ) , (2)

where w is the inertia weights to regulate the global search, c1 and c2 are the individual learning coefficients and the sociological coefficients respectively, r1 and r2 are the random numbers within the range of [0,1] in the iterative process, and Pp and Pg generate the individual optimal solution and the global optimal solution through each update.

However, the standard PSO algorithm tends to exhibit rapid population convergence due to large inertia in the early stages, making it prone to getting trapped in local optima. To balance global and local search capabilities, dynamically adjusted inertia weights w are used during the search process. Shi et al[16] proposed a linearly decreasing inertia factor:

w = w m a x - w m a x - w m i n j m a x × j , (3)

where wmax and wmin are the initial and final values of the inertia factor, j is the current number of iterations, and jmax is the final number of iterations.

Compared with the BP neural network, the PSO algorithm exhibits superior global search capabilities. The process of using PSO to optimize the BP neural network is shown in Fig. 2.

thumbnail Fig. 2 Flow chart of PSO-BP model

The specific steps are as follows:

1) Initialize the parameters of the BP neural network, including setting the weights and thresholds.

2) Initialize the parameters of the PSO, including setting the population size, initial velocity, and position of the particles.

3) Calculate the fitness of the particles, generating individual best and global best values.

4) Update the velocity and position of the particles based on the individual best and global best values. If the stopping criterion is met, proceed to step 5); otherwise, return to step 3) and repeat.

5) Use the optimized weights and thresholds obtained from the PSO to initialize the BP neural network.

6) Compute the error through the neural network and continuously update the weights and thresholds.

7) Check if the error meets the specified requirements. If not, return to step 6) and continue until the stopping criterion is met, then terminate the training.

3 The Effect of Spot Size on PSD Accuracy

Since the PSD photosensitive surface receives the coordinates of the incident light spot's center of gravity, and the size of the photosensitive surface is limited, the nonlinearity increases as it approaches the edges of the photosensitive surface[17]. Therefore, it is essential to study the impact of different sizes of incident light spots on positioning accuracy. According to the Lucovsky differential equation, under the ideal condition where the spot energy is converted to photocurrent without loss, the potential at the point (x,y) on the photosensitive surface can be expressed as:

2 U ( x , y ) = - ρ d ω d I s ( x , y ) , (4)

where U(x,y) represents the potential at the light spot detected on the photosensitive surface, 2 denotes the Laplace operator, ρd is the resistivity of the P layer, ωd is the thickness of the P layer, Is(x,y) is the total photocurrent at the light spot (x,y), and the currents at the four electrodes of the PSD can be calculated by the following equations:

{ I x i ( x , y ) = ( - 1 ) i + 1 ω d ρ d 0 L U ( x , y ) x i d y j , i = 1,2 I y j ( x , y ) = ( - 1 ) j + 1 ω d ρ d 0 L U ( x , y ) y j d x i , j = 1,2 (5)

where xi and yj are the electrode currents, L is the length of the edge electrodes on the PSD's photosensitive surface. Assuming the boundary length of the PSD is one standard unit and taking the center of the PSD's photosensitive surface as the coordinate origin, the junction potential equation can be derived from partial differential equation (4) under the condition of zero electrode potential:

U ( x , y ) = ρ d ω d m = - + n = - + × [ D ( I s ( x 1 , y 1 ) × s i n ( m π x ) s i n ( n π y ) s i n ( m π x 1 ) s i n ( n π y 1 ) ( m 2 + n 2 ) π 2 ) d x 1 d y 1 ]   ,   (6)

where D is the effective area of the 2D PSD photosensitive surface, and the polar coordinate transformation of (6) is performed:

U ( x , y ) = I 0 ρ d ω d m = - + n = - + [ r = 0 + θ = 0 2 π ( s i n ( m π x ) s i n ( n π y ) ( m 2 + n 2 ) π 2 × s i n ( m π ( x 0 + r c o s θ ) ) × s i n ( n π ( y 0 + r c o s θ ) ) r e x p ( - r 2 w 2 ) ) d θ d r ] . (7)

Available after integrating θ :

U ( x , y ) = 2 π I 0 ρ d ω d m = - + n = - + [ r = 0 + s i n ( m π x ) s i n ( n π y ) s i n ( m π x 0 ) s i n ( n π y 0 ) ( m 2 + n 2 ) π 2 × r e x p ( - r 2 w 2 ) J 0 ( m π r ) J 0 ( n π r ) + 2 t = 1 + ( - 1 ) t ( J 2 t ( m π r ) J 2 t ( n π r ) ) d r ] , (8)

where J2t denotes the Bessel function and the Bessel function formula is as follows:

r e x p ( - r 2 w 2 ) J 2 t ( m π r ) J 2 t ( n π r ) = 1 2 w 2 e x p ( - ( m 2 + n 2 ) π 2 w 2 4 ) I 2 t ( m n π 2 w 2 2 ) , (9)

I 0 ( m n π 2 w 2 2 ) + 2 t = 1 + ( - 1 ) t I 2 t ( m n π 2 w 2 2 ) = 1 , (10)

where I2t denotes the modified Type I Bessel function, and the potential is calculated by solving the integral over r:

U ( x , y ) = 2 π I 0 ρ d ω d m = - + n = - + [ r = 0 + s i n ( m π x ) s i n ( n π y ) s i n ( m π x 0 ) s i n ( n π y 0 ) ( m 2 + n 2 ) π 2 × w 2 2 e x p ( - ( m 2 + n 2 ) π 2 w 2 4 )   ] .   (11)

From this, the current equations for the four electrodes can be calculated:

{ I x 1 = I 0 m = - + n = - + n s i n ( m π x 0 ) s i n ( n π y 0 ) [ 1 - c o s ( n π ) ] m ( m 2 + n 2 ) π 2 b m , n , I x 2 = I 0 m = - + n = - + n s i n ( m π x 0 ) s i n ( n π y 0 ) [ 1 - c o s ( n π ) ] ( - 1 ) n + 1 m ( m 2 + n 2 ) π 2 b m , n , I y 1 = I 0 m = - + n = - + m s i n ( m π x 0 ) s i n ( n π y 0 ) [ 1 - c o s ( m π ) ] n ( m 2 + n 2 ) π 2 b m , n , I y 2 = I 0 m = - + n = - + m s i n ( m π x 0 ) s i n ( n π y 0 ) [ 1 - c o s ( m π ) ] ( - 1 ) m + 1 n ( m 2 + n 2 ) π 2 b m , n , (12)

w h e r e   b m , n = 2 w 2 2 e x p [ ( m 2 + n 2 ) π 2 w 2 4 ]   .

To analyze the impact of different spot sizes on the photosensitive surface on the positioning accuracy, a simulation experiment was designed to simulate the calculation of position coordinates under varying spot sizes. The photocurrent I0 was set to one unit, and the length of the photosensitive surface L was assumed to be nine units. The spot moved across the PSD photosensitive surface with a step size of 0.5 units, simulating four different spot sizes: w=0.05, w=0.10, w=0.15, and w=0.20, generating a 17×17 grid of discretized data points, totaling 289 position coordinates. The distribution of the simulated position coordinates for the different spot sizes is shown in Fig. 3.

thumbnail Fig. 3 Simulation of position coordinates calculation for different spot sizes

(a) at w=0.05 ; (b) at w=0.10 ; (c) at w=0.15 ; (d) at w=0.20.

As shown in the figure, within the Zone A of the photosensitive surface, different spot sizes exhibit good linearity. However, in the Zone B, significant non-linear phenomena are observed due to edge current effects. Additionally, as the spot size increases, the positioning accuracy of the PSD photosensitive surface significantly decreases.

4 Experiment

4.1 Experimental Platform

In order to investigate the impact of different spot sizes and non-linearity on positioning accuracy, a nonlinear optimization experimental platform was established, as shown in Fig. 4. The effective length of the PSD photosensitive surface is 9 mm×9 mm, which is fixed on a precision displacement platform. A semiconductor laser is mounted on a three-dimensional moving platform, with adjustable spot size. By controlling the three-dimensional moving platform to scan the entire photosensitive surface of the PSD with a step size of 1 mm, a total of 100 discrete coordinate data points at 10×10 different positions were obtained. To ensure measurement accuracy, the entire experiment was conducted under dark background conditions.

thumbnail Fig. 4 Nonlinear optimization experimental platform

4.2 Algorithm Robustness

Figure 5 compares the measured coordinate data and the positions after nonlinear optimization. As seen in the figure, the actual measured positions show a pincushion distortion compared with the standardized grid. Within Zone A, the linearity is relatively good; however, as the distance from the central point increases, significant nonlinear distortion occurs in Zone B, with the distortion being more pronounced at the four electrode ends at the outermost edges. Therefore, to extend the effective usage area of the PSD photosensitive surface while maintaining accuracy, it is necessary to correct for nonlinear errors. After applying the PSO-BP correction, the linearity of the corrected positions shows a significant improvement compared with the measured positions. The comparison with the standard position coordinates visually demonstrates that the nonlinear distortion is largely eliminated.

thumbnail Fig. 5 Comparison of position coordinates before and after nonlinear optimization

By adjusting the laser spot diameter projected onto the photosensitive surface and collecting the measurement coordinates for different spot diameters, the comparison between the actual position coordinates and the optimized coordinates is shown in Fig. 6.

thumbnail Fig. 6 Measured and optimized values for different light spots

In Fig.6, (a) , (b) , (c) , and (d) show the comparison result between the measured coordinates and the optimized coordinates for laser spots with diameters of 0.5 mm, 1.0 mm, 1.5 mm, and 2.0 mm, respectively. It can be observed that as the spot diameter increases, the accuracy of the PSD in detecting the laser spot position decreases, and the degree of nonlinear distortion increases. However, after optimization with the PSO-BP algorithm, the linearity significantly improves.

4.3 Error Analysis

Due to the varying degrees of distortion in the Zones A and B of the photosensitive surface, the significance of nonlinear optimization is also affected. To clearly distinguish the optimization significance between the Zones A and B, we selected and compared the position coordinates of the same light spot along the same diagonal under four different spot sizes.

After nonlinear optimization of the position coordinates obtained from laser spots of various sizes on the PSD's photosensitive surface, the error can be used to evaluate the effectiveness of linearity optimization. The optimization results for Zone A of the photosensitive surface are shown in Fig. 7. In Zone A, within 40% of the distance from the center of the photosensitive surface, linearity remains good. Under the condition of a spot size of 0.5 mm, the average error after optimization in Zone A is controlled to within 1.69 μm, achieving an optimization level of 95.19% compared with the pre-optimization error. As the spot size increases, the level of optimization gradually decreases, with errors reducing by more than 85.39% when the spot size reaches 2.0 mm.

thumbnail Fig. 7 Comparison of the average error of Zone A under different spot sizes

Figure 8 shows the optimization results for Zone B of the photosensitive surface. The figure indicates that when the spot size is below 1.0 mm, the results of nonlinear optimization are significant, with the average error after optimization reduced by more than 93.89%. However, when the spot size reaches 2.0 mm, the optimization effect shows a significant weakening trend, and the average error reduced by 72.58%. This indicates that smaller spot diameters result in more concentrated energy, leading to higher positioning accuracy for the PSD. Considering the nonlinear optimization results for various spot sizes across both Zone A and Zone B of the photosensitive surface, the average positioning error was reduced by 84.51% after optimization.

thumbnail Fig. 8 Comparison of the average error of Zone B under different spot sizes

5 Conclusion

In this paper, we derived the Lucovsky differential equation mathematical model for the PSD and obtained a positioning model for the two-dimensional PSD under different spot sizes. Through simulation, we found that as the spot size increases, the positioning accuracy decreases. To address the inherent nonlinear distortion issues of the PSD, we employed a particle swarm optimization algorithm to improve the BP neural network nonlinear optimization method. The optimization significantly reduced the nonlinear errors in both the Zone A and B, effectively eliminating the pillow-shaped distortion. Moreover, the nonlinear distortion of different spot sizes projected onto the photosensitive surface was reliably corrected, with an average optimization improvement of over 84.51%, especially achieving over 93.89% for spots smaller than 1.0 mm. This greatly reduced the positioning error of the detector. Based on the research presented, the effective usable area of the photosensitive surface can be increased, and the positioning accuracy of the PSD can be enhanced, enabling the two-dimensional PSD to be applied in wide-range and high-precision measurement systems.

References

  1. Han J Y, Wang S Z. Research on the method of applying position sensitive detector to detect flatness[J]. Combined Machine Tools and Automated Machining Technology, 2016(7): 82-85(Ch). [Google Scholar]
  2. Quan L Y, Tan J P, Wang X, et al. Research on real-time inspection system for high precision extrusion machine centerline coaxiality[J]. Forging and Pressing Technology, 2012, 37(3): 73-77(Ch). [Google Scholar]
  3. Lu X H, Wang W T, Si L K, et al. Dual PSD-based robotic motion trajectory tracking measurement device[J]. Manufacturing Technology and Machine Tools, 2015(6): 61-66(Ch). [Google Scholar]
  4. Lucovsky G. Photoeffects in nonuniformly irradiated P-N junctions[J]. Journal of Applied Physics, 1960, 31(6): 1088-1095. [Google Scholar]
  5. Wang X D, Ye M Y. Nonlinear correction of two-dimensional optoelectronic position-sensitive devices[J]. Optical Technology, 2002(2): 174-175+178. [Google Scholar]
  6. Shang H Y, Zhang G J. Response characteristics of PSD based on two scanning methods[J]. Journal of Instrumentation, 2005(11): 34-38(Ch). [Google Scholar]
  7. Li K, Xuan R X, Zhang H M, et al. Influence of light source on the positioning accuracy of position-sensitive sensors[J]. Journal of Hubei Automotive Industry College, 2010, 24(2): 37-40(Ch). [Google Scholar]
  8. Huang Z H, Li X D, Cai H Y, et al. Research on PSD-based optical spot position detection technology in strong background[J]. Optical Engineering, 2012, 39(10): 89-94(Ch). [Google Scholar]
  9. Zhang X T, Kang L, Wu Q Q, et al. Nonlinear correction of PSD based on BP optimization algorithm[J]. Journal of Applied Optics, 2016, 37(3): 415-418(Ch). [Google Scholar]
  10. Wang J Y, Wang X D, Liu Z, et al. Nonlinear distortion correction algorithm for two-dimensional PSD[J]. Journal of Wuhan University of Science and Technology, 2019, 42(1): 56-60(Ch). [Google Scholar]
  11. Teng Y K, Hao Y M, Fu S F, et al. Calibration technique for position-sensitive device based visual measurement system[J]. Advances in Laser and Optoelectronics, 2018, 55(8): 304-311. [Google Scholar]
  12. Zhang P C, Liu J, Yang H M, et al. Research on non-uniform laser spot center localization based on PSD[J]. Laser and Infrared, 2020, 50(8): 941-947(Ch). [Google Scholar]
  13. Liu X, Liu Z, Liang Z, et al. PSO-BP neural network-based strain prediction of wind turbine blades[J]. Materials (Basel), 2019, 12(12): 1889. [Google Scholar]
  14. Yu J Q, Gao Z K, Zhao A J, et al. Improved parallel particle swarm algorithm for energy saving optimization of cooling water systems[J]. Control Theory and Applications, 2022, 39(3): 11(Ch). [Google Scholar]
  15. Banks A, Vincent J, Anyakoha C. A review of particle swarm optimization. Part I: Background and development[J]. Natural Computing, 2007, 6(4): 467-484. [Google Scholar]
  16. Shi Y, Eberhart R. A modified particle swarm optimizer[C]// 1998 IEEE International Conference on Evolutionary Computation Proceedings. IEEE World Congress on Computational Intelligence. New York: IEEE, 1998: 69-73. [Google Scholar]
  17. Meng N, Zeng J R, Li Z L, et al. Position detection of synchrotron light spot based on position-sensitive semiconductor optoelectronic devices[J]. Nuclear Technology, 2020, 43(12): 18-26(Ch). [Google Scholar]

All Figures

thumbnail Fig. 1 Pincushion-type PSD structure model
In the text
thumbnail Fig. 2 Flow chart of PSO-BP model
In the text
thumbnail Fig. 3 Simulation of position coordinates calculation for different spot sizes

(a) at w=0.05 ; (b) at w=0.10 ; (c) at w=0.15 ; (d) at w=0.20.

In the text
thumbnail Fig. 4 Nonlinear optimization experimental platform
In the text
thumbnail Fig. 5 Comparison of position coordinates before and after nonlinear optimization
In the text
thumbnail Fig. 6 Measured and optimized values for different light spots
In the text
thumbnail Fig. 7 Comparison of the average error of Zone A under different spot sizes
In the text
thumbnail Fig. 8 Comparison of the average error of Zone B under different spot sizes
In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.