1. A method of operating a tool in a wellbore, comprising: defining at least one value of at least one tool parameter, defining a plurality of values of at least one wellbore parameter, using the at least one value of the at least one tool parameter and the plurality of values of the at least one wellbore parameter as inputs to a selected model to estimate a bending moment of the tool; obtaining an expected value of the bending moment by inputting into the neural network model the defined plurality of values of the at least one wellbore parameter and the estimated bending moment of the tool; and comparing the expected value of bending moment of the tool obtained from the neural network model to the estimated bending moment of the tool obtained from the selected model to train the neutral network; using the obtained neural network model to operate the tool in the wellbore.