Assessing the phase composition of the fluid in a well based analysis of the frequencies of the radial resonance modes excited by acoustic noise in the inflow zone is a promising method for interpreting the results of passive noise metering. Machine learning makes it possible to take into account many factors affecting the spectrum of the measured signal, extracting from them exactly those factors associated with a change in phase composition. In order to build the best model, machine learning approaches such as linear regression with different variants of regularisation, Bayesian regression, neural net, methods of supporting vectors, decision tree, random forest and gradient boosting are considered. Data sets for training and testing the algorithm were obtained on the basis of scenarios calculated using a two-dimensional mathematical model with the different values of the bed parameters and ratio of volume fractions of the well filling fluids. The effect on the assessment accuracy of the phase composition of various factors, including the presence of acoustic device housing, the foreign noise in the signal and the shape of the signal spectrum, was checked. It is shown that in the absence of data distortion, it is possible to build models that provide an absolute error in the assessment of the phase composition about 1% after the zone of fluid inflow and about 5% in the zone before the inflow.