Other people's products have utility model patents. If we want to imitate other products, how can we improve them to be regarded as non-infringement?

I don't think your thinking is right. This is patent technology evasion in the process of research and development, which requires the combination of law and technology. Even a lawyer may not have this ability. Lawyers may have no technical background, but only patent agents have this ability. Even if the patent agent gives you advice, it is your own technicians who come up with the technical scheme, and then let the patent agent analyze whether the improved technical scheme is infringing, instead of letting others tell you how to improve it so as not to infringe. After all, patent agency is not the whole technical content of the industry where your product is located. You can publish the scheme you want to use, and then compare it with the patent you want to avoid to see if it belongs to the scope of patent protection. If you do fall in, you can also consider making a non-infringement defense, so you are not afraid to prepare in advance.