diff --git a/service/scripts/patents/data/eval_runs/.gitignore b/service/scripts/patents/data/eval_runs/.gitignore new file mode 100644 index 00000000..c8dacad2 --- /dev/null +++ b/service/scripts/patents/data/eval_runs/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!labeling_presentation.json diff --git a/service/scripts/patents/data/eval_runs/labeling_presentation.json b/service/scripts/patents/data/eval_runs/labeling_presentation.json new file mode 100644 index 00000000..06648f6e --- /dev/null +++ b/service/scripts/patents/data/eval_runs/labeling_presentation.json @@ -0,0 +1,1854 @@ +{ + "created_at": "presentation", + "goldset": "patents\\data\\keyword_patent_goldset_presentation.json", + "cases": [ + { + "id": "fuel-cell", + "description": "Fuel cell – expected IPC H01M", + "keywords": [ + { + "keyword": "fuel cell", + "keyword_level": "fine", + "topic_id": "https://openalex.org/T10409", + "topic_display_name": "Fuel Cells and Related Materials", + "subfield_name": "Electrical and Electronic Engineering", + "field_name": "Engineering", + "relevance_score": 1.0 + } + ], + "expected_ipc_prefixes": [ + "H01M" + ], + "mapping_status": "mapped", + "diagnostics": { + "search_path": "ipc", + "es_query_size_per_index": 100, + "raw_patents_after_dedupe": 195, + "filtered_by_ipc": 0, + "filtered_by_relevance_gate": 0, + "filtered_by_min_score": 0, + "passed_relevance_gate": 195, + "scored_before_cap": 195, + "returned": 100, + "max_patents_cap": 100, + "hit_return_cap": true, + "ipc_cluster_selections": [ + { + "topic_key": "T10409", + "subclass": "H01M", + "symbol": "H01M8/083", + "level": "subgroup", + "match_score": 0.9871, + "cluster_mass": 38.5803, + "relative_mass": 0.2423, + "reason": "dominant_relative_mass" + } + ] + }, + "instructions": "Set grade 0=irrelevant, 1=relevant, 2=highly relevant. Copy graded patent_ids into goldset relevance_grades.", + "candidates": [ + { + "patent_id": "US12087951", + "title": "Electrochemical cell integrates electrolysis and fuel cell functions", + "source": "USPTO", + "publication_year": "2024", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 4/90 20060101AFI20240910BHUS", + "C25B 11/081 20210101ALI20240910BHUS", + "H01M 8/0656 20160101ALI20240910BHUS", + "H01M 8/083 20160101ALI20240910BHUS" + ], + "cpc": [ + "H01M 4/9058 20130101FI20240910BHUS", + "C25B 11/081 20210101LI20240910BHUS", + "H01M 8/0656 20130101LI20240910BHUS", + "H01M 8/083 20130101LI20240910BHUS" + ], + "application_number": "17068023", + "current_rank": 1, + "grade": 2, + "notes": "Brennstoffzellenfunktion ist zentraler Gegenstand." + }, + { + "patent_id": "US10916789", + "title": "Alkaline exchange membrane fuel cells system having a bi-polar plate", + "source": "USPTO", + "publication_year": "2021", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/083 20160101AFI20210209BHUS", + "H01M 8/023 20160101ALI20210209BHUS", + "H01M 8/0289 20160101ALI20210209BHUS", + "H01M 8/0258 20160101ALI20210209BHUS", + "H01M 8/1062 20160101ALI20210209BHUS", + "H01M 8/1067 20160101ALI20210209BHUS", + "H01M 4/88 20060101ALI20210209BHUS", + "H01M 8/04119 20160101ALI20210209BHUS", + "H01M 8/0267 20160101ALN20210209BHUS", + "H01M 8/0234 20160101ALN20210209BHUS", + "H01M 8/0232 20160101ALN20210209BHUS", + "H01M 8/04029 20160101ALN20210209BHUS" + ], + "cpc": [ + "H01M 8/083 20130101FI20210209BHUS", + "H01M 4/881 20130101LI20210209BHUS", + "H01M 4/8807 20130101LI20210209BHUS", + "H01M 8/023 20130101LI20210209BHUS", + "H01M 8/0258 20130101LI20210209BHUS", + "H01M 8/0289 20130101LI20210209BHUS", + "H01M 8/04119 20130101LI20210209BHUS", + "H01M 8/1062 20130101LI20210209BHUS", + "H01M 8/1067 20130101LI20210209BHUS", + "H01M 8/0232 20130101LA20210209BHUS", + "H01M 8/0234 20130101LA20210209BHUS", + "H01M 8/0267 20130101LA20210209BHUS", + "H01M 8/04029 20130101LA20210209BHUS" + ], + "application_number": "16085648", + "current_rank": 2, + "grade": 2, + "notes": "Brennstoffzellensystem und Bipolarplatte sind zentral." + }, + { + "patent_id": "US10847825", + "title": "Chloralkali process", + "source": "USPTO", + "publication_year": "2020", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/06 20160101AFI20201124BHUS", + "C25B 1/46 20060101ALI20201124BHUS", + "C25B 9/10 20060101ALI20201124BHUS", + "C25B 13/08 20060101ALI20201124BHUS", + "H01M 8/083 20160101ALI20201124BHUS" + ], + "cpc": [ + "H01M 8/0693 20130101FI20201124BHUS", + "C25B 1/46 20130101LI20201124BHUS", + "C25B 9/10 20130101LI20201124BHUS", + "C25B 13/08 20130101LI20201124BHUS", + "H01M 8/083 20130101LI20201124BHUS" + ], + "application_number": "15740882", + "current_rank": 3, + "grade": 0, + "notes": "Chloralkali-Verfahren; Brennstoffzelle ist nicht der zentrale Patentgegenstand." + }, + { + "patent_id": "US10847812", + "title": "Separator plate, membrane electrode assembly and fuel cell", + "source": "USPTO", + "publication_year": "2020", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/0221 20160101AFI20201124BHUS", + "H01M 8/0258 20160101ALI20201124BHUS", + "H01M 8/1018 20160101ALI20201124BHUS", + "H01M 8/2418 20160101ALI20201124BHUS", + "H01M 8/0223 20160101ALI20201124BHUS", + "H01M 8/1004 20160101ALI20201124BHUS", + "H01M 8/1011 20160101ALN20201124BHUS", + "H01M 8/14 20060101ALN20201124BHUS", + "H01M 8/0267 20160101ALN20201124BHUS", + "H01M 8/083 20160101ALN20201124BHUS", + "H01M 8/124 20160101ALN20201124BHUS", + "H01M 8/086 20160101ALN20201124BHUS" + ], + "cpc": [ + "H01M 8/0221 20130101FI20201124BHUS", + "H01M 8/0223 20130101LI20201124BHUS", + "H01M 8/0258 20130101LI20201124BHUS", + "H01M 8/1004 20130101LI20201124BHUS", + "H01M 8/1018 20130101LI20201124BHUS", + "H01M 8/2418 20160201LI20201124BHUS", + "H01M 8/0267 20130101LA20201124BHUS", + "H01M 8/083 20130101LA20201124BHUS", + "H01M 8/086 20130101LA20201124BHUS", + "H01M 8/1011 20130101LA20201124BHUS", + "H01M 2008/1095 20130101LA20201124BHUS", + "H01M 2008/1293 20130101LA20201124BHUS", + "H01M 2008/147 20130101LA20201124BHUS" + ], + "application_number": "15852824", + "current_rank": 4, + "grade": 2, + "notes": "Brennstoffzellenkomponenten und Membran-Elektroden-Einheit sind zentral." + }, + { + "patent_id": "EP3549641", + "title": "FUEL TANK INERTING SYSTEM", + "source": "EPO", + "publication_year": "2019", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "A62C 3/06 20060101AFI20190820BHEP", + "A62C 3/08 20060101ALI20190820BHEP", + "A62C 99/00 20100101ALI20190820BHEP", + "B01D 53/32 20060101ALI20190820BHEP", + "H01M 8/00 20160101ALI20190820BHEP", + "H01M 8/083 20160101ALI20190820BHEP" + ], + "cpc": [], + "application_number": "19167279.9", + "current_rank": 5, + "grade": 0, + "notes": "Tank-Inertisierung; Brennstoffzellentechnik ist höchstens eine Teilkomponente." + }, + { + "patent_id": "US10297888", + "title": "Method and system for storing electricity in metals", + "source": "USPTO", + "publication_year": "2019", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 12/08 20060101AFI20190521BHUS", + "H01M 8/083 20160101ALI20190521BHUS", + "H01M 10/48 20060101ALI20190521BHUS", + "H01M 8/04828 20160101ALI20190521BHUS", + "H01M 10/44 20060101ALI20190521BHUS", + "H01M 8/18 20060101ALI20190521BHUS", + "H01M 8/04313 20160101ALI20190521BHUS", + "H01M 8/0444 20160101ALI20190521BHUS", + "H01M 8/04537 20160101ALI20190521BHUS" + ], + "cpc": [ + "H01M 12/08 20130101FI20190521BHUS", + "H01M 8/0444 20130101LI20190521BHUS", + "H01M 8/04537 20130101LI20190521BHUS", + "H01M 10/44 20130101LI20190521BHUS", + "H01M 10/48 20130101LI20190521BHUS", + "Y02E 60/128 20130101LA20190521BHUS" + ], + "application_number": "15053983", + "current_rank": 6, + "grade": 1, + "notes": "Elektrochemische Energiespeicherung mit technischer Nähe zu Brennstoffzellen." + }, + { + "patent_id": "US10096875", + "title": "System and method for increasing electrical efficiency of metal-air cell", + "source": "USPTO", + "publication_year": "2018", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 4/36 20060101AFI20181009BHUS", + "H01M 12/08 20060101ALI20181009BHUS", + "H01M 2/40 20060101ALI20181009BHUS", + "H01M 8/083 20160101ALI20181009BHUS", + "H01M 12/06 20060101ALI20181009BHUS" + ], + "cpc": [ + "H01M 12/08 20130101FI20181009BHUS", + "H01M 2/40 20130101LI20181009BHUS", + "H01M 8/083 20130101LI20181009BHUS", + "H01M 12/065 20130101LI20181009BHUS", + "H01M 2300/0014 20130101LA20181009BHUS", + "Y02E 60/128 20130101LA20181009BHUS" + ], + "application_number": "14779753", + "current_rank": 7, + "grade": 1, + "notes": "Metall-Luft-Zelle; elektrochemisch verwandt, aber keine klassische Brennstoffzelle." + }, + { + "patent_id": "US10006461", + "title": "Electrolyte circulation in fuel cells stacks with reduced leakage current", + "source": "USPTO", + "publication_year": "2018", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/08 20160101AFI20180626BHUS", + "F04D 13/10 20060101ALI20180626BHUS", + "H01M 8/083 20160101ALI20180626BHUS", + "H01M 8/24 20160101ALI20180626BHUS", + "H01M 8/2485 20160101ALI20180626BHUS", + "H01M 8/04276 20160101ALI20180626BHUS", + "H01M 8/04291 20160101ALI20180626BHUS", + "H01M 8/0289 20160101ALN20180626BHUS" + ], + "cpc": [ + "F04D 13/10 20130101FI20180626BHUS", + "H01M 8/04276 20130101LI20180626BHUS", + "H01M 8/04291 20130101LI20180626BHUS", + "H01M 8/083 20130101LI20180626BHUS", + "H01M 8/2445 20130101LI20180626BHUS", + "H01M 8/2485 20130101LI20180626BHUS", + "H01M 8/0289 20130101LA20180626BHUS" + ], + "application_number": "14402650", + "current_rank": 8, + "grade": 2, + "notes": "Elektrolytzirkulation in Brennstoffzellenstapeln ist zentral." + }, + { + "patent_id": "EP3188296", + "title": "ADJUSTMENT METHOD OF THE ELECTROLYTE COMPOSITION FOR A FUEL CELL SYSTEM", + "source": "EPO", + "publication_year": "2017", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/0656 20160101AFI20170424BHEP", + "C25B 1/04 20060101ALI20170424BHEP", + "H01M 8/083 20160101ALI20170424BHEP", + "H01M 16/00 20060101ALI20170424BHEP", + "H01M 8/04276 20160101ALI20170424BHEP", + "H01M 8/0444 20160101ALI20170424BHEP", + "H01M 8/04791 20160101ALI20170424BHEP" + ], + "cpc": [], + "application_number": "16207072.6", + "current_rank": 9, + "grade": 2, + "notes": "Elektrolytzusammensetzung für ein Brennstoffzellensystem ist zentral." + }, + { + "patent_id": "US09564651", + "title": "Liquid electrolyte fuel cell system", + "source": "USPTO", + "publication_year": "2017", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/08 20160101AFI20170207BHUS", + "H01M 8/04 20160101ALN20170207BHUS" + ], + "cpc": [ + "H01M 8/083 20130101FI20170207BHUS", + "H01M 8/04164 20130101LI20170207BHUS", + "H01M 8/04276 20130101LI20170207BHUS", + "H01M 8/0485 20130101LA20170207BHUS", + "H01M 2300/0014 20130101LA20170207BHUS", + "Y02E 60/50 20130101LA20170207BHUS" + ], + "application_number": "14370731", + "current_rank": 10, + "grade": 2, + "notes": "Flüssigelektrolyt-Brennstoffzellensystem ist zentral." + }, + { + "patent_id": "US09368819", + "title": "Systems and methods of securing immunity to air CO2 in alkaline fuel cells", + "source": "USPTO", + "publication_year": "2016", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/06 20060101AFI20160614BHUS", + "H01M 8/08 20160101ALI20160614BHUS", + "H01M 8/10 20160101ALI20160614BHUS", + "H01M 10/46 20060101ALI20160614BHUS", + "H02J 7/00 20060101ALI20160614BHUS" + ], + "cpc": [ + "H01M 8/0668 20130101FI20160614BHUS", + "H01M 8/0693 20130101LI20160614BHUS", + "H01M 8/083 20130101LI20160614BHUS", + "H01M 8/1002 20130101LI20160614BHUS", + "H01M 10/46 20130101LI20160614BHUS", + "H02J 7/0063 20130101LI20160614BHUS", + "H01M 2300/0014 20130101LA20160614BHUS", + "H01M 2300/0082 20130101LA20160614BHUS" + ], + "application_number": "14957760", + "current_rank": 11, + "grade": 2, + "notes": "Schutz alkalischer Brennstoffzellen vor CO2 ist zentral." + }, + { + "patent_id": "US09214691", + "title": "Systems and methods of securing immunity to air CO2 in alkaline fuel cells", + "source": "USPTO", + "publication_year": "2015", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/06 20060101AFI20151215BHUS", + "H01M 8/08 20060101ALI20151215BHUS" + ], + "cpc": [ + "H01M 8/0668 20130101FI20151215BHUS", + "H01M 8/083 20130101LI20151215BHUS", + "Y02E 60/50 20130101LA20151215BHUS" + ], + "application_number": "14552700", + "current_rank": 12, + "grade": 2, + "notes": "Schutz alkalischer Brennstoffzellen vor CO2 ist zentral." + }, + { + "patent_id": "US09083025", + "title": "Fuel cell stacks", + "source": "USPTO", + "publication_year": "2015", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/04 20060101AFI20150714BHUS", + "H01M 8/08 20060101ALI20150714BHUS", + "H01M 8/24 20060101ALI20150714BHUS" + ], + "cpc": [ + "H01M 8/08 20130101FI20150714BHUS", + "H01M 8/083 20130101LI20150714BHUS", + "H01M 8/2445 20130101LI20150714BHUS", + "Y02E 60/50 20130101LA20150714BHUS" + ], + "application_number": "13695453", + "current_rank": 13, + "grade": 2, + "notes": "Brennstoffzellenstapel sind zentraler Gegenstand." + }, + { + "patent_id": "US08974984", + "title": "Power generation system using an alkaline fuel cell and fuel gas for alkaline fuel cells used in the system", + "source": "USPTO", + "publication_year": "2015", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/22 20060101AFI20150310BHUS", + "H01M 8/08 20060101ALI20150310BHUS" + ], + "cpc": [ + "H01M 8/083 20130101FI20150310BHUS", + "H01M 8/222 20130101LI20150310BHUS", + "Y02E 60/50 20130101LA20150310BHUS" + ], + "application_number": "13387130", + "current_rank": 14, + "grade": 2, + "notes": "Stromerzeugung mit alkalischer Brennstoffzelle ist zentral." + }, + { + "patent_id": "US08974983", + "title": "Electrical conductive member and polymer electrolyte fuel cell using the same", + "source": "USPTO", + "publication_year": "2015", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/10 20060101AFI20150310BHUS", + "H01M 8/02 20060101ALI20150310BHUS", + "H01M 8/08 20060101ALN20150310BHUS", + "H01M 8/12 20060101ALN20150310BHUS", + "H01M 8/14 20060101ALN20150310BHUS" + ], + "cpc": [ + "H01M 8/0213 20130101FI20150310BHUS", + "H01M 8/0228 20130101LI20150310BHUS", + "H01M 8/0254 20130101LA20150310BHUS", + "H01M 8/083 20130101LA20150310BHUS", + "H01M 8/086 20130101LA20150310BHUS", + "H01M 2008/1095 20130101LA20150310BHUS", + "H01M 2008/1293 20130101LA20150310BHUS", + "H01M 2008/147 20130101LA20150310BHUS", + "Y02E 60/50 20130101LA20150310BHUS", + "Y02E 60/525 20130101LA20150310BHUS", + "Y02E 60/526 20130101LA20150310BHUS" + ], + "application_number": "13130979", + "current_rank": 15, + "grade": 2, + "notes": "Leitfähiges Bauteil für Polymer-Elektrolyt-Brennstoffzellen ist zentral." + }, + { + "patent_id": "US08895198", + "title": "Systems and methods of securing immunity to air CO2 in alkaline fuel cells", + "source": "USPTO", + "publication_year": "2014", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/06 20060101AFI20141125BHUS", + "H01M 8/08 20060101ALI20141125BHUS" + ], + "cpc": [ + "H01M 8/0668 20130101FI20141125BHUS", + "Y02E 60/50 20130101LA20141125BHUS", + "H01M 8/083 20130101LI20141125BHUS" + ], + "application_number": "12862746", + "current_rank": 16, + "grade": 2, + "notes": "Schutz alkalischer Brennstoffzellen vor CO2 ist zentral." + }, + { + "patent_id": "US08846266", + "title": "Carbohydrate anode for fuel cell and battery applications", + "source": "USPTO", + "publication_year": "2014", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/08 20060101AFI20140930BHUS", + "H01M 8/22 20060101ALI20140930BHUS", + "H01M 4/96 20060101ALI20140930BHUS" + ], + "cpc": [ + "H01M 8/083 20130101FI20140930BHUS", + "H01M 4/96 20130101LI20140930BHUS", + "H01M 2300/0014 20130101LA20140930BHUS", + "Y02E 60/50 20130101LA20140930BHUS" + ], + "application_number": "12769598", + "current_rank": 17, + "grade": 2, + "notes": "Anode für Brennstoffzellenanwendungen ist zentral." + }, + { + "patent_id": "US12512484", + "title": "Alkaline fuel cell electrode catalyst, alkaline fuel cell, and methods of making and using an electrode catalyst", + "source": "USPTO", + "publication_year": "2025", + "match_score": 0.9423, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 4/90 20060101AFI20251230BHUS", + "H01M 4/88 20060101ALI20251230BHUS", + "H01M 8/083 20160101ALI20251230BHUS", + "H01M 4/86 20060101ALN20251230BHUS" + ], + "cpc": [ + "H01M 4/9016 20130101FI20251230BHUS", + "H01M 4/8882 20130101LI20251230BHUS", + "H01M 8/083 20130101LI20251230BHUS", + "H01M 2004/8689 20130101LA20251230BHUS" + ], + "application_number": "18081485", + "current_rank": 18, + "grade": 2, + "notes": "Elektrodenkatalysator und alkalische Brennstoffzelle sind zentral." + }, + { + "patent_id": "US12412912", + "title": "Electrochemical amine/nitrile redox method for ambient hydrogen storage", + "source": "USPTO", + "publication_year": "2025", + "match_score": 0.9423, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/04082 20160101AFI20250909BHUS", + "H01M 8/04089 20160101ALI20250909BHUS", + "H01M 8/083 20160101ALI20250909BHUS", + "H01M 8/2457 20160101ALI20250909BHUS" + ], + "cpc": [ + "H01M 8/04216 20130101FI20250909BHUS", + "H01M 8/04089 20130101LI20250909BHUS", + "H01M 8/083 20130101LI20250909BHUS", + "H01M 8/2457 20160201LI20250909BHUS", + "H01M 2300/0014 20130101LA20250909BHUS" + ], + "application_number": "17875171", + "current_rank": 19, + "grade": 1, + "notes": "Wasserstoffspeicherung mit Nähe zu Brennstoffzellensystemen, aber nicht zentral." + }, + { + "patent_id": "US12368175", + "title": "Solid oxide fuel cell comprising anode alkaline-based promoter loaded", + "source": "USPTO", + "publication_year": "2025", + "match_score": 0.9423, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/083 20160101AFI20250722BHUS", + "H01M 4/86 20060101ALI20250722BHUS", + "H01M 4/90 20060101ALI20250722BHUS", + "H01M 8/0217 20160101ALI20250722BHUS", + "H01M 8/12 20160101ALI20250722BHUS", + "H01M 8/1246 20160101ALI20250722BHUS" + ], + "cpc": [ + "H01M 8/083 20130101FI20250722BHUS", + "H01M 4/8621 20130101LI20250722BHUS", + "H01M 4/9033 20130101LI20250722BHUS", + "H01M 8/0217 20130101LI20250722BHUS", + "H01M 8/1246 20130101LI20250722BHUS", + "H01M 2008/1293 20130101LA20250722BHUS" + ], + "application_number": "18659291", + "current_rank": 20, + "grade": 2, + "notes": "Festoxid-Brennstoffzelle ist zentraler Gegenstand." + } + ], + "relevance_grades": { + "US12087951": 2, + "US10916789": 2, + "US10847825": 0, + "US10847812": 2, + "EP3549641": 0, + "US10297888": 1, + "US10096875": 1, + "US10006461": 2, + "EP3188296": 2, + "US09564651": 2, + "US09368819": 2, + "US09214691": 2, + "US09083025": 2, + "US08974984": 2, + "US08974983": 2, + "US08895198": 2, + "US08846266": 2, + "US12512484": 2, + "US12412912": 1, + "US12368175": 2 + }, + "relevant_patent_ids": [ + "US12087951", + "US10916789", + "US10847812", + "US10297888", + "US10096875", + "US10006461", + "EP3188296", + "US09564651", + "US09368819", + "US09214691", + "US09083025", + "US08974984", + "US08974983", + "US08895198", + "US08846266", + "US12512484", + "US12412912", + "US12368175" + ], + "irrelevant_patent_ids": [ + "US10847825", + "EP3549641" + ] + }, + { + "id": "speech-recognition", + "description": "Speech recognition – expected IPC G10L", + "keywords": [ + { + "keyword": "speech recognition", + "keyword_level": "fine", + "topic_id": "https://openalex.org/T10201", + "topic_display_name": "Speech Recognition and Synthesis", + "subfield_name": "Artificial Intelligence", + "field_name": "Computer Science", + "relevance_score": 1.0 + } + ], + "expected_ipc_prefixes": [ + "G10L" + ], + "mapping_status": "mapped", + "diagnostics": { + "search_path": "ipc", + "es_query_size_per_index": 100, + "raw_patents_after_dedupe": 198, + "filtered_by_ipc": 4, + "filtered_by_relevance_gate": 16, + "filtered_by_min_score": 0, + "passed_relevance_gate": 178, + "scored_before_cap": 178, + "returned": 100, + "max_patents_cap": 100, + "hit_return_cap": true, + "ipc_cluster_selections": [ + { + "topic_key": "T10201", + "subclass": "G10L", + "symbol": "G10L17/14", + "level": "subgroup", + "match_score": 0.8808, + "cluster_mass": 22.8896, + "relative_mass": 0.4213, + "reason": "dominant_relative_mass" + }, + { + "topic_key": "T10201", + "subclass": "H04M", + "symbol": "H04M2201/405", + "level": "subgroup", + "match_score": 0.8556, + "cluster_mass": 6.5654, + "relative_mass": 0.1209, + "reason": "cumulative_mass_tail" + } + ] + }, + "instructions": "Set grade 0=irrelevant, 1=relevant, 2=highly relevant. Copy graded patent_ids into goldset relevance_grades.", + "candidates": [ + { + "patent_id": "US12137183", + "title": "Semiautomated relay method and apparatus", + "source": "USPTO", + "publication_year": "2024", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G10L 15/00 20130101AFI20241105BHUS", + "G10L 15/01 20130101ALI20241105BHUS", + "G10L 15/06 20130101ALI20241105BHUS", + "G10L 15/22 20060101ALI20241105BHUS", + "G10L 15/26 20060101ALI20241105BHUS", + "G10L 21/10 20130101ALI20241105BHUS", + "H04M 1/247 20210101ALI20241105BHUS", + "H04M 1/72478 20210101ALI20241105BHUS", + "H04M 3/42 20060101ALI20241105BHUS", + "H04W 4/12 20090101ALI20241105BHUS", + "H04W 4/16 20090101ALI20241105BHUS", + "H04M 3/533 20060101ALN20241105BHUS" + ], + "cpc": [ + "H04M 3/42391 20130101FI20241105BHUS", + "G10L 15/01 20130101LI20241105BHUS", + "G10L 15/06 20130101LI20241105BHUS", + "G10L 15/22 20130101LI20241105BHUS", + "G10L 15/26 20130101LI20241105BHUS", + "G10L 21/10 20130101LI20241105BHUS", + "H04M 1/2475 20130101LI20241105BHUS", + "H04M 1/72478 20210101LI20241105BHUS", + "H04W 4/12 20130101LI20241105BHUS", + "H04W 4/16 20130101LI20241105BHUS", + "H04M 3/53366 20130101LA20241105BHUS", + "H04M 2201/18 20130101LA20241105BHUS", + "H04M 2201/40 20130101LA20241105BHUS", + "H04M 2201/405 20130101LA20241105BHUS" + ], + "application_number": "18123557", + "current_rank": 1, + "grade": 2, + "notes": "Spracherkennung und Transkription im Relay-System sind zentral." + }, + { + "patent_id": "US11627221", + "title": "Semiautomated relay method and apparatus", + "source": "USPTO", + "publication_year": "2023", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G10L 15/00 20130101AFI20230411BHUS", + "H04M 3/42 20060101ALI20230411BHUS", + "G10L 15/06 20130101ALI20230411BHUS", + "G10L 15/22 20060101ALI20230411BHUS", + "H04M 1/247 20210101ALI20230411BHUS", + "H04M 1/72478 20210101ALI20230411BHUS", + "G10L 15/26 20060101ALI20230411BHUS", + "H04W 4/12 20090101ALI20230411BHUS", + "H04W 4/16 20090101ALI20230411BHUS", + "G10L 21/10 20130101ALI20230411BHUS", + "G10L 15/01 20130101ALI20230411BHUS", + "H04M 3/533 20060101ALN20230411BHUS" + ], + "cpc": [ + "H04M 3/42391 20130101FI20230411BHUS", + "G10L 15/01 20130101LI20230411BHUS", + "G10L 15/06 20130101LI20230411BHUS", + "G10L 15/22 20130101LI20230411BHUS", + "G10L 15/26 20130101LI20230411BHUS", + "G10L 21/10 20130101LI20230411BHUS", + "H04M 1/2475 20130101LI20230411BHUS", + "H04M 1/72478 20210101LI20230411BHUS", + "H04W 4/12 20130101LI20230411BHUS", + "H04W 4/16 20130101LI20230411BHUS", + "H04M 3/53366 20130101LA20230411BHUS", + "H04M 2201/18 20130101LA20230411BHUS", + "H04M 2201/40 20130101LA20230411BHUS", + "H04M 2201/405 20130101LA20230411BHUS" + ], + "application_number": "16911691", + "current_rank": 2, + "grade": 2, + "notes": "Spracherkennung und Transkription im Relay-System sind zentral." + }, + { + "patent_id": "US11601548", + "title": "Captioned telephone services improvement", + "source": "USPTO", + "publication_year": "2023", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/42 20060101AFI20230307BHUS", + "G10L 15/26 20060101ALI20230307BHUS", + "H04M 3/436 20060101ALI20230307BHUS" + ], + "cpc": [ + "H04M 3/42382 20130101FI20230307BHUS", + "G10L 15/26 20130101LI20230307BHUS", + "H04M 3/42391 20130101LI20230307BHUS", + "H04M 3/436 20130101LI20230307BHUS", + "H04M 2201/405 20130101LA20230307BHUS" + ], + "application_number": "17184006", + "current_rank": 3, + "grade": 2, + "notes": "Automatische Transkription für Telefondienste ist zentral." + }, + { + "patent_id": "US10742805", + "title": "Semiautomated relay method and apparatus", + "source": "USPTO", + "publication_year": "2020", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/42 20060101AFI20200811BHUS", + "G10L 15/06 20130101ALI20200811BHUS", + "G10L 15/22 20060101ALI20200811BHUS", + "H04M 1/247 20060101ALI20200811BHUS", + "H04M 1/725 20060101ALI20200811BHUS", + "G10L 15/26 20060101ALI20200811BHUS", + "H04W 4/12 20090101ALI20200811BHUS", + "H04W 4/16 20090101ALI20200811BHUS", + "G10L 21/10 20130101ALI20200811BHUS", + "G10L 15/01 20130101ALI20200811BHUS", + "H04M 3/533 20060101ALN20200811BHUS" + ], + "cpc": [ + "H04M 3/42391 20130101FI20200811BHUS", + "G10L 15/01 20130101LI20200811BHUS", + "G10L 15/06 20130101LI20200811BHUS", + "G10L 15/22 20130101LI20200811BHUS", + "G10L 15/26 20130101LI20200811BHUS", + "G10L 15/265 20130101LI20200811BHUS", + "G10L 21/10 20130101LI20200811BHUS", + "H04M 1/2475 20130101LI20200811BHUS", + "H04M 1/72591 20130101LI20200811BHUS", + "H04W 4/12 20130101LI20200811BHUS", + "H04W 4/16 20130101LI20200811BHUS", + "H04M 3/53366 20130101LA20200811BHUS", + "H04M 2201/18 20130101LA20200811BHUS", + "H04M 2201/40 20130101LA20200811BHUS", + "H04M 2201/405 20130101LA20200811BHUS" + ], + "application_number": "15477958", + "current_rank": 4, + "grade": 2, + "notes": "Spracherkennung und Transkription im Relay-System sind zentral." + }, + { + "patent_id": "US09769314", + "title": "Personal voice-based information retrieval system", + "source": "USPTO", + "publication_year": "2017", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/493 20060101AFI20170919BHUS", + "G06F 3/16 20060101ALI20170919BHUS", + "G10L 15/26 20060101ALI20170919BHUS", + "G06F 17/30 20060101ALI20170919BHUS", + "G10L 15/08 20060101ALI20170919BHUS", + "G10L 25/54 20130101ALI20170919BHUS", + "G10L 13/08 20130101ALI20170919BHUS", + "G10L 15/02 20060101ALI20170919BHUS", + "G10L 15/22 20060101ALI20170919BHUS", + "G10L 17/24 20130101ALN20170919BHUS", + "G10L 15/06 20130101ALN20170919BHUS", + "H04L 29/08 20060101ALN20170919BHUS" + ], + "cpc": [ + "H04M 3/4938 20130101FI20170919BHUS", + "G06F 3/167 20130101LI20170919BHUS", + "G06F 17/30769 20130101LI20170919BHUS", + "G06F 17/30861 20130101LI20170919BHUS", + "G10L 13/08 20130101LI20170919BHUS", + "G10L 15/02 20130101LI20170919BHUS", + "G10L 15/08 20130101LI20170919BHUS", + "G10L 15/22 20130101LI20170919BHUS", + "G10L 15/26 20130101LI20170919BHUS", + "G10L 25/54 20130101LI20170919BHUS", + "H04L 67/02 20130101LI20170919BHUS", + "G10L 15/06 20130101LA20170919BHUS", + "G10L 17/24 20130101LA20170919BHUS", + "G10L 2015/223 20130101LA20170919BHUS", + "H04L 29/0809 20130101LA20170919BHUS", + "H04M 2201/39 20130101LA20170919BHUS", + "H04M 2201/40 20130101LA20170919BHUS", + "H04M 2201/405 20130101LA20170919BHUS", + "H04M 2207/40 20130101LA20170919BHUS" + ], + "application_number": "15193517", + "current_rank": 5, + "grade": 2, + "notes": "Sprachbasierte Informationssuche mit Spracherkennung ist zentral." + }, + { + "patent_id": "US09685159", + "title": "Speaker recognition from telephone calls", + "source": "USPTO", + "publication_year": "2017", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G10L 17/00 20130101AFI20170620BHUS", + "G10L 17/02 20130101ALI20170620BHUS", + "G10L 17/06 20130101ALI20170620BHUS", + "H04M 3/22 20060101ALN20170620BHUS", + "H04M 3/436 20060101ALN20170620BHUS" + ], + "cpc": [ + "G10L 17/00 20130101FI20170620BHUS", + "G10L 17/02 20130101LI20170620BHUS", + "G10L 17/06 20130101LI20170620BHUS", + "H04M 3/2281 20130101LA20170620BHUS", + "H04M 3/436 20130101LA20170620BHUS", + "H04M 2201/405 20130101LA20170620BHUS", + "H04M 2201/41 20130101LA20170620BHUS" + ], + "application_number": "14817182", + "current_rank": 6, + "grade": 1, + "notes": "Sprechererkennung ist eng verwandt, aber nicht klassische Spracherkennung." + }, + { + "patent_id": "US09377992", + "title": "Personal voice-based information retrieval system", + "source": "USPTO", + "publication_year": "2016", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G06F 3/16 20060101AFI20160628BHUS", + "G10L 15/26 20060101ALI20160628BHUS", + "G10L 17/24 20130101ALN20160628BHUS", + "G10L 15/06 20130101ALN20160628BHUS", + "H04M 3/493 20060101ALN20160628BHUS", + "H04L 29/08 20060101ALN20160628BHUS" + ], + "cpc": [ + "G06F 3/167 20130101FI20160628BHUS", + "G10L 15/26 20130101LI20160628BHUS", + "G10L 15/06 20130101LA20160628BHUS", + "G10L 17/24 20130101LA20160628BHUS", + "H04L 29/0809 20130101LA20160628BHUS", + "H04M 3/4938 20130101LA20160628BHUS", + "H04M 2201/405 20130101LA20160628BHUS", + "H04M 2207/40 20130101LA20160628BHUS" + ], + "application_number": "12787801", + "current_rank": 7, + "grade": 2, + "notes": "Sprachbasierte Informationssuche mit Spracherkennung ist zentral." + }, + { + "patent_id": "US09736309", + "title": "Real-time transcription and interaction with a caller based on the transcription", + "source": "USPTO", + "publication_year": "2017", + "match_score": 0.862, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 1/64 20060101AFI20170815BHUS", + "H04M 3/527 20060101ALI20170815BHUS", + "G10L 15/26 20060101ALI20170815BHUS", + "G10L 13/08 20130101ALI20170815BHUS", + "G10L 15/30 20130101ALI20170815BHUS" + ], + "cpc": [ + "H04M 3/527 20130101FI20170815BHUS", + "G10L 13/08 20130101LI20170815BHUS", + "G10L 15/26 20130101LI20170815BHUS", + "G10L 15/30 20130101LI20170815BHUS", + "H04M 2201/39 20130101LA20170815BHUS", + "H04M 2201/40 20130101LA20170815BHUS", + "H04M 2201/60 20130101LA20170815BHUS" + ], + "application_number": "15241555", + "current_rank": 8, + "grade": 2, + "notes": "Echtzeit-Transkription gesprochener Sprache ist zentral." + }, + { + "patent_id": "US12579986", + "title": "Systems and methods for distinguishing between human speech and machine generated speech", + "source": "USPTO", + "publication_year": "2026", + "match_score": 0.8285, + "ipc_score": 0.8808, + "topic_score": 1.0, + "text_score": 0.3333333333333333, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "G10L17/14" + ], + "text_retrieval": false, + "ipc": [ + "G10L 17/14 20130101AFI20260317BHUS", + "G06F 40/30 20200101ALI20260317BHUS", + "G10L 15/26 20060101ALI20260317BHUS", + "G10L 17/00 20130101ALI20260317BHUS", + "G10L 17/02 20130101ALI20260317BHUS", + "G10L 17/22 20130101ALI20260317BHUS", + "G10L 17/26 20130101ALI20260317BHUS", + "H04M 3/51 20060101ALI20260317BHUS" + ], + "cpc": [ + "G10L 17/14 20130101FI20260317BHUS", + "G06F 40/30 20200101LI20260317BHUS", + "G10L 15/26 20130101LI20260317BHUS", + "G10L 17/00 20130101LI20260317BHUS", + "G10L 17/02 20130101LI20260317BHUS", + "G10L 17/22 20130101LI20260317BHUS", + "H04M 3/5166 20130101LI20260317BHUS" + ], + "application_number": "18602835", + "current_rank": 9, + "grade": 1, + "notes": "Klassifikation menschlicher und synthetischer Sprache ist fachlich angrenzend." + }, + { + "patent_id": "US10397400", + "title": "Electronic call assistant based on a caller-status and a callee-status", + "source": "USPTO", + "publication_year": "2019", + "match_score": 0.8285, + "ipc_score": 0.8808, + "topic_score": 1.0, + "text_score": 0.3333333333333333, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "G10L17/14" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/493 20060101AFI20190827BHUS", + "G10L 17/14 20130101ALI20190827BHUS", + "A61B 5/00 20060101ALN20190827BHUS", + "G10L 15/26 20060101ALN20190827BHUS" + ], + "cpc": [ + "H04M 3/493 20130101FI20190827BHUS", + "G10L 17/14 20130101LI20190827BHUS", + "H04M 3/4936 20130101LI20190827BHUS", + "A61B 5/6802 20130101LA20190827BHUS", + "G10L 15/265 20130101LA20190827BHUS", + "H04M 2201/405 20130101LA20190827BHUS" + ], + "application_number": "15802695", + "current_rank": 10, + "grade": 0, + "notes": "Allgemeiner elektronischer Anrufassistent; Spracherkennung ist nicht zentral." + }, + { + "patent_id": "US09369577", + "title": "Transparent voice registration and verification method and system", + "source": "USPTO", + "publication_year": "2016", + "match_score": 0.8285, + "ipc_score": 0.8808, + "topic_score": 1.0, + "text_score": 0.3333333333333333, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "G10L17/14" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/493 20060101AFI20160614BHUS", + "G10L 17/14 20130101ALI20160614BHUS", + "H04M 3/42 20060101ALI20160614BHUS", + "H04M 3/51 20060101ALI20160614BHUS", + "H04M 3/38 20060101ALI20160614BHUS", + "G10L 17/04 20130101ALN20160614BHUS" + ], + "cpc": [ + "H04M 3/4936 20130101FI20160614BHUS", + "G10L 17/14 20130101LI20160614BHUS", + "H04M 3/385 20130101LI20160614BHUS", + "H04M 3/42221 20130101LI20160614BHUS", + "H04M 3/51 20130101LI20160614BHUS", + "G10L 17/04 20130101LA20160614BHUS", + "H04M 2201/36 20130101LA20160614BHUS", + "H04M 2201/41 20130101LA20160614BHUS", + "H04M 2203/6045 20130101LA20160614BHUS" + ], + "application_number": "14526933", + "current_rank": 11, + "grade": 1, + "notes": "Stimmregistrierung und Sprecherverifikation sind fachlich angrenzend." + }, + { + "patent_id": "US12615335", + "title": "Voice fingerprinting system for detecting hoax emergency reports", + "source": "USPTO", + "publication_year": "2026", + "match_score": 0.8134, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.3333333333333333, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G10L 15/00 20130101AFI20260428BHUS", + "G10L 17/02 20130101ALI20260428BHUS", + "G10L 17/04 20130101ALI20260428BHUS", + "G10L 17/06 20130101ALI20260428BHUS", + "G10L 17/18 20130101ALI20260428BHUS", + "G10L 25/18 20130101ALI20260428BHUS", + "G10L 25/24 20130101ALI20260428BHUS", + "H04M 3/22 20060101ALI20260428BHUS", + "H04M 3/51 20060101ALI20260428BHUS", + "G06Q 50/26 20120101ALN20260428BHUS" + ], + "cpc": [ + "H04M 3/5116 20130101FI20260428BHUS", + "G10L 17/02 20130101LI20260428BHUS", + "G10L 17/04 20130101LI20260428BHUS", + "G10L 17/06 20130101LI20260428BHUS", + "G10L 17/18 20130101LI20260428BHUS", + "G10L 25/18 20130101LI20260428BHUS", + "G10L 25/24 20130101LI20260428BHUS", + "H04M 3/2281 20130101LI20260428BHUS", + "H04M 3/5175 20130101LI20260428BHUS", + "H04M 3/5191 20130101LI20260428BHUS", + "G06Q 50/265 20130101LA20260428BHUS", + "H04M 2201/405 20130101LA20260428BHUS" + ], + "application_number": "18732780", + "current_rank": 12, + "grade": 1, + "notes": "Voice-Fingerprinting und Sprechererkennung sind fachlich angrenzend." + }, + { + "patent_id": "US12592239", + "title": "Active voice liveness detection system", + "source": "USPTO", + "publication_year": "2026", + "match_score": 0.8134, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.3333333333333333, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G10L 17/26 20130101AFI20260331BHUS", + "G06F 21/32 20130101ALI20260331BHUS", + "G10L 15/02 20060101ALI20260331BHUS", + "G10L 17/00 20130101ALI20260331BHUS", + "G10L 17/02 20130101ALI20260331BHUS", + "G10L 17/04 20130101ALI20260331BHUS", + "G10L 17/08 20130101ALI20260331BHUS", + "G10L 17/18 20130101ALI20260331BHUS", + "G10L 25/30 20130101ALI20260331BHUS", + "G10L 25/51 20130101ALI20260331BHUS", + "G10L 25/60 20130101ALI20260331BHUS", + "H04M 3/22 20060101ALI20260331BHUS", + "H04M 3/42 20060101ALI20260331BHUS", + "H04M 3/51 20060101ALI20260331BHUS" + ], + "cpc": [ + "G10L 17/26 20130101FI20260331BHUS", + "G06F 21/32 20130101LI20260331BHUS", + "G10L 15/02 20130101LI20260331BHUS", + "G10L 17/00 20130101LI20260331BHUS", + "G10L 17/02 20130101LI20260331BHUS", + "G10L 17/04 20130101LI20260331BHUS", + "G10L 17/08 20130101LI20260331BHUS", + "G10L 17/18 20130101LI20260331BHUS", + "G10L 25/51 20130101LI20260331BHUS", + "G10L 25/60 20130101LI20260331BHUS", + "H04M 3/2281 20130101LI20260331BHUS", + "H04M 3/42221 20130101LI20260331BHUS", + "H04M 3/5175 20130101LI20260331BHUS", + "H04M 3/5183 20130101LI20260331BHUS", + "G10L 25/30 20130101LA20260331BHUS", + "H04M 2201/405 20130101LA20260331BHUS" + ], + "application_number": "18646310", + "current_rank": 13, + "grade": 1, + "notes": "Voice-Liveness-Erkennung ist biometrisch verwandt, aber keine klassische Spracherkennung." + }, + { + "patent_id": "US09571617", + "title": "Controlling mute function on telephone", + "source": "USPTO", + "publication_year": "2017", + "match_score": 0.8134, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.3333333333333333, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/00 20060101AFI20170214BHUS", + "H04M 1/19 20060101ALI20170214BHUS", + "H04M 1/247 20060101ALI20170214BHUS", + "G10L 15/22 20060101ALI20170214BHUS", + "G10L 17/04 20130101ALI20170214BHUS", + "G10L 17/06 20130101ALI20170214BHUS", + "G10L 25/84 20130101ALI20170214BHUS", + "H04M 1/60 20060101ALN20170214BHUS" + ], + "cpc": [ + "H04M 1/19 20130101FI20170214BHUS", + "G10L 15/22 20130101LI20170214BHUS", + "G10L 17/04 20130101LI20170214BHUS", + "G10L 17/06 20130101LI20170214BHUS", + "G10L 25/84 20130101LI20170214BHUS", + "H04M 1/247 20130101LI20170214BHUS", + "H04M 1/6033 20130101LI20170214BHUS", + "G10L 2015/223 20130101LA20170214BHUS", + "H04M 1/6008 20130101LA20170214BHUS", + "H04M 2201/405 20130101LA20170214BHUS", + "H04M 2203/258 20130101LA20170214BHUS", + "H04M 2250/74 20130101LA20170214BHUS" + ], + "application_number": "15168757", + "current_rank": 14, + "grade": 1, + "notes": "Sprachgesteuerte Stummschaltung; Spracherkennung ist eine relevante Teilfunktion." + }, + { + "patent_id": "US12482458", + "title": "Semiautomated relay method and apparatus", + "source": "USPTO", + "publication_year": "2025", + "match_score": 0.812, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G10L 15/183 20130101AFI20251125BHUS", + "G10L 15/26 20060101ALI20251125BHUS", + "G10L 25/60 20130101ALI20251125BHUS", + "H04M 1/247 20210101ALI20251125BHUS", + "H04M 1/72433 20210101ALI20251125BHUS", + "H04M 1/72478 20210101ALI20251125BHUS", + "H04M 3/42 20060101ALI20251125BHUS" + ], + "cpc": [ + "G10L 15/183 20130101FI20251125BHUS", + "G10L 15/26 20130101LI20251125BHUS", + "G10L 25/60 20130101LI20251125BHUS", + "H04M 1/2475 20130101LI20251125BHUS", + "H04M 1/72433 20210101LI20251125BHUS", + "H04M 1/72478 20210101LI20251125BHUS", + "H04M 3/42391 20130101LI20251125BHUS", + "H04M 2201/40 20130101LA20251125BHUS", + "H04M 2201/60 20130101LA20251125BHUS" + ], + "application_number": "16422662", + "current_rank": 15, + "grade": 2, + "notes": "Spracherkennung und Transkription im Relay-System sind zentral." + }, + { + "patent_id": "US12132865", + "title": "Voice and speech recognition for call center feedback and quality assurance", + "source": "USPTO", + "publication_year": "2024", + "match_score": 0.812, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/51 20060101AFI20241029BHUS", + "G06F 40/205 20200101ALI20241029BHUS", + "G10L 17/04 20130101ALI20241029BHUS", + "G10L 17/08 20130101ALI20241029BHUS", + "G10L 25/51 20130101ALI20241029BHUS", + "G10L 25/63 20130101ALI20241029BHUS", + "G10L 25/87 20130101ALI20241029BHUS", + "H04M 3/42 20060101ALI20241029BHUS", + "G10L 15/26 20060101ALN20241029BHUS" + ], + "cpc": [ + "H04M 3/5175 20130101FI20241029BHUS", + "G06F 40/205 20200101LI20241029BHUS", + "G10L 17/04 20130101LI20241029BHUS", + "G10L 17/08 20130101LI20241029BHUS", + "G10L 25/51 20130101LI20241029BHUS", + "G10L 25/63 20130101LI20241029BHUS", + "H04M 3/42 20130101LI20241029BHUS", + "G10L 15/26 20130101LA20241029BHUS", + "G10L 25/87 20130101LA20241029BHUS", + "H04M 2201/40 20130101LA20241029BHUS", + "H04M 2201/41 20130101LA20241029BHUS", + "H04M 2203/40 20130101LA20241029BHUS", + "H04M 2203/401 20130101LA20241029BHUS" + ], + "application_number": "18376605", + "current_rank": 16, + "grade": 2, + "notes": "Sprach- und Sprecherkennung für Callcenter-Analyse sind zentral." + }, + { + "patent_id": "US12088761", + "title": "Voice and speech recognition for call center feedback and quality assurance", + "source": "USPTO", + "publication_year": "2024", + "match_score": 0.812, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/51 20060101AFI20240910BHUS", + "G06F 40/205 20200101ALI20240910BHUS", + "G10L 15/26 20060101ALI20240910BHUS", + "G10L 17/04 20130101ALI20240910BHUS", + "G10L 17/08 20130101ALI20240910BHUS", + "G10L 25/51 20130101ALI20240910BHUS", + "G10L 25/63 20130101ALI20240910BHUS", + "G10L 25/87 20130101ALI20240910BHUS", + "H04M 3/42 20060101ALI20240910BHUS" + ], + "cpc": [ + "H04M 3/5175 20130101FI20240910BHUS", + "G06F 40/205 20200101LI20240910BHUS", + "G10L 17/04 20130101LI20240910BHUS", + "G10L 17/08 20130101LI20240910BHUS", + "G10L 25/51 20130101LI20240910BHUS", + "G10L 25/63 20130101LI20240910BHUS", + "H04M 3/42 20130101LI20240910BHUS", + "G10L 15/26 20130101LA20240910BHUS", + "G10L 25/87 20130101LA20240910BHUS", + "H04M 2201/40 20130101LA20240910BHUS", + "H04M 2201/41 20130101LA20240910BHUS", + "H04M 2203/40 20130101LA20240910BHUS", + "H04M 2203/401 20130101LA20240910BHUS" + ], + "application_number": "18203094", + "current_rank": 17, + "grade": 2, + "notes": "Sprach- und Sprecherkennung für Callcenter-Analyse sind zentral." + }, + { + "patent_id": "US11811970", + "title": "Voice and speech recognition for call center feedback and quality assurance", + "source": "USPTO", + "publication_year": "2023", + "match_score": 0.812, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/51 20060101AFI20231107BHUS", + "G10L 17/04 20130101ALI20231107BHUS", + "G10L 25/51 20130101ALI20231107BHUS", + "G10L 25/63 20130101ALI20231107BHUS", + "G10L 25/87 20130101ALI20231107BHUS", + "H04M 3/42 20060101ALI20231107BHUS", + "G06F 40/205 20200101ALI20231107BHUS", + "G10L 17/08 20130101ALI20231107BHUS", + "G10L 15/26 20060101ALN20231107BHUS" + ], + "cpc": [ + "H04M 3/5175 20130101FI20231107BHUS", + "G06F 40/205 20200101LI20231107BHUS", + "G10L 17/04 20130101LI20231107BHUS", + "G10L 17/08 20130101LI20231107BHUS", + "G10L 25/51 20130101LI20231107BHUS", + "G10L 25/63 20130101LI20231107BHUS", + "H04M 3/42 20130101LI20231107BHUS", + "G10L 15/26 20130101LA20231107BHUS", + "G10L 25/87 20130101LA20231107BHUS", + "H04M 2201/40 20130101LA20231107BHUS", + "H04M 2201/41 20130101LA20231107BHUS", + "H04M 2203/40 20130101LA20231107BHUS", + "H04M 2203/401 20130101LA20231107BHUS" + ], + "application_number": "17690099", + "current_rank": 18, + "grade": 2, + "notes": "Sprach- und Sprecherkennung für Callcenter-Analyse sind zentral." + }, + { + "patent_id": "US11706338", + "title": "Voice and speech recognition for call center feedback and quality assurance", + "source": "USPTO", + "publication_year": "2023", + "match_score": 0.812, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/51 20060101AFI20230718BHUS", + "G10L 17/04 20130101ALI20230718BHUS", + "G10L 25/51 20130101ALI20230718BHUS", + "G10L 25/63 20130101ALI20230718BHUS", + "G10L 25/87 20130101ALI20230718BHUS", + "H04M 3/42 20060101ALI20230718BHUS", + "G06F 40/205 20200101ALI20230718BHUS", + "G10L 17/08 20130101ALI20230718BHUS", + "G10L 15/26 20060101ALN20230718BHUS" + ], + "cpc": [ + "H04M 3/5175 20130101FI20230718BHUS", + "G06F 40/205 20200101LI20230718BHUS", + "G10L 17/04 20130101LI20230718BHUS", + "G10L 17/08 20130101LI20230718BHUS", + "G10L 25/51 20130101LI20230718BHUS", + "G10L 25/63 20130101LI20230718BHUS", + "H04M 3/42 20130101LI20230718BHUS", + "G10L 15/26 20130101LA20230718BHUS", + "G10L 25/87 20130101LA20230718BHUS", + "H04M 2201/40 20130101LA20230718BHUS", + "H04M 2201/41 20130101LA20230718BHUS", + "H04M 2203/40 20130101LA20230718BHUS", + "H04M 2203/401 20130101LA20230718BHUS" + ], + "application_number": "17472557", + "current_rank": 19, + "grade": 2, + "notes": "Sprach- und Sprecherkennung für Callcenter-Analyse sind zentral." + }, + { + "patent_id": "US10863033", + "title": "Voice recognition system and voice recognition method", + "source": "USPTO", + "publication_year": "2020", + "match_score": 0.812, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 11/00 20060101AFI20201208BHUS", + "H04M 3/58 20060101ALI20201208BHUS", + "H04M 3/493 20060101ALI20201208BHUS", + "G10L 17/22 20130101ALI20201208BHUS", + "H04M 3/42 20060101ALI20201208BHUS", + "G10L 15/22 20060101ALI20201208BHUS" + ], + "cpc": [ + "H04M 3/58 20130101FI20201208BHUS", + "G10L 15/22 20130101LI20201208BHUS", + "G10L 17/22 20130101LI20201208BHUS", + "H04M 3/42221 20130101LI20201208BHUS", + "H04M 3/4931 20130101LI20201208BHUS", + "H04M 3/4936 20130101LI20201208BHUS", + "G10L 2015/223 20130101LA20201208BHUS", + "H04M 3/4933 20130101LA20201208BHUS", + "H04M 2201/18 20130101LA20201208BHUS", + "H04M 2201/39 20130101LA20201208BHUS", + "H04M 2201/40 20130101LA20201208BHUS" + ], + "application_number": "16432362", + "current_rank": 20, + "grade": 2, + "notes": "Sprach- und Stimmerkennung sind zentraler Gegenstand." + } + ], + "relevance_grades": { + "US12137183": 2, + "US11627221": 2, + "US11601548": 2, + "US10742805": 2, + "US09769314": 2, + "US09685159": 1, + "US09377992": 2, + "US09736309": 2, + "US12579986": 1, + "US10397400": 0, + "US09369577": 1, + "US12615335": 1, + "US12592239": 1, + "US09571617": 1, + "US12482458": 2, + "US12132865": 2, + "US12088761": 2, + "US11811970": 2, + "US11706338": 2, + "US10863033": 2 + }, + "relevant_patent_ids": [ + "US12137183", + "US11627221", + "US11601548", + "US10742805", + "US09769314", + "US09685159", + "US09377992", + "US09736309", + "US12579986", + "US09369577", + "US12615335", + "US12592239", + "US09571617", + "US12482458", + "US12132865", + "US12088761", + "US11811970", + "US11706338", + "US10863033" + ], + "irrelevant_patent_ids": [ + "US10397400" + ] + } + ], + "labeling_status": { + "completed": true, + "criterion": { + "0": "irrelevant / False Positive", + "1": "fachlich angrenzend oder relevante Teilanwendung", + "2": "Thema ist zentraler Patentgegenstand" + }, + "warning": "KI-gestützte Vorlabelierung anhand von Titel sowie IPC/CPC-Evidenz. Für einen wissenschaftlichen Goldstandard sollten Grenzfälle fachlich geprüft werden." + } +} \ No newline at end of file diff --git a/service/scripts/patents/data/keyword_patent_goldset_presentation.json b/service/scripts/patents/data/keyword_patent_goldset_presentation.json new file mode 100644 index 00000000..af14c599 --- /dev/null +++ b/service/scripts/patents/data/keyword_patent_goldset_presentation.json @@ -0,0 +1,1787 @@ +{ + "version": 1, + "presentation": true, + "description": "goldset for two IPC cases.", + "ks": [ + 5, + 10, + 20 + ], + "cases": [ + { + "id": "fuel-cell", + "description": "Fuel cell – expected IPC H01M", + "keywords": [ + { + "keyword": "fuel cell", + "keyword_level": "fine", + "topic_id": "https://openalex.org/T10409", + "topic_display_name": "Fuel Cells and Related Materials", + "subfield_name": "Electrical and Electronic Engineering", + "field_name": "Engineering", + "relevance_score": 1.0 + } + ], + "expected_ipc_prefixes": [ + "H01M" + ], + "relevant_patent_ids": [ + "US12087951", + "US10916789", + "US10847812", + "US10297888", + "US10096875", + "US10006461", + "EP3188296", + "US09564651", + "US09368819", + "US09214691", + "US09083025", + "US08974984", + "US08974983", + "US08895198", + "US08846266", + "US12512484", + "US12412912", + "US12368175" + ], + "irrelevant_patent_ids": [ + "US10847825", + "EP3549641" + ], + "relevance_grades": { + "US12087951": 2, + "US10916789": 2, + "US10847825": 0, + "US10847812": 2, + "EP3549641": 0, + "US10297888": 1, + "US10096875": 1, + "US10006461": 2, + "EP3188296": 2, + "US09564651": 2, + "US09368819": 2, + "US09214691": 2, + "US09083025": 2, + "US08974984": 2, + "US08974983": 2, + "US08895198": 2, + "US08846266": 2, + "US12512484": 2, + "US12412912": 1, + "US12368175": 2 + }, + "labeling_candidates": [ + { + "patent_id": "US12087951", + "title": "Electrochemical cell integrates electrolysis and fuel cell functions", + "source": "USPTO", + "publication_year": "2024", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 4/90 20060101AFI20240910BHUS", + "C25B 11/081 20210101ALI20240910BHUS", + "H01M 8/0656 20160101ALI20240910BHUS", + "H01M 8/083 20160101ALI20240910BHUS" + ], + "cpc": [ + "H01M 4/9058 20130101FI20240910BHUS", + "C25B 11/081 20210101LI20240910BHUS", + "H01M 8/0656 20130101LI20240910BHUS", + "H01M 8/083 20130101LI20240910BHUS" + ], + "application_number": "17068023", + "current_rank": 1, + "grade": 2, + "notes": "Brennstoffzellenfunktion ist zentraler Gegenstand." + }, + { + "patent_id": "US10916789", + "title": "Alkaline exchange membrane fuel cells system having a bi-polar plate", + "source": "USPTO", + "publication_year": "2021", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/083 20160101AFI20210209BHUS", + "H01M 8/023 20160101ALI20210209BHUS", + "H01M 8/0289 20160101ALI20210209BHUS", + "H01M 8/0258 20160101ALI20210209BHUS", + "H01M 8/1062 20160101ALI20210209BHUS", + "H01M 8/1067 20160101ALI20210209BHUS", + "H01M 4/88 20060101ALI20210209BHUS", + "H01M 8/04119 20160101ALI20210209BHUS", + "H01M 8/0267 20160101ALN20210209BHUS", + "H01M 8/0234 20160101ALN20210209BHUS", + "H01M 8/0232 20160101ALN20210209BHUS", + "H01M 8/04029 20160101ALN20210209BHUS" + ], + "cpc": [ + "H01M 8/083 20130101FI20210209BHUS", + "H01M 4/881 20130101LI20210209BHUS", + "H01M 4/8807 20130101LI20210209BHUS", + "H01M 8/023 20130101LI20210209BHUS", + "H01M 8/0258 20130101LI20210209BHUS", + "H01M 8/0289 20130101LI20210209BHUS", + "H01M 8/04119 20130101LI20210209BHUS", + "H01M 8/1062 20130101LI20210209BHUS", + "H01M 8/1067 20130101LI20210209BHUS", + "H01M 8/0232 20130101LA20210209BHUS", + "H01M 8/0234 20130101LA20210209BHUS", + "H01M 8/0267 20130101LA20210209BHUS", + "H01M 8/04029 20130101LA20210209BHUS" + ], + "application_number": "16085648", + "current_rank": 2, + "grade": 2, + "notes": "Brennstoffzellensystem und Bipolarplatte sind zentral." + }, + { + "patent_id": "US10847825", + "title": "Chloralkali process", + "source": "USPTO", + "publication_year": "2020", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/06 20160101AFI20201124BHUS", + "C25B 1/46 20060101ALI20201124BHUS", + "C25B 9/10 20060101ALI20201124BHUS", + "C25B 13/08 20060101ALI20201124BHUS", + "H01M 8/083 20160101ALI20201124BHUS" + ], + "cpc": [ + "H01M 8/0693 20130101FI20201124BHUS", + "C25B 1/46 20130101LI20201124BHUS", + "C25B 9/10 20130101LI20201124BHUS", + "C25B 13/08 20130101LI20201124BHUS", + "H01M 8/083 20130101LI20201124BHUS" + ], + "application_number": "15740882", + "current_rank": 3, + "grade": 0, + "notes": "Chloralkali-Verfahren; Brennstoffzelle ist nicht der zentrale Patentgegenstand." + }, + { + "patent_id": "US10847812", + "title": "Separator plate, membrane electrode assembly and fuel cell", + "source": "USPTO", + "publication_year": "2020", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/0221 20160101AFI20201124BHUS", + "H01M 8/0258 20160101ALI20201124BHUS", + "H01M 8/1018 20160101ALI20201124BHUS", + "H01M 8/2418 20160101ALI20201124BHUS", + "H01M 8/0223 20160101ALI20201124BHUS", + "H01M 8/1004 20160101ALI20201124BHUS", + "H01M 8/1011 20160101ALN20201124BHUS", + "H01M 8/14 20060101ALN20201124BHUS", + "H01M 8/0267 20160101ALN20201124BHUS", + "H01M 8/083 20160101ALN20201124BHUS", + "H01M 8/124 20160101ALN20201124BHUS", + "H01M 8/086 20160101ALN20201124BHUS" + ], + "cpc": [ + "H01M 8/0221 20130101FI20201124BHUS", + "H01M 8/0223 20130101LI20201124BHUS", + "H01M 8/0258 20130101LI20201124BHUS", + "H01M 8/1004 20130101LI20201124BHUS", + "H01M 8/1018 20130101LI20201124BHUS", + "H01M 8/2418 20160201LI20201124BHUS", + "H01M 8/0267 20130101LA20201124BHUS", + "H01M 8/083 20130101LA20201124BHUS", + "H01M 8/086 20130101LA20201124BHUS", + "H01M 8/1011 20130101LA20201124BHUS", + "H01M 2008/1095 20130101LA20201124BHUS", + "H01M 2008/1293 20130101LA20201124BHUS", + "H01M 2008/147 20130101LA20201124BHUS" + ], + "application_number": "15852824", + "current_rank": 4, + "grade": 2, + "notes": "Brennstoffzellenkomponenten und Membran-Elektroden-Einheit sind zentral." + }, + { + "patent_id": "EP3549641", + "title": "FUEL TANK INERTING SYSTEM", + "source": "EPO", + "publication_year": "2019", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "A62C 3/06 20060101AFI20190820BHEP", + "A62C 3/08 20060101ALI20190820BHEP", + "A62C 99/00 20100101ALI20190820BHEP", + "B01D 53/32 20060101ALI20190820BHEP", + "H01M 8/00 20160101ALI20190820BHEP", + "H01M 8/083 20160101ALI20190820BHEP" + ], + "cpc": [], + "application_number": "19167279.9", + "current_rank": 5, + "grade": 0, + "notes": "Tank-Inertisierung; Brennstoffzellentechnik ist höchstens eine Teilkomponente." + }, + { + "patent_id": "US10297888", + "title": "Method and system for storing electricity in metals", + "source": "USPTO", + "publication_year": "2019", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 12/08 20060101AFI20190521BHUS", + "H01M 8/083 20160101ALI20190521BHUS", + "H01M 10/48 20060101ALI20190521BHUS", + "H01M 8/04828 20160101ALI20190521BHUS", + "H01M 10/44 20060101ALI20190521BHUS", + "H01M 8/18 20060101ALI20190521BHUS", + "H01M 8/04313 20160101ALI20190521BHUS", + "H01M 8/0444 20160101ALI20190521BHUS", + "H01M 8/04537 20160101ALI20190521BHUS" + ], + "cpc": [ + "H01M 12/08 20130101FI20190521BHUS", + "H01M 8/0444 20130101LI20190521BHUS", + "H01M 8/04537 20130101LI20190521BHUS", + "H01M 10/44 20130101LI20190521BHUS", + "H01M 10/48 20130101LI20190521BHUS", + "Y02E 60/128 20130101LA20190521BHUS" + ], + "application_number": "15053983", + "current_rank": 6, + "grade": 1, + "notes": "Elektrochemische Energiespeicherung mit technischer Nähe zu Brennstoffzellen." + }, + { + "patent_id": "US10096875", + "title": "System and method for increasing electrical efficiency of metal-air cell", + "source": "USPTO", + "publication_year": "2018", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 4/36 20060101AFI20181009BHUS", + "H01M 12/08 20060101ALI20181009BHUS", + "H01M 2/40 20060101ALI20181009BHUS", + "H01M 8/083 20160101ALI20181009BHUS", + "H01M 12/06 20060101ALI20181009BHUS" + ], + "cpc": [ + "H01M 12/08 20130101FI20181009BHUS", + "H01M 2/40 20130101LI20181009BHUS", + "H01M 8/083 20130101LI20181009BHUS", + "H01M 12/065 20130101LI20181009BHUS", + "H01M 2300/0014 20130101LA20181009BHUS", + "Y02E 60/128 20130101LA20181009BHUS" + ], + "application_number": "14779753", + "current_rank": 7, + "grade": 1, + "notes": "Metall-Luft-Zelle; elektrochemisch verwandt, aber keine klassische Brennstoffzelle." + }, + { + "patent_id": "US10006461", + "title": "Electrolyte circulation in fuel cells stacks with reduced leakage current", + "source": "USPTO", + "publication_year": "2018", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/08 20160101AFI20180626BHUS", + "F04D 13/10 20060101ALI20180626BHUS", + "H01M 8/083 20160101ALI20180626BHUS", + "H01M 8/24 20160101ALI20180626BHUS", + "H01M 8/2485 20160101ALI20180626BHUS", + "H01M 8/04276 20160101ALI20180626BHUS", + "H01M 8/04291 20160101ALI20180626BHUS", + "H01M 8/0289 20160101ALN20180626BHUS" + ], + "cpc": [ + "F04D 13/10 20130101FI20180626BHUS", + "H01M 8/04276 20130101LI20180626BHUS", + "H01M 8/04291 20130101LI20180626BHUS", + "H01M 8/083 20130101LI20180626BHUS", + "H01M 8/2445 20130101LI20180626BHUS", + "H01M 8/2485 20130101LI20180626BHUS", + "H01M 8/0289 20130101LA20180626BHUS" + ], + "application_number": "14402650", + "current_rank": 8, + "grade": 2, + "notes": "Elektrolytzirkulation in Brennstoffzellenstapeln ist zentral." + }, + { + "patent_id": "EP3188296", + "title": "ADJUSTMENT METHOD OF THE ELECTROLYTE COMPOSITION FOR A FUEL CELL SYSTEM", + "source": "EPO", + "publication_year": "2017", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/0656 20160101AFI20170424BHEP", + "C25B 1/04 20060101ALI20170424BHEP", + "H01M 8/083 20160101ALI20170424BHEP", + "H01M 16/00 20060101ALI20170424BHEP", + "H01M 8/04276 20160101ALI20170424BHEP", + "H01M 8/0444 20160101ALI20170424BHEP", + "H01M 8/04791 20160101ALI20170424BHEP" + ], + "cpc": [], + "application_number": "16207072.6", + "current_rank": 9, + "grade": 2, + "notes": "Elektrolytzusammensetzung für ein Brennstoffzellensystem ist zentral." + }, + { + "patent_id": "US09564651", + "title": "Liquid electrolyte fuel cell system", + "source": "USPTO", + "publication_year": "2017", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/08 20160101AFI20170207BHUS", + "H01M 8/04 20160101ALN20170207BHUS" + ], + "cpc": [ + "H01M 8/083 20130101FI20170207BHUS", + "H01M 8/04164 20130101LI20170207BHUS", + "H01M 8/04276 20130101LI20170207BHUS", + "H01M 8/0485 20130101LA20170207BHUS", + "H01M 2300/0014 20130101LA20170207BHUS", + "Y02E 60/50 20130101LA20170207BHUS" + ], + "application_number": "14370731", + "current_rank": 10, + "grade": 2, + "notes": "Flüssigelektrolyt-Brennstoffzellensystem ist zentral." + }, + { + "patent_id": "US09368819", + "title": "Systems and methods of securing immunity to air CO2 in alkaline fuel cells", + "source": "USPTO", + "publication_year": "2016", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/06 20060101AFI20160614BHUS", + "H01M 8/08 20160101ALI20160614BHUS", + "H01M 8/10 20160101ALI20160614BHUS", + "H01M 10/46 20060101ALI20160614BHUS", + "H02J 7/00 20060101ALI20160614BHUS" + ], + "cpc": [ + "H01M 8/0668 20130101FI20160614BHUS", + "H01M 8/0693 20130101LI20160614BHUS", + "H01M 8/083 20130101LI20160614BHUS", + "H01M 8/1002 20130101LI20160614BHUS", + "H01M 10/46 20130101LI20160614BHUS", + "H02J 7/0063 20130101LI20160614BHUS", + "H01M 2300/0014 20130101LA20160614BHUS", + "H01M 2300/0082 20130101LA20160614BHUS" + ], + "application_number": "14957760", + "current_rank": 11, + "grade": 2, + "notes": "Schutz alkalischer Brennstoffzellen vor CO2 ist zentral." + }, + { + "patent_id": "US09214691", + "title": "Systems and methods of securing immunity to air CO2 in alkaline fuel cells", + "source": "USPTO", + "publication_year": "2015", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/06 20060101AFI20151215BHUS", + "H01M 8/08 20060101ALI20151215BHUS" + ], + "cpc": [ + "H01M 8/0668 20130101FI20151215BHUS", + "H01M 8/083 20130101LI20151215BHUS", + "Y02E 60/50 20130101LA20151215BHUS" + ], + "application_number": "14552700", + "current_rank": 12, + "grade": 2, + "notes": "Schutz alkalischer Brennstoffzellen vor CO2 ist zentral." + }, + { + "patent_id": "US09083025", + "title": "Fuel cell stacks", + "source": "USPTO", + "publication_year": "2015", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/04 20060101AFI20150714BHUS", + "H01M 8/08 20060101ALI20150714BHUS", + "H01M 8/24 20060101ALI20150714BHUS" + ], + "cpc": [ + "H01M 8/08 20130101FI20150714BHUS", + "H01M 8/083 20130101LI20150714BHUS", + "H01M 8/2445 20130101LI20150714BHUS", + "Y02E 60/50 20130101LA20150714BHUS" + ], + "application_number": "13695453", + "current_rank": 13, + "grade": 2, + "notes": "Brennstoffzellenstapel sind zentraler Gegenstand." + }, + { + "patent_id": "US08974984", + "title": "Power generation system using an alkaline fuel cell and fuel gas for alkaline fuel cells used in the system", + "source": "USPTO", + "publication_year": "2015", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/22 20060101AFI20150310BHUS", + "H01M 8/08 20060101ALI20150310BHUS" + ], + "cpc": [ + "H01M 8/083 20130101FI20150310BHUS", + "H01M 8/222 20130101LI20150310BHUS", + "Y02E 60/50 20130101LA20150310BHUS" + ], + "application_number": "13387130", + "current_rank": 14, + "grade": 2, + "notes": "Stromerzeugung mit alkalischer Brennstoffzelle ist zentral." + }, + { + "patent_id": "US08974983", + "title": "Electrical conductive member and polymer electrolyte fuel cell using the same", + "source": "USPTO", + "publication_year": "2015", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/10 20060101AFI20150310BHUS", + "H01M 8/02 20060101ALI20150310BHUS", + "H01M 8/08 20060101ALN20150310BHUS", + "H01M 8/12 20060101ALN20150310BHUS", + "H01M 8/14 20060101ALN20150310BHUS" + ], + "cpc": [ + "H01M 8/0213 20130101FI20150310BHUS", + "H01M 8/0228 20130101LI20150310BHUS", + "H01M 8/0254 20130101LA20150310BHUS", + "H01M 8/083 20130101LA20150310BHUS", + "H01M 8/086 20130101LA20150310BHUS", + "H01M 2008/1095 20130101LA20150310BHUS", + "H01M 2008/1293 20130101LA20150310BHUS", + "H01M 2008/147 20130101LA20150310BHUS", + "Y02E 60/50 20130101LA20150310BHUS", + "Y02E 60/525 20130101LA20150310BHUS", + "Y02E 60/526 20130101LA20150310BHUS" + ], + "application_number": "13130979", + "current_rank": 15, + "grade": 2, + "notes": "Leitfähiges Bauteil für Polymer-Elektrolyt-Brennstoffzellen ist zentral." + }, + { + "patent_id": "US08895198", + "title": "Systems and methods of securing immunity to air CO2 in alkaline fuel cells", + "source": "USPTO", + "publication_year": "2014", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/06 20060101AFI20141125BHUS", + "H01M 8/08 20060101ALI20141125BHUS" + ], + "cpc": [ + "H01M 8/0668 20130101FI20141125BHUS", + "Y02E 60/50 20130101LA20141125BHUS", + "H01M 8/083 20130101LI20141125BHUS" + ], + "application_number": "12862746", + "current_rank": 16, + "grade": 2, + "notes": "Schutz alkalischer Brennstoffzellen vor CO2 ist zentral." + }, + { + "patent_id": "US08846266", + "title": "Carbohydrate anode for fuel cell and battery applications", + "source": "USPTO", + "publication_year": "2014", + "match_score": 0.9923, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/08 20060101AFI20140930BHUS", + "H01M 8/22 20060101ALI20140930BHUS", + "H01M 4/96 20060101ALI20140930BHUS" + ], + "cpc": [ + "H01M 8/083 20130101FI20140930BHUS", + "H01M 4/96 20130101LI20140930BHUS", + "H01M 2300/0014 20130101LA20140930BHUS", + "Y02E 60/50 20130101LA20140930BHUS" + ], + "application_number": "12769598", + "current_rank": 17, + "grade": 2, + "notes": "Anode für Brennstoffzellenanwendungen ist zentral." + }, + { + "patent_id": "US12512484", + "title": "Alkaline fuel cell electrode catalyst, alkaline fuel cell, and methods of making and using an electrode catalyst", + "source": "USPTO", + "publication_year": "2025", + "match_score": 0.9423, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 4/90 20060101AFI20251230BHUS", + "H01M 4/88 20060101ALI20251230BHUS", + "H01M 8/083 20160101ALI20251230BHUS", + "H01M 4/86 20060101ALN20251230BHUS" + ], + "cpc": [ + "H01M 4/9016 20130101FI20251230BHUS", + "H01M 4/8882 20130101LI20251230BHUS", + "H01M 8/083 20130101LI20251230BHUS", + "H01M 2004/8689 20130101LA20251230BHUS" + ], + "application_number": "18081485", + "current_rank": 18, + "grade": 2, + "notes": "Elektrodenkatalysator und alkalische Brennstoffzelle sind zentral." + }, + { + "patent_id": "US12412912", + "title": "Electrochemical amine/nitrile redox method for ambient hydrogen storage", + "source": "USPTO", + "publication_year": "2025", + "match_score": 0.9423, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/04082 20160101AFI20250909BHUS", + "H01M 8/04089 20160101ALI20250909BHUS", + "H01M 8/083 20160101ALI20250909BHUS", + "H01M 8/2457 20160101ALI20250909BHUS" + ], + "cpc": [ + "H01M 8/04216 20130101FI20250909BHUS", + "H01M 8/04089 20130101LI20250909BHUS", + "H01M 8/083 20130101LI20250909BHUS", + "H01M 8/2457 20160201LI20250909BHUS", + "H01M 2300/0014 20130101LA20250909BHUS" + ], + "application_number": "17875171", + "current_rank": 19, + "grade": 1, + "notes": "Wasserstoffspeicherung mit Nähe zu Brennstoffzellensystemen, aber nicht zentral." + }, + { + "patent_id": "US12368175", + "title": "Solid oxide fuel cell comprising anode alkaline-based promoter loaded", + "source": "USPTO", + "publication_year": "2025", + "match_score": 0.9423, + "ipc_score": 0.9871, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "fuel cell" + ], + "matched_ipc_symbols": [ + "H01M8/083" + ], + "text_retrieval": false, + "ipc": [ + "H01M 8/083 20160101AFI20250722BHUS", + "H01M 4/86 20060101ALI20250722BHUS", + "H01M 4/90 20060101ALI20250722BHUS", + "H01M 8/0217 20160101ALI20250722BHUS", + "H01M 8/12 20160101ALI20250722BHUS", + "H01M 8/1246 20160101ALI20250722BHUS" + ], + "cpc": [ + "H01M 8/083 20130101FI20250722BHUS", + "H01M 4/8621 20130101LI20250722BHUS", + "H01M 4/9033 20130101LI20250722BHUS", + "H01M 8/0217 20130101LI20250722BHUS", + "H01M 8/1246 20130101LI20250722BHUS", + "H01M 2008/1293 20130101LA20250722BHUS" + ], + "application_number": "18659291", + "current_rank": 20, + "grade": 2, + "notes": "Festoxid-Brennstoffzelle ist zentraler Gegenstand." + } + ] + }, + { + "id": "speech-recognition", + "description": "Speech recognition – expected IPC G10L", + "keywords": [ + { + "keyword": "speech recognition", + "keyword_level": "fine", + "topic_id": "https://openalex.org/T10201", + "topic_display_name": "Speech Recognition and Synthesis", + "subfield_name": "Artificial Intelligence", + "field_name": "Computer Science", + "relevance_score": 1.0 + } + ], + "expected_ipc_prefixes": [ + "G10L" + ], + "relevant_patent_ids": [ + "US12137183", + "US11627221", + "US11601548", + "US10742805", + "US09769314", + "US09685159", + "US09377992", + "US09736309", + "US12579986", + "US09369577", + "US12615335", + "US12592239", + "US09571617", + "US12482458", + "US12132865", + "US12088761", + "US11811970", + "US11706338", + "US10863033" + ], + "irrelevant_patent_ids": [ + "US10397400" + ], + "relevance_grades": { + "US12137183": 2, + "US11627221": 2, + "US11601548": 2, + "US10742805": 2, + "US09769314": 2, + "US09685159": 1, + "US09377992": 2, + "US09736309": 2, + "US12579986": 1, + "US10397400": 0, + "US09369577": 1, + "US12615335": 1, + "US12592239": 1, + "US09571617": 1, + "US12482458": 2, + "US12132865": 2, + "US12088761": 2, + "US11811970": 2, + "US11706338": 2, + "US10863033": 2 + }, + "labeling_candidates": [ + { + "patent_id": "US12137183", + "title": "Semiautomated relay method and apparatus", + "source": "USPTO", + "publication_year": "2024", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G10L 15/00 20130101AFI20241105BHUS", + "G10L 15/01 20130101ALI20241105BHUS", + "G10L 15/06 20130101ALI20241105BHUS", + "G10L 15/22 20060101ALI20241105BHUS", + "G10L 15/26 20060101ALI20241105BHUS", + "G10L 21/10 20130101ALI20241105BHUS", + "H04M 1/247 20210101ALI20241105BHUS", + "H04M 1/72478 20210101ALI20241105BHUS", + "H04M 3/42 20060101ALI20241105BHUS", + "H04W 4/12 20090101ALI20241105BHUS", + "H04W 4/16 20090101ALI20241105BHUS", + "H04M 3/533 20060101ALN20241105BHUS" + ], + "cpc": [ + "H04M 3/42391 20130101FI20241105BHUS", + "G10L 15/01 20130101LI20241105BHUS", + "G10L 15/06 20130101LI20241105BHUS", + "G10L 15/22 20130101LI20241105BHUS", + "G10L 15/26 20130101LI20241105BHUS", + "G10L 21/10 20130101LI20241105BHUS", + "H04M 1/2475 20130101LI20241105BHUS", + "H04M 1/72478 20210101LI20241105BHUS", + "H04W 4/12 20130101LI20241105BHUS", + "H04W 4/16 20130101LI20241105BHUS", + "H04M 3/53366 20130101LA20241105BHUS", + "H04M 2201/18 20130101LA20241105BHUS", + "H04M 2201/40 20130101LA20241105BHUS", + "H04M 2201/405 20130101LA20241105BHUS" + ], + "application_number": "18123557", + "current_rank": 1, + "grade": 2, + "notes": "Spracherkennung und Transkription im Relay-System sind zentral." + }, + { + "patent_id": "US11627221", + "title": "Semiautomated relay method and apparatus", + "source": "USPTO", + "publication_year": "2023", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G10L 15/00 20130101AFI20230411BHUS", + "H04M 3/42 20060101ALI20230411BHUS", + "G10L 15/06 20130101ALI20230411BHUS", + "G10L 15/22 20060101ALI20230411BHUS", + "H04M 1/247 20210101ALI20230411BHUS", + "H04M 1/72478 20210101ALI20230411BHUS", + "G10L 15/26 20060101ALI20230411BHUS", + "H04W 4/12 20090101ALI20230411BHUS", + "H04W 4/16 20090101ALI20230411BHUS", + "G10L 21/10 20130101ALI20230411BHUS", + "G10L 15/01 20130101ALI20230411BHUS", + "H04M 3/533 20060101ALN20230411BHUS" + ], + "cpc": [ + "H04M 3/42391 20130101FI20230411BHUS", + "G10L 15/01 20130101LI20230411BHUS", + "G10L 15/06 20130101LI20230411BHUS", + "G10L 15/22 20130101LI20230411BHUS", + "G10L 15/26 20130101LI20230411BHUS", + "G10L 21/10 20130101LI20230411BHUS", + "H04M 1/2475 20130101LI20230411BHUS", + "H04M 1/72478 20210101LI20230411BHUS", + "H04W 4/12 20130101LI20230411BHUS", + "H04W 4/16 20130101LI20230411BHUS", + "H04M 3/53366 20130101LA20230411BHUS", + "H04M 2201/18 20130101LA20230411BHUS", + "H04M 2201/40 20130101LA20230411BHUS", + "H04M 2201/405 20130101LA20230411BHUS" + ], + "application_number": "16911691", + "current_rank": 2, + "grade": 2, + "notes": "Spracherkennung und Transkription im Relay-System sind zentral." + }, + { + "patent_id": "US11601548", + "title": "Captioned telephone services improvement", + "source": "USPTO", + "publication_year": "2023", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/42 20060101AFI20230307BHUS", + "G10L 15/26 20060101ALI20230307BHUS", + "H04M 3/436 20060101ALI20230307BHUS" + ], + "cpc": [ + "H04M 3/42382 20130101FI20230307BHUS", + "G10L 15/26 20130101LI20230307BHUS", + "H04M 3/42391 20130101LI20230307BHUS", + "H04M 3/436 20130101LI20230307BHUS", + "H04M 2201/405 20130101LA20230307BHUS" + ], + "application_number": "17184006", + "current_rank": 3, + "grade": 2, + "notes": "Automatische Transkription für Telefondienste ist zentral." + }, + { + "patent_id": "US10742805", + "title": "Semiautomated relay method and apparatus", + "source": "USPTO", + "publication_year": "2020", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/42 20060101AFI20200811BHUS", + "G10L 15/06 20130101ALI20200811BHUS", + "G10L 15/22 20060101ALI20200811BHUS", + "H04M 1/247 20060101ALI20200811BHUS", + "H04M 1/725 20060101ALI20200811BHUS", + "G10L 15/26 20060101ALI20200811BHUS", + "H04W 4/12 20090101ALI20200811BHUS", + "H04W 4/16 20090101ALI20200811BHUS", + "G10L 21/10 20130101ALI20200811BHUS", + "G10L 15/01 20130101ALI20200811BHUS", + "H04M 3/533 20060101ALN20200811BHUS" + ], + "cpc": [ + "H04M 3/42391 20130101FI20200811BHUS", + "G10L 15/01 20130101LI20200811BHUS", + "G10L 15/06 20130101LI20200811BHUS", + "G10L 15/22 20130101LI20200811BHUS", + "G10L 15/26 20130101LI20200811BHUS", + "G10L 15/265 20130101LI20200811BHUS", + "G10L 21/10 20130101LI20200811BHUS", + "H04M 1/2475 20130101LI20200811BHUS", + "H04M 1/72591 20130101LI20200811BHUS", + "H04W 4/12 20130101LI20200811BHUS", + "H04W 4/16 20130101LI20200811BHUS", + "H04M 3/53366 20130101LA20200811BHUS", + "H04M 2201/18 20130101LA20200811BHUS", + "H04M 2201/40 20130101LA20200811BHUS", + "H04M 2201/405 20130101LA20200811BHUS" + ], + "application_number": "15477958", + "current_rank": 4, + "grade": 2, + "notes": "Spracherkennung und Transkription im Relay-System sind zentral." + }, + { + "patent_id": "US09769314", + "title": "Personal voice-based information retrieval system", + "source": "USPTO", + "publication_year": "2017", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/493 20060101AFI20170919BHUS", + "G06F 3/16 20060101ALI20170919BHUS", + "G10L 15/26 20060101ALI20170919BHUS", + "G06F 17/30 20060101ALI20170919BHUS", + "G10L 15/08 20060101ALI20170919BHUS", + "G10L 25/54 20130101ALI20170919BHUS", + "G10L 13/08 20130101ALI20170919BHUS", + "G10L 15/02 20060101ALI20170919BHUS", + "G10L 15/22 20060101ALI20170919BHUS", + "G10L 17/24 20130101ALN20170919BHUS", + "G10L 15/06 20130101ALN20170919BHUS", + "H04L 29/08 20060101ALN20170919BHUS" + ], + "cpc": [ + "H04M 3/4938 20130101FI20170919BHUS", + "G06F 3/167 20130101LI20170919BHUS", + "G06F 17/30769 20130101LI20170919BHUS", + "G06F 17/30861 20130101LI20170919BHUS", + "G10L 13/08 20130101LI20170919BHUS", + "G10L 15/02 20130101LI20170919BHUS", + "G10L 15/08 20130101LI20170919BHUS", + "G10L 15/22 20130101LI20170919BHUS", + "G10L 15/26 20130101LI20170919BHUS", + "G10L 25/54 20130101LI20170919BHUS", + "H04L 67/02 20130101LI20170919BHUS", + "G10L 15/06 20130101LA20170919BHUS", + "G10L 17/24 20130101LA20170919BHUS", + "G10L 2015/223 20130101LA20170919BHUS", + "H04L 29/0809 20130101LA20170919BHUS", + "H04M 2201/39 20130101LA20170919BHUS", + "H04M 2201/40 20130101LA20170919BHUS", + "H04M 2201/405 20130101LA20170919BHUS", + "H04M 2207/40 20130101LA20170919BHUS" + ], + "application_number": "15193517", + "current_rank": 5, + "grade": 2, + "notes": "Sprachbasierte Informationssuche mit Spracherkennung ist zentral." + }, + { + "patent_id": "US09685159", + "title": "Speaker recognition from telephone calls", + "source": "USPTO", + "publication_year": "2017", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G10L 17/00 20130101AFI20170620BHUS", + "G10L 17/02 20130101ALI20170620BHUS", + "G10L 17/06 20130101ALI20170620BHUS", + "H04M 3/22 20060101ALN20170620BHUS", + "H04M 3/436 20060101ALN20170620BHUS" + ], + "cpc": [ + "G10L 17/00 20130101FI20170620BHUS", + "G10L 17/02 20130101LI20170620BHUS", + "G10L 17/06 20130101LI20170620BHUS", + "H04M 3/2281 20130101LA20170620BHUS", + "H04M 3/436 20130101LA20170620BHUS", + "H04M 2201/405 20130101LA20170620BHUS", + "H04M 2201/41 20130101LA20170620BHUS" + ], + "application_number": "14817182", + "current_rank": 6, + "grade": 1, + "notes": "Sprechererkennung ist eng verwandt, aber nicht klassische Spracherkennung." + }, + { + "patent_id": "US09377992", + "title": "Personal voice-based information retrieval system", + "source": "USPTO", + "publication_year": "2016", + "match_score": 0.8634, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G06F 3/16 20060101AFI20160628BHUS", + "G10L 15/26 20060101ALI20160628BHUS", + "G10L 17/24 20130101ALN20160628BHUS", + "G10L 15/06 20130101ALN20160628BHUS", + "H04M 3/493 20060101ALN20160628BHUS", + "H04L 29/08 20060101ALN20160628BHUS" + ], + "cpc": [ + "G06F 3/167 20130101FI20160628BHUS", + "G10L 15/26 20130101LI20160628BHUS", + "G10L 15/06 20130101LA20160628BHUS", + "G10L 17/24 20130101LA20160628BHUS", + "H04L 29/0809 20130101LA20160628BHUS", + "H04M 3/4938 20130101LA20160628BHUS", + "H04M 2201/405 20130101LA20160628BHUS", + "H04M 2207/40 20130101LA20160628BHUS" + ], + "application_number": "12787801", + "current_rank": 7, + "grade": 2, + "notes": "Sprachbasierte Informationssuche mit Spracherkennung ist zentral." + }, + { + "patent_id": "US09736309", + "title": "Real-time transcription and interaction with a caller based on the transcription", + "source": "USPTO", + "publication_year": "2017", + "match_score": 0.862, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 1.0, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 1/64 20060101AFI20170815BHUS", + "H04M 3/527 20060101ALI20170815BHUS", + "G10L 15/26 20060101ALI20170815BHUS", + "G10L 13/08 20130101ALI20170815BHUS", + "G10L 15/30 20130101ALI20170815BHUS" + ], + "cpc": [ + "H04M 3/527 20130101FI20170815BHUS", + "G10L 13/08 20130101LI20170815BHUS", + "G10L 15/26 20130101LI20170815BHUS", + "G10L 15/30 20130101LI20170815BHUS", + "H04M 2201/39 20130101LA20170815BHUS", + "H04M 2201/40 20130101LA20170815BHUS", + "H04M 2201/60 20130101LA20170815BHUS" + ], + "application_number": "15241555", + "current_rank": 8, + "grade": 2, + "notes": "Echtzeit-Transkription gesprochener Sprache ist zentral." + }, + { + "patent_id": "US12579986", + "title": "Systems and methods for distinguishing between human speech and machine generated speech", + "source": "USPTO", + "publication_year": "2026", + "match_score": 0.8285, + "ipc_score": 0.8808, + "topic_score": 1.0, + "text_score": 0.3333333333333333, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "G10L17/14" + ], + "text_retrieval": false, + "ipc": [ + "G10L 17/14 20130101AFI20260317BHUS", + "G06F 40/30 20200101ALI20260317BHUS", + "G10L 15/26 20060101ALI20260317BHUS", + "G10L 17/00 20130101ALI20260317BHUS", + "G10L 17/02 20130101ALI20260317BHUS", + "G10L 17/22 20130101ALI20260317BHUS", + "G10L 17/26 20130101ALI20260317BHUS", + "H04M 3/51 20060101ALI20260317BHUS" + ], + "cpc": [ + "G10L 17/14 20130101FI20260317BHUS", + "G06F 40/30 20200101LI20260317BHUS", + "G10L 15/26 20130101LI20260317BHUS", + "G10L 17/00 20130101LI20260317BHUS", + "G10L 17/02 20130101LI20260317BHUS", + "G10L 17/22 20130101LI20260317BHUS", + "H04M 3/5166 20130101LI20260317BHUS" + ], + "application_number": "18602835", + "current_rank": 9, + "grade": 1, + "notes": "Klassifikation menschlicher und synthetischer Sprache ist fachlich angrenzend." + }, + { + "patent_id": "US10397400", + "title": "Electronic call assistant based on a caller-status and a callee-status", + "source": "USPTO", + "publication_year": "2019", + "match_score": 0.8285, + "ipc_score": 0.8808, + "topic_score": 1.0, + "text_score": 0.3333333333333333, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "G10L17/14" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/493 20060101AFI20190827BHUS", + "G10L 17/14 20130101ALI20190827BHUS", + "A61B 5/00 20060101ALN20190827BHUS", + "G10L 15/26 20060101ALN20190827BHUS" + ], + "cpc": [ + "H04M 3/493 20130101FI20190827BHUS", + "G10L 17/14 20130101LI20190827BHUS", + "H04M 3/4936 20130101LI20190827BHUS", + "A61B 5/6802 20130101LA20190827BHUS", + "G10L 15/265 20130101LA20190827BHUS", + "H04M 2201/405 20130101LA20190827BHUS" + ], + "application_number": "15802695", + "current_rank": 10, + "grade": 0, + "notes": "Allgemeiner elektronischer Anrufassistent; Spracherkennung ist nicht zentral." + }, + { + "patent_id": "US09369577", + "title": "Transparent voice registration and verification method and system", + "source": "USPTO", + "publication_year": "2016", + "match_score": 0.8285, + "ipc_score": 0.8808, + "topic_score": 1.0, + "text_score": 0.3333333333333333, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "G10L17/14" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/493 20060101AFI20160614BHUS", + "G10L 17/14 20130101ALI20160614BHUS", + "H04M 3/42 20060101ALI20160614BHUS", + "H04M 3/51 20060101ALI20160614BHUS", + "H04M 3/38 20060101ALI20160614BHUS", + "G10L 17/04 20130101ALN20160614BHUS" + ], + "cpc": [ + "H04M 3/4936 20130101FI20160614BHUS", + "G10L 17/14 20130101LI20160614BHUS", + "H04M 3/385 20130101LI20160614BHUS", + "H04M 3/42221 20130101LI20160614BHUS", + "H04M 3/51 20130101LI20160614BHUS", + "G10L 17/04 20130101LA20160614BHUS", + "H04M 2201/36 20130101LA20160614BHUS", + "H04M 2201/41 20130101LA20160614BHUS", + "H04M 2203/6045 20130101LA20160614BHUS" + ], + "application_number": "14526933", + "current_rank": 11, + "grade": 1, + "notes": "Stimmregistrierung und Sprecherverifikation sind fachlich angrenzend." + }, + { + "patent_id": "US12615335", + "title": "Voice fingerprinting system for detecting hoax emergency reports", + "source": "USPTO", + "publication_year": "2026", + "match_score": 0.8134, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.3333333333333333, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G10L 15/00 20130101AFI20260428BHUS", + "G10L 17/02 20130101ALI20260428BHUS", + "G10L 17/04 20130101ALI20260428BHUS", + "G10L 17/06 20130101ALI20260428BHUS", + "G10L 17/18 20130101ALI20260428BHUS", + "G10L 25/18 20130101ALI20260428BHUS", + "G10L 25/24 20130101ALI20260428BHUS", + "H04M 3/22 20060101ALI20260428BHUS", + "H04M 3/51 20060101ALI20260428BHUS", + "G06Q 50/26 20120101ALN20260428BHUS" + ], + "cpc": [ + "H04M 3/5116 20130101FI20260428BHUS", + "G10L 17/02 20130101LI20260428BHUS", + "G10L 17/04 20130101LI20260428BHUS", + "G10L 17/06 20130101LI20260428BHUS", + "G10L 17/18 20130101LI20260428BHUS", + "G10L 25/18 20130101LI20260428BHUS", + "G10L 25/24 20130101LI20260428BHUS", + "H04M 3/2281 20130101LI20260428BHUS", + "H04M 3/5175 20130101LI20260428BHUS", + "H04M 3/5191 20130101LI20260428BHUS", + "G06Q 50/265 20130101LA20260428BHUS", + "H04M 2201/405 20130101LA20260428BHUS" + ], + "application_number": "18732780", + "current_rank": 12, + "grade": 1, + "notes": "Voice-Fingerprinting und Sprechererkennung sind fachlich angrenzend." + }, + { + "patent_id": "US12592239", + "title": "Active voice liveness detection system", + "source": "USPTO", + "publication_year": "2026", + "match_score": 0.8134, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.3333333333333333, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G10L 17/26 20130101AFI20260331BHUS", + "G06F 21/32 20130101ALI20260331BHUS", + "G10L 15/02 20060101ALI20260331BHUS", + "G10L 17/00 20130101ALI20260331BHUS", + "G10L 17/02 20130101ALI20260331BHUS", + "G10L 17/04 20130101ALI20260331BHUS", + "G10L 17/08 20130101ALI20260331BHUS", + "G10L 17/18 20130101ALI20260331BHUS", + "G10L 25/30 20130101ALI20260331BHUS", + "G10L 25/51 20130101ALI20260331BHUS", + "G10L 25/60 20130101ALI20260331BHUS", + "H04M 3/22 20060101ALI20260331BHUS", + "H04M 3/42 20060101ALI20260331BHUS", + "H04M 3/51 20060101ALI20260331BHUS" + ], + "cpc": [ + "G10L 17/26 20130101FI20260331BHUS", + "G06F 21/32 20130101LI20260331BHUS", + "G10L 15/02 20130101LI20260331BHUS", + "G10L 17/00 20130101LI20260331BHUS", + "G10L 17/02 20130101LI20260331BHUS", + "G10L 17/04 20130101LI20260331BHUS", + "G10L 17/08 20130101LI20260331BHUS", + "G10L 17/18 20130101LI20260331BHUS", + "G10L 25/51 20130101LI20260331BHUS", + "G10L 25/60 20130101LI20260331BHUS", + "H04M 3/2281 20130101LI20260331BHUS", + "H04M 3/42221 20130101LI20260331BHUS", + "H04M 3/5175 20130101LI20260331BHUS", + "H04M 3/5183 20130101LI20260331BHUS", + "G10L 25/30 20130101LA20260331BHUS", + "H04M 2201/405 20130101LA20260331BHUS" + ], + "application_number": "18646310", + "current_rank": 13, + "grade": 1, + "notes": "Voice-Liveness-Erkennung ist biometrisch verwandt, aber keine klassische Spracherkennung." + }, + { + "patent_id": "US09571617", + "title": "Controlling mute function on telephone", + "source": "USPTO", + "publication_year": "2017", + "match_score": 0.8134, + "ipc_score": 0.8556, + "topic_score": 1.0, + "text_score": 0.3333333333333333, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/00 20060101AFI20170214BHUS", + "H04M 1/19 20060101ALI20170214BHUS", + "H04M 1/247 20060101ALI20170214BHUS", + "G10L 15/22 20060101ALI20170214BHUS", + "G10L 17/04 20130101ALI20170214BHUS", + "G10L 17/06 20130101ALI20170214BHUS", + "G10L 25/84 20130101ALI20170214BHUS", + "H04M 1/60 20060101ALN20170214BHUS" + ], + "cpc": [ + "H04M 1/19 20130101FI20170214BHUS", + "G10L 15/22 20130101LI20170214BHUS", + "G10L 17/04 20130101LI20170214BHUS", + "G10L 17/06 20130101LI20170214BHUS", + "G10L 25/84 20130101LI20170214BHUS", + "H04M 1/247 20130101LI20170214BHUS", + "H04M 1/6033 20130101LI20170214BHUS", + "G10L 2015/223 20130101LA20170214BHUS", + "H04M 1/6008 20130101LA20170214BHUS", + "H04M 2201/405 20130101LA20170214BHUS", + "H04M 2203/258 20130101LA20170214BHUS", + "H04M 2250/74 20130101LA20170214BHUS" + ], + "application_number": "15168757", + "current_rank": 14, + "grade": 1, + "notes": "Sprachgesteuerte Stummschaltung; Spracherkennung ist eine relevante Teilfunktion." + }, + { + "patent_id": "US12482458", + "title": "Semiautomated relay method and apparatus", + "source": "USPTO", + "publication_year": "2025", + "match_score": 0.812, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "G10L 15/183 20130101AFI20251125BHUS", + "G10L 15/26 20060101ALI20251125BHUS", + "G10L 25/60 20130101ALI20251125BHUS", + "H04M 1/247 20210101ALI20251125BHUS", + "H04M 1/72433 20210101ALI20251125BHUS", + "H04M 1/72478 20210101ALI20251125BHUS", + "H04M 3/42 20060101ALI20251125BHUS" + ], + "cpc": [ + "G10L 15/183 20130101FI20251125BHUS", + "G10L 15/26 20130101LI20251125BHUS", + "G10L 25/60 20130101LI20251125BHUS", + "H04M 1/2475 20130101LI20251125BHUS", + "H04M 1/72433 20210101LI20251125BHUS", + "H04M 1/72478 20210101LI20251125BHUS", + "H04M 3/42391 20130101LI20251125BHUS", + "H04M 2201/40 20130101LA20251125BHUS", + "H04M 2201/60 20130101LA20251125BHUS" + ], + "application_number": "16422662", + "current_rank": 15, + "grade": 2, + "notes": "Spracherkennung und Transkription im Relay-System sind zentral." + }, + { + "patent_id": "US12132865", + "title": "Voice and speech recognition for call center feedback and quality assurance", + "source": "USPTO", + "publication_year": "2024", + "match_score": 0.812, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/51 20060101AFI20241029BHUS", + "G06F 40/205 20200101ALI20241029BHUS", + "G10L 17/04 20130101ALI20241029BHUS", + "G10L 17/08 20130101ALI20241029BHUS", + "G10L 25/51 20130101ALI20241029BHUS", + "G10L 25/63 20130101ALI20241029BHUS", + "G10L 25/87 20130101ALI20241029BHUS", + "H04M 3/42 20060101ALI20241029BHUS", + "G10L 15/26 20060101ALN20241029BHUS" + ], + "cpc": [ + "H04M 3/5175 20130101FI20241029BHUS", + "G06F 40/205 20200101LI20241029BHUS", + "G10L 17/04 20130101LI20241029BHUS", + "G10L 17/08 20130101LI20241029BHUS", + "G10L 25/51 20130101LI20241029BHUS", + "G10L 25/63 20130101LI20241029BHUS", + "H04M 3/42 20130101LI20241029BHUS", + "G10L 15/26 20130101LA20241029BHUS", + "G10L 25/87 20130101LA20241029BHUS", + "H04M 2201/40 20130101LA20241029BHUS", + "H04M 2201/41 20130101LA20241029BHUS", + "H04M 2203/40 20130101LA20241029BHUS", + "H04M 2203/401 20130101LA20241029BHUS" + ], + "application_number": "18376605", + "current_rank": 16, + "grade": 2, + "notes": "Sprach- und Sprecherkennung für Callcenter-Analyse sind zentral." + }, + { + "patent_id": "US12088761", + "title": "Voice and speech recognition for call center feedback and quality assurance", + "source": "USPTO", + "publication_year": "2024", + "match_score": 0.812, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/51 20060101AFI20240910BHUS", + "G06F 40/205 20200101ALI20240910BHUS", + "G10L 15/26 20060101ALI20240910BHUS", + "G10L 17/04 20130101ALI20240910BHUS", + "G10L 17/08 20130101ALI20240910BHUS", + "G10L 25/51 20130101ALI20240910BHUS", + "G10L 25/63 20130101ALI20240910BHUS", + "G10L 25/87 20130101ALI20240910BHUS", + "H04M 3/42 20060101ALI20240910BHUS" + ], + "cpc": [ + "H04M 3/5175 20130101FI20240910BHUS", + "G06F 40/205 20200101LI20240910BHUS", + "G10L 17/04 20130101LI20240910BHUS", + "G10L 17/08 20130101LI20240910BHUS", + "G10L 25/51 20130101LI20240910BHUS", + "G10L 25/63 20130101LI20240910BHUS", + "H04M 3/42 20130101LI20240910BHUS", + "G10L 15/26 20130101LA20240910BHUS", + "G10L 25/87 20130101LA20240910BHUS", + "H04M 2201/40 20130101LA20240910BHUS", + "H04M 2201/41 20130101LA20240910BHUS", + "H04M 2203/40 20130101LA20240910BHUS", + "H04M 2203/401 20130101LA20240910BHUS" + ], + "application_number": "18203094", + "current_rank": 17, + "grade": 2, + "notes": "Sprach- und Sprecherkennung für Callcenter-Analyse sind zentral." + }, + { + "patent_id": "US11811970", + "title": "Voice and speech recognition for call center feedback and quality assurance", + "source": "USPTO", + "publication_year": "2023", + "match_score": 0.812, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/51 20060101AFI20231107BHUS", + "G10L 17/04 20130101ALI20231107BHUS", + "G10L 25/51 20130101ALI20231107BHUS", + "G10L 25/63 20130101ALI20231107BHUS", + "G10L 25/87 20130101ALI20231107BHUS", + "H04M 3/42 20060101ALI20231107BHUS", + "G06F 40/205 20200101ALI20231107BHUS", + "G10L 17/08 20130101ALI20231107BHUS", + "G10L 15/26 20060101ALN20231107BHUS" + ], + "cpc": [ + "H04M 3/5175 20130101FI20231107BHUS", + "G06F 40/205 20200101LI20231107BHUS", + "G10L 17/04 20130101LI20231107BHUS", + "G10L 17/08 20130101LI20231107BHUS", + "G10L 25/51 20130101LI20231107BHUS", + "G10L 25/63 20130101LI20231107BHUS", + "H04M 3/42 20130101LI20231107BHUS", + "G10L 15/26 20130101LA20231107BHUS", + "G10L 25/87 20130101LA20231107BHUS", + "H04M 2201/40 20130101LA20231107BHUS", + "H04M 2201/41 20130101LA20231107BHUS", + "H04M 2203/40 20130101LA20231107BHUS", + "H04M 2203/401 20130101LA20231107BHUS" + ], + "application_number": "17690099", + "current_rank": 18, + "grade": 2, + "notes": "Sprach- und Sprecherkennung für Callcenter-Analyse sind zentral." + }, + { + "patent_id": "US11706338", + "title": "Voice and speech recognition for call center feedback and quality assurance", + "source": "USPTO", + "publication_year": "2023", + "match_score": 0.812, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 3/51 20060101AFI20230718BHUS", + "G10L 17/04 20130101ALI20230718BHUS", + "G10L 25/51 20130101ALI20230718BHUS", + "G10L 25/63 20130101ALI20230718BHUS", + "G10L 25/87 20130101ALI20230718BHUS", + "H04M 3/42 20060101ALI20230718BHUS", + "G06F 40/205 20200101ALI20230718BHUS", + "G10L 17/08 20130101ALI20230718BHUS", + "G10L 15/26 20060101ALN20230718BHUS" + ], + "cpc": [ + "H04M 3/5175 20130101FI20230718BHUS", + "G06F 40/205 20200101LI20230718BHUS", + "G10L 17/04 20130101LI20230718BHUS", + "G10L 17/08 20130101LI20230718BHUS", + "G10L 25/51 20130101LI20230718BHUS", + "G10L 25/63 20130101LI20230718BHUS", + "H04M 3/42 20130101LI20230718BHUS", + "G10L 15/26 20130101LA20230718BHUS", + "G10L 25/87 20130101LA20230718BHUS", + "H04M 2201/40 20130101LA20230718BHUS", + "H04M 2201/41 20130101LA20230718BHUS", + "H04M 2203/40 20130101LA20230718BHUS", + "H04M 2203/401 20130101LA20230718BHUS" + ], + "application_number": "17472557", + "current_rank": 19, + "grade": 2, + "notes": "Sprach- und Sprecherkennung für Callcenter-Analyse sind zentral." + }, + { + "patent_id": "US10863033", + "title": "Voice recognition system and voice recognition method", + "source": "USPTO", + "publication_year": "2020", + "match_score": 0.812, + "ipc_score": 0.77, + "topic_score": 1.0, + "text_score": 0.6666666666666666, + "topic_match_kind": "topic_id", + "matched_keywords": [ + "speech recognition" + ], + "matched_ipc_symbols": [ + "H04M2201/405" + ], + "text_retrieval": false, + "ipc": [ + "H04M 11/00 20060101AFI20201208BHUS", + "H04M 3/58 20060101ALI20201208BHUS", + "H04M 3/493 20060101ALI20201208BHUS", + "G10L 17/22 20130101ALI20201208BHUS", + "H04M 3/42 20060101ALI20201208BHUS", + "G10L 15/22 20060101ALI20201208BHUS" + ], + "cpc": [ + "H04M 3/58 20130101FI20201208BHUS", + "G10L 15/22 20130101LI20201208BHUS", + "G10L 17/22 20130101LI20201208BHUS", + "H04M 3/42221 20130101LI20201208BHUS", + "H04M 3/4931 20130101LI20201208BHUS", + "H04M 3/4936 20130101LI20201208BHUS", + "G10L 2015/223 20130101LA20201208BHUS", + "H04M 3/4933 20130101LA20201208BHUS", + "H04M 2201/18 20130101LA20201208BHUS", + "H04M 2201/39 20130101LA20201208BHUS", + "H04M 2201/40 20130101LA20201208BHUS" + ], + "application_number": "16432362", + "current_rank": 20, + "grade": 2, + "notes": "Sprach- und Stimmerkennung sind zentraler Gegenstand." + } + ] + } + ] +} \ No newline at end of file diff --git a/service/scripts/patents/evaluate_keyword_patent_search.py b/service/scripts/patents/evaluate_keyword_patent_search.py new file mode 100644 index 00000000..550876db --- /dev/null +++ b/service/scripts/patents/evaluate_keyword_patent_search.py @@ -0,0 +1,1147 @@ +#!/usr/bin/env python3 +""" +evaluate_keyword_patent_search.py — Systematic evaluation for keyword → patent search. + +Modes: + bootstrap Run live search for each gold case and write labeling candidates. + eval Score ranked results against gold labels (+ IPC proxy metrics). + ablation Re-score labeled rankings under alternate IPC/topic/text weights. + +Usage (from service/): + python scripts/patents/evaluate_keyword_patent_search.py bootstrap + python scripts/patents/evaluate_keyword_patent_search.py eval + python scripts/patents/evaluate_keyword_patent_search.py ablation + +Requires PATENT_ELASTICSEARCH credentials in src/main/inse/.env for live search. +After bootstrap, fill relevant_patent_ids / relevance_grades in the gold set +(or in the generated labeling JSON) and re-run eval. +""" +from __future__ import annotations + +import argparse +import asyncio +import json +import logging +import sys +from datetime import datetime, timezone +from pathlib import Path +from typing import Any + +current_dir = Path(__file__).resolve().parent +sys.path.insert(0, str(current_dir.parent.parent / "src" / "main")) + +from inse.patents.keywords.eval_metrics import ( # noqa: E402 + analyze_family_duplicates_in_top_k, + average_precision, + ipc_prefix_hit_rate, + mean, + mrr, + ndcg_at_k, + normalize_patent_id, + patent_family_key, + precision_at_k, + recall_at_k, + unique_family_precision_at_k, +) +from inse.patents.keywords.logic import ( # noqa: E402 + _DEFAULT_SCORE_WEIGHTS, + _MAX_PATENTS, + _compute_final_score, + get_patents_by_keywords, +) +from inse.patents.keywords.model import ( # noqa: E402 + KeywordPatentMatch, + KeywordPatentSearchDiagnostics, + KeywordPatentSearchItem, + PatentsByKeywordsRequest, +) + +logger = logging.getLogger(__name__) + +DEFAULT_GOLDSET = current_dir / "data" / "keyword_patent_goldset_presentation.json" +DEFAULT_OUT_DIR = current_dir / "data" / "eval_runs" +LITHIUM_CASE_PREFIX = "lithium-ion-batteries" +IPC_FOCUS_CASES = {"materials-chemistry"} | { + f"{LITHIUM_CASE_PREFIX}-de", + f"{LITHIUM_CASE_PREFIX}-en", + f"{LITHIUM_CASE_PREFIX}-de-en", +} + + +def _is_lithium_case(case_id: str) -> bool: + return case_id.startswith(LITHIUM_CASE_PREFIX) + + +def _family_key_from_match(match: KeywordPatentMatch) -> str: + return patent_family_key( + patent_id=match.patent.patent_id, + application_number=match.patent.application_number, + title=match.patent.title, + ) + + +def _family_metrics( + matches: list[KeywordPatentMatch], + ks: list[int], + grades: dict[str, float] | None = None, +) -> dict[str, Any]: + ranked_ids = [match.patent.patent_id for match in matches] + family_keys = [_family_key_from_match(match) for match in matches] + duplicates = { + f"@{k}": analyze_family_duplicates_in_top_k(family_keys, k) for k in ks + } + payload: dict[str, Any] = {"family_duplicates": duplicates} + if grades: + relevant_ids = list(grades.keys()) + payload["unique_family_precision"] = { + f"@{k}": round( + unique_family_precision_at_k(ranked_ids, family_keys, relevant_ids, k), + 4, + ) + for k in ks + } + return payload + + +def _load_json(path: Path) -> dict[str, Any]: + with path.open(encoding="utf-8") as handle: + return json.load(handle) + + +def _write_json(path: Path, payload: Any) -> None: + path.parent.mkdir(parents=True, exist_ok=True) + with path.open("w", encoding="utf-8") as handle: + json.dump(payload, handle, indent=2, ensure_ascii=False) + handle.write("\n") + + +def _keyword_items(case: dict[str, Any]) -> list[KeywordPatentSearchItem]: + return [KeywordPatentSearchItem.model_validate(item) for item in case["keywords"]] + + +def _patent_codes(match: KeywordPatentMatch) -> list[str]: + return [*match.patent.ipc, *match.patent.cpc] + + +def _match_to_dict(match: KeywordPatentMatch) -> dict[str, Any]: + payload: dict[str, Any] = { + "patent_id": match.patent.patent_id, + "title": match.patent.title, + "source": match.patent.source, + "publication_year": match.patent.publication_year, + "match_score": match.match_score, + "ipc_score": match.ipc_score, + "topic_score": match.topic_score, + "text_score": match.text_score, + "topic_match_kind": match.topic_match_kind, + "matched_keywords": match.matched_keywords, + "matched_ipc_symbols": match.matched_ipc_symbols, + "text_retrieval": match.text_retrieval, + "ipc": match.patent.ipc, + "cpc": match.patent.cpc, + "application_number": match.patent.application_number, + } + if match.keyword_evidence is not None: + payload["keyword_evidence"] = match.keyword_evidence.model_dump() + return payload + + +def _relevance_for_case(case: dict[str, Any]) -> dict[str, float]: + grades: dict[str, float] = {} + for patent_id, grade in (case.get("relevance_grades") or {}).items(): + grades[normalize_patent_id(patent_id)] = float(grade) + for patent_id in case.get("relevant_patent_ids") or []: + grades.setdefault(normalize_patent_id(patent_id), 1.0) + return {pid: grade for pid, grade in grades.items() if grade > 0} + + +def _proxy_metrics( + matches: list[KeywordPatentMatch], + case: dict[str, Any], + ks: list[int], + *, + mapping_status: str | None = None, +) -> dict[str, Any]: + ipc_lists = [_patent_codes(match) for match in matches] + prefixes = case.get("expected_ipc_prefixes") or [] + topic_rates = [] + text_rates = [] + for k in ks: + top = matches[:k] + if not top: + topic_rates.append(0.0) + text_rates.append(0.0) + continue + topic_rates.append(sum(1 for m in top if m.topic_score > 0) / len(top)) + text_rates.append(sum(1 for m in top if m.text_score > 0) / len(top)) + + text_path = mapping_status in {"uncertain", "no_mapping"} or any( + m.text_retrieval for m in matches[:10] + ) + ipc_hit = { + f"@{k}": round(ipc_prefix_hit_rate(ipc_lists, prefixes, k=k), 4) for k in ks + } + payload: dict[str, Any] = { + "retrieved": len(matches), + "ipc_prefix_hit_rate": ipc_hit, + "topic_score_rate": {f"@{k}": round(rate, 4) for k, rate in zip(ks, topic_rates)}, + "text_score_rate": {f"@{k}": round(rate, 4) for k, rate in zip(ks, text_rates)}, + "mean_match_score_at_10": round( + mean([m.match_score for m in matches[:10]]), + 4, + ), + "family_metrics": _family_metrics(matches, ks), + } + watch_prefixes = case.get("ipc_cluster_watch_prefixes") or [] + if watch_prefixes: + payload["ipc_cluster_watch_hit_rate"] = { + f"@{k}": round(ipc_prefix_hit_rate(ipc_lists, watch_prefixes, k=k), 4) + for k in ks + } + payload["ipc_cluster_watch_prefixes"] = list(watch_prefixes) + payload["ipc_cluster_watch_note"] = ( + "Separate analysis for notable mapping cluster; " + "not counted toward expected_ipc_prefixes battery proxy." + ) + if prefixes: + payload["expected_ipc_prefixes"] = list(prefixes) + if text_path: + payload["ipc_prefix_hit_rate_role"] = "post_hoc_plausibility_only" + payload["ipc_prefix_hit_rate_note"] = ( + "ipc_hit@k is a post-hoc plausibility check on patent classifications " + "after keyword text retrieval; IPC was not used to retrieve these results." + ) + else: + payload["ipc_prefix_hit_rate_role"] = "retrieval_aligned" + return payload + + +def _label_metrics( + ranked_ids: list[str], + grades: dict[str, float], + ks: list[int], +) -> dict[str, Any] | None: + if not grades: + return None + relevant_ids = list(grades.keys()) + family_keys = [ + patent_family_key(patent_id=pid, application_number=None, title=None) + for pid in ranked_ids + ] + return { + "labeled_relevant": len(relevant_ids), + "precision": {f"@{k}": round(precision_at_k(ranked_ids, relevant_ids, k), 4) for k in ks}, + "unique_family_precision": { + f"@{k}": round( + unique_family_precision_at_k(ranked_ids, family_keys, relevant_ids, k), + 4, + ) + for k in ks + }, + "recall": {f"@{k}": round(recall_at_k(ranked_ids, relevant_ids, k), 4) for k in ks}, + "ndcg": {f"@{k}": round(ndcg_at_k(ranked_ids, grades, k), 4) for k in ks}, + "map": round(average_precision(ranked_ids, relevant_ids), 4), + "mrr": round(mrr(ranked_ids, relevant_ids), 4), + } + + +def _label_metrics_for_matches( + matches: list[KeywordPatentMatch], + grades: dict[str, float], + ks: list[int], +) -> dict[str, Any] | None: + if not grades: + return None + ranked_ids = [match.patent.patent_id for match in matches] + family_keys = [_family_key_from_match(match) for match in matches] + relevant_ids = list(grades.keys()) + return { + "labeled_relevant": len(relevant_ids), + "precision": { + f"@{k}": round(precision_at_k(ranked_ids, relevant_ids, k), 4) for k in ks + }, + "unique_family_precision": { + f"@{k}": round( + unique_family_precision_at_k(ranked_ids, family_keys, relevant_ids, k), + 4, + ) + for k in ks + }, + "recall": {f"@{k}": round(recall_at_k(ranked_ids, relevant_ids, k), 4) for k in ks}, + "ndcg": {f"@{k}": round(ndcg_at_k(ranked_ids, grades, k), 4) for k in ks}, + "map": round(average_precision(ranked_ids, relevant_ids), 4), + "mrr": round(mrr(ranked_ids, relevant_ids), 4), + } + + +def _split_label_metrics( + matches: list[KeywordPatentMatch], + grades: dict[str, float], + ks: list[int], +) -> dict[str, Any]: + ipc_matches = [m for m in matches if not m.text_retrieval] + text_matches = [m for m in matches if m.text_retrieval] + return { + "overall": _label_metrics_for_matches(matches, grades, ks), + "ipc_path": { + "retrieved": len(ipc_matches), + "metrics": _label_metrics_for_matches(ipc_matches, grades, ks), + }, + "text_path": { + "retrieved": len(text_matches), + "metrics": _label_metrics_for_matches(text_matches, grades, ks), + }, + } + + +def _diagnostics_dict( + diagnostics: KeywordPatentSearchDiagnostics | None, +) -> dict[str, Any] | None: + if diagnostics is None: + return None + return diagnostics.model_dump() + + +def _aggregate(case_reports: list[dict[str, Any]], ks: list[int]) -> dict[str, Any]: + labeled = [report for report in case_reports if report.get("label_metrics")] + proxy_only = case_reports + + def avg_nested(key: str, metric: str) -> dict[str, float]: + out: dict[str, float] = {} + for k in ks: + values = [ + report[key][metric][f"@{k}"] + for report in (labeled if key == "label_metrics" else proxy_only) + if report.get(key) and f"@{k}" in report[key].get(metric, {}) + ] + out[f"@{k}"] = round(mean(values), 4) + return out + + def avg_path_metric(path_key: str, metric: str) -> dict[str, float]: + out: dict[str, float] = {} + for k in ks: + values = [] + for report in case_reports: + path = (report.get("label_metrics_split") or {}).get(path_key) or {} + metrics = path.get("metrics") or {} + if metrics and f"@{k}" in metrics.get(metric, {}): + values.append(metrics[metric][f"@{k}"]) + out[f"@{k}"] = round(mean(values), 4) if values else 0.0 + return out + + summary: dict[str, Any] = { + "cases_total": len(case_reports), + "cases_labeled": len(labeled), + "proxy": { + "ipc_prefix_hit_rate": avg_nested("proxy_metrics", "ipc_prefix_hit_rate"), + "topic_score_rate": avg_nested("proxy_metrics", "topic_score_rate"), + "text_score_rate": avg_nested("proxy_metrics", "text_score_rate"), + }, + } + if labeled: + summary["labels"] = { + "precision": avg_nested("label_metrics", "precision"), + "recall": avg_nested("label_metrics", "recall"), + "ndcg": avg_nested("label_metrics", "ndcg"), + "map": round(mean([r["label_metrics"]["map"] for r in labeled]), 4), + "mrr": round(mean([r["label_metrics"]["mrr"] for r in labeled]), 4), + "by_path": { + "ipc_path": { + "precision": avg_path_metric("ipc_path", "precision"), + "recall": avg_path_metric("ipc_path", "recall"), + "ndcg": avg_path_metric("ipc_path", "ndcg"), + }, + "text_path": { + "precision": avg_path_metric("text_path", "precision"), + "recall": avg_path_metric("text_path", "recall"), + "ndcg": avg_path_metric("text_path", "ndcg"), + }, + }, + } + return summary + + +def _ipc_clusters_for_report(diagnostics: dict[str, Any] | None) -> list[dict[str, Any]]: + return [ + { + "topic_key": selection.get("topic_key"), + "subclass": selection.get("subclass"), + "symbol": selection.get("symbol"), + "relative_mass": selection.get("relative_mass"), + } + for selection in (diagnostics or {}).get("ipc_cluster_selections") or [] + ] + + +def _top10_for_presentation(matches: list[KeywordPatentMatch]) -> list[dict[str, Any]]: + rows: list[dict[str, Any]] = [] + for match in matches[:10]: + rows.append( + { + "patent_id": match.patent.patent_id, + "title": match.patent.title, + "match_score": round(match.match_score, 4), + "ipc_score": round(match.ipc_score, 4), + "matched_ipc_symbols": list(match.matched_ipc_symbols), + } + ) + return rows + + +def _presentation_case_report( + case: dict[str, Any], + matches: list[KeywordPatentMatch], + mapping_status: str, + diagnostics: KeywordPatentSearchDiagnostics | None, + grades: dict[str, float], + ks: list[int], +) -> dict[str, Any]: + labels = _label_metrics_for_matches(matches, grades, ks) + proxy = _proxy_metrics( + matches, + case, + ks, + mapping_status=mapping_status, + ) + diagnostics_payload = _diagnostics_dict(diagnostics) + report: dict[str, Any] = { + "case_id": case["id"], + "mapping_status": mapping_status, + "search_path": (diagnostics_payload or {}).get("search_path"), + "ipc_cluster_selections": _ipc_clusters_for_report(diagnostics_payload), + "ipc_hit": proxy.get("ipc_prefix_hit_rate", {}), + "top_10": _top10_for_presentation(matches), + } + if labels: + report["precision"] = labels["precision"] + report["recall"] = labels["recall"] + report["ndcg"] = labels["ndcg"] + report["map"] = labels["map"] + report["mrr"] = labels["mrr"] + return report + + +def _presentation_aggregate( + case_reports: list[dict[str, Any]], + ks: list[int], +) -> dict[str, Any]: + labeled = [report for report in case_reports if report.get("precision")] + + def avg_at_k(metric: str) -> dict[str, float | None]: + out: dict[str, float | None] = {} + for k in ks: + values = [ + report[metric][f"@{k}"] + for report in labeled + if report.get(metric) and f"@{k}" in report[metric] + ] + out[f"@{k}"] = round(mean(values), 4) if values else None + return out + + def avg_scalar(metric: str) -> float | None: + values = [report[metric] for report in labeled if report.get(metric) is not None] + return round(mean(values), 4) if values else None + + ipc_values: dict[str, list[float]] = {f"@{k}": [] for k in ks} + for report in case_reports: + ipc_hit = report.get("ipc_hit") or {} + for k in ks: + key = f"@{k}" + if key in ipc_hit: + ipc_values[key].append(float(ipc_hit[key])) + + return { + "cases_total": len(case_reports), + "cases_labeled": len(labeled), + "precision": avg_at_k("precision"), + "recall": avg_at_k("recall"), + "ndcg": avg_at_k("ndcg"), + "map": avg_scalar("map"), + "mrr": avg_scalar("mrr"), + "ipc_hit": { + key: round(mean(values), 4) if values else None + for key, values in ipc_values.items() + }, + } + + +def _print_presentation_case(report: dict[str, Any], ks: list[int]) -> None: + print(f"\n=== {report['case_id']} ===") + print(f" mapping_status: {report.get('mapping_status')}") + print(f" search_path: {report.get('search_path')}") + print(" ipc_cluster_selections:") + for selection in report.get("ipc_cluster_selections") or []: + print( + " " + f"{selection.get('subclass')} {selection.get('symbol')} " + f"relative_mass={selection.get('relative_mass')}" + ) + ipc_hit = report.get("ipc_hit") or {} + print( + " ipc_hit: " + + " ".join(f"@{k}={ipc_hit.get(f'@{k}')}" for k in ks) + ) + if report.get("precision"): + print( + " precision: " + + " ".join(f"@{k}={report['precision'].get(f'@{k}')}" for k in ks) + ) + print( + " recall: " + + " ".join(f"@{k}={report['recall'].get(f'@{k}')}" for k in ks) + ) + print( + " ndcg: " + + " ".join(f"@{k}={report['ndcg'].get(f'@{k}')}" for k in ks) + ) + print(f" MAP: {report.get('map')} MRR: {report.get('mrr')}") + else: + print(" (no relevance labels — IPC proxy and top_10 only)") + print(" top_10:") + for rank, row in enumerate(report.get("top_10") or [], start=1): + symbols = ", ".join(row.get("matched_ipc_symbols") or []) or "(none)" + print( + f" {rank:2}. {row.get('patent_id')} " + f"match={row.get('match_score')} ipc={row.get('ipc_score')} " + f"symbols={symbols}" + ) + print(f" {row.get('title')}") + + +async def _run_case( + case: dict[str, Any], +) -> tuple[list[KeywordPatentMatch], str, KeywordPatentSearchDiagnostics | None]: + request = PatentsByKeywordsRequest(keywords=_keyword_items(case)) + response = await get_patents_by_keywords(request) + return list(response.patents), response.mapping_status, response.diagnostics + + +def _print_diagnostics(diagnostics: dict[str, Any] | None) -> None: + if not diagnostics: + print(" diagnostics: (none)") + return + print( + " diagnostics: " + f"path={diagnostics.get('search_path')} " + f"raw={diagnostics.get('raw_patents_after_dedupe')} " + f"passed_gate={diagnostics.get('passed_relevance_gate')} " + f"scored_before_cap={diagnostics.get('scored_before_cap')} " + f"returned={diagnostics.get('returned')} " + f"cap={diagnostics.get('max_patents_cap')} " + f"hit_cap={diagnostics.get('hit_return_cap')} " + f"es_size/index={diagnostics.get('es_query_size_per_index')}" + ) + print( + " filter_counts: " + f"ipc={diagnostics.get('filtered_by_ipc')} " + f"gate={diagnostics.get('filtered_by_relevance_gate')} " + f"min_score={diagnostics.get('filtered_by_min_score')}" + ) + + +def _print_ipc_clusters(case_id: str, diagnostics: dict[str, Any] | None) -> None: + if case_id not in IPC_FOCUS_CASES: + return + selections = (diagnostics or {}).get("ipc_cluster_selections") or [] + print(f" ipc_cluster_selections ({case_id}):") + if not selections: + print(" (none)") + return + for selection in selections: + print( + " " + f"topic={selection.get('topic_key')} " + f"subclass={selection.get('subclass')} " + f"symbol={selection.get('symbol')} " + f"level={selection.get('level')} " + f"relative_mass={selection.get('relative_mass')} " + f"cluster_mass={selection.get('cluster_mass')} " + f"reason={selection.get('reason')}" + ) + + +def _print_label_split(split: dict[str, Any] | None) -> None: + if not split: + return + for path_key, label in ( + ("ipc_path", "IPC-path labels"), + ("text_path", "Text-path labels"), + ): + path = split.get(path_key) or {} + metrics = path.get("metrics") + retrieved = path.get("retrieved", 0) + if retrieved == 0: + print(f" {label}: retrieved=0 (path unused for this case)") + continue + if not metrics: + print(f" {label}: retrieved={retrieved} (no labels overlapping this path)") + continue + print( + f" {label}: retrieved={retrieved} " + f"P@10={metrics['precision'].get('@10')} " + f"nDCG@10={metrics['ndcg'].get('@10')} " + f"MAP={metrics['map']} MRR={metrics['mrr']}" + ) + + +def _print_family_duplicates(proxy: dict[str, Any], ks: list[int]) -> None: + family = (proxy.get("family_metrics") or {}).get("family_duplicates") or {} + if not family: + return + print(" family_duplicates:") + for k in ks: + stats = family.get(f"@{k}") or {} + print( + f" @{k}: unique={stats.get('unique_families')} " + f"dup_entries={stats.get('duplicate_entries')} " + f"groups={len(stats.get('duplicate_groups') or [])}" + ) + for group in (stats.get("duplicate_groups") or [])[:3]: + print( + f" {group.get('family_key')} " + f"(count={group.get('count')})" + ) + + +def _print_top_candidates(top_results: list[dict[str, Any]], limit: int = 20) -> None: + print(f" top_{limit}_candidates:") + for rank, item in enumerate(top_results[:limit], start=1): + ipc = item.get("ipc") or [] + cpc = item.get("cpc") or [] + codes = ", ".join([*(ipc[:2]), *(cpc[:1])]) or "(none)" + print( + f" {rank:2}. {item.get('patent_id')} " + f"score={item.get('match_score')} " + f"text={item.get('text_retrieval')} " + f"ipc={codes}" + ) + + +def _print_lithium_case_detail(case_id: str, report: dict[str, Any], ks: list[int]) -> None: + if not _is_lithium_case(case_id): + return + proxy = report["proxy_metrics"] + diagnostics = report.get("diagnostics") or {} + print(f" search_path: {diagnostics.get('search_path')}") + print(f" passed_relevance_gate: {diagnostics.get('passed_relevance_gate')}") + prefixes = proxy.get("expected_ipc_prefixes") or ["H01M"] + print(f" battery_proxy_ipc ({', '.join(prefixes)}):") + for k in ks: + print(f" ipc_hit@{k}: {proxy['ipc_prefix_hit_rate'].get(f'@{k}')}") + watch = proxy.get("ipc_cluster_watch_hit_rate") + if watch: + watch_prefixes = proxy.get("ipc_cluster_watch_prefixes") or ["H01J"] + print(f" mapping_cluster_watch ({', '.join(watch_prefixes)}, not battery proxy):") + for k in ks: + print(f" cluster_hit@{k}: {watch.get(f'@{k}')}") + _print_ipc_clusters(case_id, diagnostics) + _print_family_duplicates(proxy, ks) + _print_top_candidates(report.get("top_results") or [], limit=20) + + +def _print_case_summary(case_id: str, report: dict[str, Any], ks: list[int] | None = None) -> None: + proxy = report["proxy_metrics"] + case_ks = ks or [5, 10, 20] + print(f"\n=== {case_id} ===") + print(f" mapping_status: {report.get('mapping_status')}") + print(f" retrieved: {proxy['retrieved']}") + ipc_role = proxy.get("ipc_prefix_hit_rate_role", "retrieval_aligned") + ipc_label = "ipc_hit@10" + if ipc_role == "post_hoc_plausibility_only": + ipc_label = "ipc_hit@10 (post-hoc plausibility only)" + print(f" {ipc_label}: {proxy['ipc_prefix_hit_rate'].get('@10')}") + print(f" topic_rate@10: {proxy['topic_score_rate'].get('@10')}") + print(f" text_rate@10: {proxy['text_score_rate'].get('@10')}") + _print_diagnostics(report.get("diagnostics")) + if _is_lithium_case(case_id): + _print_lithium_case_detail(case_id, report, case_ks) + else: + _print_ipc_clusters(case_id, report.get("diagnostics")) + _print_family_duplicates(proxy, case_ks) + labels = report.get("label_metrics") + if labels: + print(f" P@10 (overall): {labels['precision'].get('@10')}") + print(f" nDCG@10 (overall): {labels['ndcg'].get('@10')}") + print(f" MAP: {labels['map']} MRR: {labels['mrr']}") + else: + print(" (no relevance labels yet — proxy metrics only)") + _print_label_split(report.get("label_metrics_split")) + + +def _prior_labeling_paths(out_dir: Path) -> list[Path]: + return sorted(out_dir.glob("labeling_*.json")) + + +def _seed_grades_from_gold(case: dict[str, Any]) -> dict[str, dict[str, Any]]: + """patent_id -> {grade, notes} from goldset labels.""" + seeded: dict[str, dict[str, Any]] = {} + for patent_id, grade in (case.get("relevance_grades") or {}).items(): + seeded[normalize_patent_id(patent_id)] = { + "grade": float(grade), + "notes": "from goldset relevance_grades", + } + for patent_id in case.get("relevant_patent_ids") or []: + key = normalize_patent_id(patent_id) + seeded.setdefault( + key, + {"grade": 1.0, "notes": "from goldset relevant_patent_ids"}, + ) + for patent_id in case.get("irrelevant_patent_ids") or []: + key = normalize_patent_id(patent_id) + seeded.setdefault( + key, + {"grade": 0.0, "notes": "from goldset irrelevant_patent_ids"}, + ) + return seeded + + +def _load_prior_candidate_grades( + out_dir: Path, +) -> dict[str, dict[str, dict[str, Any]]]: + """case_id -> patent_id -> candidate payload (latest non-null grade wins).""" + by_case: dict[str, dict[str, dict[str, Any]]] = {} + for path in _prior_labeling_paths(out_dir): + try: + payload = _load_json(path) + except (OSError, json.JSONDecodeError) as exc: + logger.warning("Skipping prior labeling file %s: %s", path, exc) + continue + for case in payload.get("cases") or []: + case_id = case.get("id") + if not case_id: + continue + bucket = by_case.setdefault(case_id, {}) + for candidate in case.get("candidates") or []: + patent_id = normalize_patent_id(candidate.get("patent_id") or "") + if not patent_id: + continue + existing = bucket.get(patent_id) + grade = candidate.get("grade") + # Prefer entries that already have a grade; otherwise keep newest metadata. + if existing is None: + bucket[patent_id] = dict(candidate) + continue + if existing.get("grade") is None and grade is not None: + bucket[patent_id] = dict(candidate) + elif existing.get("grade") is None: + bucket[patent_id] = dict(candidate) + return by_case + + +def _merge_candidates( + *, + case: dict[str, Any], + new_ranked: list[dict[str, Any]], + prior_by_case: dict[str, dict[str, dict[str, Any]]], +) -> list[dict[str, Any]]: + """Merge new Top-N with prior pool and goldset grades for joint labeling.""" + case_id = case["id"] + prior = dict(prior_by_case.get(case_id) or {}) + gold_grades = _seed_grades_from_gold(case) + + merged: dict[str, dict[str, Any]] = {} + + # Start with prior pool (old hits stay available for labeling). + for patent_id, candidate in prior.items(): + item = dict(candidate) + item["patent_id"] = patent_id + item.setdefault("grade", None) + item.setdefault("notes", "") + item["in_prior_pool"] = True + item["in_current_top"] = False + merged[patent_id] = item + + # Overlay / add current bootstrap ranking. + for rank, item in enumerate(new_ranked, start=1): + patent_id = normalize_patent_id(item["patent_id"]) + base = dict(merged.get(patent_id) or {}) + previous_grade = base.get("grade") + previous_notes = base.get("notes") or "" + updated = { + **item, + "patent_id": patent_id, + "grade": previous_grade, + "notes": previous_notes, + "in_prior_pool": patent_id in prior, + "in_current_top": True, + "current_rank": rank, + } + merged[patent_id] = updated + + # Seed grades from goldset when still unlabeled. + for patent_id, seed in gold_grades.items(): + if patent_id in merged: + if merged[patent_id].get("grade") is None: + merged[patent_id]["grade"] = seed["grade"] + if not merged[patent_id].get("notes"): + merged[patent_id]["notes"] = seed["notes"] + continue + # Gold label for a patent not in current/prior retrieval — keep for metrics. + merged[patent_id] = { + "patent_id": patent_id, + "title": None, + "source": None, + "match_score": None, + "text_retrieval": None, + "grade": seed["grade"], + "notes": seed["notes"], + "in_prior_pool": False, + "in_current_top": False, + "from_goldset_only": True, + } + + def sort_key(candidate: dict[str, Any]) -> tuple: + current_rank = candidate.get("current_rank") + score = candidate.get("match_score") + return ( + 0 if candidate.get("in_current_top") else 1, + current_rank if isinstance(current_rank, int) else 10**9, + -(score if isinstance(score, (int, float)) else -1.0), + candidate.get("patent_id") or "", + ) + + return sorted(merged.values(), key=sort_key) + + +async def cmd_bootstrap(args: argparse.Namespace) -> int: + gold = _load_json(args.goldset) + ks = list(args.k or gold.get("ks") or [5, 10, 20]) + cases = gold["cases"] + if args.case: + cases = [case for case in cases if case["id"] == args.case] + if not cases: + logger.error("Unknown case id: %s", args.case) + return 1 + + out_dir = Path(args.out_dir) + prior_by_case = _load_prior_candidate_grades(out_dir) + prior_files = _prior_labeling_paths(out_dir) + print( + f"Merging with {len(prior_files)} prior labeling sheet(s); " + f"cases with prior candidates: {sorted(prior_by_case)}" + ) + + labeling_cases: list[dict[str, Any]] = [] + case_reports: list[dict[str, Any]] = [] + + for case in cases: + logger.info("Bootstrap case=%s", case["id"]) + matches, mapping_status, diagnostics = await _run_case(case) + ranked = [_match_to_dict(match) for match in matches] + grades = _relevance_for_case(case) + split = _split_label_metrics(matches, grades, ks) + diagnostics_payload = _diagnostics_dict(diagnostics) + report = { + "case_id": case["id"], + "mapping_status": mapping_status, + "proxy_metrics": _proxy_metrics( + matches, + case, + ks, + mapping_status=mapping_status, + ), + "label_metrics": split["overall"], + "label_metrics_split": split, + "diagnostics": diagnostics_payload, + "top_results": ranked[: args.top], + } + case_reports.append(report) + _print_case_summary(case["id"], report, ks) + + merged_candidates = _merge_candidates( + case=case, + new_ranked=ranked[: args.top], + prior_by_case=prior_by_case, + ) + labeling_cases.append( + { + "id": case["id"], + "description": case.get("description"), + "keywords": case["keywords"], + "expected_ipc_prefixes": case.get("expected_ipc_prefixes", []), + "mapping_status": mapping_status, + "diagnostics": diagnostics_payload, + "merge_stats": { + "current_top": sum( + 1 for c in merged_candidates if c.get("in_current_top") + ), + "from_prior_pool": sum( + 1 for c in merged_candidates if c.get("in_prior_pool") + ), + "total_candidates": len(merged_candidates), + "graded": sum( + 1 for c in merged_candidates if c.get("grade") is not None + ), + }, + "instructions": ( + "Set grade 0=irrelevant, 1=relevant, 2=highly relevant. " + "Pool merges current Top-N with prior labeling sheets and " + "goldset grades so old and new hits can be judged together. " + "Copy graded patent_ids into goldset relevant_patent_ids " + "and/or relevance_grades." + ), + "candidates": merged_candidates, + } + ) + + stamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ") + labeling_path = out_dir / f"labeling_{stamp}.json" + report_path = out_dir / f"bootstrap_report_{stamp}.json" + + payload = { + "created_at": stamp, + "goldset": str(args.goldset), + "merged_prior_labeling_files": [str(path) for path in prior_files], + "summary": _aggregate(case_reports, ks), + "cases": labeling_cases, + "cap_explanation": ( + f"Each EPO/USPTO query uses size={_MAX_PATENTS} and the pipeline " + f"caps returned patents at {_MAX_PATENTS}. hit_return_cap=true means " + "at least that many candidates passed scoring before the final slice." + ), + } + _write_json(labeling_path, payload) + _write_json( + report_path, + { + "created_at": stamp, + "mode": "bootstrap", + "summary": payload["summary"], + "case_reports": case_reports, + "cap_explanation": payload["cap_explanation"], + }, + ) + + print("\n--- aggregate (proxy + label split) ---") + print(json.dumps(payload["summary"], indent=2)) + print(f"\n{payload['cap_explanation']}") + print(f"\nLabeling sheet (merged): {labeling_path}") + print(f"Report: {report_path}") + print( + "Next: grade candidates (grade=0/1/2), merge into goldset, then run: " + "python scripts/patents/evaluate_keyword_patent_search.py eval" + ) + print( + "Do not retune relevance gates or score weights until after this label round." + ) + return 0 + + +async def cmd_eval(args: argparse.Namespace) -> int: + gold = _load_json(args.goldset) + ks = list(args.k or gold.get("ks") or [5, 10, 20]) + presentation = bool(gold.get("presentation")) + cases = gold["cases"] + if args.case: + cases = [case for case in cases if case["id"] == args.case] + if not cases: + logger.error("Unknown case id: %s", args.case) + return 1 + + case_reports: list[dict[str, Any]] = [] + for case in cases: + logger.info("Eval case=%s", case["id"]) + matches, mapping_status, diagnostics = await _run_case(case) + grades = _relevance_for_case(case) + if presentation: + report = _presentation_case_report( + case, + matches, + mapping_status, + diagnostics, + grades, + ks, + ) + case_reports.append(report) + _print_presentation_case(report, ks) + continue + + split = _split_label_metrics(matches, grades, ks) + report = { + "case_id": case["id"], + "mapping_status": mapping_status, + "proxy_metrics": _proxy_metrics( + matches, + case, + ks, + mapping_status=mapping_status, + ), + "label_metrics": split["overall"], + "label_metrics_split": split, + "diagnostics": _diagnostics_dict(diagnostics), + "top_results": [_match_to_dict(match) for match in matches[: args.top]], + } + case_reports.append(report) + _print_case_summary(case["id"], report, ks) + + summary = ( + _presentation_aggregate(case_reports, ks) + if presentation + else _aggregate(case_reports, ks) + ) + stamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ") + report_name = "presentation_eval_report" if presentation else "eval_report" + report_path = Path(args.out_dir) / f"{report_name}_{stamp}.json" + _write_json( + report_path, + { + "created_at": stamp, + "mode": "presentation_eval" if presentation else "eval", + "goldset": str(args.goldset), + "summary": summary, + "case_reports": case_reports, + }, + ) + + print("\n--- aggregate ---") + print(json.dumps(summary, indent=2)) + if summary.get("cases_labeled", 0) == 0: + print( + "\nNo relevance labels found. Grade candidates in labeling_presentation.json " + "or fill relevance_grades in the goldset, then re-run eval." + ) + print(f"\nReport: {report_path}") + return 0 + + +def _reweight_matches( + matches: list[KeywordPatentMatch], + weights: dict[str, float], +) -> list[KeywordPatentMatch]: + rescored = [ + match.model_copy( + update={ + "match_score": _compute_final_score( + match.ipc_score, + match.topic_score, + match.text_score, + weights=weights, + ) + } + ) + for match in matches + ] + rescored.sort( + key=lambda item: ( + item.match_score, + item.patent.publication_date or "", + item.patent.patent_id, + ), + reverse=True, + ) + return rescored + + +async def cmd_ablation(args: argparse.Namespace) -> int: + gold = _load_json(args.goldset) + ks = list(args.k or gold.get("ks") or [5, 10, 20]) + weight_sets = { + "default": dict(_DEFAULT_SCORE_WEIGHTS), + "ipc_heavy": {"ipc": 0.8, "topic": 0.15, "text": 0.05}, + "topic_heavy": {"ipc": 0.4, "topic": 0.45, "text": 0.15}, + "text_heavy": {"ipc": 0.4, "topic": 0.2, "text": 0.4}, + "balanced": {"ipc": 1 / 3, "topic": 1 / 3, "text": 1 / 3}, + } + + cases = gold["cases"] + if args.case: + cases = [case for case in cases if case["id"] == args.case] + + ablation_rows: list[dict[str, Any]] = [] + for case in cases: + logger.info("Ablation case=%s", case["id"]) + base_matches, _mapping_status, _diagnostics = await _run_case(case) + grades = _relevance_for_case(case) + for name, weights in weight_sets.items(): + matches = _reweight_matches(base_matches, weights) + ranked_ids = [m.patent.patent_id for m in matches] + row = { + "case_id": case["id"], + "weights_name": name, + "weights": weights, + "proxy_metrics": _proxy_metrics(matches, case, ks), + "label_metrics": _label_metrics(ranked_ids, grades, ks), + } + ablation_rows.append(row) + label = row["label_metrics"] + p10 = label["precision"]["@10"] if label else None + print( + f"{case['id']:24} {name:12} " + f"ipc_hit@10={row['proxy_metrics']['ipc_prefix_hit_rate']['@10']} " + f"P@10={p10}" + ) + + stamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ") + report_path = Path(args.out_dir) / f"ablation_report_{stamp}.json" + _write_json( + report_path, + { + "created_at": stamp, + "mode": "ablation", + "weight_sets": weight_sets, + "rows": ablation_rows, + }, + ) + print(f"\nReport: {report_path}") + return 0 + + +def build_parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser( + description="Evaluate keyword → patent search (P@k, nDCG, IPC proxy metrics).", + ) + parser.add_argument( + "mode", + choices=["bootstrap", "eval", "ablation"], + help="bootstrap=write labeling sheet; eval=score vs gold; ablation=weight variants", + ) + parser.add_argument( + "--goldset", + type=Path, + default=DEFAULT_GOLDSET, + help=f"Gold set JSON (default: {DEFAULT_GOLDSET})", + ) + parser.add_argument( + "--out-dir", + type=Path, + default=DEFAULT_OUT_DIR, + help=f"Output directory (default: {DEFAULT_OUT_DIR})", + ) + parser.add_argument("--case", type=str, default=None, help="Run a single case id") + parser.add_argument( + "--top", + type=int, + default=20, + help="How many top results to keep for labeling/report (default: 20)", + ) + parser.add_argument( + "-k", + action="append", + type=int, + dest="k", + help="Cutoffs for @k metrics (repeatable). Default from goldset.", + ) + parser.add_argument("-v", "--verbose", action="store_true") + return parser + + +def main() -> int: + parser = build_parser() + args = parser.parse_args() + logging.basicConfig( + level=logging.DEBUG if args.verbose else logging.INFO, + format="%(levelname)s %(message)s", + ) + + if args.mode == "bootstrap": + return asyncio.run(cmd_bootstrap(args)) + if args.mode == "eval": + return asyncio.run(cmd_eval(args)) + if args.mode == "ablation": + return asyncio.run(cmd_ablation(args)) + parser.error(f"Unknown mode: {args.mode}") + return 2 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/service/src/main/inse/patents/keywords/eval_metrics.py b/service/src/main/inse/patents/keywords/eval_metrics.py new file mode 100644 index 00000000..887a713e --- /dev/null +++ b/service/src/main/inse/patents/keywords/eval_metrics.py @@ -0,0 +1,225 @@ +"""Ranking metrics for keyword → patent search evaluation.""" +from __future__ import annotations + +import math +from collections.abc import Iterable, Mapping, Sequence + + +def normalize_patent_id(patent_id: str) -> str: + return patent_id.strip().upper() + + +def precision_at_k( + ranked_ids: Sequence[str], + relevant_ids: Iterable[str], + k: int, +) -> float: + if k <= 0: + return 0.0 + relevant = {normalize_patent_id(pid) for pid in relevant_ids} + if not relevant: + return 0.0 + top = [normalize_patent_id(pid) for pid in ranked_ids[:k]] + hits = sum(1 for pid in top if pid in relevant) + return hits / k + + +def recall_at_k( + ranked_ids: Sequence[str], + relevant_ids: Iterable[str], + k: int, +) -> float: + relevant = {normalize_patent_id(pid) for pid in relevant_ids} + if not relevant or k <= 0: + return 0.0 + top = {normalize_patent_id(pid) for pid in ranked_ids[:k]} + return len(top & relevant) / len(relevant) + + +def average_precision( + ranked_ids: Sequence[str], + relevant_ids: Iterable[str], +) -> float: + relevant = {normalize_patent_id(pid) for pid in relevant_ids} + if not relevant: + return 0.0 + + hits = 0 + precision_sum = 0.0 + for idx, patent_id in enumerate(ranked_ids, start=1): + if normalize_patent_id(patent_id) not in relevant: + continue + hits += 1 + precision_sum += hits / idx + + if hits == 0: + return 0.0 + return precision_sum / len(relevant) + + +def dcg_at_k(gains: Sequence[float], k: int) -> float: + total = 0.0 + for idx, gain in enumerate(gains[:k], start=1): + total += gain / math.log2(idx + 1) + return total + + +def ndcg_at_k( + ranked_ids: Sequence[str], + relevance_grades: Mapping[str, float], + k: int, +) -> float: + if k <= 0 or not relevance_grades: + return 0.0 + + grades = { + normalize_patent_id(pid): float(grade) + for pid, grade in relevance_grades.items() + if float(grade) > 0 + } + if not grades: + return 0.0 + + gains = [ + grades.get(normalize_patent_id(pid), 0.0) for pid in ranked_ids[:k] + ] + ideal = sorted(grades.values(), reverse=True) + ideal_dcg = dcg_at_k(ideal, k) + if ideal_dcg <= 0: + return 0.0 + return dcg_at_k(gains, k) / ideal_dcg + + +def mrr( + ranked_ids: Sequence[str], + relevant_ids: Iterable[str], +) -> float: + relevant = {normalize_patent_id(pid) for pid in relevant_ids} + if not relevant: + return 0.0 + for idx, patent_id in enumerate(ranked_ids, start=1): + if normalize_patent_id(patent_id) in relevant: + return 1.0 / idx + return 0.0 + + +def ipc_prefix_hit_rate( + patent_ipc_lists: Sequence[Sequence[str]], + prefixes: Sequence[str], + *, + k: int | None = None, +) -> float: + """Share of patents whose IPC/CPC codes start with any expected prefix.""" + if not prefixes: + return 0.0 + subset = list(patent_ipc_lists[:k] if k is not None else patent_ipc_lists) + if not subset: + return 0.0 + + normalized_prefixes = [prefix.strip().upper() for prefix in prefixes if prefix.strip()] + if not normalized_prefixes: + return 0.0 + + hits = 0 + for codes in subset: + normalized_codes = [code.strip().upper().replace(" ", "") for code in codes] + if any( + code.startswith(prefix) + for code in normalized_codes + for prefix in normalized_prefixes + ): + hits += 1 + return hits / len(subset) + + +def mean(values: Sequence[float]) -> float: + if not values: + return 0.0 + return sum(values) / len(values) + + +def normalize_application_number(application_number: str | None) -> str | None: + if not application_number or not application_number.strip(): + return None + return application_number.strip().upper().replace(" ", "") + + +def normalize_title_key(title: str | None) -> str | None: + if not title or not title.strip(): + return None + return " ".join(title.lower().split()) + + +def patent_family_key( + *, + patent_id: str, + application_number: str | None = None, + title: str | None = None, +) -> str: + """Best-effort family key: application number, else normalized title, else patent id.""" + app = normalize_application_number(application_number) + if app: + return f"app:{app}" + title_key = normalize_title_key(title) + if title_key: + return f"title:{title_key}" + return f"id:{normalize_patent_id(patent_id)}" + + +def analyze_family_duplicates_in_top_k( + family_keys: Sequence[str], + k: int, +) -> dict[str, int | list[dict[str, str | int]]]: + top = list(family_keys[:k]) + counts: dict[str, int] = {} + for key in top: + counts[key] = counts.get(key, 0) + 1 + duplicate_groups = [ + {"family_key": key, "count": count} + for key, count in sorted(counts.items(), key=lambda item: -item[1]) + if count > 1 + ] + return { + "total_in_top_k": len(top), + "unique_families": len(counts), + "duplicate_entries": len(top) - len(counts), + "duplicate_groups": duplicate_groups, + } + + +def unique_family_precision_at_k( + ranked_ids: Sequence[str], + family_keys: Sequence[str], + relevant_ids: Iterable[str], + k: int, +) -> float: + """Precision@k counting at most one relevant hit per patent family in top-k.""" + if k <= 0: + return 0.0 + relevant = {normalize_patent_id(pid) for pid in relevant_ids} + if not relevant: + return 0.0 + + credited_families: set[str] = set() + hits = 0 + for patent_id, family_key in zip(ranked_ids[:k], family_keys[:k]): + if family_key in credited_families: + continue + credited_families.add(family_key) + if normalize_patent_id(patent_id) in relevant: + hits += 1 + return hits / k + + +def dedupe_ranked_ids_by_family( + ranked_ids: Sequence[str], + family_keys: Sequence[str], +) -> list[str]: + seen: set[str] = set() + deduped: list[str] = [] + for patent_id, family_key in zip(ranked_ids, family_keys): + if family_key in seen: + continue + seen.add(family_key) + deduped.append(normalize_patent_id(patent_id)) + return deduped diff --git a/service/src/main/inse/patents/keywords/test_eval_metrics.py b/service/src/main/inse/patents/keywords/test_eval_metrics.py new file mode 100644 index 00000000..c996c649 --- /dev/null +++ b/service/src/main/inse/patents/keywords/test_eval_metrics.py @@ -0,0 +1,74 @@ +"""Unit tests for keyword → patent evaluation metrics.""" +from __future__ import annotations + +from inse.patents.keywords.eval_metrics import ( + analyze_family_duplicates_in_top_k, + average_precision, + ipc_prefix_hit_rate, + mrr, + ndcg_at_k, + precision_at_k, + recall_at_k, + unique_family_precision_at_k, +) + + +def test_precision_at_k() -> None: + ranked = ["EP1", "EP2", "EP3", "EP4"] + relevant = ["EP2", "EP9"] + assert precision_at_k(ranked, relevant, 2) == 0.5 + assert precision_at_k(ranked, relevant, 4) == 0.25 + + +def test_recall_at_k() -> None: + ranked = ["EP1", "EP2", "EP3"] + relevant = ["EP2", "EP9"] + assert recall_at_k(ranked, relevant, 2) == 0.5 + assert recall_at_k(ranked, relevant, 3) == 0.5 + + +def test_average_precision() -> None: + ranked = ["EP1", "EP2", "EP3"] + relevant = ["EP2", "EP3"] + # hit@2 → 1/2, hit@3 → 2/3 → AP = (0.5 + 0.666...) / 2 + assert abs(average_precision(ranked, relevant) - ((0.5 + 2 / 3) / 2)) < 1e-9 + + +def test_ndcg_at_k() -> None: + ranked = ["EP1", "EP2", "EP3"] + grades = {"EP2": 2.0, "EP3": 1.0} + score = ndcg_at_k(ranked, grades, 3) + assert 0.0 < score < 1.0 + + +def test_mrr() -> None: + assert mrr(["EP1", "EP2", "EP3"], ["EP3"]) == 1 / 3 + assert mrr(["EP1", "EP2"], ["EP9"]) == 0.0 + + +def test_ipc_prefix_hit_rate() -> None: + ipc_lists = [ + ["C07C243/08"], + ["H01L21/02"], + ["C07D401/00", "A61K31/00"], + ] + assert ipc_prefix_hit_rate(ipc_lists, ["C07"], k=3) == 2 / 3 + assert ipc_prefix_hit_rate(ipc_lists, ["C07"], k=1) == 1.0 + + +def test_unique_family_precision_at_k() -> None: + ranked = ["EP1", "EP2", "EP3", "EP4"] + family_keys = ["app:1", "app:1", "app:2", "app:3"] + relevant = ["EP1", "EP2", "EP4"] + # top-3: EP1 relevant (family app:1), EP2 dup family skip, EP3 miss -> 1/3 + assert unique_family_precision_at_k(ranked, family_keys, relevant, 3) == 1 / 3 + # top-4: EP1 hit, EP2 skip, EP3 miss, EP4 hit -> 2/4 + assert unique_family_precision_at_k(ranked, family_keys, relevant, 4) == 0.5 + + +def test_analyze_family_duplicates_in_top_k() -> None: + keys = ["app:1", "app:1", "app:2", "title:foo"] + stats = analyze_family_duplicates_in_top_k(keys, 4) + assert stats["unique_families"] == 3 + assert stats["duplicate_entries"] == 1 + assert stats["duplicate_groups"][0]["count"] == 2