SlideShare a Scribd company logo
1 of 41
Download to read offline
Будни data science

NLP стартапа
Или реальность наносит ответный удар
Vsevolod Solovyov
CTO at Prophy Science
@murkt
Что мы делаем:
• Существует 100+ млн научных публикаций

• Население планеты растёт, количество
учёных - тоже

• С каждым годом учёные пишут всё больше
статей
А кто их
читать будет?
Зачем мы читаем статьи?
Чтобы:

• Рекомендовать статью для прочтения
человеку

• Группировать статьи по тематикам

• Находить экспертов в заданной тематике

• ...
Научная публикация
• Заголовок

• Авторы

• Текст

• Ссылки

• Место публикации

• идентификаторы
Pubmed Pubmed Central ArXiv Inspire
Crossref DBLP ADS
Prophy
Импорт статьи
• Качаем файл из источника

• XML, JSON, PDF, ePUB

• Парсим в какую-нибудь структуру

• Сохраняем в базу
Prophy
Источник
{meta: data}
Статьи обновляются
• Выходят новые версии 

• Исправляются ошибки в источнике

• У препринта появляется DOI
опубликованной статьи

• и так далее

• Записываем обновленные данные в базу
У разных источников
разная полнота данных
Откуда в данных хлам?
• Появилась статья в ArXiv

• Она же появилась в Inspire

• Обновили данные в ArXiv

• Трижды обновили данные в Inspire

• Вышла новая версия в ArXiv
Откуда в данных хлам?
• Появилась статья в ArXiv

• Она же появилась в Inspire

• Обновили данные в ArXiv

• Трижды обновили данные в Inspire

• Вышла новая версия в ArXiv 

• Статья появилась в PMC и pubmed
Prophy
Источник
{meta: data}
Источник
{meta: data}
Источник
{meta: data}
Источник
{meta: data}
Merge, clean, validate
{meta: data}
Import pipeline
• Стандарты врут

• Схемы врут

• Статистика и конкретные примеры —
реальность

• Юнит-тесты на парсеры и мерж

• Перед сохранением в БД валидируем
данные, как внешнее API или формы
А автор кто?
J Smith
• John Smith

• Jill Smith

• Jekyll E Smith

• Jekyll M Smith

• Jekyll EM Smith
J Smith
• John Smith

• Jill Smith

• Jekyll E Smith

• Jekyll M Smith

• Jekyll EM Smith
• J David Smith

• Jekyll Smith Sr.

• Jekyll Smith Jr.

• Jekyll Smith III
J Smith
• John Smith

• Jill Smith

• Jekyll E Smith

• Jekyll M Smith

• Jekyll EM Smith
• J David Smith

• Jekyll Smith Sr.

• Jekyll Smith Jr.

• Jekyll Smith III

• Jekill Smyth
JL Smith, MB Salamon
Кто из:

• James L. Smith, Myron B. Salamon

• Janet L. Smith, Theodora Hatziioannou
JL Smith, MB Salamon
Кто из:

• James L. Smith, Myron B. Salamon

• Janet L. Smith, Theodora Hatziioannou

• Jerald L. Smith, Miriam Salamon
J Smith
• Около 15-20 тысяч статей, подписанных
каким-нибудь J Smith (в нашей базе)

• Это больше тысячи реальных людей

• Кто-то написал сотни статей, кто-то - одну-
две
Jürg Fröhlich, Jurg Frohlich, 

Juerg Froehlich
• Пишет про квантовую механику, темную
материю и влияние электромагнитных
полей на организм

• Это один человек? Два? Четыре?

• Он весь из ETHZ (политехнический
университет в Цюрихе)
Ох, китайцы
Странный народ
Топ 30 имен
name | count
------------+-------
Wei Wang | 8693
Wei Zhang | 7452
Wei Li | 6828
Lei Zhang | 5679
Jing Wang | 5360
Yan Li | 5250
Lei Wang | 5129
Wei Chen | 5048
Yang Liu | 4877
Jun Wang | 4773
Jing Li | 4752
Yan Zhang | 4751
Jian Wang | 4705
Li Li | 4665
Li Zhang | 4631
name | count
------------+-------
Jun Li | 4609
Wei Liu | 4420
Yan Wang | 4386
J. Zhang | 4159
Jing Zhang | 4096
Y. Zhang | 4035
Li Wang | 4017
Yu Zhang | 3945
Ying Wang | 3943
Hui Li | 3875
Hui Wang | 3845
Xin Wang | 3839
Jun Zhang | 3822
Y. Wang | 3798
Yi Zhang | 3775
Еще исключительные
случаи
• Тысячи авторов в одной статье

• Группы авторов

• ATLAS collaboration

• Investigators of the European Huntington's
Disease Network
Идентификаторы 

спешат на помощь
• Специальные идентификаторы для
научных авторов

• ORCID – 0000-0001-8073-3068

• ScopusID – 13204492100

• ResearcherID – E-3698-2015

• Email
Специальные
идентификаторы
• Редко указывают в статьях

• Не человекочитаемы

• Их путают в статьях

• В базах идентификаторов куча бреда
V Petrov'ы
stanislaV, paVel, Vladimir

Lachezar? Sergei?
Email
• Один емейл точно принадлежит одному
человеку 

• У одного человека может быть несколько

• Gmail

• Hotmail

• Разные университеты
Email принадлежит
одному человеку?
• isrn.molecular.biology@hindawi.com

• microbiologia.clinica@unt.edu.ar

• gyn-sekretariat@pius-hospital.de

• secretariat@grangettes.ch
Группируем статьи
• Вытаскиваем десятки гигабайт из БД

• Строим граф с правильными весами
между вершинами

• Кластеризуем граф

• Многократно повторяем иерархически

• Как мерять качество?
Улучшаем результаты
• Внимательно делаем code review

• Визуализируем

• Эксперт смотрит глазами

• Добываем больше хороших данных

• Убираем плохие данные (шум)
Мы тут про Python
собрались поговорить?
Python
• Инструменты и библиотеки:

• gensim, sklearn, Jupyter, etc

• Медленный

• Накладно параллелить

• Сложновато ускорять
От ORM больше
вреда, чем пользы
Применение SQL
просветляет
SQL позволяет намного быстрее и удобнее
исследовать данные
Что сделали удачно
• Импорт статей

• "Микросервисный" монолит

• Миграции для Postgres в raw SQL

• Тесты

• Code review
Планы
• Оптимизации: кластеризация 10 млн
статей съедает 100+ Гб RAM и идёт сутки

• Улучшать подход к авторам

• Мерять качество ML

• Куча других вещей
Планы
• Оптимизации: кластеризация 10 млн
статей съедает 100+ Гб RAM и идёт сутки

• Улучшать подход к авторам

• Мерять качество ML

• Куча других вещей

• Расширять команду ;)
Спасибо за
внимание
Вопросы?
Vsevolod Solovyov
CTO at Prophy Science
@murkt
vsevolod.solovyov@gmail.com

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Будни data science/NLP стартапа