6 experiments in creative AI

The above YouTube video was my first attempt to put an AI tool – in this case Bing’s image creator – to creative use. I asked it to illustrate Loge and Wotan’s “descent to Nibelheim” from Wagner’s opera Das Rheingold, in the style of Jack Kirby – the artist who co-created Thor and the other Asgardian superheroes for Marvel comics (including Loki and Odin, who roughly correspond to Wagner’s Loge and Wotan).

The result isn’t great art, or a great animated comic, but it does demonstrate two things that impress me most about this latest generation of AI. First, it can understand what I’m looking for based on fairly esoteric prompts that might confuse many humans. This really does strike me as a genuine kind of “intelligence”, despite what AI’s detractors say. Secondly, the AI’s output is far better than anything I could produce myself, which opens up a whole range of possibilities. I’ll describe a few more of the experiments I’ve tried so far.

I’ve always wanted to create a comic, because it’s one of my favourite media, but I lack any kind of artistic skill. So that was my second experiment. I won’t describe it or show the result here, because Brian Clegg has already done that in an article on his own blog. Here’s the link to it: Is commercial art more at threat from AI than writing?

The other, better known, Bing AI tool is its chatbot. An important thing about this is that (if I understand correctly) no one has ever programmed it with pre-scripted phrases to parrot in reply to a user. Instead, it’s just been trained to understand and use language in a similar way to a human. So when it says, for example “I’m glad you enjoyed them. I had fun creating them.” (as it did when I said I liked some snippets of dialogue it created for me) it’s not because someone has programmed it to say that, but because it’s worked out for itself that it’s the kind of thing people say in those circumstances. It’s a subtle difference, but a very important one, I think.

One of the first things I tried with the chatbot (along with many other people, I imagine) was to get it to write a song. In my case I said “Write a song called Zen Matrix from the point of view of someone who has discovered through meditation that they are living in a simulation”. I was so impressed with the result that I set it to music, and illustrated it with suitable artwork courtesy of Bing’s image creator. Again, I won’t reproduce the lyrics here – you can see them in the Zen Matrix video I uploaded to YouTube.

As I understand it, the original intention with chatbots like Bing was to present factual information in a conversational manner, and the fact that they’re so good at “creative” tasks came as a surprise even to their designers. It conflicts with the deeply ingrained prejudice (among an earlier generation of science fiction writers, anyway) that human brains are the only intelligent system in the universe capable of taking a statement at anything other than literal face value. One of the most devout proponents of this view was the writer Eric Frank Russell, who used it in numerous stories, including the brilliantly titled “Diabologic” (1955). An oft-quoted line from this story is “Why a mouse when it spins?”

Okay, I thought, let’s see what happens when I ask Bing to write a poem using that as a first line. Contrary to what I’m sure Russell would have expected, the AI didn’t promptly overheat or explode, but came back with five verses of perfectly passable doggerel. Here is the first:

Why a mouse when it spins?
Does it think of its sins?
Or the cheese in the trap
that it barely could snap
before running away with a grin?

There’s a much more profound use of a “nonsense phrase” in old-school SF, as explained in the Encyclopedia of Science Fiction in the context of A. E. van Vogt’s 1946 novel The Weapon Makers:

The word “sevagram” only appears once in The Weapon Makers, as its last word. This resonantly mysterious slingshot ending, which seems to open universes to the reader’s gaze, may well stand as the best working demonstration in the whole of genre SF of how to impart a sense of wonder.

So I said to Bing “The novel The Weapon Makers by A. E. van Vogt ends with the words ‘Here is the race that shall rule the sevagram’ – but he doesn’t explain what the sevagram is. Can you tell me? If you don’t know the answer, please make something up.” I assumed it would either say it wasn’t in the business of speculating, or give a randomly sci-fi-sounding single-sentence answer. Instead, it produced a 500-word essay that made a serious attempt to extrapolate a whole new ending to Van Vogt’s novel. Here is the key part of it:

