Forensic psychology applies psychological science to legal matters and criminal cases. It can be used pre-trial to evaluate a defendant's criminal responsibility and connection between their mental state and alleged criminal acts. During trial, forensic psychologists analyze body language signals like facial expressions, perspiration, and eye contact during interrogations. The scope of forensic psychology includes assessing a defendant's competency to stand trial, their mental state at the time of the offense like insanity defenses, predicting violence and recidivism risk, determining an appropriate sentence, and aiding rehabilitation.