Sep 9–12, 2019

Industrialized capsule networks for text analytics

Vijay Agneeswaran (Publicis Sapient), Abhishek Kumar (Publicis Sapient)
1:45pm2:25pm Thursday, September 12, 2019
Location: 230 A

Who is this presentation for?

  • Data scientists, data engineers, ML engineers, CxOs, and data architects




Vijay Agneeswaran and Abhishek Kumar explore multi-label text classification problems, where multiple tags or categories have to be associated with given text or documents. Multi-label text classification occurs in numerous real-world scenarios, for instance, in news categorization and in bioinformatics (such as the gene classification problem). The Kaggle dataset is representative of the problem.

Several other interesting problems in text analytics exist, such as abstractive summarization, sentiment analysis, search and information retrieval, entity resolution, document categorization, document clustering, machine translation, etc. Deep learning has been applied to solve many of the above problems, such as applying a convolutional network to make effective use of word order in text categorization. Recurrent neural networks (RNNs) have been effective in various tasks in text analytics. Significant progress has been achieved in language translation by modeling machine translation using an encoder-decoder approach with the encoder formed by a neural network.

However, certain cases require modeling in the hierarchical relationship in text data and is difficult to achieve with traditional deep learning networks because linguistic knowledge may have been incorporated in these networks to achieve high accuracy. Moreover, deep learning networks don’t consider hierarchical relationships between local features as the pooling operation of convolutional neural network (CNNs) looses information about the hierarchical relationships.

Vijay and Abhishek examine an industrial-scale use case of capsule networks they’ve implemented for their client in the realm of text analytics—news categorization. They use the precision, recall, and F1 metrics to detail the performance of capsule networks on the news categorization task. They benchmark the performance of recurrent capsule networks (RCNs) for the same task and compare the two implementations against a baseline model. Importantly, they outline how to tune key hyperparameters of capsule networks such as batch size, number and size of filters, initial learning rate, and number and dimension of capsules, as well as the key challenges they faced.

What you'll learn

  • Discover the motivation for capsule networks and how they can be used in text analytics
  • Gain an overview of RCNs
  • Understand the implementation of RCNs in TensorFlow and PyTorch
  • Learn how to benchmark capsule networks with dynamic routing and RCNs for a real multi-label text classification use case for news categorization
Photo of Vijay Agneeswaran

Vijay Agneeswaran

Publicis Sapient

Vijay Srinivas Agneeswaran is a senior director of technology at Publicis Sapient. Vijay has spent the last 12 years creating intellectual property and building products in the big data area at Oracle, Cognizant, and Impetus, including building PMML support into Spark/Storm and implementing several machine learning algorithms, such as LDA and random forests, over Spark. He also led a team that built a big data governance product for role-based, fine-grained access control inside of Hadoop YARN and built the first distributed deep learning framework on Spark. Earlier in his career, Vijay was a postdoctoral research fellow at the LSIR Labs within the Swiss Federal Institute of Technology, Lausanne (EPFL). He’s a senior member of the IEEE and a professional member of the ACM. He holds four full US patents and has published in leading journals and conferences, including IEEE Transactions. His research interests include distributed systems, cloud, grid, peer-to-peer computing, machine learning for big data, and other emerging technologies. Vijay holds a bachelor’s degree in computer science and engineering from SVCE, Madras University, an MS (by research) from IIT Madras, and a PhD from IIT Madras.

Photo of Abhishek Kumar

Abhishek Kumar

Publicis Sapient

Abhishek Kumar is a senior manager of data science in Sapient’s Bangalore office, where he looks after scaling up the data science practice by applying machine learning and deep learning techniques to domains such as retail, ecommerce, marketing, and operations. Abhishek is an experienced data science professional and technical team lead specializing in building and managing data products from conceptualization to the deployment phase and interested in solving challenging machine learning problems. Previously, he worked in the R&D center for the largest power-generation company in India on various machine learning projects involving predictive modeling, forecasting, optimization, and anomaly detection and led the center’s data science team in the development and deployment of data science-related projects in several thermal and solar power plant sites. Abhishek is a technical writer and blogger as well as a Pluralsight author and has created several data science courses. He’s also a regular speaker at various national and international conferences and universities. Abhishek holds a master’s degree in information and data science from the University of California, Berkeley.

Leave a Comment or Question

Help us make this conference the best it can be for you. Have questions you'd like this speaker to address? Suggestions for issues that deserve extra attention? Feedback that you'd like to share with the speaker and other attendees?

Join the conversation here (requires login)

Contact us

For conference registration information and customer service

For more information on community discounts and trade opportunities with O’Reilly conferences

Become a sponsor

For information on exhibiting or sponsoring a conference

Contact list

View a complete list of O'Reilly AI contacts