Skip to main content

Using Databricks to Power News Sentiment, a Capital IQ Pro Application

Summary

  • Sentiment analysis at scale: S&P Global processes news for 10,000+ public companies through entity recognition and proprietary financial sentiment models.
  • Model training and deployment: The team fine-tuned Google's T5-Flan model on internal analyst training data, then deployed multiple models to Databricks Model Serving.
  • Real-time product delivery: Workflows on the Databricks Data and AI platform operationalize the entire ETL and surface 1.5M+ daily signals in the Capital IQ Pro application.

Using Databricks to Power News Sentiment, a Capital IQ Pro Application

Watch: Using Databricks to Power News Sentiment, a Capital IQ Pro Application
Talk by Debbie Connolly, Data Scientist, S&P Global
The News Sentiment application enhances the discoverability of news content through our flagship platform, Capital IQ Pro.
We processed news articles for 10,000+ public companies through entity recognition, along with a series of proprietary financial sentiment models to assess whether the news was positive or negative, as well as its significance and relevance to the company. We built a database containing over 1.5 million signals and operationalized the end-to-end ETL as a daily Workflow on Databricks.
The development process included model training and selection. We utilized training data from our internal financial analysts to train Google’s T5-Flan to create our proprietary sentiment model and two additional models. Our models are deployed on Databricks Model-Serving as serverless endpoints that can be queried on-demand.
The last phase of the project was to develop a UI, in which we utilized Databricks serverless SQL warehouses to surface this data in real-time.
Intelligent analytics for everyone: https://www.databricks.com/product/business-intelligence
BI meets AI: https://www.databricks.com/resources/ebook/business-intelligence-meets-ai
Explore the only unified platform for agent systems: https://www.databricks.com/product/artificial-intelligence
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements

FAQs

How do you determine whether financial news is positive or negative?

S&P Global built proprietary sentiment models trained on data from internal financial analysts. Models assess whether news is positive, negative, and its significance and relevance to companies.

How are the sentiment models deployed on Databricks?

Models are trained using fine-tuned T5-Flan and deployed to Databricks Model Serving as serverless endpoints. This enables on-demand queries without managing compute infrastructure.

Can I process news data at this scale?

Yes. S&P Global's daily workflow on the Databricks Data and AI platform processes news articles for 10,000+ companies and generates 1.5M+ signals. The scalable architecture handles this volume reliably every day.

How do I surface model predictions in applications?

Use Databricks serverless SQL warehouses to expose predictions to downstream applications. S&P Global surfaces sentiment signals in real time through the Capital IQ Pro UI.

Full transcript

