The invention provides a
Web API recommendation method based on a multi-task deep neural network. The
Web API recommendation method comprises the following steps: S1, cleaning a
Mashup description document and a
Web API description document in a
data set; s2, mapping character information in the cleaned
data set into digital codes; s3, generating sample data based on digital coding; s4, constructing a Web API
recommendation model based on the multi-task deep neural network; s5, inputting the sample data into the Web API
recommendation model for pre-training to obtain a pre-trained Web API
recommendation model; s6, performing fine adjustment on the pre-trained Web API recommendation model by using a
Mashup and API matching
score prediction task; s7, obtaining a matching
score list of the
Mashup demand and each Web API (Application Program Interface); and S8, sorting the matching
score lists of the Mashup requirements and the Web APIs in a descending order according to the matching scores, and selecting the first K Web APIs to form a final recommendation
list. According to the method, the problem that no-interaction or low-interaction Web APIs in historical data are difficult to recommend accurately is solved, and indexes such as the
recall rate and the accuracy rate of recommendation are improved.