A B S T R A C TGenetic programming (GP) is an orderly method based on natural evolution rules for getting computers to regularly solve a problem. In the present study, GP is presented as a novel approach for modeling the gas sparging assisted microfiltration of oil-in-water emulsion process. The effects of gas flow rate (Q G ), oil concentration (C oil ), transmembrane pressure (TMP), and liquid flow rate (Q L ) on the permeate flux and oil rejection were studied and the GP models were developed to predict the membrane performance. C oil and TMP showed significant effects on both permeate flux and rejection. An interaction between C oil and TMP was detected, at low C oil and high TMP, in which the permeate flux increased considerably. It was found that Q L has a low effect on permeate flux, but its impact on rejection was significant. Increasing Q L from 0.5 to 2.75 L/min led to a considerable increment in rejection; however, further increase in the liquid flow rate decreased the oil rejection. On the contrary, Q G showed a small effect on oil rejection, but its effect on permeate flux was notable. To determine the optimum conditions, the performance index was maximized using the developed genetic algorithm. Under the obtained optimal conditions, maximum permeate flux and rejection (%) were 121.6 (Lm 2 /h) and 93.0%, respectively.