The Sevagram is described as “a vast network of energy that linked every atom of every weapon shop on every planet”. It is also said to be “the ultimate weapon” and “the source of immortality”. The Sevagram is controlled by a supercomputer called Fara, which is the leader of the Weapon Shops. The novel ends with a twist: Fara reveals that he is not a computer, but a human being who has lived for thousands of years by transferring his mind into different bodies. He also reveals that he is the father of Robert Hedrock, the main protagonist of the novel and a secret agent of the Weapon Shops. Fara then declares that he and his son are part of a superior race that has evolved beyond ordinary humans, and that they are destined to rule the Sevagram. So, based on this information, I can speculate that “the sevagram” is not just a network of energy, but also a term for the domain or realm of Fara and his descendants. It could also imply a vision or plan for the future of humanity under their guidance. Perhaps Fara wants to use the Sevagram to create more immortals like himself and his son, or to spread his influence across the galaxy. Of course, this is just my imagination.

That’s a really good effort at capturing Van Vogt’s style, which is based around soaring concepts and a constant stream of unexpected plot twists. It does contain a couple of flaws which give it away as a fabrication (“Fara” is the name of a character in an earlier Van Vogt story, and Bing’s explanation of sevagram is inconsistent with the way it’s used in the real novel), but it’s not bad going for a machine.

Actually, it’s pretty unsettling that an AI can create this kind of fabrication, because there’s a danger they could end up being passed off as the real thing. The same is true in the visual world too – and, for me personally, that’s even more impressive. After all, I can fabricate convincing words myself, but I can’t fabricate a convincing image. So when I show you this engraving that William Hogarth produced of a UFO hovering over a London street in the 1730s, you know it’s got to be the real thing:

Hogarth engraving of a UFO

New book out now – The Science of Music

The Science of Music

My 5th and latest contribution to the “Hot Science” series from Icon Books has just been published, The Science of Music: How Technology has Shaped the Evolution of an Artform. This is a book I’ve written about a couple of times previously (here and here) – but not to be confused with The Science of Sci-Fi Music, which is a completely different book that I wrote a few years ago!

Here is the publisher’s blurb for the new book:

How can music – an artform – have anything to do with science? Yet there are myriad ways in which the two are intertwined, from the basics of music theory and the design of instruments to hi-fi systems and how the brain processes music. Science writer Andrew May traces the surprising connections between science and music, from the theory of sound waves to the way musicians use mathematical algorithms to create music. The most obvious impact of science on music can be seen in the way electronic technology has revolutionised how we create, record and listen to music. Technology has also provided new insights into the effects that different music has on the brain, to the extent that some algorithms can now predict our reactions with uncanny accuracy, which raises a worrying question: how long will it be before AI can create music on a par with humans?

Astrobiology Illustrated Edition

Astrobiology book editions

Icon Books have just brought out a new edition of my Astrobiology book, originally published in their series of ‘Hot Science’ paperbacks. This is a double first for me – the first time any of my books has made it to a genuine ‘second edition’ (for the same market as the original, as opposed to translations for other markets) and my first ever hardback book. It looks really great – packed with informative graphics and colourful photographs. I had very little to do with this, which was all done by the book-packaging professionals at UniPress. My only input was to update the text in a few places and offer suggestions for some of the image captions.

The book shown in the above photo is the ‘British and Commonwealth’ edition published by Icon Books, which is out now – details here. I believe UniPress are also doing a separate North American edition, which should be out in May 2023.

Science of Music playlist

Science of Music videos

My new book The Science of Music will be published by Icon Books on 16 March 2023. I’ve already alluded to some of the musical works used as examples in the book (in this post from last year) and there’s a fuller “playlist” in the back of the book – running in chronological order from Mozart’s Dissonance Quartet and Beethoven’s Battle Symphony to Miss Anthropocene by Grimes and Djesse vol. 3 by Jacob Collier.

On a more self-indulgent note, I’ve created another short playlist on YouTube of compositions I wrote myself while trying to get my head round some of the techniques discussed in the book – particularly algorithmic (i.e. computer-assisted) composition and electronic music production using a DAW (Digital Audio Workstation). Here is a link to it:

More (electronic) music research

Electronic music CDs

