He didn't know how he knew but Kevn knew Ai was in the ship's AI. She probably infiltrated his REM patterns to let him know she was there. Pure Ai for sure. Risky business that.
You need an account to fold this story.