Scientists trained an AI model to identify avocados at perfect ripeness, saving you from throwing away rotten ones.