US scientists have developed a garment that can help detect mental illnesses like mania, depression and schizophrenia.