Okay. Hi everyone. Nice to see you all today. Thank you for taking the interest in my talk today. Um, so my background is in new product development. Um, and I work for Global as a data scientist. Um, today I'm going to talk to you a bit about our new sentiment product that we built out on the data bricks platform all the way from a PC to a client-f facing production application. Um, just before I get on to that, um, so I'm currently sharing a little bit of lung capacity.
So if I need to take a breath at some point, please just excuse me for a couple moments. Um, but I'll get straight back into it. So, as part of our presentation today, I'm going to take you a little bit through the development process, including um our model training and the model selection, and then I'll talk a little bit about moving into the production steps and bringing all of those things together. In the interest of time, I'm going to ask all questions.
The um we just wait till the end for those. Um there's some aotted time for questions at the end. Just a disclaimer from data bricks that says don't believe anything I say. So um a quick introduction to S&P Global and Market intelligence. Uh market intelligence is just one of five divisions of S&P Global. We are a leading market data provider to financial institutions and Capital IQ Pro is our flagship data and research platform on which we have several hundred,000 users.
In terms of our news offering, um we have about 100,000 users in the past 12 months of news. Um our main clients that we see using it are um research analysts, portfolio managers, investor relations and those in type in in account management roles. And we have thousands of news articles published every day on the platform um from three different sources. So we have our internal market intelligence journalism team and then we also have two external sources that you probably have heard of the Dow Jones and the Nikk news.
So those three sources provide a global coverage of um financial news for both public and private companies. And as we have such a huge volume of noise, our question to ourselves was how can we help our clients on their search and discovery journey to find that the relevant and important news to them? I've got a couple examples on the screen here of some news events. So, for example, we've got a billion dollar settlement from Toyota.
We've got a multi-billion dollar merger and acquisition. And then we also have a delayed regulatory filing. So, in terms of what we set out to build, we wanted to build three different products uh each for slightly different use cases. So first we wanted to build a front end for our existing business users of Cap IQ Pro um just to help them in that search and discovery journey that I've already spoken about and drive new drive usage of our news assets.
We also wanted to build a quantitative data set and target a new audience with this. So we have quite a high demand for alternative data sets from our hedge fund clients. Um and this is actually exactly the type of data that they're looking for. And in the database we have 1. 5 million signals for 10,000 public companies. And finally, we wanted to build a sentiment model um that was low cost to run and that we could run a high volume of data through frequently because views is published every every minute and um and very quickly.
So we wanted to make the model available to our clients outside of the application as well um so that users could test out the model on their own texts or in their own applications. So we also wanted to host the model on data bricks mob serving. Um so that lets us set up the model as an API endpoint and they can just query the model on demand. Okay. So to take you through our approach a little bit, I have a demo application here um just because it is uh there's lots of moving parts.
Um so this application was built just for the purposes of this presentation. So let me just zoom in a little bit so you can see everything. I think that's big enough. Okay. So we have up here the raw news article that we're that we're taking. Um and news is quite different to other textual data. So such as like earnings transcripts or broker research in that it's often much less structured. Um we also pull news in from multiple different sources.
So if it's been through a translation process, it can also be quite messy. news can also talk about multiple different topics and multiple different subjects. You know, it's not specific like perhaps an earnings transcript is. Um, so the first step after some data cleaning uh is entity recognition and sentence tokenization. At market intelligence, we have a really mature companies data set covering tens of thousands of public and private companies.
And we also have a well-established entity linking product that's called Nerd. So we use Nerd um for our entity recognition step. And um it's also available to clients if any of you are interested in that product. And then the sentence tokenization process breaks the article up and that the objective of that is um hopefully we get some sentences that are a bit more narrow in their scope in terms of topic and the entities that are mentioned in them.
You can see here the highlighted sentences are those are the ones that are company specific sentences. So once we have a set of company specific sentences, we can run them through our models. We actually have four different models that we've set up and they are you can see them in the table below. I'll go through each of them in detail but they are the is subject model, the sentiment model, the importance model and then the news categorization model.
Okay. So in the first sentence that was detected, so Taiwan semiconductor manufacturing, the world's largest contact manu contract manufacturer, posted a 36% increase in profits to a record high reported by Reuters. So our entity recognition process detected these two texts within that sentence and matched them to um some entities in our company's data set. And then the first model, the is subject predicts whether or not that company is the subject of the sentence.
You can see here that correctly Reuters is just the analyst. Um it's being predicted as false. Um so in our production application, we use this model just to filter out all of those instances of false. You know, we don't want to associate any signals with these companies that aren't subject. The second model uh which is our sentiment model and the focus of our talk um is a multiclassifier model and it predicts the probability that the sentence is one of three classes.
So positive, neutral and negative and then from those probability scores we're able to calculate like a more human readable polarity score that you see here. So from minus one to plus one. Um, so we've got some positive sentences and then we've got one down here that's a negative sentiment for Alibaba. Stagnation of Chinese economy will have a negative impact. Thirdly, we have an importance model. So the aim of this model was to just surface the most important news to our clients.
Um, and it aims to answer the question, how important is this statement to a financial analyst? Sorry, let me scroll down a bit so you can see that better. Um, so here's an example of one that's been given a very low score um for information about a company. And then our fourth model is a news categorization model designed to help users find specific news that they might be interested in. Let me scroll down so you can see a few more.
So those categories are financial results. So for news about company's profits or any other items that you might see on their balance sheet. We've got external factors for news such as unemployment, inflation, um or supply chain disruptions, things like that. And then we have strategy and partnerships for news perhaps about mergers and acquisitions. And then we also have products and services or product announcements.
So that was a super quick rundown into how we process an article and get company signals. So just to recap, data cleaning, entity recognition, sentence tokenization, and then we've got these company specific sentences that we can run through our models. So next I'd like to talk a little bit about the development process uh specifically in the model training and model selection. Um so there is a tradeoff between your model's complexity and the model and then the cost to train and run your model.
Um so I'm going to talk a bit about some of the interesting things that we found there and some of the decisions that we made. I'm just going to talk about our sentiment model as it's the focus of our product today, but same principles apply to all three, all four, sorry. So these sentences are all representative of some um issues that we needed our model to solve. You can see in the first example um sentence contains some domain specific language.
So this is sort of representative of the majority of sentences that's in our data set. You know they contain niche financial terms or acronyms that our model needs to understand both the context as well as like directionality of that term. So here the model needs to know that low net non-performing loans is a good thing. The second sentence, it also contains some domain specific language. Um, but it's flagged here because it contains multiple different different entities in different ways.
And this shows how the model needs to understand subject relative sentiment. So that this is bad news for credit Swiss but good news for the other banks. And finally, the third sentence mentions some environmental issues where a mine has been shut down due to the pres presence of chinchillaas. Um, this is the matter of opinion. Um, and just shows how that starts to enter the picture in in sentiment analysis. A great visualization here.
I'm sure you'll all agree. Um, but unfortunately for the chinchillaas, we need a a model that's purely catchless. Um, we want a model that determines sentiment from the point of view of profitability of the company. So, bad news for the chinchillaas, but the gold needs to win this one. Okay, so going back to the model uh the trade-off between your model's complexity and model cost. So we had a back fill of around 1. 5 million sentences that we needed to process and we had four different tasks that we wanted to um execute on them.
Um so running those through one of the frontier models would have considerable cost as well as processing time. Um so we went ahead with using training data from our internal financial analysts uh who very kindly labeled a lot of sentences for us um and we trained a selection of models um and we chose Google's plan T5 large um from that selection as it has the best accuracy after training. I'm not sure if any of you are familiar with the model but plan is a textto text model.
So we had to add a um classifier head on top of this so that we could output probabilities rather than text. Sorry. Okay. So um by training our own model we have like considerable benefits. I put them on the slide here. But firstly as the model is rel relatively small um fl large is just under three gigabytes um we can run this really cheap cheaply and quickly. We also found that we could easily teach the model new topics.
We needed as few as 10 sentences for each label to actually allow the model to learn that topic. um some of the smaller models. So perhaps like BERT, lots of people use that for sentiment analysis. In comparison, that's like 400 megabytes. We found that we like hit a limit really quickly on the topics that we could teach that. So thirdly, um since we trained it ourselves using our own training data, it reliably shares our own opinion of the labels, um we actually found with some of the frontier models when we were testing this out.
Um that they often quite struggled with some of the ESG and environmental issues. Um and on the subject of opinion, we actually found that quite a lot of our some of those sentences that are subtle in their their sentiment. Even there was some disagreement between our financial analysts labeling the data. So in our training data, each sentence was labeled multiple times and we took the majority of the labels. Um but yeah, it's just you know sentiment is subjective at the end of the day.
So finally more of a business perspective benefit um but training data that's super niche and super accurate is really valuable and as this model is trained on our own data um the model itself is proprietary and something that we can actually look to monetize in terms of the tradeoff and some of the negatives. So, we can't execute some of those more complex tasks. So, the subject relative the subject relative sentiment where there's multiple subjects being talked about in different ways um we can't do that with this model.
Um but as these sentences are more of a case scenario and not really the aim of our product, we sort of we came to terms with that one. Um secondly, we can't ask for reasoning. So um we don't have that text output. And even though that's useful for some use cases, we really wanted a quantitative output. So we weren't we weren't too bothered about that one. And then finally, um it won't immediately understand main specific language without training.
So if there were terms that we missed in our training data um or if there's some new language coming out new technical terms perhaps we would need to retrain our model. So because our data is like it mostly contains well established financial terms, we weren't that worried that we missed um any any uh domain specific language. Um but we'd be more than happy to retrain our model because it's relative low cost to do so anyway.
Okay, so on to bringing these pieces together into a production pipeline. So we have a daily ETL process that processes any newly published articles. Um the ETL is summarized into these three steps. First two that you're familiar with. Um although you can see from the screenshot of the workflow on data bricks is a little bit more complicated than just these three tech these three steps. Um but entity recognition and sentence tokenization to get our company specific sentences, our model inference and then we do some signal processing and some curating of our gold cables for our final application.
Okay, very quickly for those of you that like an architecture diagram, um but for those of you that don't, oh, lots of you like an architecture diagram. Great. Um, but for those of you that don't, I have the demo coming up in just a few moments. So, just bear with me for a couple more minutes. Um, so you can see the transition that we have from the bronze layer down here. I do have a pointer. Um, as we pull in the raw news from our three sources.
So, running that entity recognition, the sentence tokenization to get our company sentences. Moving into the silver layer as we run our four models. The is subject sentiment uh the importance and the classification. And so this gives us our raw signals. And then um moving into the gold layer as we do some signal processing and curation of our gold tables. So our application is a plotly dash app which directly connects to the gold tables via serverless SQL warehouses.
Um so that just pulls data on demand in the application and then each of our four models are also set up as on the model serving as API endpoints that can also be queried on demand. So I'd like to take you back to the original one of the original slides where where I spoke about what we set out to build. So firstly it was a front end that we wanted our business users to be able to um use to help them on their search and discovery journey.
We wanted a quantitative data set that we could target um our font users with. And then we wanted our proprietary models set up as APIs to be used by users on their own texts. this um so our application is uh in production in the capital IQ pro platform in a little bit it's good um so for those of you who are existing clients you will already have access there's a link in my slides you can yeah please go have a look at it um so the front end just as a reminder was built clients on their search and discovery journey um and displays news in a totally different way to the existing product.
And there's lots of different ways that you can interact with this application. So the first page, the market overview page provides um sort of a homepage for news over the past seven days. Financial news is actually positively biased mainly just due to the volume of news that we get from investor relations um reporting favorably about themselves really. Um but we can see how each sector has been performing in comparison to one another.
We can see that the consumer discretionary sector hasn't really been performing that well probably likely due to some of the recent news with tariffs and inflationary pressures. Um, but we can click through into each of these news categories, one of the outputs of our models. Um, and we can see how these things change. So, external factors pretty much the same. Financial results a little bit more negative. And then we when we get on to the products and services, um, these are nearly always positive.
Like I said, these are mostly news coming from investor relations. So the grid below uh shows the underlying data. So we have the article publish date, we've got the recognized entity, we've got the quote itself, the sentiment, and the categorization. From here, we can click into the Cap IQ Pro platform. If you are a user of Cap IQ, you will be familiar with this. So here we can go have a look at this company see what further information there is.
Um or we can click into the originating article as well. So we also have some functionality over here on the right where we can collect some feedback from our users. This was really important to me because as I mentioned um earlier um I really wanted to collect um data from our users when the model was incorrect. So they can either upvote this or downvote it. So this is what happens when you downvote and they can they can either provide the correct sentiment or the correct importance and then also how easy it was.
So like lots of these sentences like I said will be ambiguous or not possible to determine. Um so yeah we would we would use this to retrain the model and continuously improve our models. Okay. So let's say I am a technology analyst. looking for some news. and I can quickly order by the sentiment. So I can go look for some negative news here. I can see the Samsung they've had an operating loss um larger than the consensus and see that Apple has been downgraded.
Um, lots of things for me to explore here. I can also search for a specific company. So, say I want to find out more information about Samsung. I can check that in here. I can see all the different articles that coming out. So, we've got 20 articles in the past, well, 20 quotes in the past seven days. Perhaps I'm interested in a specific term. I can have a look at that. That's tariffs. I can see that Apple are um adversely affected by some tariffs.
I mean, they're taking up the whole page. Um but that's some companies have been positively affected. Nvidia, Taiwan, semiconductor manufacturing. They're expecting a record profit despite tariffs. So that's the homepage and like I said it can be used in many different ways. Moving on to the second page. So the company sentiment page lets us do a bit more of a deeper dive into um the news of a specific company. Just going to look.
So let's take a look at BYYD, the Chinese electric vehicle manufacturer. So we generate a time series. I did quickly mention the um signal processing step that happened um in our gold table in our gold layer. Um but we create this time series. So all of the articles have gone into this overall sentiment and then we also break it out by each of those news classes. So the time series is plotted on the left hand side. Um and then the quotes themselves all these dots are posted on the left on the right hand side.
Um the size of these of these articles is um is proportional to the importance. So that's one of the outputs of one of our other models. And just looking this as a quick glance. I can see that BYD, they've had some really good news in their financial results. Um, I can see their products and services, really good news there as well, but I can see that their external factors has been has been going down quite quite quite quickly.
So, external factors, I mean, I'm thinking for BYD, that's probably due to some inflationary pressures perhaps in in a weakening of the Chinese economy. Um, perhaps some EU tariffs coming in there. But we can have a look at each of these articles by clicking on them. So this one here. Yeah. So we've got some disinflationary pressures, BYD cutting prices, and yeah, we can quickly go through and look at that originating article.
Going back, let me just take that article off. Um, so we order the grid at the bottom just by the date and then the sentiment, but I can look at all the articles that have been published in the past day. Got lots of articles coming in. Um, yeah, mostly about price cuts coming in. Yeah. Okay. So, I'd just like to say that without the time series it, you know, if we're looking at this, it's a little bit difficult to work out what the overall trend of the company is.
Um, there's just so much news. Um, so I'm going to look at a company that has even more news than BYD. Let's have a look at Tesla, as we can all imagine, is going to is going to be huge. Um, I did have a look this morning, and Tesla actually had over um 100 signals just today. Um but again we can quickly see just from this time series you know there's a lot of external factors coming into play here as well as some of their financial results last year.
And yeah, you can just see how this data set is particularly valuable to as an alternative data set to our qualif client. I also find it really easy to find events um through this page. Um another example that I was looking at was crowd crowd strike. Um so not a lot of reporting going on just before their outage last year but you can see here the huge influx um followed by some negative sentiment in their financial results here have a those articles.
So that's it for the demo. Um, in terms of outcomes and next steps, we've seen clients use the application in a lot of different ways. So some users return to the app every single day um, and just look at the same company every day. Um, and other other users are looking by sector. They're doing a bit more research and spending some time there. But we have a very high um, retention rate of 75%. So our users are continually returning to the platform and we have a 22 minute average session time.
So people are browsing the news. For next steps apart from actually releasing some of these features into um the news product itself. Um I've shown how the application is really good at showing those events and the inflection points. I think if we were able to programmatically detect those and um in turn build a notification service for our clients that would be highly valuable. Um I also think that we could build different sentiment models for different personas.
So the obvious ones are the bull versus bear, but you know you could have sentiment models for people that um are environmentalist in investors. um to for those chinchillaas, but I have somebody uh representing them. Um and then finally, you can see that there's still a huge amount of news in the application. So, I think we need an additional model that would be able to detect forward-looking statements. A lot of the news is just news about news.
You know, stock price went up. So, if we were able to build a model that could extract the really valuable sentences, I think that would be great. Oh, and in terms of takeaways um from my presentation today, uh the main point would be that um our small our models, even though that they're smaller, sorry, our smaller models, they're trained on highly specific tasks, right? but they're they're running at very low cost and they can more than compete with some of the frontier models.
Um so I I think we should still keep considering those and we've invested heavily in curating that training data but in return our ETL and our application costs are less than a coffee a day. Um so yeah thank you for your time today. Uh any questions from the floor?

Learn more about the Databricks Data and AI platform.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.