In 2015, computers began to dream. Software engineer Alexander Mordvintsev, from technology firm Google, developed a program called <em>DeepDream</em> that simulates the behaviour of the human brain during sleep, a period when subconscious thoughts and images combine to produce bizarre connections. <br><br>Mordvintsev developed an artificial neural network (a type of self-learning algorithm) to perform <em>pareidolia</em> (pattern recognition). The computer scans a user-uploaded image for traces of physical features (such as an eye), which it had trained itself to recognise. It then exaggerates those features, mirroring the behaviour of human dreams. The resulting images, with their surreal qualities, have earned DeepDream the title of ‘digital Salvador Dali’<sup>1</sup>. <br><br>The Surrealists, such as Dali, incorporated dreams into their work, seeking to harness their inherent irrationality and randomness to achieve imaginative freedom. This was an opportunity for them to overcome the trappings of modern society: narrow-mindedness, conventions and taboos.<sup>2</sup> The idea is best exemplified by André Breton in the Surrealist Manifesto of 1924 when he asks, ‘When will we have sleeping logicians?’<br><br>As art drew together dreams and reality, a new aesthetic ‘surreality’ arose. Here the artistic goal was not to replicate dreams, but to imitate the form of dreams by tapping into techniques of <em>automatism</em>, such as free association.<sup>3</sup> The techniques, influenced by Sigmund Freud’s theories of psychoanalysis, enabled the artist to access the unconscious mind for inspiration.<sup>4</sup> The resulting artworks surface bizarre juxtapositions and dreamlike landscapes, exemplified by Dora Maar’s <em>Untitled (Shell Hand)</em> (1934).<br><br>Almost a century later, a mechanical computer program accesses images from its memory to produce bizarre artworks — a development that would perhaps have pained the free-minded surrealists.<br>