The invention discloses an automatic lens centering method and
system for a deformable
electron beam
lithography machine, and the method comprises the steps: S1, constructing a
cascade transmission matrix of an upper centering coil, a lens and a lower centering coil, and deducing the strict centering condition of an
electron beam; s2, setting an
initial current of an upper centering coil, an initial
excitation current of a lens and an initial iteration step length; acquiring an initial beam spot
centroid position as a target position; s3, adjusting the current of the upper centering coil to preset coil current, keeping the current of the lens unchanged, and obtaining the position of the
mass center of the current beam spot; the upper centering coil current is kept unchanged, the lens current is adjusted to preset lens current, the beam spot
mass center position is obtained, and then the beam spot position offset is calculated; s4, calculating a double-constraint
loss function and a gradient thereof; and S5, updating the upper centering coil current according to the
gradient direction and the self-adaptive step length, and if the
loss function value is smaller than a set threshold value, judging that centering is completed. The method has the advantages of improving the centering precision and efficiency and the like.