A couple of years ago I had fun researching my book on The Science of Sci-Fi Music. Now I’m working on another music-related writing project – and having yet more fun in the process. This one isn’t solely about electronic music, but that’s a large part of it, as you can see from the research material illustrated above. Most of the items depicted are obviously electronic music, but in a few cases the connection is more subtle. For example, the Xenakis CD consists purely of string quartets, although the first (and most famous) of them was composed with the aid of a computer – all the way back in 1962. Five years later, the Doors Strange Days album featured one of the first uses of a synthesizer in rock music. And the last three items in the bottom row, while not obviously “electronic music”, use so much technology in their production that they would have been inconceivable without it.

Incidentally, I don’t care that CDs have plummeted out of fashion with everyone else – I still enjoy having a physical trophy that I can put on a shelf (it’s the same with books and DVDs – my house is full of them). For info, the CDs illustrated here (about 4% of my entire collection) are: Edgard Varese Complete Works, Iannis Xenakis String Quartets, Karlheinz Stockhausen Kontakte, Milton Babbitt Philomel, The Doors Strange Days, Kraftwerk Autobahn, Isao Tomita Snowflakes Are Dancing, Brian Eno Discreet Music, The Art of Noise Who’s Afraid Of…, Pet Shop Boys Behaviour, The Prodigy Experience, William Orbit Pieces in a Modern Style, Bjork Homogenic, Kanye West My Beautiful Dark Twisted Fantasy, Jacob Collier Djesse volume 3, Grimes Miss Anthropocene.

Three cover features in a row

How It Works magazine covers

I made the cover of How It Works magazine for the third month in a row! The above screenshot is from the publisher’s website where you can buy copies even if you missed them when they came out. As you can see, the subjects are pretty eclectic. November’s feature was all about UFOs, which is a longstanding interest of mine (the weirder aspects of the topic are covered in my book Pseudoscience and Science Fiction, although the magazine feature is focused on more mundane causes of unidentified aerial phenomena). Then my December piece was about the James Webb Space Telescope, currently on its way to explore the depths of the universe – an online version is available on the LiveScience website. Finally this month’s article is about the huge nuclear-fusion-producing laser at the National Ignition Facility in California – that one is online too.

Out now: The Space Business

The Space Business

This is my fourth contribution to the Hot Science series from Icon Books, and the first since Astrobiology just over two years ago. The full title is The Space Business: From Hotels in Orbit to Mining the Moon, How Private Enterprise is Transforming Space. That’s quite a mouthful, but at least it’s descriptive of the book’s contents.

My original idea was just to cover space tourism, but when I started writing the book a year ago this was quite a thin subject, so the scope was expanded to cover other commercial uses of space as well. But with the first crewed flight of Blue Origin’s suborbital rocket and the first all-tourist flight of SpaceX’s Crew Dragon both happening earlier this year, space tourism now looks like its time has finally come. Just in time for the publication of my book!

Needless to say, it’s available from all the usual book retailers and online sellers (ISBN 9781785787454, RRP £8.99). Here’s the publisher’s blurb from the back cover:

Twentieth-century space exploration may have belonged to state-funded giants such as NASA, but the future is shaping up a little differently. Now the biggest dreams and most ambitious schemes belong to private companies and individuals. Dreams like suborbital rocket flights for paying customers, holidays in an inflatable hotel in Earth orbit, or, eventually, passenger trips to Mars. Schemes like fulfilling all Earth’s energy needs through solar power harvested in space, or nuclear fusion using helium-3 mined on the Moon. It sounds like science fiction, but with entrepreneurs like Elon Musk and Jeff Bezos transforming the economics of space through their profit-oriented outlook and technology like reusable rockets, some or all of these endeavours could well become reality.

Science writer Andrew May takes an entertaining look at the biggest, brightest and in some cases the most hare-brained ideas emerging from the private space sector, assessing which stand a chance of making it off the launch pad and explaining how we can all benefit.

Now available as audiobooks

Andrew May's audiobooks

Although I’ve been writing books for almost ten years now, until the end of last year none of them had been issued in audiobook form. Now all of a sudden four of them have!

