A marine researcher is working on a tool he says will allow the state to forecast the level of economic loss suffered by its valuable softshell clam industry because of a harmful algae bloom called red tide, which discolors water and makes mussels and clams unsafe for people to eat.