Neural networks show potential for identifying gamma rays detected by the Cherenkov Telescope Array