This article is devoted to the development of algorithms and mathematical methods for digitalization of population movement. An algorithm for digitalization of demographic flows is proposed. It becomes possible at any time to obtain a complete description of both a specific person and a general characteristic of the state of the economic system in a given context (for example, age, gender, place of residence, type of settlement, level of education, level of health, level of culture). Within the framework of the problem, four tasks are identified, which the research is aimed at solving. The first task is constructing a scheme of a person's digital trace. The second task is aggregating digital traces and structuring demographic flows and related flows of human capital using Big Data technology. The next task is studying the characteristics, properties and qualities of the said flows using Data-analysis technology. The final task is analyzing and forecasting demographic and human capital flows using Data Science technology. When implementing Data Science technology, the use of mathematical methods of statistical data processing, methods of correlation and regression analysis, mathematical models, forecasting methods, artificial intelligence algorithms, including neural network models, is proposed to solve the task.