How to Catch a Cheating Husband (Using AI)
A fun exercise in the applications of machine learning
Is Your Husband Cheating? Let AI Help You Find Out!
So you’ve (somehow, unintentionally of course) got your hands on your husband’s hard drive, where he’s stored all his emails and text history. Your curiosity is piqued, especially since you’ve been feeling a bit suspicious lately. But finding out if he’s having an affair by reading all these emails and texts is like searching for a needle in a haystack. So, what can you do?
Enter the power of AI. With machine learning at your disposal, you can sift through this massive data trove with the precision of a seasoned detective. Here’s how.
Step 1: Filter the Suspects Out (Sentiment Analysis)
Your husband is a busy man with a large network, and this hard drive is full of communications with thousands of people. How do you know who to focus on? Simple: conduct a sentiment analysis to pinpoint individuals who seem to have an unusually “friendly” relationship with your husband.
Start by uploading the data to ChatGPT and use this prompt: “Can you analyse the sentiment of these messages and tell me which ones are the most positive?”
Here’s how it works:
The algorithms will quickly sift through the dataset and identify individuals with a high “sentiment score.” Voila, you’ve got your suspects.
Sentiment analysis determines the emotional tone behind a series of text messages. Imagine having a bunch of messages and wanting to know if they are happy, sad, angry, or neutral without reading each one. The AI reads through the messages and assigns an emotional rating to each one, indicating whether the message is positive, negative, or neutral. For example, a message like "I love spending time with you" would get a positive score, while "I am really disappointed" would get a negative score.
By analysing these scores, you can quickly grasp the overall emotional tone of the conversations. This helps you identify which messages are the most positive and who is receiving these positive sentiments. Instead of manually reading and interpreting each message, sentiment analysis gives you a clear picture of the emotional landscape of the interactions, highlighting relationships that might be more affectionate or strained.
Step 2: Explore What the Fuss Is About (Topic Modelling)
Once you’ve filtered out the potential suspects with sentiment analysis, it’s time to dive deeper and see what’s being discussed. But again, no need to read through each text or email. Let the algorithms do the heavy lifting with topic modelling.
Tell ChatGPT: “Can you use topic modelling to find out what my husband is talking about in these messages?”
This helps you identify common themes in the conversations by focusing on key words like ‘love,’ ‘miss,’ and ‘date.’
Topic modelling automatically identifies the main themes or topics within a large collection of text messages. Imagine having a big pile of messages and wanting to know what they’re mostly about without reading each one. The AI breaks down all the messages into individual words, looks for patterns, and groups words that often appear together into topics. For example, words like “love,” “miss,” and “dinner” might be grouped into a “Romantic” topic, while words like “project” and “meeting” might form a “Work” topic.
By labelling these groups, the AI helps you quickly understand what the messages are about. This process makes it easier to spot patterns and important themes in the conversations. Instead of reading every message, you can see at a glance that certain topics, like "Romantic" or "Work," are being discussed, providing valuable insights into the nature of the interactions.
So there you have it. Instead of playing detective and reading through countless messages, let AI do the snooping for you. With sentiment analysis and topic modelling, you can get a clear picture of your husband’s communications and identify any suspicious activity with ease.