Introduction
I had this idea that it’d be fun to look at all PubMed's articles from 2011 and extract country affiliation for each individual country. So I set out to do just that, but in addition to just look at 2011 I also looked at proportional change in publication 1980–2010 for the top 20 countries. The data for 2011 is visualized on a world map both as a bubble plot and as a heat map.
It turned that this project weren’t as straightforward as I first had anticipated. Mainly because PubMed’s affiliation field is a veritable mess with no apparent reporting standard. I imagine there are databases who are much more suited to this task than PubMed.
Method
There were 986 427 articles published in PubMed in 2011; so I,
naturally, used R to extract national publication counts. I did this by
downloading all citations into one 8.37 Gb XML-file, imported the
affiliation strings into MySQL
and then used R to extract country
affiliation using grep
and regular expressions
.
To avoid unnecessary manual work I used lists of country names, U.S state & university names, India states and Japan universities. I also looked at word frequencies for the affiliations strings that couldn’t be matched, and used this to make additional pattern lists. Lastly, I also used mail-suffixes to extract affiliation.
Reliability
To find out how many mismatches my script perfomed, I drew a random sample (n = 2000) and manually screened for errors. 22 errors were found, and all of them entailed the string being matched to the correct country plus one incorrect country, i.e. this string were matched to both UK and US (because "Bristol" is matched to UK):
Department of Biotransformation, Bristol-Myers Squibb, Route 206 and Province Line Road, Princeton, NJ 08543, USA. anthony.barros@bms.com
It’s not really a big problem since it only occurs in 1.1 % of the sample. The following countries had erroneous extra matches in my random screening sample:
1 2 3 4 5 6 7 8 9 10 11 | xfreq2Australia13Austria14China35France16India27Japan18Oman19SaintLucia210UK811USA2 |
Moreover 1.8% of the affiliation strings couldn’t be matched to any country, by analyzing the word frequencies for the unmatched strings, I concluded there didn’t appear to be any words that could be used to identify an significant amount of countries.
Additionally, I compared the number of hits for my top 20 countries to the corresponding hits when searching PubMed using rudimentary country queries. These were the results:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | searchRPubMeddiferror1UnitedStatesofAmerica[ad]ORUnitedStates[ad]ORUS[ad]ORUSA[ad]252796242050107460.042China[ad]776147635912550.023UK[ad]ORUnitedKingdom[ad]OREngland[ad]560695466114080.034Japan[ad]517404851832220.065Germany[ad]ORDeutschland[ad]481834440537780.086Canada[ad]319262938625400.087Italy[ad]31883309719120.038France[ad]312332883224010.089Spain[ad]249012126836330.1510Australia[ad]23807228919160.0411Korea[ad]2379623778180.0012India[ad]23371230932780.0113Netherlands[ad]20002196024000.0214Brazil[ad]ORBrasil[ad]18868182236450.0315Taiwan[ad]123241232130.0016Switzerland[ad]116851032013650.1217Sweden[ad]11018105065120.0518Belgium[ad]855181464050.0519Poland[ad]7914652613880.18 |
The measurement error is a bit high in countries like Poland, Switzerland and Spain. Nonetheless, I decided to use these PubMed quires to look at annual publications for these countries 1980–2010, using my PubMed trend script
Results
In total 202 countries were extracted, with the publication distribution
looking like this:
The same plot as above, but with the bubble size representing publications per capita.
And a plot of the top 20 countries publication percentages 1980–2010
I really don't know why USA had such a boost in the 1990s, perhaps it
got something to do with PubMed's indexing or maybe it's a consequence
of the "1990s United States boom"? The reason for the sudden
increase in US citations in the 90s is that prior to 1995 MEDLINE did
only record institution, city, and state including zip code for authors
affiliated with the US. So naturally, my queries will miss most US
publications prior to 1995. However, the apparent question is: when will
china surpass US in scientific output?
PS 1. Thanks to Allan Just for telling me how to extract centroid values from the country polygons.
PS 2. My plan is to do some more in-depth analyzes if this data, e.g. to look at publications per capita (in a vain attempt to increase Sweden's rankings) and some traditional statistical analysis. Update: Publications per capita added.