To address issues such as diverse N-k cascading fault scenarios, complex fault propagation paths, and difficulties in determining protection strategy implementation targets, a critical section identification and protection configuration model that integrates XGBoost with Bayesian hyperparameter optimization is proposed in power systems. By constructing a high-risk N-k fault set and randomly simulating cascading faults under load rates ranging from 0.1~10.0, a cascading fault dataset was developed using line load rates as inputs and residual load as the target. The Bayesian optimization algorithm was used to fine-tune the hyperparameters of the XGBoost model, selecting the optimal parameter combination. The protection resource allocation strategies for high-risk N-k fault scenarios were then identified. Simulation results on the IEEE 39-bus system showed that for 88% of high-risk N-k fault scenarios, adjusting the power flow carrying capacity of three critical section lines enabled the system's residual load to remain above 80%.