A system for detecting bending of an electrosurgical device includes a strain relief configured to be coupled to a shaft of an electrosurgical device, a piezoelectric actuator disposed within the strain relief and configured to bend upon bending of the electrosurgical device, and a bending detection circuit in electrical communication with the piezoelectric actuator and configured to detect a bending of the piezoelectric actuator.