use inotify to get inference result from contxt engine