Abstract This paper introduces a novel method that leverages artificial neural networks to estimate magnetic flux density in the proximity of overhead transmission lines. The proposed method utilizes an artificial neural network to estimate the parameters of a mathematical model that describes the magnetic flux density distribution along the lateral profile for various configurations of overhead transmission lines. The training target data is acquired using the particle swarm optimization algorithm. A performance comparison between the proposed method and the Biot-Savart law-based method is conducted using an extensive test dataset. The resulting coefficient of determination and mean square error values demonstrate the successful application of the proposed method for a range of different spatial arrangements of phase conductors. Furthermore, the performance of the proposed method is thoroughly assessed on multiple test cases. The practical relevance of the proposed method is highlighted by contrasting its results with the field measurements obtained in the proximity of a 400 kV overhead transmission line.