A while back I demonstrated how an AI API can be used to automatically generate an image caption. But how does the AI work? This article gives you a nice gentle overview of the development of such systems over the last five years. If you want to play with code, there are links at the bottom of the article to walk-through demos. But for the casual reader this article nicely lays out some different approaches and offers an accessible was to describe how they work.