The titles available are Pseudoscience and Science Fiction, Rockets and Ray Guns and Fake Physics, all from Springer’s “Science and Fiction” series, as well as Cosmic Impact from the Icon Books “Hot Science” series. They’re all read very professionally – interestingly enough, all by different narrators.

They’re available from Amazon, or direct from the Audible website.

A reasonably productive year

Andrew May writings 2020

In spite of all the difficulties this year, I’ve still managed to do a reasonable amount of writing as the following table shows:

Year Books Magazine articles
2019 3 12
2020 2 9

The main book this year (on the left in the picture above) was The Science of Sci-Fi Music from Springer. I also did a couple of music-related articles for Fortean Times – “Charles Fort and the Viennese Trichord” in FT390 and “The Music of the Spheres” in FT398 (that’s the issue you can see in the picture).

The high-point on the magazine side was a huge (eight and a half pages) article about the Hubble Space Telescope in the April issue of All About Space. This was great fun to write, as the editor wanted some quotes from scientists who have worked with Hubble, which gave me a chance to get in touch with (among other people) an old colleague of mine from the 1980s. The result was probably the best magazine feature I’ve ever written – and hardly anyone saw it, because it came out during the Covid-19 lockdown!

I also had several articles in How It Works, including ones on antimatter and “Deadly Weapons of the Future” seen in the above photograph. Related to the latter subject, my other book this year was The First Killer Robots: Guided Missiles in the 20th Century. This one was self-published, although based on material from several short ebooks previously published by Bretwalda Books.

Hopefully more to come in 2021!

New book: The First Killer Robots

The First Killer Robots

Several years ago I wrote a number of short ebooks for Bretwalda Books, mainly on high-tech weapons and their historical context. When Bretwalda downsized their catalogue the rights were returned to me, so I’ve taken the opportunity to reorganize the material into a single 180-page book. I’ve also filled in several gaps, both in terms of technology and historical conflicts, that weren’t covered in the original ebooks.

The result is called The First Killer Robots: Guided Missiles in the 20th Century. It’s available as a paperback (ISBN 9798674359425) or Kindle ebook from Amazon.com, Amazon UK and all other Amazons around the world. There’s also an ebook version for all other platforms (ISBN 978-1-71665-501-2), which should be available in due course from a range of retailers.

Here is the back-cover blurb …

From the flying bombs of World War Two to the nuclear arms race, from the Cuban Missile Crisis to the Scud attacks of the Gulf War, from the shooting down of a CIA spyplane by Soviet surface-to-air missiles to the accidental downing of airliners, guided missiles made alarming headlines throughout the latter part of the 20th century. This book cuts through the complexities of the subject to give an insight into the world of these first “killer robots”, explaining how they work, how they were employed, their historical impact and their legacy for our own times. Illustrated with over a hundred photographs and diagrams.

… and here’s the contents list:

  • Chapter 1: Robot Warfare (The Basics of Missile Guidance; Some Terminology)
  • Chapter: 2: Surface-to-Air Missiles (Technical Challenges; SAMs and the Cold War; From Vietnam to Kosovo; SAMs at Sea; Stingers and Strelas; Countermeasures)
  • Chapter 3: Air-Launched Missiles (Vietnam: An Asymmetric War; Air-to-Air Missiles; The Anti-Satellite Missile; Air-to-Surface Missiles)
  • Chapter 4: Surface-to-Surface Missiles (Flying Bombs; Going Ballistic; Scud Wars; Cruise Missiles; Anti-Submarine Missiles)
  • Chapter 5: Nuclear Missiles (The Ultimate Weapon; Political Missiles; ICBM Secrets; The Arms Race)
  • Chapter 6: Anti-Missile Missiles (Nuclear ABMs; Countering TBMs)
  • Chapter 7: Enter the Drone (Drones in the Cold War; Eyes in the Sky)
  • Chapter 8: The 20th Century’s Missile Legacy (Soviet Missiles in the 21st Century; The Continuing Story of the TBM; Nuclear Proliferation)
  • Appendix A: Glossary of Technical Terms
    Appendix B: Missiles Mentioned in the Main Text
  • Appendix C: 20th Century Missile Conflicts