A gunman who fatally shot two Brown University students before killing a professor in another state planned the attack for months and expressed no remorse, according to transcripts of confessional-style videos released by investigators.

Transcripts of the clips show Claudio Manuel Neves Valente, 48, saying he spent "six semesters" planning the attack in Providence, Rhode Island, on 13 December.

The Portuguese immigrant defended his actions, but did not indicate any motive, according to the transcripts.

The classroom assault also injured nine people. Two days later, MIT professor Nuno Loureiro was fatally shot in his home near Boston by the gunman, who later took his own life.

The attack, which killed students Ella Cook, 19, and Mukhammad Aziz Umurzokov, 18, shocked the country and led to criticism over how long it took police to identify a suspect.