There's been a lot of DIY ways to heat weld/fuse waste filament together (with the rise of bowden systems) but YMMV on which works well for you. I think the best i've seen was using a tight PTFE tube ...