{'fraction_non_alphanumeric': 0.020506634499396863, 'fraction_numerical': 0.0036188178528347406, 'mean_word_length': 5.144444444444445, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A New Method to Detect Influx and Loss During Drilling Based on Machine Learning


 Influx and loss are the two most common downhole complexities. They not only cause the reservoir damage, increase the exploration cost, reduce the drilling efficiency; but also induce major malignancy. Therefore accurate and early detection of influx and loss during drilling is of great significance. Traditional influx and loss detection methods have the shortcoming of monitoring time lagging and high costs. As the rapid development of artificial intelligence techniques, researchers start to detect influx and loss using artificial intelligence method. This work adopted two machine learning algorithms(Random forests and Support vector machine) according to their characteristics to detect influx and loss during drilling in real-time. The detection methods includes four steps: 1) Generating raw influx/loss raw data set by combining real-time drilling data and drilling history data; 2) Pre-processing raw data set to obtain training data set; 3) Training classification model of random forests and SVM by training data set and algorithms; 4) Predicting influx/loss by the trained model according to the new real-time data. The case study shows that influx and loss can be detected accurately in early stage by both random forests method and SVM method after proper pre-processing the raw data and optimizing algorithm parameters. The detection accuracy of the sample data from four wells exceeds 90%. This work demonstrate a new way to detect influx and loss by utilizing huge drilling data and machine-learning algorithms, and the detection results are satisfying.