Robopsychology is the fictional study of the personalities of artificially intelligent machines. The term and the concept were popularised by Isaac Asimov in the short stories collected in I, Robot, which featured robopsychologist Dr. Susan Calvin, and whose plots largely revolved round the protagonists solving problems connected with intelligent robot behaviour. The stories also introduced Asimov's famous Three Laws of Robotics.
As described by Asimov, robopsychology appears to be a mixture of detailed mathematical analysis and old-fashioned psychology, applied to robots.
Sometimes through the talents of two investigators (Michael Donovan and Gregory Powell) and sometimes of a robopsychologist (Susan Calvin) the apparent misbehavior of robots is pinpointed, cataloged, and filed as a result of analyzing their behavior against the behavior as predicted by the three laws of robotics which Asimov so cleverly constructed.
When the investigations would run into particular difficulty the robopsychologist of U. Robots and Mechanical Men would be called in.
Together, there was no misbehavior they could not rationalize using the three laws of robotics for an explanation of the robot or robot behavior.