The judge said that the experience of being locked in a windowless room in "appalling conditions" had taken a physical and psychological toll on the child victim.
Doctors who examined the boy said he was underweight and below average height for his age, and treated him for anaemia.
But Judge Norman Wright said that while the physical effects have been remedied, the psychological harm "will be unknown".
"It is bound, in my judgment, to be profound," he said.
More top news
President-elect Donald Trump will remain an executive producer on the 'Celebrity Apprentice', according to new host Arnold Schwarzenegger.
The 1D star will go ahead with his scheduled performance as per the wishes of his late mother, Johannah Deakin, who passed away on Friday.
Michael Gove admitted he made "mistakes" in his bid for the Tory Party leadership, and Theresa May was right to drop him from her cabinet.