Smart bending machine