Breast marker detection is an effective method for localizing cancerous tissue prior to surgical excision.To address the issue of magnetic anomaly signals in magnetic localization systems being susceptible to environmental magnetic interference
a method is proposed that utilizes magnetic source information from a dual-layer sensor array to simultaneously calculate environmental magnetic fields and magnetic marker coordinates.The design principles of the sensor array are mathematically analyzed and simulated
with an improved direct inversion method of magnetic gradient tensor(MGT)implemented to localize magnetic markers.The experimental results indicate that when the sensor baseline distance and array spacing are appropriately selected
the proposed method can effectively eliminate the influence of environmental magnetic fields
achieving minimal positioning errors and demonstrating strong feasibility.