Back in 2012, US retail chain Target created an algorithm that could work out if customers were pregnant based on their past purchasing behaviour. After analysing historical data, they used the results for a direct marketing campaign, snail-mailing coupons for baby products to the home addresses of likely new-mums-to-be. It…