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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Logistic Regression": {
|
| 3 |
+
"accuracy": 0.7779,
|
| 4 |
+
"precision": 0.6983,
|
| 5 |
+
"recall": 0.7848,
|
| 6 |
+
"f1": 0.739,
|
| 7 |
+
"roc_auc": 0.8511,
|
| 8 |
+
"validation_auc": 0.8383,
|
| 9 |
+
"selection_time_sec": 0.21,
|
| 10 |
+
"train_time_sec": 0.3,
|
| 11 |
+
"selected_params": {
|
| 12 |
+
"C": 2.0,
|
| 13 |
+
"class_weight": "balanced",
|
| 14 |
+
"max_iter": 2500
|
| 15 |
+
},
|
| 16 |
+
"optimal_threshold": 0.5
|
| 17 |
+
},
|
| 18 |
+
"Random Forest": {
|
| 19 |
+
"accuracy": 0.8604,
|
| 20 |
+
"precision": 0.8554,
|
| 21 |
+
"recall": 0.7843,
|
| 22 |
+
"f1": 0.8183,
|
| 23 |
+
"roc_auc": 0.9393,
|
| 24 |
+
"validation_auc": 0.9302,
|
| 25 |
+
"selection_time_sec": 4.74,
|
| 26 |
+
"train_time_sec": 9.4,
|
| 27 |
+
"selected_params": {
|
| 28 |
+
"n_estimators": 500,
|
| 29 |
+
"max_depth": null,
|
| 30 |
+
"min_samples_leaf": 1,
|
| 31 |
+
"min_samples_split": 2,
|
| 32 |
+
"class_weight": "balanced_subsample",
|
| 33 |
+
"max_features": "log2"
|
| 34 |
+
},
|
| 35 |
+
"optimal_threshold": 0.5
|
| 36 |
+
},
|
| 37 |
+
"Gradient Boosting": {
|
| 38 |
+
"accuracy": 0.8685,
|
| 39 |
+
"precision": 0.8454,
|
| 40 |
+
"recall": 0.8223,
|
| 41 |
+
"f1": 0.8337,
|
| 42 |
+
"roc_auc": 0.9406,
|
| 43 |
+
"validation_auc": 0.9297,
|
| 44 |
+
"selection_time_sec": 18.64,
|
| 45 |
+
"train_time_sec": 33.84,
|
| 46 |
+
"selected_params": {
|
| 47 |
+
"n_estimators": 180,
|
| 48 |
+
"max_depth": 4,
|
| 49 |
+
"learning_rate": 0.07,
|
| 50 |
+
"subsample": 0.75,
|
| 51 |
+
"min_samples_leaf": 8,
|
| 52 |
+
"min_samples_split": 16
|
| 53 |
+
},
|
| 54 |
+
"optimal_threshold": 0.5
|
| 55 |
+
},
|
| 56 |
+
"SVM (RBF)": {
|
| 57 |
+
"accuracy": 0.8612,
|
| 58 |
+
"precision": 0.8331,
|
| 59 |
+
"recall": 0.8175,
|
| 60 |
+
"f1": 0.8252,
|
| 61 |
+
"roc_auc": 0.9347,
|
| 62 |
+
"validation_auc": 0.9336,
|
| 63 |
+
"selection_time_sec": 13.73,
|
| 64 |
+
"train_time_sec": 19.79,
|
| 65 |
+
"selected_params": {
|
| 66 |
+
"C": 10.0,
|
| 67 |
+
"gamma": 0.05,
|
| 68 |
+
"class_weight": "balanced"
|
| 69 |
+
},
|
| 70 |
+
"optimal_threshold": 0.5
|
| 71 |
+
},
|
| 72 |
+
"MLP Neural Network": {
|
| 73 |
+
"accuracy": 0.8545,
|
| 74 |
+
"precision": 0.8169,
|
| 75 |
+
"recall": 0.8208,
|
| 76 |
+
"f1": 0.8189,
|
| 77 |
+
"roc_auc": 0.9258,
|
| 78 |
+
"validation_auc": 0.9278,
|
| 79 |
+
"selection_time_sec": 4.72,
|
| 80 |
+
"train_time_sec": 7.49,
|
| 81 |
+
"selected_params": {
|
| 82 |
+
"hidden_layer_sizes": [
|
| 83 |
+
192,
|
| 84 |
+
96,
|
| 85 |
+
32
|
| 86 |
+
],
|
| 87 |
+
"alpha": 0.001,
|
| 88 |
+
"max_iter": 600,
|
| 89 |
+
"validation_fraction": 0.15
|
| 90 |
+
},
|
| 91 |
+
"optimal_threshold": 0.5
|
| 92 |
+
},
|
| 93 |
+
"XGBoost": {
|
| 94 |
+
"accuracy": 0.8735,
|
| 95 |
+
"precision": 0.8512,
|
| 96 |
+
"recall": 0.8295,
|
| 97 |
+
"f1": 0.8402,
|
| 98 |
+
"roc_auc": 0.9463,
|
| 99 |
+
"validation_auc": 0.9376,
|
| 100 |
+
"selection_time_sec": 1.44,
|
| 101 |
+
"train_time_sec": 2.1,
|
| 102 |
+
"selected_params": {
|
| 103 |
+
"n_estimators": 240,
|
| 104 |
+
"max_depth": 5,
|
| 105 |
+
"learning_rate": 0.06,
|
| 106 |
+
"subsample": 0.75,
|
| 107 |
+
"colsample_bytree": 0.75,
|
| 108 |
+
"min_child_weight": 6,
|
| 109 |
+
"reg_alpha": 0.4,
|
| 110 |
+
"reg_lambda": 1.5,
|
| 111 |
+
"gamma": 0.2
|
| 112 |
+
},
|
| 113 |
+
"optimal_threshold": 0.5
|
| 114 |
+
},
|
| 115 |
+
"LightGBM": {
|
| 116 |
+
"accuracy": 0.8839,
|
| 117 |
+
"precision": 0.8441,
|
| 118 |
+
"recall": 0.8713,
|
| 119 |
+
"f1": 0.8575,
|
| 120 |
+
"roc_auc": 0.9549,
|
| 121 |
+
"validation_auc": 0.9472,
|
| 122 |
+
"selection_time_sec": 3.25,
|
| 123 |
+
"train_time_sec": 2.95,
|
| 124 |
+
"selected_params": {
|
| 125 |
+
"n_estimators": 300,
|
| 126 |
+
"max_depth": -1,
|
| 127 |
+
"learning_rate": 0.05,
|
| 128 |
+
"num_leaves": 31,
|
| 129 |
+
"subsample": 0.8,
|
| 130 |
+
"colsample_bytree": 0.8,
|
| 131 |
+
"min_child_samples": 20,
|
| 132 |
+
"reg_alpha": 0.1,
|
| 133 |
+
"reg_lambda": 1.0
|
| 134 |
+
},
|
| 135 |
+
"optimal_threshold": 0.431577
|
| 136 |
+
},
|
| 137 |
+
"_best_model": "LightGBM",
|
| 138 |
+
"_n_samples": 5195,
|
| 139 |
+
"_n_features": 47,
|
| 140 |
+
"_n_folds": 5,
|
| 141 |
+
"_dataset_path": "d:\\CrownCode\\DataSet\\features.csv",
|
| 142 |
+
"_class_balance": {
|
| 143 |
+
"ai": 2082,
|
| 144 |
+
"human": 3113
|
| 145 |
+
},
|
| 146 |
+
"_data_leakage_fix": "duration_sec and sample_rate removed from features; scaler fitted per fold during CV",
|
| 147 |
+
"_model_paths": {
|
| 148 |
+
"Logistic Regression": "d:\\CrownCode\\hf-crowncode-backend\\models\\model_logistic_regression.pkl",
|
| 149 |
+
"Random Forest": "d:\\CrownCode\\hf-crowncode-backend\\models\\model_random_forest.pkl",
|
| 150 |
+
"Gradient Boosting": "d:\\CrownCode\\hf-crowncode-backend\\models\\model_gradient_boosting.pkl",
|
| 151 |
+
"SVM (RBF)": "d:\\CrownCode\\hf-crowncode-backend\\models\\model_svm_rbf.pkl",
|
| 152 |
+
"MLP Neural Network": "d:\\CrownCode\\hf-crowncode-backend\\models\\model_mlp_neural_network.pkl",
|
| 153 |
+
"XGBoost": "d:\\CrownCode\\hf-crowncode-backend\\models\\model_xgboost.pkl",
|
| 154 |
+
"LightGBM": "d:\\CrownCode\\hf-crowncode-backend\\models\\model_lightgbm.pkl"
|
| 155 |
+
},
|
| 156 |
+
"_feature_importance": {
|
| 157 |
+
"spectral_flatness_std": 0.061889,
|
| 158 |
+
"spectral_contrast_mean": 0.046667,
|
| 159 |
+
"rms_energy": 0.045556,
|
| 160 |
+
"onset_strength_std": 0.038778,
|
| 161 |
+
"spectral_flatness_mean": 0.037,
|
| 162 |
+
"rms_dynamic_range": 0.034556,
|
| 163 |
+
"onset_strength_mean": 0.033222,
|
| 164 |
+
"rms_std": 0.029778,
|
| 165 |
+
"beat_count": 0.029778,
|
| 166 |
+
"mfcc_delta_var": 0.028889,
|
| 167 |
+
"chroma_std": 0.028111,
|
| 168 |
+
"mfcc_variance": 0.027889,
|
| 169 |
+
"tonnetz_std": 0.027333,
|
| 170 |
+
"chroma_entropy": 0.022333,
|
| 171 |
+
"tempo_cv": 0.022222,
|
| 172 |
+
"zero_crossing_rate": 0.021333,
|
| 173 |
+
"spectral_bandwidth_std": 0.020444,
|
| 174 |
+
"breath_pattern_score": 0.020444,
|
| 175 |
+
"mel_flatness": 0.020333,
|
| 176 |
+
"spectral_centroid_mean": 0.019222,
|
| 177 |
+
"formant_consistency_score": 0.019222,
|
| 178 |
+
"vocal_energy_ratio": 0.019111,
|
| 179 |
+
"harmonic_ratio": 0.017889,
|
| 180 |
+
"zero_crossing_std": 0.017556,
|
| 181 |
+
"pitch_std_cents": 0.017333,
|
| 182 |
+
"harmonic_structure": 0.017222,
|
| 183 |
+
"vocal_harmonic_ratio": 0.017222,
|
| 184 |
+
"tempo_stability": 0.016444,
|
| 185 |
+
"chroma_transition_rate": 0.016444,
|
| 186 |
+
"spectral_contrast_std": 0.016333,
|
| 187 |
+
"pitch_mean_hz": 0.016222,
|
| 188 |
+
"spectral_regularity": 0.015889,
|
| 189 |
+
"vibrato_regularity_score": 0.015889,
|
| 190 |
+
"vibrato_extent_cents": 0.015889,
|
| 191 |
+
"spectral_bandwidth_mean": 0.014667,
|
| 192 |
+
"spectral_rolloff_std": 0.014,
|
| 193 |
+
"tempo_bpm": 0.014,
|
| 194 |
+
"temporal_patterns": 0.013556,
|
| 195 |
+
"mfcc_delta2_var": 0.013111,
|
| 196 |
+
"vocal_ai_score": 0.012667,
|
| 197 |
+
"spectral_centroid_std": 0.012556,
|
| 198 |
+
"pitch_stability_score": 0.011556,
|
| 199 |
+
"spectral_rolloff_mean": 0.010889,
|
| 200 |
+
"vibrato_rate_hz": 0.010333,
|
| 201 |
+
"vocal_texture_score": 0.009556,
|
| 202 |
+
"vocal_confidence": 0.008667,
|
| 203 |
+
"has_vocals": 0.0
|
| 204 |
+
}
|
| 205 |
+
}
|