Based on machine learning algorithms, this paper designs a crossborder e-commerce logistics service system recommendation algorithm. First, we introduce the meaning of query recommendation, analyze the mechanism of e-commerce platform shopping search, redesign the query recommendation process on this basis, establish a Markov decision process model for the problem, and solve the optimal recommendation strategy through deep machine learning algorithms. Second, we design a simple calculation example, use Python programming through a simulated shopping environment, give the solution process of the optimal recommendation strategy in the whole process, and prove the feasibility of the algorithm. The sentiment synthesis word vector is used as the input data structure of the text, the convolutional neural network model and the recurrent neural network model in machine learning are independently designed and constructed, and a shunt is proposed. The rule (shunt) realizes the operation of judging the data and inputting the two machine learning networks. The shunt fully realizes the combination of the advantages of the local feature characterization of the convolutional neural network and the timing characteristics of the recurrent neural network and achieves a more efficient and accurate electrical system. Finally, through simulation experiments, a series of data processing work such as data outlier cleaning, sliding window construction features of data variables, and training set and test set division are designed to convert regression prediction problems into classification problems to predict commodity demand. At the same time, it also compared the effect of the time series model, random forest model, GBDT, single Xgboost model, and the model used in this topic and analyzed the reasons for this difference and the application of each model.