Given the state of the world it's hardly the most pressing of problems.

But amid all the doom and gloom there may be a ray of sunshine for some supermarket shoppers.

For three of the biggest chains are bringing in state-of-the-art technology to end the frustration of guessing just when your selected avocado is going to be ripe enough to eat.

Customers will be able to simply pick up an item – such as an avocado or mango – and put it under a machine that scans it with an infrared beam.

In under a second, a screen above will flash up with a score out of a 100 revealing how ripe it is and the number of days until it goes off.