Rubbish bins in Edinburgh are having sensors fitted - so that bin lorry crews know when they are full.
The city has become plagued with litter and complaints to the council have rocketed by a third in a year.
But now, in a bid to stop the rubbish, lorry crews have been given computer tablets to track their routes, while sensors which monitor litter levels have been installed in hundreds of public litter bins.
Read more: Mysterious algae turns iconic Glasgow statue green
And city leaders say their success in using the technology has attracted attention from cities across Europe and the United States.
Councillor Lesley Hinds, Edinburgh City Council's environment leader, said: "The sensors are currently in litter bins but if the positive results continue we'd like to see this roll out to communal bins and recycling banks."
As part of a year-long trial, a total of 323 litter bins in the city centre, Leith Walk, Leith Links and Portobello Promenade have been fitted with sensors which tell bin men when they are full.
Ultralasers are able to sense how much litter is in the bin - while inbuilt sensors are able to alert bosses to possible fires.
Officials can monitor when bins need emptying with spikes in data indicating fly-tipping.
Read more: Mysterious algae turns iconic Glasgow statue green
In August, collections in trial areas increased by 24 per cent on average, with some collections doubling or even quadrupling in frequency.
Refuse crews can respond to overflowing bins within the hour and data sent back by the sensors can be used to create more efficient routes for emptying litter bins.
Cllr Hinds said: "The success of the pilot is attracting a lot of attention from other major cities particularly in the US and Washington DC where the authorities have contacted us."
Meanwhile, bin crews have been handed computer tablets as part of a separate, two-week long trial that gives out more accurate information about the location of bins - as well as sending information back to the council about why any were not collected.
Bin men can let bosses know immediately if bins were not put out on the street correctly, or if they were unable to access them.
Andy Crofts, general manager of Enevo UK - the company behind the bin sensor technology - said: "The Edinburgh project team have understood the importance of using accurate data to improve waste services for the city and have fully embraced Enevo smart waste technology during the pilot."
Read more: Mysterious algae turns iconic Glasgow statue green
The two trials are costing £20,000 to implement.
Edinburgh residents have complained about an increase in vermin and the smell coming from the rise in rubbish being left on the streets.
The council received 53,862 complaints about missed or overflowing bin collections between July 2015 and July this year - an average of one every 10 minutes through the day and night.
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules here