I. Introduction
In recent years, the proliferation of underwater exploration and offshore maintenance using robotic arms has underscored the critical need for efficient and accurate position detection devices to correct angular deviations induced by water flow fluctuations. As pivotal position sensors, encoders play an indispensable role in underwater environments. Rotary encoders are commonly employed in the positioning systems of mechanical arms, with optical, capacitive, and magnetic encoders being the most prevalent types [1], [2], [3], [4], [5], [6]. However, due to differences in sensing principles and hardware limitations, optical and capacitive encoders may encounter challenges when dealing with open environments characterized by humidity and high levels of contamination [7].