The ice cream of the future is struggling to survive.

After a four-year battle with its biggest lender, Dippin' Dots Inc. filed for Chapter 11 bankruptcy protection on Thursday in U.S. Bankruptcy Court in Paducah, Ky., to avoid foreclosure.

The manufacturer of the quirky and colorful ice cream beads, which are flash frozen using liquid nitrogen,...