{'fraction_non_alphanumeric': 0.03018867924528302, 'fraction_numerical': 0.0031446540880503146, 'mean_word_length': 5.190661478599222, '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}}
Data mining and social networks processing method based on support vector machine and k-nearest neighbor

OBJECTIVE: With Sina Weibo data as the background, support vector machine (SVM) and k-nearest neighbor (KNN) method are used to predict and analyze the user’s micro-blog emotion and related behavior in social network, hoping to obtain rich potential business value. METHODS: First, the API interface of Sina Weibo is utilized to obtain the information of users in Sina Weibo; then, the Excel software is utilized to sort and analyze the extracted data to extract the features of micro- blogs posted by users. Second, SVM and KNN algorithms are utilized to calculate the weighted average and propose a hybrid multi-classifier-based Mixed Classifier Emotion Prediction Model (MCEPM). Finally, through the evaluation criteria, including precision (P), recall rate (R), and harmonic average (F1), the specific experimental results of SVM and KNN weight coefficients are compared with the prediction results of MCEPM. RESULTS: The prediction effect of MCEPM is associated with the weight coefficients of SVM and KNN. If the weight coefficients of SVM and KNN are 0.6 and 0.4, the prediction effect of MCEPM will be optimal. Comprehensive analysis shows that the MCEPM model can balance the prediction results of the positive and negative samples of the two classifiers. CONCLUSION: MCEPM model is superior to other algorithms in micro-blog emotion prediction, which can help enterprises analyze users’ product inclination and provide accurate customer service requirements for enterprises.