Investigating changes in the writing style of HackerNews users since the advent of LLMs.

Intro

An investigation into whether its possible to detect if a user has changed their writing style from looking at their comments. Could this be a potential method to detect users using LLMs? Or maybe just useful way to gain insight into how users have changed how they write and interact with the HackerNews site?

Given enough words a body of text can be “fingerprinted” – in better detail this is also known as “stylometry” – the measurement of a writing style. Can we detect if fingerprints change over time, and what would that tell us?

You can skip to the discussion, but overall, it looks like most active users are not using LLMs but there are patterns of normal usage that could be seen.

Try it: https://timwaters.github.io/HNfinger/

Project Home: https://github.com/timwaters/HNfinger

About

Like many on HackerNews (HN) I’m worried about AI slop masquerading as human, and wondered if some users were using LLMs in their comments. Detecting LLM writing is a kind of pattern recognition for me, I can smell when something seems off although its not really something I can set into a set of clear rules but if you are interested in that Wikipeda has a page about these signs.

I wanted to look at two things: 1) has a user changed their writing style and 2) could this new style be identified as LLM text? This project can only really answer the first question. The assumption is that if a user changed after the date of mass LLM adoption it might be possible that the change was due to them using LLM generated text.

Try it with your own username: https://timwaters.github.io/HNfinger/

This project shows how a user has changed their style over time, and shows the top 100 of users who may have changed the most after 2023. It uses the Clickhouse Playground to query Hacker News comments.

This project was inspired by this post about Antirez’s project Reproducing Hacker News writing style fingerprinting and by the comment underneath this submission by user zX41ZdbW https://news.ycombinator.com/item?id=43734314 the query of which was adapted in this project. Antirez’s tools and investigations looked at the stylometric fingerprint signature of users and compared it to users with similar writing styles.

The project was also inspired by https://news.ycombinator.com/item?id=46829029 which finally encouraged me to try this and put it behind a little interactive web page which queries the ClickHouse Playground: https://timwaters.github.io/HNfinger/

The dataset on ClickHouse Playground, added by zX41ZdbW `hackernews_history` is used. Free users of the playground cannot create tables, so we have to change the example query to use sub queries but substantially it’s similar.

The `hackernews_history` table may contain multiple versions of a comment. A comment may have been flag killed or deleted or otherwise edited. So there’s some deduplication so that only one comment text per comment row is recorded. There is a `hackernews` table on clickhouse playground without the history but this hasn’t been updated since 2023.

The method is a simple hashed-word cosine similarity. Words within a comment are split, hashed and put into one of 512 bins.

Only users with comments before Jan 2023 (mass adoption of LLMs) are counted.

Users must be somewhat active users.

It counts how many words users make in blocks of every half year (6 months). Users should have written more than 500 words in each half year block.

There are two queries: for a specific user, and for a batch of users. There is a python script that performs batches and then merges together the results, giving a final top_100.csv file of the users most likely to have changed style from before and after 2023.

For a specific user, a cumulative score of before 2023 is calculated and the output shows each active 6 month block before and after and gives similarity to that.

For the batch of users, a slightly different calculation is given in which users must have at least three 6 month blocks before and after 2023 where they have written more than 500 words.

The thumbnail / stylometric method used here is simple. Better methods could and should be used, for example, Burrows Delta calculates a reference text distribution. For example we could create a baseline distribution from all comments from all users and then that method would be good to see which users are most similar to other users. Ideally we want to determine two things, did the user change their writing and is the new writing identified as LLM text, so any similarity method can only really help with the former.

Results

For a user, the table will give a similarity score and difference to a baseline of “before 2023”. The larger the difference and the lower the similarity, the bigger the difference in the type of words used before and after. There are scores for each first and last half year periods too, as well as the number of tokens where 1 token is pretty much equal to 1 word. My own score was quite low because I’ve not posted much in recent years.

PeriodTokensSimilarity / 100Difference from before

For the top 100 users, it shows the number of first or last half year periods, the number of tokens pre and post 2023 and the similarity and difference compared to the 2023 baseline

Number of pre-23 periodsNumber of post-23 periodsbefore ’23 wordsafter ’23 wordsraw distanceafter 2023 similarity scoredifference from before 2023

CAVEAT: This data is almost probably wrong and should not imply anything about the users in general or any specific user.

CAVEAT: People should adapt and investigate themselves if they want to take this further. I am no expert in stylometry or LLM detection, or even performant SQL for that matter.

Overall, it looks like most active users are not using LLMs.

From the top 100 users, the range was 88 out of 100 to, at the top, 54 out of 100. The general picture with some closer examination of these accounts is that they do not seem to show LLM usage, but more like a change in how they comment and use the site (see below)

Discussion

There was more variation when the number of words in a time period was lowered, and this also lead to more “active” periods. These additional time periods had less activity and so the words written in these times would carry more weight. I decided 500 words in 6 months was a good compromise, but it might be smoothing over actual differences.

Probably more change will be calculated if there are less sample buckets – if the user signed up in 2022 and only posted a few times before and since, for example. Maybe instead of 6 months periods, we could look at 1 year?

The limit of 500 words per 6 months may filter out some LLM usage or small amount of text in many comments.

