Expert witness

someone with specialised knowledge who testifies in court