With the continuous development of oil extraction technology, oilfield drilling has become an important part of the oil industry. However, during the drilling process, foam problems often cause troubles to drilling work, such as reducing drilling efficiency, increasing operational risks, and destroying wellbore stability. Therefore, how to effectively control foam has become an urgent problem to b...