Safety in coastal areas such as beaches, ports, pontoons, etc., is a current problem with a difficult solution and on which many organizations are putting efforts in terms of technological innovation. In this work the design of a possible solution based on magnetic sensors is presented. First, a study has been made of the type of sensors that best suit the application based on parameters such as sensitivity, the allowed bandwidth of excitation, price or physical construction. Then the system of excitation of the sensors and signal measurement is presented. To justify the design, a series of simulations of magnetic field variations have been carried out in the presence of large objects of conductive material, in the vicinity of the measuring points. With these data a mathematical model has been established that allows the identification of the dimensions and position of the object through triangulation and knowing only the data of the magnetic field. It was found that although this method seems quite effective, it has a significant error, so another method based on neural networks was developed also using data from the simulations. This method seems to yield much better and more reliable results.