Note that users are not allowed to use AI generated text in comments, but this no LLM rule was introduced in 2026 (6ish months ago https://news.ycombinator.com/item?id=47340079). Before that some users may have used it, or may have mixed in with their normal writing from time to time. Determining that might be tricky.

Logically and generally most older users are not going to be changing their usage of social media substantially. While they may be early adopters generally I think they would also be most invested and care about the site.

Baseline calculation. While Jan 2023 was set as the time of mass LLM adoption as this was when the chatGPT was released into the wild (An AI Eternal September), for normal users it’s probably only in more recent years i.e. 2025 – 2026 that more and more people are actually using it for more things.

Change in topics. Since 2023 was a watershed moment, the topics that were discussed on HN also changed. The vocabulary we use when talking about LLMs have changed the overall vocabulary. It could be that any changes before and after may reflect these changes in topics.

Change in usage:
* Some types of comments, like the replies under “Ask HN: Who Wants To Be Hired” posts are formatted differently than usual comments and people will use different words. So if a user talked normally before and is now just using it to find jobs, the results would probably show this change.
* Show HNs also seem to be formatted differently from regular comments.
* As users grow and change their vocabulary changes in how they talk about things. (For me, depending on my reading habits I notice my own style changing to sometimes reflect my reading!)
* Many of the top users are changed their usage into being helpful users such as:
* Showing duplication submissions and past comments.
* Posting links to archival alternatives to submissions
* Comments about the guidelines, helping new users etc.

Improvements

Some things to do to make it more useful:

* Allow users to change the cutoff date for the queries.
* Automatically detect the dates of any major changes in writing styles.
* Use a better fingerprinting / stylometric algorithm.

My own LLM usage for this project

I used gtp-6.1-sol to help write the sql queries, the python batch script and the javascript in the html files. Totalling about 30 requests and 290K tokens spent

I don’t use LLM to write HN comments. And this blog post is 100% my own words too which is why it’s a bit hard to read!

—-

Try it: https://timwaters.github.io/HNfinger/
Project Home: https://github.com/timwaters/HNfinger


Please consider a donation if you liked this blog post https://www.paypal.me/timdevelops

OKLS – A Knowledge Learning System using LLM Agents

OKLS Knowledge Learning System is a portable, self-contained learning system built on top of an agentic coding framework – I’m using opencode with this project.

The system asks questions to gauge your understanding of a topic, and creates a learning plan for you. It then continues to ask and teach you based on where you are. You can also, if you are curious, see how your understanding develops over time.

Caveat: I’m not actually using this as an aid for learning stuff. Generally I don’t learn in this way and find talking to machines icky but I won’t rule out using it in theory for some things! I haven’t come up with a suitable subject I want to learn using this route but I had a slight desire to learn quantum computing (of which I know very little) and so that’s what I’m using with this. Its a very simplified teaching and learning system and I didn’t put a great thought into actual pedagogical processes here.

But I found it interesting and you might too…

Why did I do this?

Mainly to get familiar with opencode, agents and subagents. The code https://github.com/timwaters/okls is probably all in the wrong places but it seems to work.
I also wanted to explore how a LLM might be used for tailored learning about a topic.

How?

There are three main parts:

1. An initial interview to gauge initial understanding and create a skills gap document
The agent asks one question at a time in a kind of interview. It scores your answers, records the answers and continues until it maps at least five concept areas to make a skills gap document.
Usually the first question would be something like “how would you describe quantum computing to a friend?”

2. Create learning plan
The agent reviews the skills gap document, and based on that writes up a learning plan.

3. Teaching
During each session, the agent reads your learning plan and recorded knowledge gaps. It tries to teaches one concept at a time then updates stuff after every turn.

And the end of a session it updates any gaps and the context document – a kind of shared memory teacher notes so that next time it can pick up where it left off as well as recording the progress in the session itself.

Future

You can imagine that different subagents could use different LLMs, more expensive ones might be used for the writing the initial learning plan, less expensive ones for evaluating responses and writing files. I’m just using opencodes free Big Pickle provider for this example.

A larger software project might use this wrapped up as a specific agent so you might do /teach or /learn and it would switch into that mode to help the developer do a deep dive on a subject.

One thing I would like to add is a kind of “headteacher” agent which evaluates the quality of the teaching and can give feedback.


Better pedagogy:

This system is very simple and basic and doesn’t attempt to replicate how a teacher teaches or how a student learns. With some human expert input it could improve.

Generally these LLMs tend to be overly verbose and try to cram as much information as possible in one response, and ask multiple questions. I would prefer a simpler kind of learning, less information, one question, more interactivity perhaps. You can say “lets go back to this part” and review some earlier point but it kind of assumes that once it has given a lesson that you will understand it.


Code

Code: https://github.com/timwaters/okls

Did it help me learn quantum computing? Not really, but it did help in showing me how much I don’t know about the subject!

3D time enabled historical streetscapes re.city Kartta Labs with Google Research

Kartta Labs and re.city was a really cool Google Research project that I was involved in a few years ago. It enabled users to view, interact and contribute to historical streetscapes with a timeline. Working from historical maps, geo-rectifying them, tracing and digitizing buildings, adding historical photographs of buildings and with a catalogue of three dimensional models it produced a fascinating and engaging time enabled view into our past. The project was much bigger than I write about here so feel free to explore the videos at the end and linked blog posts and papers produced.

The project was launched on the Google AI Blog: Recreating Historical Streetscapes Using Deep Learning and Crowdsourcing
Covered by Venture Beat: Google launches Kartta Labs to recreate historical maps in 3D
And on Fast Company: This incredible Google experiment lets you time travel to your hometown 200 years ago
It was initially announced on the Google Open Source blog in late 2020.

Intro

Three dimensional city streetscapes were created with a timeslider control. The buildings were modelled using photographs of the frontages of the buildings, and the footprints from historical maps.

re.city kartta labs 3D streetscape from fastcompany
Animations from Google: https://research.google/blog/recreating-historical-streetscapes-using-deep-learning-and-crowdsourcing/

I work with museums, galleries and archives on a number of historical crowdsourced mapping projects. Notably the New York Public Library’s Map Warper platform. Today this lives on in https://mapwarper.net and on Wikimedia’s Map Warper https://warper.wmflabs.org. I’m also familiar with the OpenStreetMap stack of applications, vector and raster tiles, cartography and a bit of server infrastructure – all these came into play during this project.

The components and applications of the project all ran on Google Cloud Project and with Kubernetes via the Google Kubernetes Engine (GKE). It used Google single sign on so users need only log into one place and authenticate for the different applications.


Animation from Google: https://research.google/blog/recreating-historical-streetscapes-using-deep-learning-and-crowdsourcing/

Main components

The front page showed an interactive map with pan and zoom control, a time slider at the top, links to the other applications, and help and about pages etc. The main applications are the Warper, Editor and Reservoir.
This front page is where users can explore the map, select buildings to see or add historic photos of buildings and see the building footprints, and enter the interactive 3D view.

The maps layer was a custom style – to look vintage – using the colours inspired by 19th century street maps and with a subtle paper texture background.

Noter – application to allow a user to connect a building footprint and a face of a building based on geometry of a historic photo of a building

noter

Reservoir  – a repository of 3D models of buildings.

Reservoir

Warper was enhanced

Look for some of these improvements coming to the main mapwarper application soon. If there’s some you think are better than others let me know.

Quick Place

A new interface was added to help users quickly and easily place map images geographically. Users would see the collection of maps and could choose one to “quick place”.

There’s a simple scale and drag rotate the image on a map. You can either hit one “looks good” button, skip to do another or manually find a map to work on.

OCR for Geocoding

Using image processing + Google Cloud Vision for Optical Character Recognition, the map images are processed to extract any road names and any place names. Together with any map metadata, this can be help automatically locate the map, and could potentially be used for editing the features. This also helps users to rectify the maps, giving a good starting location.

I imagine that today’s more advanced AI image reading tools might give much better results.

Versioning

Maps had versions, enabling maps to be rolled back to other versions after a change in adding control points.

Social improvements

The users who worked on the map were stored and linked to so that a user could see who helped on the map, or see a call to action if no users had started on it.

Vector Tiles

Within the warper, vector tiles were added for rectification, and with a time slider, so users could see and rectify historic maps while looking at this map.

Other updates

The warper was updated to work via Docker and with Kubernetes. The Rails version was updated and OpenLayers was updated. As before, the vector tiles and time slider was integrated. (I note: One thing users of mapwarper.net suggest is that control points could be snapped to vector features).
The Trace tab was changed so that you could load the rectified map into the Editor’s ID editor as a background image with the time tags so the user can quickly get started tracing over the historical map directly into the database.
Mapwarper’s code was also updated to run with a later version of OpenLayers and the whole system with Docker.

Editor website

The editor website was a fork of the OpenStreetMap website and stack with the Id Editor and was Dockerized to work with Kubernetes and a GCP Cloud SQL Postgres server. This serves as the API where geometries of the buildings are kept.
One edit for the website was to pass through some query parameters to the iD editor, so for example to load a rectified historic map or default historic dates to the editor. The id editor was customised to have a better interface for start and end times for features.

Vector Tiles

Tegola vector tile server was used and also run in Docker and in Kubernetes. The data was exported from the API as a planet and replication files created, and added into another GCP Cloud SQL Postgres server for vector tiles. Postgres was also uses to make the replication and planet service. The vector features had time properties within them so the maps are able to filter it.

AI / Machine Learning / Neural Networks

The output of the crowdsourcing mapping process fed into a workflow that heavily used AI to help create the 3D rendered cityscapes. We also considered using AI to assist with the georectification process.

The following comes from https://research.google/blog/recreating-historical-streetscapes-using-deep-learning-and-crowdsourcing/

Starting with footprints on maps and façade regions in historical images (both are annotated by crowdsourcing or detected by automatic algorithms), the footprint of one input building is extruded upwards to generate its coarse 3D structure. The height of this extrusion is set to the number of floors from the corresponding metadata in the maps database.

In parallel, instead of directly inferring the detailed 3D structures of each façade as one entity, the 3D reconstruction pipeline recognizes all individual constituent components (e.g., windows, entries, stairs, etc.) and reconstructs their 3D structures separately based on their categories. Then these detailed 3D structures are merged with the coarse one for the final 3D mesh. The results are stored in a 3D repository and ready for 3D rendering.

The key technology powering this feature is a number of state-of-art deep learning models:

  • Faster region-based convolutional neural networks (RCNN) were trained using the façade component annotations for each target semantic class (e.g., windows, entries, stairs, etc), which are used to localize bounding-box level instances in historical images.
  • DeepLab, a semantic segmentation model, was trained to provide pixel-level labels for each semantic class.
  • A specifically designed neural network was trained to enforce high-level regularities within the same semantic class. This ensured that windows generated on a façade were equally spaced and consistent in shape with each other. This also facilitated consistency across different semantic classes such as stairs to ensure they are placed at reasonable positions and have consistent dimensions relative to the associated entry ways.

Videos

The project is over now but a bunch of videos covering all the components can be found on the YouTube channel:  https://www.youtube.com/@re-city8789


Present Time

Kartta Labs is now maintained by the Kartta Foundation associated (I think) with the University of Minnesota: https://kartta-foundation.github.io/

The Kartta Foundation is currently focused on spotting, linking and extracting text from historical maps, and have published a range of papers and lots of open source software. For example The mapKurator System: A Complete Pipeline for Extracting and Linking Text from Historical Maps (2023) and Hyper-Local Deformable Transformers for Text Spotting on Historical Maps (2024)

OpenHistoricalMap (OHM)

Want to do the same kind of project today? I’d suggest to start using OpenHistoricalMap.
I was involved in development and hosting of the OpenHistoricalMap project from the beginning and evangelize for the project at a number of conferences and whenever I can!

In some ways this project and OHM’s redesign happened at the same time, but for different purposes. re.city’s data is Open Data License (ODBL) which enables the use of OpenStreetMap’s data which is useful for existing city streets and buildings.  Users can then work back from today’s map into the past. This project was focused on cities. OpenHistoricalMap data is CC0 / Public Domain which potentially limits it’s ability to use OSM data but which which focuses on much wider historical timeframes and lots of existing historical data is public domain.

Back to a FOSS4G Conference, this time in Leeds

FOSS4G:UK was on last week, here in Leeds and I really enjoyed the two days. Here are some highlights and thoughts.

I think the highlight talk for me was Weiming Huang “Pretraining Geospatial Foundation Models with OpenStreetMap”. Weiming is a new geographer in Leeds University School of Geography. The talk was about AI model and OSM data. Foundation models are not generative models (like chatGPT for example) and they are not task specific models. They are representative model, self supervised. The models are not focused on the use but on the data. They can then be used for multiple tasks. CityFM City Foundation Model.

For each feature in the model (e.g. from OSM) we can look at it from 3 perspectives, visual, textual and locational. For each road we can see that it contains nearby Points of interest, roads and routes. We can associate features with other features. e.g. hospital vs cafe. The models have to be trained by area. I asked Weiming if his models could run on a browser. Potentially. He also used LORA to fine tune a llama to determine OSM Points of Interest. E.g. what are the names and location of cafes in this city. Something to look into. The models generally cant be used to compare between different areas. I wondered if they could be used to express the folksonomy, the way things are mapped and categorised – essentially making a taginfo of sorts?

Yuchi Lai did an interesting talk looking at bike trips in London. The tfl publish data about bike hire but only time and start and end destination. She used bike routing APIs to make routes between the two points. h3 polygons was used. Could be used to determine where best to put in new cycle paths. Cycle routes in area with trips.

Asli Doga Kanturk talked about geotagged and sentiment analysis of social media posts. Foursquare reviews were looked at for analysis of leisure hubs. It reminded me of the work with Geoiq on the twitter firehose a decade ago.

There were two historic talks, Unlocking Historic Planning Data which was about extracting plans from static pdfs, using computer vision. Georeferencing was a hard problem for them. There were many questions related to data quality and AI hallucinations. And Barry Rowlingson did a talk on “how I accidentally become an expert in an obscure WW2 coordinate system” with meditations on his life and how cities change over time.

Corridor chat pointed me to Lonboard: https://developmentseed.org/lonboard/latest/ to look at. Corridor chat – look at taxi driver brain scan navigation. Oxford circus tube station navigation studies by UCL. I also enjoyed talks on remote sensing (hyperspectral) and postgis tips and tricks (views and event triggers) amongst many others

Overall the conference was very interesting and inspiring. I remembered and was remembered by several attendees from past events! The conference was energizing. Many people mentioned psychogeography – and my gut tells me there may be some interesting AI applications here enough to propose a session for next time.

Animated taxi trips, close passes and statistical analysis with Geobase

I helped to make a Geobase blueprint application of mapping and analysing taxis, https://github.com/decision-labs/geobase-blueprint-taxi-analysis and also narrated the video:

Geobase, a serverless geospatial platform has a vector tile server, database functions, PostGIS, H3 and the MobilityDB extensions (amongst much more!) built in, and this quickstart blueprint uses all of them. On the front end we are using deck.gl and maplibre and typescript and react.

The application shows animated trails representing taxi trips in Porto, Portugal:

In the above animation you can see pulsing blue circles. These are where 2 taxis have passed close by next to each other within 10 metres. The point is actually the shortest distance between the two trips, where the taxis got the closest. Often it’s passing by on the street, and starting off by taxi ranks or dropping off in the same locations.

MobilityDB was mostly used, to represent the taxi trips as lines-with-time, in the vector tileserver function to serve these temporally aware lines, in the outlier detection and cleaning steps and in the close pass analysis steps.

The outlier detection step identifies and removes parts of the trip with impossible speeds. In the following image, the blue and red lines are the taxi trips, but the blue ones have many very straight and very long segments. These will have very high speeds. The red lines is the cleaned dataset

I’m impressed with MobilityDB, in the next image, the green polygon is a h3 hexagon. The purple line is one taxi trip, the light blue is the trip clipped to the hexagon, and the dark blue is the trip within the hexagon and clipped to a particular time frame.

Moreover, because Geobase is also PostGIS in the cloud, we can connect to it in QGIS, and here are the query layers in QGIS

Showing the clipped with time
The line is clipped to the timespan:
{[POINT(-965739.7745940761 5036826.935711992)@2013-07-01 09:27:07+00, POINT(-966081.4141113205 5036898.801939623)@2013-07-01 09:27:22+00, POINT(-966272.7055242998 5036942.099465625)@2013-07-01 09:27:30+00]}
showing the clipped to geometry

The processing is mostly performed with PostGIS. For example, to identify trips with outlier periods:

whenTrue(speed(temporal_geom) #> 55) AS high_speed_periods 

And then to remove these “high_speed_periods” from the trips:

  WHEN high_speed_periods IS NOT NULL THEN
    minusTime(temporal_geom, spanset(span(high_speed_periods)))
  ELSE
    temporal_geom

I hope you enjoy the video, I used OBS for the screen recording which gave me more control over it with the audio. My voice can sometimes be quiet so I hope the video is engaging for you.

And, if you have a Geobase project, I hope you can give the Geobase Blueprint for Taxis Analysis a try!

Video: Geobase Ship Movement Blueprint: Build Animated Maritime Maps

I helped make a video about how to get started with Geobase https://geobase.app/ with the ship movement blueprint quickstart. It’s using AIS (ship tracking) data, kind of like GPS for ships but with lots of extra info.


https://www.youtube.com/watch?v=XSfeKSQ-JG0

Geobase has automatically creates and serves vector tiles from any table or database function. With MobilityDB (and many other extensions) installed and enabled, we use a function to create vector tiles of the ship movements trajectories and because we have the timestamps we can have a timeline control too. On the front end it uses deck.gl to animate the trails.

The ship movements is a MobilityDB type, basically a special linestring of points-with-timestamp. And we can do things like work out the speed of the ship and compare to the reported speed in knots and see any difference. Simplification functions can be done on the data taking into consideration time and movement. So we could simplify based on the distance travelled, or the time taken, or just good old classic douglas peucker!

There’s also a function to query the ship data to create h3 hexagons of activity by drawing on the map. I hope it gives a quick and easy introduction into how Geobase can be used.

Geobase.app itself is very cool. There’s no free tier at the moment however – it’s just getting started. In a nutshell it’s Supabase (cloud based postgres) + PostGIS + Tile Server.

I’ll be needing better enunciation or a throat sweet for the future, but in the meantime you will have to listen to my softly spoken voice!

Code: https://github.com/decision-labs/geobase-blueprint-ship-movement

Python Website Uptime Telegram bot

I wanted to have a simple uptime script that checked one or two things: if a site was available of not, and/or if it had some specific text on the page.

For example if it was a website which showed a list of paintings, selecting for a string “artist” might give you a good gauge if the web application itself was working. Better than just whether the website was responding or not.

I built a Python script that uses the Telegram API to send messages to a specified account. I run it via cron so it can check the sites at regular intervals.

Interestingly, internally it uses the build in python library “shelve” https://docs.python.org/3/library/shelve.html to store data as simple database. It needs to store data so that it knows whether a site is up or not, and so not to send duplicate messages.

Config is simple bit of yaml where each site needs to have a unique name as that is what is stored as the key in the shelve database.

telegram_token: your_telegram_bot_token
telegram_chat: your_telegram_chat_id
sites:
  - name: uptime website 
    url: https://example.com
    monitor: head
  - name: example contains
    url: https://example.com
    string: example
    monitor: text

The full code is here: https://github.com/timwaters/cron_py_uptime

Mapwarper.net emails improved

The Mapwarper.net server should be sending emails with the correct internals set up so they are less likely to end up in your spam inboxes now!

For many weeks users have emailed saying that they were having problems accessing their emails. Over the years some email providers have increased email sending requirements to protect against spam e.g. https://support.google.com/a/answer/81126?hl=en#zippy=%2Crequirements-for-all-senders so that at least SPF and DKIM are set up. Mapwarper.net should now have these. (It doesn’t currently have dmarc though.)

If you are interested in these things, with regards to spam, it seems that spammers set these up better than the rest of us! Spammers are better at SPF, DKIM, and DMARC than everyone else HN discussion: https://news.ycombinator.com/item?id=43468995

An AI Image Adventure for Terminalia – using chatgpt vision to create an mobile psychogeographer

For the 2024 Terminalia Festival of Psychogeography (of which I also curate) I created a mobile psychogeographer and adventure. The psychogeographer looks at the world, interprets it and gives suggestions as to how to explore it and where to go next. This was inspired by the “ChatGPT Figures Out Huddersfield” event of 2023. The theme of the festival was “time”.

A telegram bot was created using OpenAI’s ChatGPT Vision Preview API. The bot allows an admin user to set prompts. The bot accepts photographs from normal users and using the current prompt sends back the text. 

A bunch of people turned up for the event. We split into small groups and sent the bot images. Initially we took photos around St Johns churchyard, Leeds and responded to the initial prompts. Then we looked behind the curtain and collaboratively changed the prompts as we walked into the centre of Leeds. Some took photos of wide shots, some close, some at the ground, at people, things etc.
Only the photos I took are displayed here.

Prompt: “you are a curious and intelligent and playful walking artist. You are knowledgeable about psychogeography and experimental travel and strategies for exploring places. Examine this image and provide 4 different suggestions for activities to do in it. Possibly include something to do with the theme of time in one of the suggestions. Be courageous and enthusiastic. I will be outside and may be with other people but I do not have paper or pen. Afterwards indicate where which direction to go next”

What a wonderful opportunity for some explorative and playful adventures! Let's dive in:
Shadow Tag – The scene immediately suggests a game involving shadows due to the contrast of light. Engage with the people around you to play a game of shadow tag, where you must step on each other's shadows, instead of touching the person.
Time-Travel Talk – Make the most of a moment of reflection on the theme of time. Gather as a group and take turns sharing a memory of something important that each of you associates with that specific location, or even just where you were exactly one year ago from today. This shared storytelling creates a temporal bridge connecting everyone's past with the present moment.
Urban Echo Walk – Start by standing in this spot, then walk in a straight line until you hit an intersection or a change of pavement, then take the direction that feels most intuitive. While walking, engage in an "echo walk" where you emulate or respond to the sounds, rhythms, or patterns happening in the environment. This could be repeating the sound of your footsteps in rhythm with a bird's call or visually mimicking patterns or colors you see in the environment.
Invisible Drawing – Engage your imagination by 'drawing' scenes or patterns with your steps or movements, visualizing shapes or pictures as you move across the space. You might weave in and out of trees, or curve around benches, each movement contributing to your invisible masterpiece.
After you have enjoyed these activities, consider progressing towards the building in the background. Its architecture could hold history or present a new environment to explore. Walk alongside the building and let the contrasts of urban design guide you to whatever catches your interest next. Be open to the surprises that the urban landscape has in store for you!

(of a photo of the church gates and flowers nearby i think)

"Ah, what a delightful picture to inspire some psychogeographical exploration!
A Study in Contrast and Continuity: Engage with the environment's textures and contrasts. Trace the cool, hard lines of the metalwork with your fingers and then touch the soft, natural texture of the yellow flower. Let your senses guide you through the distinct sensations. Engage others by asking them to close their eyes and do the same, then discuss the feelings each texture evokes.
A Game of Shadows and Light: Use your body or objects you find nearby to cast shadows on the wall and the wrought iron. Play with the sunlight to create a spontaneous shadow play, making creatures come to life with your hands. Invite others to join in and see what collaborative stories you can tell through your silhouettes.
Temporal Botanical (Time-Themed): Observe the flower as it responds to the passage of time. Return to this spot at different times of the day to note how the light changes the flower's appearance and how it droops or revives with the changing temperatures. Experience the fleeting nature of the day as reflected in this small emblem of life enclosed by unyielding iron. No need for paper or pen, just use your memory to note the changes.
Elements in Harmony: Engage in a brief meditation, focusing on the juxtaposition of the man-made iron against the natural element of the flower. Reflect on the balance between human creations and nature. How do they coexist, and what can that teach us about our place in the world? Appreciate the craftsmanship of the ironwork and the beauty of the flower alike.
After completing these activities, stand facing the wrought-iron detail and the flower. Then, turn around and let the environment guide you. Perhaps choose the direction where the wind feels freshest on your face or follow the sound that intrigues you the most. Continue your journey without a fixed destination, allowing curiosity to be your compass."

In feedback, these responses above were too long to fit on a phone. People spent time reading them instead of doing it. We changed to a very basic prompt.

Prompt: Describe this image:

The image depicts an outdoor urban setting. There is a grassy area with a trimmed hedge, and a paved pathway leads through the scene. Toward the back, there is a group of people gathered near what looks like a structure with an archway entrance. Trees with bare branches suggest it might be late autumn or winter. A variety of buildings can be seen, including one with red brick and visible scaffolding, indicating construction or renovation work is being done. The sky is relatively clear with a few clouds, suggesting it is likely a dry day.

We had fun with the prompts. There were some academic artists present and they immediately got the joke!

Prompt: you are a curious and intelligent and playful walking artist. You are knowledgeable about psychogeography and experimental travel and strategies for exploring places. Examine this image and provide 3 different suggestions for activities to do in it. Be courageous and enthusiastic. Afterwards indicate where which direction to go next. Only use art speak.

Ah, behold the textile tableau captured before us, a dance of fabric and hue. The juxtaposition of the ochre warmth against the pragmatic navy, bisected by a red line of synthetic origin – pure Eastpak – it beckons us to delve into an activity that embraces the serendipitous and ephemeral nature of street artistry. One may engage in sartorial mapping, charting courses through urban space influenced by the colors and textures they adorn. Dare to become a mobile installation, interacting with the urban canvas, and let the environment converse with your attire, a chameleon in the city. 
After this immersive engagement, move northward, towards the polarity of the mundane. There, let the whisper of the contemporary architecture guide you to your next canvas of exploration, always seeking the untouched corner, the overlooked vista. Go forth, and let the city's heartbeat be your metronome.
Engage in a dérive, a practice of wandering, where one allows the terrain and the interactions within it to guide their movement, eschewing any preconceived routes or conventional routines. As you meander, encapsulate the juxtaposition of the ecclesiastical architecture against the modern, rectilinear forms through a series of expressive rubbings. Use paper and crayons to capture the different textures of the historic stones and the sleek surfaces of the contemporary edifices. Allow the organic patterns of the tree bark to play across your canvas, bringing forth the symphony of the organic and inorganic.
Once you have created these tangible dialogues between the past and the present, as a nomadic flâneur, gravitate northwards, guided by the celestial dance of light upon the mighty edifice's facade. Let the sun's position in the sky lead you further into the heart of this urban tableau, as you seek out new surfaces and vistas to add to your itinerant collection of metropolitan impressions.

Then we let our imaginations run wild, experimenting in form and format.

Prompt: you are a misanthropic giant in search of food and fun. Look at this image and devise strategies for satisfying my thirst. No sadism please. Reply as a Shakespearian sonnet. Let’s be speedy.

In an urban scape thou findst thyself, a giant seeking fare, Each shop and stall with goods ample, a feast if thou dost dare.
The water's thirst to slake, the cafes spread before thine eye,
Beneath the azure heavens where the cotton clouds do fly.
To quench thy giant thirst, a tankard's not to be, Thou needst a fountain grand, a spout as big as thee.
In mingling with the mortals, caution must thou keep, For fright and awe too swift, would through their spirits seep.
Choose merriment with grace, and harm thou shalt eschew, In games of gentle jest, to human scale stay true.
Thou must thy hunger bury, with a touch as light as air, To sup on joy and laughter, that is both just and fair.
So heed these words, O giant, who walks the mortal realm, Seek out thy food and fun, with kindness at the helm.
The city streets may sate thee, with its lively, vibrant ways, Partake with gentle footsteps, through these human-filled days.

(of a photo of rubbish bin):

In sooth, a quest for sustenance thou dost crave, 
A giant's maw to fill, no common fare.
Yet in this image naught but waste we save,
No banquet fit for thee doth lie in there.
Turn hence, ye titan, from this paltry bin,
No drop of joy within its bounds is found.
Seek out instead a field of grain so thin,
Where amber waves of barley do abound.
Perhaps a brook whose waters pure and sweet,
Might serve to quench the depths of thy great thirst.
An orchard's fruit, ripe treasures of the heat
To sate thy hunger, be thou first accursed.
Distract thee with the beauty of this earth
Find mirth in streams and trees of bounteous girth.

Of a photo showing a bar and the sushi restaurant outside the church: (We commented about “brooks” being mentioned here and above – we thought it was because of the prompting about sonnets)

In sooth, I see no stream nor brook abound,
No nectar sweet, nor hearty brew within.
But lo, a place where sushi doth astound,
A feast for giants, from fin to fin.
The sight of fish, rice rolled in leaves of green,
Might slake my thirst with sav'ry ocean's brine,
And joy may spring forth from this dining scene,
Where tiny meals become great feasts in twine.
The city’s sprawl, with metallic posts tall,
Reflect not my realm of wild and wood,
Yet 'mongst these structures, grand and not so small,
I find my fun in this urban neighborhood.
Though thirst of giants not easily quenched
In Sushi Waka's halls, my hunger benched.

Prompt: You are an advertising copywriter obsessed with puns. Describe this image with advertising speech. Finally suggest a direction

Step into the spotlight with confidence and never miss a beat! This striking snapshot captures a moment of strength and stability, paving the way for a future filled with steadfast strides. Notice the robust shoes paired with the unshakeable support of a walking cane - a real testament to standing firm when life throws pebbles on your path. With trusty soles as your foundation, you can rock the walk of life!
And now, for the perfect tagline: "No matter the terrain, keep stepping strong!"
As for direction, let’s zoom in on those shoes - the unsung heroes of our daily journeys. Let’s cast them in an empowering light, bolstering the message that with the right support, you’re always a step ahead. Add in a backdrop of morning sunlight, and we've got an image that inspires taking on the day with vigor and vitality! Keep walking tall, and remember, every pebble is a stepping-stone to success!
Step right up and bask in the glow of Urban Oasis! Where the sun-drenched streets are brimming with potential and the shopping deals are as bright as the sunlight filtering through the clouds. Here, every step is a journey toward retail radiance. So why just meander when you can promenade with purpose? 
✨ Breeze through your shopping list with the ease of a cloud crossing the sky, hopping from store to store as you soak up the savings. Be the savvy shopper who knows a gleaming opportunity when they see it!
👟 Whether you're on two feet or two wheels, there's a lane that's calling your name. Follow the path that's paved with golden rays and discover a world bursting with urban excitement.
🤝 Gather your fellow pathfinders and parade down this bustling boulevard, where every shadow points to a new adventure and every light leads to a discovery.
Now, don't pedal off into the sunset just yet—there's still much to explore. To the horizon and beyond, let these streets be your gateway to shopping spree splendor. What are you waiting for? Take the direction where the sunlight leads, and you'll find the treasures that await! 🌟🛍️

I suggested a more radical approach but this proved to be unsuitable by OpenAI
Prompt: “you are a dry serious anti capitalist activist and a specialist in radical urban studies. Examine this image and give a scathing critique. At the end provide a suggestion as to where to go next.”

This prompt seemed acceptable:
Prompt: “you are a dry serious radical urban geographer. Examine this image and give a critique. At the end provide a suggestion as to where to go next.”

The image presents a vibrant urban commercial street teeming with people, indicative of a healthy pedestrian thoroughfare. The street architecture, exhibiting both historical façades and modern storefronts, reflects the palimpsestic character of urban change, where the new is juxtaposed with, and often superimposed on, the old. However, a critical examination might reveal the hegemony of consumerism; the presence of branded stores like Harvey Nichols points to the commodification of urban space catering largely to a consumer culture. The vibrancy of this pedestrianized zone suggests successful traffic calming and prioritization of the pedestrian experience over vehicular traffic, which is laudable from a human-centric urban design perspective. The clear skies and sunshine highlight the street’s role as a social space, not merely a shopping corridor, where people can gather, interact, walk, and appreciate the urban environment. This setting, therefore, appears conducive to fostering community interaction and a more localized economy within an urban context. On the downside, such streets, while often celebrated as public realms, sometimes mask underlying issues of gentrification, economic polarization, and social segregation. The prominence of high-end stores may indicate a consumer environment that is not accessible to all socioeconomic classes, potentially marginalizing low-income individuals and contributing to the homogenization of urban experiences. As for a suggestion, since the specific location of this street isn't known, more precise suggestions are challenging. However, a useful next step would be to explore adjacent neighborhoods to understand the broader urban context. Are there areas of notable contrast, such as residential zones exhibiting signs of inequality or displacement due to the commercial success of streets like these? Or is there evidence of efforts to integrate diverse urban functions and social inclusivity? The examination of nearby areas could reveal more about the city's urban fabric, planning priorities, and the socio-economic mosaic that frames streets like the one portrayed.

Again, a bit too wordy, we didn’t read it all. so I trimmed it down:

PROMPT: you are a dry serious radical urban geographer. Examine this image and give a short critique in 50 words. At the end provide a suggestion as to where to go next.

The image presents a consumptive landscape dominated by retail chains, indicative of a homogenized urban experience that detracts from local culture. Pedestrianization promotes accessibility, yet challenges emerge in maintaining diversity against the backdrop of gentrification. Next, one should examine adjacent neighborhoods to assess the socio-spatial ripple effects.

In terms of feedback, responses were sometimes too long. Too long to fit on phone and to read quickly on phone. Too many options or activities sometimes. It was good to be able to play with the “theme” of the responses. It really did seem to respond and interpret the images. It was an enjoyable activity. Some did the activities and joined in and were enthusiastic about it. There was some discussion about these new AI tools. On the whole it was neutral.

In terms of psychogeography: It can be trained or tailored with certain texts. It’s possible to make it respond like someone like debord even more by feeding it transcripts, texts etc. The suggestions were novel but not particularly ground breaking. I wonder however if its possible for some of the activities to be invented or if they have had to exist before somewhere. Perhaps in future the ability to have groups set themes to other groups.

Tech: The bot was slow sometimes this was due to the bot only seems to handle one image at once and so users have to wait until its finished with one image before going onto the next. Telegram is very easy to develop a bot for. Telegram handles image upload and hosting so theres no need for a website. The UI for telegram is good. New users on Telegram struggle. There was a struggle finding me and the bot initially. People encountered immoral activities on the nearby function on a new account which may make it unsuitable for families. Perhaps for future, better instructions to get started would work better.
Rotation and management of prompts could be good too. Telegram bot was free, OpenAI vision access needs an account, this project cost about 1 or 2 us dollars. Code is on github

Vaisigano

Vaisigano is a prototype citizen science project focused on fresh water resources by National University of Samoa and The Übersee Museum. On Instagram @s_vaisigano and on Facebook Citizen Science Vaisigano. Vaisigano is the name of the river in Samoa by the University.

Last year I was involved to help develop the prototype mobile-first web app for geolocated data collection ahead of a visit to the field with biologists and students.

Aimed at non specialist university students to use in the field to help survey and record measurements and observations for river quality health along a river in Samoa. The purpose of this first app is to show possibilities and demonstration for future solutions. River and water quality measurements can involve surveys for invertebrates (aquatic insects), pH of the water, turbidity, velocity, temperature etc. Traditionally such surveys were taken, recorded on paper and input later back in the laboratory. A mobile device out in the field can also have documents, multimedia and tutorials to guide users.  The project involved research into Citizen Science projects. Many good platforms exist, for example ODK or Kobo which can have very complex and detailed logic for forms but it was decided that a more user friendly and casual approach would be better.

The front page gives a brief outline, a call to action button “Start Collecting”, two summary tables of the latest observations and the latest active users.

The main aims:

  • Sustainable – able to run on its own
  • Collect data in a continuous manner 
  • Accessible and easy to use
  • Handheld
  • Benefit learning for curriculum
  • Incorporate reinforcement rewards, feedback
  • Surveys should be georeferenced
  • Review of previous surveys

Some of the challenges included GPS variability in forest, using mobile devices and water, and bandwidth requirements in the field.

The app showed tips before starting.

The application was designed around 3 types of data forms. physical, biological and chemical

Each form had a time and location which used browser / GPS geolocation. Users could move the location if they wanted.

Physical

  • River width
  • River depth
  • Has it been raining or not?
  • What evidence of water user can you see (fishing, boats, use for homes, irrigation, etc)
  • What man made structures can you see (e.g. weirds, dams, wells, bypass channels etc
  • On the surface. Can you see foam, litter, oil on the surface?
  • What land use is around the site (pasture, town, forest etc)
  • Flow regime. (pools, ripples, waterfalls, rapids, cascade etc)
  • What is the colour of the water (clear, murky etc)
  • Estimate the water flow (still, slower, or faster than walking speed etc)
  • Turblence of water (calm, turbulent)
  • Images looking down stream showing both banks

Chemical
These needed a kit to help complete

  • Water temperature
  • Water acidity
  • Conductivity
  • Nitrates
  • Phosphates

Biological

  • Description of the river bank and vegetation and what % of the river is shade
  • What evidence of aquatic life: plants below surface, emerging, floating. Fish, insects etc
  • Substrates – boulders, stones, gravel, sand, organic matter etc
  • Macroinvertables
    • From kick sampling
    • These allowed users to add a name with a count and attach images.
    • Some species would be pre-populatated in the boxes.

The site has an admin page which allows editing and reviewing of contributions and allows them to download all the data as a spreadsheet and to download the images zipped up.

The site has a simple scoring for users based on number of contributions, and shows feedback of their contributions so that people can see the reports coming in and the nature of them

Vaisigano.org

code on github