In the current paper, a novel technique is represented to control the liquid petrochemical and petroleum products passing through a transmitting pipe. A simulation setup, including an X-ray tube, a detector, and a pipe, was conducted by Monte Carlo N Particle-X version (MCNPX) code to examine a two-by-two mixture of four diverse petroleum products (ethylene glycol, crude oil, gasoline, and gasoil) in various volumetric ratios. As the feature extraction system, twelve time characteristics were extracted from the received signal, and the most effective ones were selected using correlation analysis to present reasonable inputs for neural network training. Three Multilayers perceptron (MLP) neural networks were applied to indicate the volume ratio of three kinds of petroleum products, and the volume ratio of the fourth product can be feasibly achieved through the results of the three aforementioned networks. In this study, increasing accuracy was placed on the agenda, and an RMSE < 1.21 indicates this high accuracy. Increasing the accuracy of predicting volume ratio, which is due to the use of appropriate characteristics as the neural network input, is the most important innovation in this study, which is why the proposed system can be used as an efficient method in the oil industry. © 2022 by the authors. Licensee MDPI, Basel, Switzerland.